

Public Member Functions | |
| PlaneObject () | |
| constructor | |
| PlaneObject (const PlaneObject &_object) | |
| copy constructor | |
| virtual | ~PlaneObject () |
| destructor | |
| virtual void | cleanup () |
| Reset current object, including all related nodes. | |
| BaseObject * | copy () |
Name and Path handling | |
| void | setName (QString _name) |
| Set the name of the Object. | |
Object Information | |
| QString | getObjectinfo () |
| Get all Info for the Object as a string. | |
Picking | |
| bool | picked (uint _node_idx) |
| detect if the node has been picked | |
| void | enablePicking (bool _enable) |
| Enable or disable picking for this Object. | |
| bool | pickingEnabled () |
| Check if picking is enabled for this Object. | |
Protected Member Functions | |
| virtual void | init (PlaneNode *_plane=0) |
| Initialise current object, including all related nodes. | |
Visualization | |
|
| |
| PlaneNode * | planeNode_ |
| PlaneNode * | planeNode () |
| Get the scenegraph Node. | |
Definition at line 30 of file PlaneObject.hh.
| PlaneObject::PlaneObject | ( | ) |
constructor
Constructor for Plane Objects. This object class gets a Separator Node giving the root node to which it should be connected. The plane is generated internally and all nodes for visualization will be added below the scenegraph node.
You dont need to create an object of this type manually. Use PluginFunctions::addPlane instead. ( see Types.hh::DataType )
Definition at line 26 of file PlaneObject.cc.
References BaseObjectData::init(), BaseObject::setDataType(), and setTypeIcon().
Referenced by copy().
| PlaneObject::PlaneObject | ( | const PlaneObject & | _object | ) |
copy constructor
Create a copy of this object
Copy Constructor - generates a copy of the given object
Definition at line 41 of file PlaneObject.cc.
References BaseObjectData::init(), BaseObject::name(), and setName().
| PlaneObject::~PlaneObject | ( | ) | [virtual] |
destructor
Destructor for Plane Objects. The destructor deletes the Line and all Scenegraph nodes associated with the Plane or the object.
Definition at line 53 of file PlaneObject.cc.
References BaseObject::deleteData().
| void PlaneObject::cleanup | ( | ) | [virtual] |
Reset current object, including all related nodes.
Cleanup Function for Plane Objects. Deletes the contents of the whole object and calls PlaneObject::init afterwards.
Reimplemented from BaseObjectData.
Definition at line 69 of file PlaneObject.cc.
References BaseObjectData::init(), BaseObject::setDataType(), and setTypeIcon().
| BaseObject * PlaneObject::copy | ( | ) | [virtual] |
return a full copy of this object ( All scenegraph nodes will be created ) but the object will not be a part of the object tree.
Generate a copy
Reimplemented from BaseObject.
Definition at line 85 of file PlaneObject.cc.
References PlaneObject().
| QString PlaneObject::getObjectinfo | ( | ) | [virtual] |
Get all Info for the Object as a string.
Returns a string containing all information about the current object. This also includes the information provided by BaseObjectData::getObjectinfo
Reimplemented from BaseObject.
Definition at line 139 of file PlaneObject.cc.
References BaseObject::dataType(), ACG::SceneGraph::PlaneNode::normal(), and ACG::SceneGraph::PlaneNode::position().
| void PlaneObject::init | ( | PlaneNode * | _plane = 0 |
) | [protected, virtual] |
Initialise current object, including all related nodes.
This function initalizes the plane object. It creates the scenegraph nodes.
Definition at line 92 of file PlaneObject.cc.
References BaseObjectData::materialNode(), ACG::SceneGraph::PlaneNode::normal(), ACG::SceneGraph::PlaneNode::position(), ACG::SceneGraph::PlaneNode::setPosition(), ACG::SceneGraph::PlaneNode::setSize(), ACG::SceneGraph::PlaneNode::xDirection(), and ACG::SceneGraph::PlaneNode::yDirection().
| bool PlaneObject::picked | ( | uint | _node_idx | ) | [virtual] |
detect if the node has been picked
Given an node index from PluginFunctions::scenegraphPick this function can be used to check if the planeNode of the object has been picked.
| _node_idx | Index of the picked plane node |
Reimplemented from BaseObjectData.
Definition at line 168 of file PlaneObject.cc.
References ACG::SceneGraph::ACG::SceneGraph::BaseNode::id().
| void PlaneObject::setName | ( | QString | _name | ) | [virtual] |
Set the name of the Object.
Set the name of an object. All Scenegraph nodes are renamed too. It also calls BaseObjectData::setName.
Reimplemented from BaseObjectData.
Definition at line 115 of file PlaneObject.cc.
References ACG::SceneGraph::ACG::SceneGraph::BaseNode::name().
Referenced by PlaneObject().