#include <FCDTransform.h>
Inheritance diagram for FCDTransform:
Public Types | |
enum | Type { TRANSLATION, ROTATION, SCALE, MATRIX, LOOKAT, SKEW } |
The COLLADA transform types. More... | |
Public Member Functions | |
FCDTransform (FCDocument *document, FCDSceneNode *parent) | |
Constructor: do not use directly. | |
virtual | ~FCDTransform () |
Destructor: do not use directly. | |
FCDSceneNode * | GetParent () |
Retrieves the visual scene node that contains this transformation. | |
const FCDSceneNode * | GetParent () const |
See above. | |
virtual FCDTransform * | Clone (FCDSceneNode *newParent)=0 |
Creates a copy of a transformation. | |
virtual Type | GetType () const =0 |
Retrieves the class type of the transformation. | |
virtual FMMatrix44 | ToMatrix () const =0 |
Converts the transformation into a matrix. | |
virtual bool | IsAnimated () const =0 |
Retrieves whether this transformation has an animation tied to its values. | |
virtual FCDAnimated * | GetAnimated ()=0 |
Retrieves the animated element for the transformation. | |
virtual bool | IsInverse (const FCDTransform *transform) const |
Retrieves whether a given transformation is the exact opposite of this transformation. | |
virtual FUStatus | LoadFromXML (xmlNode *transformNode)=0 |
[INTERNAL] Reads in the transformation from a given COLLADA XML tree node. | |
virtual xmlNode * | WriteToXML (xmlNode *parentNode) const =0 |
[INTERNAL] Writes out the transformation to the given COLLADA XML tree node. |
COLLADA supports six transformation types: translations(FCDTTranslation), rotations(FCDTRotation), scales(FCDTScale), matrices(FCDTMatrix), skews(FCDTSkew) and the 'look-at' transform(FCDTLookAt).
|
The COLLADA transform types.
|
|
Constructor: do not use directly. Instead, use the FCDSceneNode::AddTransform function.
|
|
Destructor: do not use directly. Instead, use the FCDSceneNode::ReleaseTransform function. |
|
Creates a copy of a transformation.
Implemented in FCDTTranslation, FCDTScale, FCDTRotation, FCDTMatrix, FCDTLookAt, and FCDTSkew. |
|
Retrieves the animated element for the transformation.
Implemented in FCDTTranslation, FCDTScale, FCDTRotation, FCDTMatrix, FCDTLookAt, and FCDTSkew. |
|
Retrieves the visual scene node that contains this transformation.
|
|
Retrieves the class type of the transformation. The class type should be used to up-case the transformation pointer.
Implemented in FCDTTranslation, FCDTScale, FCDTRotation, FCDTMatrix, FCDTLookAt, and FCDTSkew. |
|
Retrieves whether this transformation has an animation tied to its values.
Implemented in FCDTTranslation, FCDTScale, FCDTRotation, FCDTMatrix, FCDTLookAt, and FCDTSkew. |
|
Retrieves whether a given transformation is the exact opposite of this transformation. Executing two opposite transformations, one after the other will not give any resulting transformation. This function is useful to detect pivots within the transform stack.
Reimplemented in FCDTTranslation, and FCDTRotation. |
|
[INTERNAL] Reads in the transformation from a given COLLADA XML tree node.
Implemented in FCDTTranslation, FCDTScale, FCDTRotation, FCDTMatrix, FCDTLookAt, and FCDTSkew. |
|
Converts the transformation into a matrix. Useful for visual scene nodes with a weird transformation stack.
Implemented in FCDTTranslation, FCDTScale, FCDTRotation, FCDTMatrix, FCDTLookAt, and FCDTSkew. |
|
[INTERNAL] Writes out the transformation to the given COLLADA XML tree node.
Implemented in FCDTTranslation, FCDTScale, FCDTRotation, FCDTMatrix, FCDTLookAt, and FCDTSkew. |