Commit 024155f5 authored by Dirk Wilden's avatar Dirk Wilden

Added Missing BaseObject Modifications

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5343 383ad7c9-94d9-4d36-a494-682f7c89f535
parent cff7f471
......@@ -202,6 +202,10 @@ bool BaseObject::visible() {
return visible_;
}
void BaseObject::visible(bool _visible) {
visible_ = _visible;
}
// ===============================================================================
// ===============================================================================
// Tree Structure :
......
......@@ -213,8 +213,11 @@ class DLLEXPORTONLY BaseObject {
//===========================================================================
public :
/// return if object is visible
bool visible();
/// return if object is visible
virtual bool visible();
/// Sets visiblity
virtual void visible(bool _visible);
private :
/** Show/hide/ Object\n
......
......@@ -167,6 +167,20 @@ void BaseObjectData::hide() {
visible_ = false;
}
bool BaseObjectData::visible(){
return visible_;
}
void BaseObjectData::visible(bool _visible) {
if (_visible)
separatorNode_->set_status( ACG::SceneGraph::BaseNode::Active );
else
separatorNode_->set_status( ACG::SceneGraph::BaseNode::HideSubtree );
visible_ = _visible;
}
SeparatorNode* BaseObjectData::baseNode() {
return separatorNode_;
}
......
......@@ -157,6 +157,12 @@ class DLLEXPORT BaseObjectData : public BaseObject
/// Sets the whole Scenegraph subtree of this node to invisible
void hide();
/// return visiblity
bool visible();
/// Sets visiblity of the whole Scenegraph subtree of this node
void visible(bool _visible);
/** get the base node of this object (Use this node to add custom Nodes to the Object
* which should not be transformed with the manipulator of the Object)
*/
......
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