Cutout Vis2012
TUWienVisualisierung2(SS2012)-AdaptiveCutaways
 All Classes Namespaces Functions Pages
Public Member Functions | Friends | List of all members
SceneNode Class Reference

#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)
 
TransformgetTransform ()
 
const glm::mat4 & getTotalTransform () const
 
float getTotalScale ()
 
SceneNodegetParent ()
 
const std::list< SceneNode * > & getChildNodes () const
 
const std::list< Transformable * > & getTransformables () const
 

Friends

class Scene
 

Detailed Description

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.

Constructor & Destructor Documentation

SceneNode::SceneNode ( Scene scene)

Scene node should be constructed by calling the createSceneNode method in Scene.

Member Function Documentation

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.


The documentation for this class was generated from the following files: