List of all members.
Public Types |
| enum | CoordinateSystemType { GEOCENTRIC,
GEOGRAPHIC,
PROJECTED
} |
Public Member Functions |
| | Locator () |
| | Locator (const Locator &, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) |
| | META_Object (osgTerrain, Locator) |
| void | setCoordinateSystemType (CoordinateSystemType type) |
| CoordinateSystemType | getCoordinateSystemType () const |
| void | setFormat (const std::string &format) |
| const std::string & | getFormat () const |
| void | setCoordinateSystem (const std::string &cs) |
| const std::string & | getCoordinateSystem () const |
| void | setEllipsoidModel (osg::EllipsoidModel *ellipsode) |
| osg::EllipsoidModel * | getEllipsoidModel () |
| const osg::EllipsoidModel * | getEllipsoidModel () const |
| void | setTransform (const osg::Matrixd &transform) |
| const osg::Matrixd & | getTransform () const |
| void | setTransformAsExtents (double minX, double minY, double maxX, double maxY) |
| 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) const |
| void | setDefinedInFile (bool flag) |
| bool | getDefinedInFile () const |
| void | setTransformScaledByResolution (bool scaledByResolution) |
| bool | getTransformScaledByResolution () 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 |
| bool | _transformScaledByResolution |
Member Enumeration Documentation
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 coordinate 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
| static bool osgTerrain::Locator::convertLocalCoordBetween |
( |
const Locator & |
source, |
|
|
const osg::Vec3d & |
sourceNDC, |
|
|
const Locator & |
destination, |
|
|
osg::Vec3d & |
destinationNDC | |
|
) |
| | [inline, static] |
| virtual bool osgTerrain::Locator::convertLocalToModel |
( |
const osg::Vec3d & |
, |
|
|
osg::Vec3d & |
| |
|
) |
| | const [virtual] |
| virtual bool osgTerrain::Locator::convertModelToLocal |
( |
const osg::Vec3d & |
, |
|
|
osg::Vec3d & |
| |
|
) |
| | const [virtual] |
| const std::string& osgTerrain::Locator::getCoordinateSystem |
( |
|
) |
const [inline] |
Get the CoordinateSystem reference string.
Get the CoordinatesSyetemType.
| bool osgTerrain::Locator::getDefinedInFile |
( |
|
) |
const [inline] |
Get the const EllipsoidModel.
| const std::string& osgTerrain::Locator::getFormat |
( |
|
) |
const [inline] |
Get the coordinate system format string.
| const osg::Matrixd& osgTerrain::Locator::getTransform |
( |
|
) |
const [inline] |
Set the transformation from local coordinates to model coordinates.
| bool osgTerrain::Locator::getTransformScaledByResolution |
( |
|
) |
const [inline] |
| osgTerrain::Locator::META_Object |
( |
osgTerrain |
, |
|
|
Locator |
| |
|
) |
| | |
| virtual bool osgTerrain::Locator::orientationOpenGL |
( |
|
) |
const [virtual] |
| void osgTerrain::Locator::setCoordinateSystem |
( |
const std::string & |
cs |
) |
[inline] |
Set the CoordinateSystem reference string, should be stored in a form consistent with the Format.
Set the CoordinatesSyetemType. Note, the user must keep the CoordinateSystemString consistent with the type of the CoordinateSystem.
| void osgTerrain::Locator::setDefinedInFile |
( |
bool |
flag |
) |
[inline] |
Set EllipsoidModel to describe the model used to map lat, long and height into geocentric XYZ and back.
| void osgTerrain::Locator::setFormat |
( |
const std::string & |
format |
) |
[inline] |
Set the coordinate system format string. Typical values would be WKT, PROJ4, USGS etc.
| void osgTerrain::Locator::setTransform |
( |
const osg::Matrixd & |
transform |
) |
[inline] |
| void osgTerrain::Locator::setTransformAsExtents |
( |
double |
minX, |
|
|
double |
minY, |
|
|
double |
maxX, |
|
|
double |
maxY | |
|
) |
| | |
Set the extents of the local coords.
| void osgTerrain::Locator::setTransformScaledByResolution |
( |
bool |
scaledByResolution |
) |
[inline] |
Member Data Documentation
The documentation for this class was generated from the following file: