CoordinateSystemType provides the classification of the type coordinate system represented.
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] |
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 CoordinateSystem.
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.
References osg::Matrixd::invert().
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 & | local, | |
osg::Vec3d & | world | |||
) | const [virtual] |
Referenced by convertLocalCoordBetween().
virtual bool osgTerrain::Locator::convertModelToLocal | ( | const osg::Vec3d & | world, | |
osg::Vec3d & | local | |||
) | const [virtual] |
Referenced by convertLocalCoordBetween().
static bool osgTerrain::Locator::convertLocalCoordBetween | ( | const Locator & | source, | |
const osg::Vec3d & | sourceNDC, | |||
const Locator & | destination, | |||
osg::Vec3d & | destinationNDC | |||
) | [inline, static] |
References convertLocalToModel(), and convertModelToLocal().
bool osgTerrain::Locator::computeLocalBounds | ( | Locator & | source, | |
osg::Vec3d & | bottomLeft, | |||
osg::Vec3d & | topRight | |||
) | const |
void osgTerrain::Locator::setDefinedInFile | ( | bool | flag | ) | [inline] |
bool osgTerrain::Locator::getDefinedInFile | ( | ) | const [inline] |
void osgTerrain::Locator::setTransformScaledByResolution | ( | bool | scaledByResolution | ) | [inline] |
bool osgTerrain::Locator::getTransformScaledByResolution | ( | ) | const [inline] |
std::string osgTerrain::Locator::_format [protected] |
std::string osgTerrain::Locator::_cs [protected] |
osg::Matrixd osgTerrain::Locator::_transform [protected] |
osg::Matrixd osgTerrain::Locator::_inverse [protected] |
bool osgTerrain::Locator::_definedInFile [protected] |
bool osgTerrain::Locator::_transformScaledByResolution [protected] |