nw::gfx::CalculatedTransform Class

Syntax

class CalculatedTransform

Description

Class representing pre-calculated transforms.

Enumerated Types

Constant Definitions
Flag Definitions of bit flags that store additional info about transforms.

Member Functions

Constant Definitions
S Identity Gets an identity matrix.
Creation
CalculatedTransform Constructor.
Setup Sets up a pre-calculated transform from a resource bone.
Set/Get
DirectTransformMatrix Gets a matrix representing coordinate transformation. Always set the Dirty flag when update has been performed.
TransformMatrix Gets a matrix representing coordinate transformation. Parent scale is applied without applying its own scale.
SetTransformMatrix Sets a matrix indicating a coordinate transformation. Sets the Dirty flag.
SetRotateMatrix Gets the rotation matrix. Sets the Dirty flag.
DirectScale Gets the scaling transformation vector. Always set the Dirty flag when update has been performed.
Scale Gets the scaling transformation vector.
SetScale Sets the scaling transformation vector. Sets the Dirty flag.
SetTranslate Sets the translation. Sets the Dirty flag.
GetTranslate Gets the translation.
SetRotateXYZ Configures rotation. Sets the Dirty flag.
SetRotateAndTranslate Sets the rotation and translation. The rotation order is XYZ. Sets the Dirty flag.
SetTransform Sets a transform. Sets the Dirty flag.
Utility Functions
NormalizeRotateMatrix Orthonormalizes the rotation component of a matrix. Sets the Dirty flag.
RotateMatrixToQuaternion Converts the rotation component of a matrix to a quaternion. The 00, 01, 02, and 10 components of the matrix are stored in x, y, z, and w respectively. Sets the Dirty flag.
QuaternionToRotateMatrix Converts a quaternion to the rotation component of a matrix. The 00, 01, 02, and 10 components of the matrix are considered to be x, y, z, and w respectively. Sets the Dirty flag.
Getting/Setting Flags
GetFlags Gets flag values directly.
SetFlags Sets flag values directly.
IsEnabledFlags Determines whether the given flags are enabled.
IsEnabledFlagsOr Determines whether any of a given set of flags are enabled.
EnableFlags Enables the specified flags.
DisableFlags Disables the specified flags.
ResetFlags Invalidates all flags.
ResetTransformFlags Invalidates all transform flags.
UpdateFlags Updates all flags from the transform info.
UpdateScaleFlags Updates only the flags among the transform info that deal with scaling.
UpdateRotateFlags Updates only the flags among the transform info that deal with rotation.
UpdateTranslateFlags Updates only the flags among the transform info that deal with translation.
UpdateCompositeFlags Updates the overall matrix flags from the flags for each component.

CONFIDENTIAL