18 #include <osg/Texture>
19 #include <osg/ref_ptr>
21 #include <boost/signal.hpp>
22 #include <boost/unordered_map.hpp>
26 class DtOsgSceneConnector;
39 void releaseGLObjects();
55 void releaseGLObjects();
81 virtual osg::Node* rootNode();
82 virtual const osg::Node* rootNode()
const;
87 virtual osg::Node* sensorNode();
88 virtual const osg::Node* sensorNode()
const;
92 virtual bool saveModelToFile(
const std::string& filename)
const;
94 virtual void enableColorBlending(
bool b );
96 virtual void setBlendColor(
float r,
float g,
float b,
float a);
98 virtual void enableTexture(
bool onOff );
107 virtual void addDynamicSensorRegion(
const std::string& region );
110 virtual void setDynamicSensorRegion(
const std::string& region,
bool state );
113 virtual bool dynamicSensorRegion(
const std::string& region );
127 static osg::Vec4 readVec4(
const std::string& paramName,
const DtModelDefinition& definition);
130 static osg::Vec3 readVec3(
const std::string& paramName,
const DtModelDefinition& definition);
136 virtual void updateColorBlending();
138 virtual void updateColorBlending( osg::Node* node );
139 virtual void enableTexture( osg::Node* root,
bool onOff );
141 virtual void updateBoundingBoxViaContents();
147 virtual void setRootNode(osg::Node* node);