CORGI
An open source project by FPL.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
corgi::component_library::TransformData Struct Reference

Holds all transform data for Entities, such as position, scale, and orientation. More...

#include <transform.h>

Detailed Description

Holds all transform data for Entities, such as position, scale, and orientation.

Public Member Functions

 TransformData ()
 The default constructor for TransformData.
 
TransformDataoperator= (TransformData &&other)
 Move assignment operator for the TransformData. More...
 
 TransformData (TransformData &&other)
 Move constructor for the TransformData. More...
 
mathfu::mat4 GetTransformMatrix ()
 Construct the transform matrix from the reotation, scale, and translation. More...
 

Public Attributes

mathfu::vec3 position
 The position of this Entity.
 
mathfu::vec3 scale
 The scale of the Entity.
 
mathfu::quat orientation
 The orientation of the Entity.
 
mathfu::mat4 world_transform
 The transform to place the Entity in world space.
 
corgi::EntityRef owner
 An EntityRef reference to the Entity that owns this Component data.
 
corgi::EntityRef parent
 An EntityRef reference to the parent Entity.
 
std::set< std::string > child_ids
 A set of std::string child IDs that will need to be exported.
 
std::vector< std::string > pending_child_ids
 Child IDs we will be linking up on the next update; we couldn't link them before because they may not have been loaded.
 
fplutil::intrusive_list_node child_node
 The node inside the intrusive list for this Entity.
 
fplutil::intrusive_list
< TransformData
children
 The intrusive list of this Entity's children.
 

Constructor & Destructor Documentation

corgi::component_library::TransformData::TransformData ( TransformData &&  other)
inline

Move constructor for the TransformData.

Parameters
[in]otherThe other TransformData whose contents should be moved into this TransformData.

Member Function Documentation

mathfu::mat4 corgi::component_library::TransformData::GetTransformMatrix ( )
inline

Construct the transform matrix from the reotation, scale, and translation.

Returns
Returns a mathfu::mat4 containing the transform matrix.
TransformData& corgi::component_library::TransformData::operator= ( TransformData &&  other)
inline

Move assignment operator for the TransformData.

Parameters
[in]otherThe other TransformData whose contents should be moved into this TransformData.
Returns
Returns a reference to the TransformData.

The documentation for this struct was generated from the following file: