Commit af205191 authored by Mike Kremer's avatar Mike Kremer

Added function to set draw mode for each object individually.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10577 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 11f9af3e
......@@ -329,6 +329,15 @@ void BaseObjectData::getBoundingBox(ACG::Vec3d& bbmin, ACG::Vec3d& bbmax){
bbmax = (ACG::Vec3d) act.bbMax();
}
void BaseObjectData::setObjectDrawMode(const ACG::SceneGraph::DrawModes::DrawMode _mode) {
// Set draw mode for this object
ACG::SceneGraph::SetDrawModesAction actionActive(_mode, false /*not globally*/);
// Traverse scenegraph in order to set new draw mode
ACG::SceneGraph::traverse(primaryNode(), actionActive);
}
// ===============================================================================
// Picking
// ===============================================================================
......
......@@ -228,6 +228,9 @@ class DLLEXPORT BaseObjectData : public BaseObject
/// get the bounding box of the object
void getBoundingBox(ACG::Vec3d& bbmin, ACG::Vec3d& bbmax);
/// Set the draw mode for the object
void setObjectDrawMode(const ACG::SceneGraph::DrawModes::DrawMode _mode);
private :
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment