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:
@@ -47,6 +47,7 @@
|
||||
#include "Switch.h"
|
||||
#include "OccluderNode.h"
|
||||
#include "Impostor.h"
|
||||
#include "CoordinateSystemNode.h"
|
||||
|
||||
#include "LightPointNode.h"
|
||||
#include "MultiSwitch.h"
|
||||
@@ -826,6 +827,10 @@ osg::Node* DataInputStream::readNode()
|
||||
node = new osg::PagedLOD();
|
||||
((ive::PagedLOD*)(node))->read(this);
|
||||
}
|
||||
else if(nodeTypeID== IVECOORDINATESYSTEMNODE){
|
||||
node = new osg::CoordinateSystemNode();
|
||||
((ive::CoordinateSystemNode*)(node))->read(this);
|
||||
}
|
||||
else if(nodeTypeID== IVESWITCH){
|
||||
node = new osg::Switch();
|
||||
((ive::Switch*)(node))->read(this);
|
||||
|
||||
Reference in New Issue
Block a user