18 #include <osg/Texture>
19 #include <osg/ref_ptr>
23 class DtOsgSceneConnector;
36 void releaseGLObjects();
52 void releaseGLObjects();
78 virtual osg::Node* rootNode();
79 virtual const osg::Node* rootNode()
const;
83 virtual bool saveModelToFile(
const std::string& filename)
const;
85 virtual void enableColorBlending(
bool b );
87 virtual void setBlendColor(
float r,
float g,
float b,
float a);
89 virtual void enableTexture(
bool onOff );
92 static osg::Vec4 readVec4(
const std::string& paramName,
const DtModelDefinition& definition);
95 static osg::Vec3 readVec3(
const std::string& paramName,
const DtModelDefinition& definition);
101 virtual void updateColorBlending();
103 virtual void updateColorBlending( osg::Node* node );
104 virtual void enableTexture( osg::Node* root,
bool onOff );
106 virtual void updateBoundingBoxViaContents();
112 virtual void setRootNode(osg::Node* node);