AnimEngine
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
Pose Class Reference
Inheritance diagram for Pose:
Inheritance graph
[legend]
Collaboration diagram for Pose:
Collaboration graph
[legend]

Public Member Functions

 Pose (const glm::vec3 &start_location)
 
 Pose (const glm::vec3 &start_location, const glm::quat &start_orientation)
 
 Pose (const glm::vec3 &start_location, const glm::quat &start_orientation, const glm::vec3 &start_scale)
 
 Pose (const glm::mat4 &pre_transform)
 
 Pose (const glm::mat4 &pre_transform, const glm::mat4 &post_transform)
 
const glm::mat4 & getMatrix ()
 
glm::vec3 getCenterOfSpace () const
 
glm::vec3 getCenterOfSpace ()
 
glm::vec3 getOrientationAsVectorX () const
 
glm::vec3 getOrientationAsVectorY () const
 
glm::vec3 getOrientationAsVectorZ () const
 
void copyFrom (const Pose &other)
 
const glm::vec3 & getTranslation () const
 
const glm::quat & getOrientation () const
 
const glm::vec3 & getScale () const
 
const glm::mat4 & getPreTransformMatrix () const
 
const glm::mat4 & getPostTransformMatrix () const
 
Pose getCenteredAndReduced (const glm::vec3 &origin=glm::vec3(0.0)) const
 
Pose getReducedAndReadable () const
 
void setTranslation (const glm::vec3 &new_translation)
 
void setOrientation (const glm::quat &new_orientation)
 
void setScale (const glm::vec3 &new_scale)
 
void setPostTransformMatrix (const glm::mat4 &post_transform)
 
void setPreTransformaMatrix (const glm::mat4 &pre_transform)
 
void appendTransformToEnd (const glm::mat4 &transform)
 
void appendTransformToStart (const glm::mat4 &transform)
 
Poseoperator+= (const glm::vec3 &rhs)
 
Poseoperator-= (const glm::vec3 &rhs)
 
Poseoperator*= (const glm::vec3 &rhs)
 
Poseoperator/= (const glm::vec3 &rhs)
 
Poseoperator*= (const Pose &rhs)
 
Poseoperator*= (const glm::mat4 &rhs)
 
void print () const
 
std::string asString () const
 
 operator std::string () const
 
 operator std::string ()
 
 operator glm::mat4 () const
 
 operator glm::mat4 ()
 
glm::mat4 getMatrix () const
 
void updateMatrixCache ()
 

Static Public Member Functions

static Pose mix (const Pose &p1, const Pose &p2, float t)
 
static Pose getReducedAndReadable (const glm::mat4 &matrix)
 

Protected Member Functions

void _update_matrix_cache ()
 

Protected Attributes

glm::vec3 translation = glm::vec3(0.0)
 
glm::quat orientation = glm::quat(1.0, 0.0, 0.0, 0.0)
 
glm::vec3 scale = glm::vec3(1.0)
 
glm::mat4 preaffine = glm::mat4(1.0)
 
glm::mat4 postaffine = glm::mat4(1.0)
 

Friends

Pose operator+ (Pose lhs, const glm::vec3 &rhs)
 
Pose operator- (Pose lhs, const glm::vec3 &rhs)
 
Pose operator* (Pose lhs, const glm::vec3 &rhs)
 
Pose operator/ (Pose lhs, const glm::vec3 &rhs)
 
Pose operator* (Pose lhs, const Pose &rhs)
 
Pose operator* (Pose lhs, const glm::mat4 &rhs)
 

The documentation for this class was generated from the following files: