A modifier that will update the transform of every vertex in a mesh. More...
#include <vertextransformmodifier.h>
Public Member Functions | |
VertexTransformModifier () | |
Blank constructor. | |
virtual | ~VertexTransformModifier () |
Class destructor. | |
virtual String | GetName () const |
Gets the name of this modifier. More... | |
virtual void | Modify (TriangleBuffer &Buffer) |
Alters the generated pixels in a TriangleBuffer. More... | |
VertexTransformModifier & | SetRotation (const Quaternion &Rot) |
Sets how to rotate the mesh. More... | |
VertexTransformModifier & | SetRotation (const Real X, const Real Y, const Real Z, const Real W) |
Sets how to rotate the mesh. More... | |
VertexTransformModifier & | SetScaling (const Vector3 &Scale) |
Sets the scaling to apply. More... | |
VertexTransformModifier & | SetScaling (const Real X, const Real Y, const Real Z) |
Sets the scaling to apply. More... | |
VertexTransformModifier & | SetTranslation (const Vector3 &Trans) |
Sets the linear movement to apply. More... | |
VertexTransformModifier & | SetTranslation (const Real X, const Real Y, const Real Z) |
Sets the linear movement to apply. More... | |
Public Member Functions inherited from Mezzanine::Graphics::Procedural::MeshModifier | |
MeshModifier () | |
Blank constructor. | |
virtual | ~MeshModifier () |
Class destructor. | |
Protected Attributes | |
Quaternion | Rotation |
The amount of rotation to apply to each vertex. More... | |
Vector3 | Scaling |
The amount to scale each vertex by. More... | |
Vector3 | Translation |
The amount of linear movement to apply to each vertex. More... | |
A modifier that will update the transform of every vertex in a mesh.
Definition at line 82 of file vertextransformmodifier.h.
|
virtual |
Gets the name of this modifier.
Implements Mezzanine::Graphics::Procedural::MeshModifier.
Definition at line 99 of file vertextransformmodifier.cpp.
|
virtual |
Alters the generated pixels in a TriangleBuffer.
Buffer | The buffer to be modified. |
Implements Mezzanine::Graphics::Procedural::MeshModifier.
Definition at line 90 of file vertextransformmodifier.cpp.
VertexTransformModifier & Mezzanine::Graphics::Procedural::VertexTransformModifier::SetRotation | ( | const Quaternion & | Rot | ) |
Sets how to rotate the mesh.
Rot | The amount of rotation to apply. |
Definition at line 105 of file vertextransformmodifier.cpp.
VertexTransformModifier & Mezzanine::Graphics::Procedural::VertexTransformModifier::SetRotation | ( | const Real | X, |
const Real | Y, | ||
const Real | Z, | ||
const Real | W | ||
) |
Sets how to rotate the mesh.
X | The X component of the rotation(Quaternion) to apply. |
Y | The Y component of the rotation(Quaternion) to apply. |
Z | The Z component of the rotation(Quaternion) to apply. |
W | The W component of the rotation(Quaternion) to apply. |
Definition at line 111 of file vertextransformmodifier.cpp.
VertexTransformModifier & Mezzanine::Graphics::Procedural::VertexTransformModifier::SetScaling | ( | const Vector3 & | Scale | ) |
Sets the scaling to apply.
Scale | The amount to scale each vertex by. |
Definition at line 129 of file vertextransformmodifier.cpp.
VertexTransformModifier & Mezzanine::Graphics::Procedural::VertexTransformModifier::SetScaling | ( | const Real | X, |
const Real | Y, | ||
const Real | Z | ||
) |
Sets the scaling to apply.
X | The amount of scale to apply to each vertex on the X axis. |
Y | The amount of scale to apply to each vertex on the Y axis. |
Z | The amount of scale to apply to each vertex on the Z axis. |
Definition at line 135 of file vertextransformmodifier.cpp.
VertexTransformModifier & Mezzanine::Graphics::Procedural::VertexTransformModifier::SetTranslation | ( | const Vector3 & | Trans | ) |
Sets the linear movement to apply.
Trans | The amount of linear movement to apply to each vertex. |
Definition at line 117 of file vertextransformmodifier.cpp.
VertexTransformModifier & Mezzanine::Graphics::Procedural::VertexTransformModifier::SetTranslation | ( | const Real | X, |
const Real | Y, | ||
const Real | Z | ||
) |
Sets the linear movement to apply.
X | The amount of linear movement to apply to each vertex on the X axis. |
Y | The amount of linear movement to apply to each vertex on the Y axis. |
Z | The amount of linear movement to apply to each vertex on the Z axis. |
Definition at line 123 of file vertextransformmodifier.cpp.
|
protected |
The amount of rotation to apply to each vertex.
Definition at line 87 of file vertextransformmodifier.h.
|
protected |
The amount to scale each vertex by.
Definition at line 93 of file vertextransformmodifier.h.
|
protected |
The amount of linear movement to apply to each vertex.
Definition at line 90 of file vertextransformmodifier.h.