OpenSGModel Class Reference
#include <OpenSGModel.h>
Inherits ModelInterface.

Public Member Functions | |
| OpenSGModel () | |
| OpenSGModel (OSG::NodePtr subtree) | |
| virtual | ~OpenSGModel () |
| virtual ModelInterface * | clone () |
| virtual SceneGraphNodeInterface * | getSubNodeByName (std::string nodeName) |
| virtual void | setModelTransformation (TransformationData &trans) |
| virtual AABB | getAABB () |
| virtual TransformationData | getModelTransformation () |
| virtual void | setVisible (bool visibility) |
| virtual bool | isVisible () |
| OSG::NodePtr | getNodePtr () |
Protected Member Functions | |
| OSG::Action::ResultE | traversalEnter (OSG::NodePtr &node) |
Protected Attributes | |
| std::string | searchedNodeName |
| OSG::NodePtr | foundNode |
| OSG::TransformPtr | modelTransCore |
| OSG::NodePtr | modelTransNode |
| TransformationData | modelTransformation |
| bool | visible |
Friends | |
| class | OpenSGSceneGraphInterface |
Constructor & Destructor Documentation
| OSG_USING_NAMESPACE OpenSGModel::OpenSGModel | ( | ) |
| OpenSGModel::OpenSGModel | ( | OSG::NodePtr | subtree | ) |
| OpenSGModel::~OpenSGModel | ( | ) | [virtual] |
Member Function Documentation
| ModelInterface * OpenSGModel::clone | ( | ) | [virtual] |
Produces a new instance of the same derived ModelInterface-class which should have identical visual properties. Wheter the datastructures for rendering will be copied or just referenced by the new instance depends on the current clone mode. The newly created instance will have the same model transformation
- Returns:
- pointer to the newly created instance
Implements ModelInterface.
| AABB OpenSGModel::getAABB | ( | ) | [virtual] |
This method returns the Axis Aligned Bounding Box of the Entity in World Coordinates. If there is no root-node set then it returns a Box of size 0
Implements ModelInterface.
| TransformationData OpenSGModel::getModelTransformation | ( | ) | [virtual] |
Getter for the model transformation.
Implements ModelInterface.
| NodePtr OpenSGModel::getNodePtr | ( | ) |
| SceneGraphNodeInterface * OpenSGModel::getSubNodeByName | ( | std::string | nodeName | ) | [virtual] |
| bool OpenSGModel::isVisible | ( | ) | [virtual] |
Returns if the model will be rendered or not
- Returns:
- visibility status of model
Implements ModelInterface.
| void OpenSGModel::setModelTransformation | ( | TransformationData & | trans | ) | [virtual] |
Sets the model transformation which is applied on the model before any other transformations. The main purpose of the model transformation is to adjust models in such a way that they fit to the rest of models already in the world
Implements ModelInterface.
| void OpenSGModel::setVisible | ( | bool | visibility | ) | [virtual] |
Defines whether the model should be rendered or not
- Parameters:
-
visibility visibility state
Implements ModelInterface.
| OSG::Action::ResultE OpenSGModel::traversalEnter | ( | OSG::NodePtr & | node | ) | [protected] |
Friends And Related Function Documentation
friend class OpenSGSceneGraphInterface [friend] |
Member Data Documentation
OSG::NodePtr OpenSGModel::foundNode [protected] |
OSG::TransformPtr OpenSGModel::modelTransCore [protected] |
TransformationData OpenSGModel::modelTransformation [protected] |
OSG::NodePtr OpenSGModel::modelTransNode [protected] |
std::string OpenSGModel::searchedNodeName [protected] |
bool OpenSGModel::visible [protected] |
The documentation for this class was generated from the following files:
- src/inVRs/OutputInterface/OpenSGSceneGraphInterface/OpenSGModel.h
- src/inVRs/OutputInterface/OpenSGSceneGraphInterface/OpenSGModel.cpp
Generated on Wed Oct 20 16:11:59 2010 for inVRs by
1.5.8