15 #include <osg/ref_ptr>
18 #include <osg/Texture>
21 #include <boost/unordered_map.hpp>
32 class DtOsgSceneConnector;
45 void releaseGLObjects();
61 void releaseGLObjects();
87 virtual osg::Node* rootNode();
88 virtual const osg::Node* rootNode()
const;
93 virtual osg::Node* sensorNode();
94 virtual const osg::Node* sensorNode()
const;
98 virtual bool saveModelToFile(
const std::string&
filename)
const;
100 virtual void enableColorBlending(
bool b );
102 virtual void setBlendColor(
float r,
float g,
float b,
float a);
104 virtual void enableTexture(
bool onOff );
113 virtual void addDynamicSensorRegion(
const std::string& region );
116 virtual void setDynamicSensorRegion(
const std::string& region,
bool state );
119 virtual bool dynamicSensorRegion(
const std::string& region );
133 static osg::Vec4 readVec4(
const std::string& paramName,
const DtModelDefinition& definition);
136 static osg::Vec3 readVec3(
const std::string& paramName,
const DtModelDefinition& definition);
142 virtual void updateColorBlending();
144 virtual void updateColorBlending( osg::Node* node );
145 virtual void enableTexture( osg::Node* root,
bool onOff );
147 virtual void updateBoundingBoxViaContents();
153 virtual void setRootNode(osg::Node* node);