#include <FCDTransform.h>
Inheritance diagram for FCDTransform:
Public Types | |
enum | Type { TRANSLATION, ROTATION, SCALE, MATRIX, LOOKAT, SKEW, TYPE_COUNT } |
The COLLADA transform types. More... | |
Public Member Functions | |
FCDTransform (FCDocument *document, FCDSceneNode *parent) | |
Constructor: do not use directly. | |
virtual | ~FCDTransform () |
Destructor. | |
FCDSceneNode * | GetParent () |
Retrieves the visual scene node that contains this transformation. | |
const FCDSceneNode * | GetParent () const |
See above. | |
void | SetTransformsDirtyFlag () |
[DEPRECATED] Sets on a scene node parent, the transform dirty flag. | |
virtual FCDTransform * | Clone (FCDTransform *clone=NULL) const =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. | |
FUParameterString & | GetSubId () |
Retrieves the wanted sub-id for this transform. | |
const FUParameterString & | GetSubId () const |
See above. | |
void | SetSubId (const fm::string &subId) |
Sets the wanted sub-id for this transform. | |
virtual bool | IsAnimated () const =0 |
Retrieves whether this transformation has an animation tied to its values. | |
FCDAnimated * | GetAnimated () |
Retrieves the animated element for the transformation. | |
virtual const FCDAnimated * | GetAnimated () const =0 |
See above. | |
virtual bool | IsInverse (const FCDTransform *transform) const |
Retrieves whether a given transformation is the exact opposite of this transformation. | |
virtual void | SetValueChange () |
Set Value changed flag. |
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.
|
|
Creates a copy of a transformation.
Implemented in FCDTTranslation, FCDTScale, FCDTRotation, FCDTMatrix, FCDTLookAt, and FCDTSkew. |
|
Retrieves the animated element for the transformation.
Reimplemented in FCDTTranslation, FCDTScale, FCDTRotation, FCDTMatrix, FCDTLookAt, and FCDTSkew. |
|
Retrieves the visual scene node that contains this transformation.
|
|
Retrieves the wanted sub-id for this transform. A wanted sub-id will always be exported, even if the transform is not animated. But the wanted sub-id may be modified if it isn't unique within the scope.
|
|
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. |
|
Sets the wanted sub-id for this transform. A wanted sub-id will always be exported, even if the transform is not animated. But the wanted sub-id may be modified if it isn't unique within the scope.
|
|
Set Value changed flag. When this happens, notify our parent Reimplemented from FCDObject. |
|
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. |