osgTerrain::Locator Class Reference

Inheritance diagram for osgTerrain::Locator:

Inheritance graph
[legend]

List of all members.

Public Types

enum  CoordinateSystemType { GEOCENTRIC, GEOGRAPHIC, PROJECTED }
 CoordinateSystemType provides the classification of the type coordinate system represented. More...

Public Member Functions

 Locator ()
 Locator (const Locator &, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 Copy constructor using CopyOp to manage deep vs shallow copy.
 META_Object (osgTerrain, Locator)
void setCoordinateSystemType (CoordinateSystemType type)
 Set the CoordinatesSyetemType.
CoordinateSystemType getCoordinateSystemType () const
 Get the CoordinatesSyetemType.
void setFormat (const std::string &format)
 Set the coordinate system format string.
const std::string & getFormat () const
 Get the coordinate system format string.
void setCoordinateSystem (const std::string &cs)
 Set the CoordinateSystem reference string, should be stored in a form consistent with the Format.
const std::string & getCoordinateSystem () const
 Get the CoordinateSystem reference string.
void setEllipsoidModel (osg::EllipsoidModel *ellipsode)
 Set EllipsoidModel to describe the model used to map lat, long and height into geocentric XYZ and back.
osg::EllipsoidModelgetEllipsoidModel ()
 Get the EllipsoidModel.
const
osg::EllipsoidModel
getEllipsoidModel () const
 Get the const EllipsoidModel.
void setTransform (const osg::Matrixd &transform)
 Set the transformation from local coordinates to model coordinates.
const osg::MatrixdgetTransform () const
 Set the transformation from local coordinates to model coordinates.
void setTransformAsExtents (double minX, double minY, double maxX, double maxY)
 Set the extents of the local coords.
virtual bool orientationOpenGL () const
virtual bool convertLocalToModel (const osg::Vec3d &, osg::Vec3d &) const
virtual bool convertModelToLocal (const osg::Vec3d &, osg::Vec3d &) const
bool computeLocalBounds (Locator &source, osg::Vec3d &bottomLeft, osg::Vec3d &topRight)
void setDefinedInFile (bool flag)
bool getDefinedInFile () const

Static Public Member Functions

static bool convertLocalCoordBetween (const Locator &source, const osg::Vec3d &sourceNDC, const Locator &destination, osg::Vec3d &destinationNDC)

Protected Member Functions

virtual ~Locator ()

Protected Attributes

CoordinateSystemType _coordinateSystemType
std::string _format
std::string _cs
osg::ref_ptr
< osg::EllipsoidModel
_ellipsoidModel
osg::Matrixd _transform
osg::Matrixd _inverse
bool _definedInFile


Member Enumeration Documentation

enum osgTerrain::Locator::CoordinateSystemType

CoordinateSystemType provides the classification of the type coordinate system represented.

Enumerator:
GEOCENTRIC  GEOCENTRIC coordinate systems are ones mapped to the around the ellipsoid, i.e.

whole earth.

GEOGRAPHIC  GEOGRAPHIC coordinate systems are ones mapped to latitude and longitude.

PROJECTED  PROJECTED coordinate systems are ones projected to a local projected coordindate system i.e.

UTMs.


Constructor & Destructor Documentation

osgTerrain::Locator::Locator (  ) 

osgTerrain::Locator::Locator ( const Locator ,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)

Copy constructor using CopyOp to manage deep vs shallow copy.

virtual osgTerrain::Locator::~Locator (  )  [protected, virtual]


Member Function Documentation

osgTerrain::Locator::META_Object ( osgTerrain  ,
Locator   
)

void osgTerrain::Locator::setCoordinateSystemType ( CoordinateSystemType  type  )  [inline]

Set the CoordinatesSyetemType.

Note, the user must keep the CoordinateSystemString consistent with the type of the CoordindateSystem.

CoordinateSystemType osgTerrain::Locator::getCoordinateSystemType (  )  const [inline]

Get the CoordinatesSyetemType.

void osgTerrain::Locator::setFormat ( const std::string &  format  )  [inline]

Set the coordinate system format string.

Typical values would be WKT, PROJ4, USGS etc.

const std::string& osgTerrain::Locator::getFormat (  )  const [inline]

Get the coordinate system format string.

void osgTerrain::Locator::setCoordinateSystem ( const std::string &  cs  )  [inline]

Set the CoordinateSystem reference string, should be stored in a form consistent with the Format.

const std::string& osgTerrain::Locator::getCoordinateSystem (  )  const [inline]

Get the CoordinateSystem reference string.

void osgTerrain::Locator::setEllipsoidModel ( osg::EllipsoidModel ellipsode  )  [inline]

Set EllipsoidModel to describe the model used to map lat, long and height into geocentric XYZ and back.

osg::EllipsoidModel* osgTerrain::Locator::getEllipsoidModel (  )  [inline]

Get the EllipsoidModel.

const osg::EllipsoidModel* osgTerrain::Locator::getEllipsoidModel (  )  const [inline]

Get the const EllipsoidModel.

void osgTerrain::Locator::setTransform ( const osg::Matrixd transform  )  [inline]

Set the transformation from local coordinates to model coordinates.

const osg::Matrixd& osgTerrain::Locator::getTransform (  )  const [inline]

Set the transformation from local coordinates to model coordinates.

void osgTerrain::Locator::setTransformAsExtents ( double  minX,
double  minY,
double  maxX,
double  maxY 
)

Set the extents of the local coords.

virtual bool osgTerrain::Locator::orientationOpenGL (  )  const [virtual]

virtual bool osgTerrain::Locator::convertLocalToModel ( const osg::Vec3d ,
osg::Vec3d  
) const [virtual]

virtual bool osgTerrain::Locator::convertModelToLocal ( const osg::Vec3d ,
osg::Vec3d  
) const [virtual]

static bool osgTerrain::Locator::convertLocalCoordBetween ( const Locator source,
const osg::Vec3d sourceNDC,
const Locator destination,
osg::Vec3d destinationNDC 
) [inline, static]

bool osgTerrain::Locator::computeLocalBounds ( Locator source,
osg::Vec3d bottomLeft,
osg::Vec3d topRight 
)

void osgTerrain::Locator::setDefinedInFile ( bool  flag  )  [inline]

bool osgTerrain::Locator::getDefinedInFile (  )  const [inline]


Member Data Documentation

CoordinateSystemType osgTerrain::Locator::_coordinateSystemType [protected]

std::string osgTerrain::Locator::_format [protected]

std::string osgTerrain::Locator::_cs [protected]

osg::ref_ptr<osg::EllipsoidModel> osgTerrain::Locator::_ellipsoidModel [protected]

osg::Matrixd osgTerrain::Locator::_transform [protected]

osg::Matrixd osgTerrain::Locator::_inverse [protected]

bool osgTerrain::Locator::_definedInFile [protected]


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 02:12:48 2007 for the OpenSceneGraph by doxygen 1.5.3.