#include <Transform.h>
Inheritance diagram for nvsg::Transform:
Public Member Functions | |
virtual NVSG_API const Transform * | clone (void) const |
Get a clone of this Transform object. | |
virtual NVSG_API bool | isDataShared (void) const |
Determine whether the data of this object is shared. | |
virtual NVSG_API DataID | getDataID (void) const |
Get the DataID of the data of this object. | |
nvmath::Mat44f | getInverse (void) const |
Get the inverse of the current transformation. | |
const nvmath::Vec3f & | getCenter (void) const |
Get the center of rotation of this transformation. | |
const nvmath::Quatf & | getOrientation (void) const |
Get the rotational part of this transformation. | |
const nvmath::Vec3f & | getScaling (void) const |
Get the scaling part of this transformation. | |
nvmath::Mat44f | getMatrix (void) const |
Get the current transformation. | |
const nvmath::Vec3f & | getTranslation (void) const |
Get the translational part of this transformation. | |
NVSG_API bool | isIdentity (void) const |
Determine if this Transform is an identity. | |
virtual NVSG_API void | setCenter (const nvmath::Vec3f ¢er) |
Set the center of rotation of this transformation. | |
virtual NVSG_API void | setIdentity (void) |
Set the Transform to be the identity. | |
virtual NVSG_API void | setOrientation (const nvmath::Quatf &orientation) |
Set the rotational part of this transformation, using a quaternion. | |
virtual NVSG_API void | setScaling (const nvmath::Vec3f &scaling) |
Set the scaling part of this transformation. | |
virtual NVSG_API void | setTranslation (const nvmath::Vec3f &translation) |
Set the translational part of this transformation. | |
Static Public Member Functions | |
static NVSG_API const Transform * | create (void) |
Create a Transform. | |
static NVSG_API const Transform * | createFromBase (const Group &rhs) |
Create a Transform by copying from a Group. | |
Protected Member Functions | |
NVSG_API | Transform (void) |
Constructor. | |
NVSG_API | Transform (const Group &rhs) |
Partial Constructor. | |
NVSG_API | Transform (const Transform &rhs) |
Copy Constructor. | |
virtual NVSG_API | ~Transform (void) |
Protected destructor to prevent explicit creation on stack. | |
virtual NVSG_API bool | calcBoundingSphere (void) const |
Calculate the bounding sphere of this transform. |
A Transform contains a transformation that is appended to the current transform and a number of children that are relative to this transformation.
|
Constructor.
|
|
Partial Constructor.
|
|
Copy Constructor.
|
|
Protected destructor to prevent explicit creation on stack.
|
|
Create a Transform.
Reimplemented from nvsg::Group. |
|
Create a Transform by copying from a Group.
|
|
Get a clone of this
Reimplemented from nvsg::Group. Reimplemented in nvsg::AnimatedTransform. |
|
Determine whether the data of this object is shared.
Reimplemented from nvsg::Group. Reimplemented in nvsg::AnimatedTransform. |
|
Get the DataID of the data of this object.
Reimplemented from nvsg::Group. Reimplemented in nvsg::AnimatedTransform. |
|
Get the inverse of the current transformation.
|
|
Get the center of rotation of this transformation.
|
|
Get the rotational part of this transformation.
|
|
Get the scaling part of this transformation.
|
|
Get the current transformation.
|
|
Get the translational part of this transformation.
|
|
Determine if this Transform is an identity.
|
|
Set the center of rotation of this transformation.
Reimplemented in nvsg::AnimatedTransform. |
|
Set the Transform to be the identity.
Reimplemented in nvsg::AnimatedTransform. |
|
Set the rotational part of this transformation, using a quaternion.
Reimplemented in nvsg::AnimatedTransform. |
|
Set the scaling part of this transformation.
Reimplemented in nvsg::AnimatedTransform. |
|
Set the translational part of this transformation.
Reimplemented in nvsg::AnimatedTransform. |
|
Calculate the bounding sphere of this transform. To calculate the bounding sphere of a transform, it transforms the bounding sphere of all its children.
Reimplemented from nvsg::Group. |