#include <transform.h>
Inheritance diagram for oxygen::Transform:
Public Member Functions | |
Transform () | |
virtual | ~Transform () |
const salt::Matrix & | GetOldLocalTransform () const |
returns the old local transform of this node | |
virtual const salt::Matrix & | GetLocalTransform () const |
returns the local transform of this node | |
virtual const salt::Matrix & | GetWorldTransform () const |
returns the world transform of this node | |
virtual void | SetLocalTransform (const salt::Matrix &transform) |
sets the local transform of this node | |
virtual void | SetWorldTransform (const salt::Matrix &transform) |
sets the world transform of this node | |
void | SetLocalPos (const salt::Vector3f &pos) |
sets the local position of this node | |
void | SetLocalRotation (const salt::Vector3f &rot) |
sets the local rotation of this node in degrees | |
int | GetChangedMark () const |
returns the current transform mark | |
Protected Member Functions | |
virtual void | OnLink () |
upon linkage, we have to update our world transform | |
Private Member Functions | |
virtual void | UpdateHierarchyInternal () |
updates hierarchical date (position, bounding volumes, etc. | |
Private Attributes | |
salt::Matrix | mLocalTransform |
local transformation relative to parent | |
salt::Matrix | mWorldTransform |
world transform generated by multiplying the parent's world transform with the local transform | |
int | mChangedMark |
Transform mark from the SceneServer; this value is updated with the the current value if the local transform matrix is modified. | |
salt::Matrix | mOldLocalTransform |
the previous transformation relative to the parent |
Definition at line 44 of file transform.h.
|
Definition at line 31 of file transform.cpp. References salt::Matrix::Identity(), mChangedMark, mLocalTransform, mOldLocalTransform, mWorldTransform, and zeitgeist::Leaf::SetName(). Here is the call graph for this function: ![]() |
|
Definition at line 42 of file transform.cpp. |
|
returns the current transform mark
Definition at line 46 of file transform.cpp. References mChangedMark. |
|
returns the local transform of this node
Reimplemented from oxygen::BaseNode. Definition at line 51 of file transform.cpp. References mLocalTransform. |
|
returns the old local transform of this node
Definition at line 56 of file transform.cpp. References mOldLocalTransform. |
|
returns the world transform of this node
Reimplemented from oxygen::BaseNode. Definition at line 61 of file transform.cpp. References mWorldTransform. |
|
upon linkage, we have to update our world transform
Reimplemented from zeitgeist::Leaf. Definition at line 114 of file transform.cpp. References UpdateHierarchyInternal(). Here is the call graph for this function: ![]() |
|
sets the local position of this node
Definition at line 91 of file transform.cpp. References oxygen::SceneServer::GetTransformMark(), mChangedMark, mLocalTransform, mOldLocalTransform, salt::Matrix::Pos(), and UpdateHierarchyInternal(). Here is the call graph for this function: ![]() |
|
sets the local rotation of this node in degrees
Definition at line 100 of file transform.cpp. References salt::gDegToRad(), oxygen::SceneServer::GetTransformMark(), mChangedMark, mLocalTransform, mOldLocalTransform, salt::Matrix::Pos(), salt::Matrix::RotateY(), salt::Matrix::RotateZ(), salt::Matrix::RotationX(), and UpdateHierarchyInternal(). Here is the call graph for this function: ![]() |
|
sets the local transform of this node
Reimplemented from oxygen::BaseNode. Definition at line 66 of file transform.cpp. References oxygen::SceneServer::GetTransformMark(), mChangedMark, mLocalTransform, and mOldLocalTransform. Here is the call graph for this function: ![]() |
|
sets the world transform of this node
Reimplemented from oxygen::BaseNode. Definition at line 74 of file transform.cpp. References oxygen::SceneServer::GetTransformMark(), mChangedMark, oxygen::BaseNode::mIdentityMatrix, mLocalTransform, mOldLocalTransform, and zeitgeist::Leaf::mParent. Here is the call graph for this function: ![]() |
|
updates hierarchical date (position, bounding volumes, etc. .) Reimplemented from oxygen::BaseNode. Definition at line 119 of file transform.cpp. References mLocalTransform, zeitgeist::Leaf::mParent, and mWorldTransform. Referenced by OnLink(), SetLocalPos(), and SetLocalRotation(). |
|
Transform mark from the SceneServer; this value is updated with the the current value if the local transform matrix is modified.
Definition at line 97 of file transform.h. Referenced by GetChangedMark(), SetLocalPos(), SetLocalRotation(), SetLocalTransform(), SetWorldTransform(), and Transform(). |
|
local transformation relative to parent
Definition at line 89 of file transform.h. Referenced by GetLocalTransform(), SetLocalPos(), SetLocalRotation(), SetLocalTransform(), SetWorldTransform(), Transform(), and UpdateHierarchyInternal(). |
|
the previous transformation relative to the parent
Definition at line 100 of file transform.h. Referenced by GetOldLocalTransform(), SetLocalPos(), SetLocalRotation(), SetLocalTransform(), SetWorldTransform(), and Transform(). |
|
world transform generated by multiplying the parent's world transform with the local transform
Definition at line 92 of file transform.h. Referenced by GetWorldTransform(), Transform(), and UpdateHierarchyInternal(). |