|
0.45.0
|
#include <iTransformComponent.h>
Inherits igor::iEntityComponent.
Static Public Member Functions | |
| static iEntityComponent * | createInstance () |
| static const iaString & | getTypeName () |
Friends | |
| class | iEntityTransformTraverser |
Additional Inherited Members | |
Protected Member Functions inherited from igor::iEntityComponent | |
| virtual bool | onLoad (iEntityPtr entity, bool &asyncLoad) |
| virtual void | onActivate (iEntityPtr entity) |
| virtual void | onDeactivate (iEntityPtr entity) |
| virtual void | onUnLoad (iEntityPtr entity) |
| virtual iEntityComponentPtr | getCopy ()=0 |
| iEntityPtr | getEntity () const |
transform component representing translate, rotate and scale of given entity
3d variant
|
default |
default ctor
| igor::iTransformComponent::iTransformComponent | ( | const iaVector3d & | translate, |
| const iaQuaterniond & | rotate = iaQuaterniond(), |
||
| const iaVector3d & | scale = iaVector3d(1.0, 1.0, 1.0) |
||
| ) |
ctor
|
static |
creates instance of this component type
|
overridevirtual |
Reimplemented from igor::iEntityComponent.
| const iaQuaterniond igor::iTransformComponent::getOrientation | ( | ) | const |
| const iaVector3d & igor::iTransformComponent::getPosition | ( | ) | const |
| const iaVector3d & igor::iTransformComponent::getScale | ( | ) | const |
| const iaTransformd & igor::iTransformComponent::getTransform | ( | ) | const |
|
static |
| const iaMatrixd & igor::iTransformComponent::getWorldMatrix | ( | ) | const |
| const iaQuaterniond igor::iTransformComponent::getWorldOrientation | ( | ) | const |
| const iaVector3d & igor::iTransformComponent::getWorldPosition | ( | ) | const |
| const iaVector3d & igor::iTransformComponent::getWorldScale | ( | ) | const |
| const iaTransformd & igor::iTransformComponent::getWorldTransform | ( | ) | const |
| void igor::iTransformComponent::rotate | ( | const iaQuaterniond & | rotate | ) |
rotate by given amount
| rotate | the amount to rotate |
| void igor::iTransformComponent::setOrientation | ( | const iaQuaterniond & | rotate | ) |
sets rotate on transform
| rotate | the rotate to set |
| void igor::iTransformComponent::setPosition | ( | const iaVector3d & | translate | ) |
sets translate on transform
| translate | the translate to set |
| void igor::iTransformComponent::setScale | ( | const iaVector3d & | scale | ) |
sets scale on transform
| scale | the scale to set |
| void igor::iTransformComponent::translate | ( | const iaVector3d & | translate | ) |
translate by given amount
| translate | the amount to translate |
|
friend |