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:
@@ -49,6 +49,7 @@
|
||||
#include "Switch.h"
|
||||
#include "OccluderNode.h"
|
||||
#include "Impostor.h"
|
||||
#include "CoordinateSystemNode.h"
|
||||
|
||||
#include "LightPointNode.h"
|
||||
#include "MultiSwitch.h"
|
||||
@@ -611,6 +612,9 @@ void DataOutputStream::writeNode(const osg::Node* node)
|
||||
else if(dynamic_cast<const osg::Switch*>(node)){
|
||||
((ive::Switch*)(node))->write(this);
|
||||
}
|
||||
else if(dynamic_cast<const osg::CoordinateSystemNode*>(node)){
|
||||
((ive::CoordinateSystemNode*)(node))->write(this);
|
||||
}
|
||||
else if(dynamic_cast<const osgSim::MultiSwitch*>(node)){
|
||||
((ive::MultiSwitch*)(node))->write(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user