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:
Robert Osfield
2004-05-02 21:50:15 +00:00
parent a709c0a474
commit fced94fab3
16 changed files with 363 additions and 6 deletions

View File

@@ -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; }

View File

@@ -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); }