15 #include <osg/ref_ptr>
18 #include <osg/Texture>
20 #include <boost/unordered_map.hpp>
31 class DtOsgSceneConnector;
44 void releaseGLObjects();
60 void releaseGLObjects();
86 virtual osg::Node* rootNode();
87 virtual const osg::Node* rootNode()
const;
92 virtual osg::Node* sensorNode();
93 virtual const osg::Node* sensorNode()
const;
97 virtual bool saveModelToFile(
const std::string& filename)
const;
99 virtual void enableColorBlending(
bool b );
101 virtual void setBlendColor(
float r,
float g,
float b,
float a);
103 virtual void enableTexture(
bool onOff );
112 virtual void addDynamicSensorRegion(
const std::string& region );
115 virtual void setDynamicSensorRegion(
const std::string& region,
bool state );
118 virtual bool dynamicSensorRegion(
const std::string& region );
132 static osg::Vec4 readVec4(
const std::string& paramName,
const DtModelDefinition& definition);
135 static osg::Vec3 readVec3(
const std::string& paramName,
const DtModelDefinition& definition);
141 virtual void updateColorBlending();
143 virtual void updateColorBlending( osg::Node* node );
144 virtual void enableTexture( osg::Node* root,
bool onOff );
146 virtual void updateBoundingBoxViaContents();
152 virtual void setRootNode(osg::Node* node);