#include <Transform.h>
Description
A hierarchical transform object.
Allows for chaining transformation information including position, rotation, and scaling. Because Transforms are hierarchical, each has a local transform and a global transform.
Functions | |
const Vector & | GetRotation () const |
const Vector & | GetPosition () const |
const Vector & | GetScale () const |
Vector & | Rotation () |
Vector & | Position () |
Vector & | Scale () |
void | SetReverseTranslation (bool) |
const TransformMatrix & | GetMatrix () |
void | AddTransformCallback (OnTransformUpdate *) |
void | RemoveTransformCallback (OnTransformUpdate *) |
bool | NeedsUpdate () const |
Member Function Documentation
const Vector& GetRotation | ( | ) | const |
Gets a read-only, quick reference to the rotation component.
const Vector& GetPosition | ( | ) | const |
Gets a read-only, quick reference to the position component.
const Vector& GetScale | ( | ) | const |
Gets a read-only, quick reference to the scale component.
Vector& Rotation | ( | ) |
Returns a writable reference to the rotation component. Once called, flags the node to recalculate its transforms on the following frame.
Vector& Position | ( | ) |
Returns a writable reference to the position component. Once called, flags the node to recalculate its transforms on the following frame.
Vector& Scale | ( | ) |
Returns a writable reference to the scale component. Once called, flags the node to recalculate its transforms on the following frame.
void SetReverseTranslation | ( | bool | ) |
Sets whether to reverse the node's interpretation of of translation for transform calculation. Rarely useful.
const TransformMatrix& GetMatrix | ( | ) |
Gets the transform matrix representative of this Transform. At this time, any requests to modify the transform are processed. If any such request was made, the transform is updated and any OnTransformUpdate functors are called.
void AddTransformCallback | ( | OnTransformUpdate * | ) |
Adds a transform update.
void RemoveTransformCallback | ( | OnTransformUpdate * | ) |
removes a transform callback
bool NeedsUpdate | ( | ) | const |
Returns whether an update to this transform is pending.
The documentation for this class was generated from the following file:
- /home/jc/git/Dynacoe/DynacoeSrc/includes/Dynacoe/Util/Transform.h