Added support for decoration of the osgTerrain::DataSet generated databases
with a CoordinateSystemNode which reflect the coordinate system of the database. Added support for reading and writing CoordianteSystemNode into the .osg and .ive formats.
This commit is contained in:
@@ -93,7 +93,7 @@ class SG_EXPORT CoordinateSystemNode : public Group
|
||||
|
||||
|
||||
/** Set the CoordinateSystem reference string, should be stored in OpenGIS Well Know Text form.*/
|
||||
void setCoordnateSystem(const std::string& WKT) { _WKT = WKT; }
|
||||
void setCoordinateSystem(const std::string& WKT) { _WKT = WKT; }
|
||||
|
||||
/** Get the CoordinateSystem reference string.*/
|
||||
const std::string& getCoordinateSystem() const { return _WKT; }
|
||||
|
||||
@@ -36,6 +36,7 @@ class Impostor;
|
||||
class ClearNode;
|
||||
class OccluderNode;
|
||||
class Sequence;
|
||||
class CoordinateSystemNode;
|
||||
|
||||
/** Visitor for type safe operations on osg::Node's.
|
||||
Based on GOF's Visitor pattern. The NodeVisitor
|
||||
@@ -221,6 +222,8 @@ class SG_EXPORT NodeVisitor : public virtual Referenced
|
||||
|
||||
virtual void apply(Projection& node) { apply((Group&)node); }
|
||||
|
||||
virtual void apply(CoordinateSystemNode& node) { apply((Group&)node); }
|
||||
|
||||
virtual void apply(ClipNode& node) { apply((Group&)node); }
|
||||
virtual void apply(LightSource& node) { apply((Group&)node); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user