Cutout Vis2012
TUWienVisualisierung2(SS2012)-AdaptiveCutaways
|
#include <SceneNode.h>
Public Member Functions | |
SceneNode (Scene *scene) | |
void | addSceneNode (SceneNode *sceneNode) |
void | removeSceneNode (SceneNode *sceneNode) |
void | removeFromParent () |
void | removeAllSceneNodes () |
void | addTransformable (Transformable *transformable) |
void | removeTransformable (Transformable *transformable) |
void | removeAllTransformables () |
void | setTransform (Transform *transform) |
Transform * | getTransform () |
const glm::mat4 & | getTotalTransform () const |
float | getTotalScale () |
SceneNode * | getParent () |
const std::list< SceneNode * > & | getChildNodes () const |
const std::list< Transformable * > & | getTransformables () const |
Friends | |
class | Scene |
Node in the scene graph. Has a transform used for propagating transformation matrices. Can have scene nodes as children attached. Can have Transformables attached that will inherit the transform from this scene node.
SceneNode::SceneNode | ( | Scene * | scene) |
void SceneNode::addSceneNode | ( | SceneNode * | sceneNode) |
Add a scene node to the children of this node. sceneNode
will be removed from its current parent.
void SceneNode::addTransformable | ( | Transformable * | transformable) |
Attaches a transformable to this node. The transformable is removed from its current parent.
SceneNode * SceneNode::getParent | ( | ) |
Returns this node's parent node.
float SceneNode::getTotalScale | ( | ) |
Returns the scale factor calculated by propagation from the root.
const glm::mat4 & SceneNode::getTotalTransform | ( | ) | const |
Returns the transformation matrix created by propating the matrix from the root.
Transform * SceneNode::getTransform | ( | ) |
Returns this node's transform.
void SceneNode::removeAllSceneNodes | ( | ) |
Removes all children from this node.
void SceneNode::removeAllTransformables | ( | ) |
Removes all transformables from this node.
void SceneNode::removeFromParent | ( | ) |
Removes this node from its current parent.
void SceneNode::removeSceneNode | ( | SceneNode * | sceneNode) |
Removes a child node from this node.
void SceneNode::removeTransformable | ( | Transformable * | transformable) |
Removes a transformable from this node.
void SceneNode::setTransform | ( | Transform * | transform) |
Sets the transform used for transformation matrix propagation.