14#ifndef OSGTERRAIN_LOCATOR
15#define OSGTERRAIN_LOCATOR 1
The osgTerrain library is a NodeKit that provides geospecifc terrain rendering support.
Definition Node:29
EllipsoidModel encapsulates the ellipsoid used to model astronomical bodies, such as sun,...
Definition CoordinateSystemNode:31
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
Base class/standard interface for objects which require IO support, cloning and reference counting.
Definition Object:61
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
General purpose double triple for use as vertices, vectors and normals.
Definition Vec3d:30
osg::Matrixd _transform
Definition Locator:122
std::string _format
Definition Locator:118
osg::EllipsoidModel * getEllipsoidModel()
Get the EllipsoidModel.
Definition Locator:73
META_Object(osgTerrain, Locator)
const osg::EllipsoidModel * getEllipsoidModel() const
Get the const EllipsoidModel.
Definition Locator:76
bool getDefinedInFile() const
Definition Locator:107
CoordinateSystemType getCoordinateSystemType() const
Get the CoordinatesSyetemType.
Definition Locator:54
virtual bool orientationOpenGL() const
void setDefinedInFile(bool flag)
Definition Locator:106
virtual bool convertLocalToModel(const osg::Vec3d &local, osg::Vec3d &world) const
CoordinateSystemType
CoordinateSystemType provides the classification of the type coordinate system represented.
Definition Locator:38
@ GEOGRAPHIC
GEOGRAPHIC coordinate systems are ones mapped to latitude and longitude.
Definition Locator:43
@ GEOCENTRIC
GEOCENTRIC coordinate systems are ones mapped to the around the ellipsoid, i.e.
Definition Locator:40
@ PROJECTED
PROJECTED coordinate systems are ones projected to a local projected coordinate system i....
Definition Locator:46
void setTransform(const osg::Matrixd &transform)
Set the transformation from local coordinates to model coordinates.
Definition Locator:80
bool _definedInFile
Definition Locator:125
const std::string & getFormat() const
Get the coordinate system format string.
Definition Locator:60
Locator(const Locator &, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
void setFormat(const std::string &format)
Set the coordinate system format string.
Definition Locator:57
void setTransformScaledByResolution(bool scaledByResolution)
Definition Locator:109
void setCoordinateSystemType(CoordinateSystemType type)
Set the CoordinatesSyetemType.
Definition Locator:51
const std::string & getCoordinateSystem() const
Get the CoordinateSystem reference string.
Definition Locator:66
CoordinateSystemType _coordinateSystemType
Definition Locator:116
void setTransformAsExtents(double minX, double minY, double maxX, double maxY)
Set the extents of the local coords.
osg::ref_ptr< osg::EllipsoidModel > _ellipsoidModel
Definition Locator:120
void setEllipsoidModel(osg::EllipsoidModel *ellipsode)
Set EllipsoidModel to describe the model used to map lat, long and height into geocentric XYZ and bac...
Definition Locator:70
static bool convertLocalCoordBetween(const Locator &source, const osg::Vec3d &sourceNDC, const Locator &destination, osg::Vec3d &destinationNDC)
Definition Locator:95
bool _transformScaledByResolution
Definition Locator:126
const osg::Matrixd & getTransform() const
Set the transformation from local coordinates to model coordinates.
Definition Locator:83
bool computeLocalBounds(Locator &source, osg::Vec3d &bottomLeft, osg::Vec3d &topRight) const
virtual bool convertModelToLocal(const osg::Vec3d &world, osg::Vec3d &local) const
osg::Matrixd _inverse
Definition Locator:123
void setCoordinateSystem(const std::string &cs)
Set the CoordinateSystem reference string, should be stored in a form consistent with the Format.
Definition Locator:63
std::string _cs
Definition Locator:119
bool getTransformScaledByResolution() const
Definition Locator:110
#define OSGTERRAIN_EXPORT
Definition Export:39