| 
    RioEngine
    0.1
    
   My first attempt to create a 3D WYSIWYG Game Engine 
   | 
 
#include <transform.h>
  
 Public Types | |
| enum | TransformMode { LOCAL, GLOBAL } | 
| enum | UnitType { WORLD, PHYSICSWORLD } | 
Public Member Functions | |
| Transform () | |
| btCustomTransform & | local (bool scale=true) const | 
| btCustomTransform | global (bool scale=true) const | 
| btVector3 | position () const | 
| btVector3 | scale () const | 
| btQuaternion | rotation () const | 
| const btVector3 & | localPosition (UnitType unit_type=WORLD) const | 
| btVector3 | localScale () const | 
| btQuaternion | localRotation () const | 
| void | setLocalPosition (float x, float y, float z) | 
| void | setLocalPosition (const btVector3 &vec) | 
| void | setLocalScale (float x, float y, float z) | 
| void | setLocalScale (float localScale) | 
| void | setLocalScale (const btVector3 &scale) | 
| void | setLocalRotation (float w, float x, float y, float z) | 
| void | setLocalRotation (const btQuaternion &q) | 
| virtual btVector3 | getRightVector (TransformMode transform_mode=LOCAL) | 
| virtual btVector3 | getUpVector (TransformMode transform_mode=LOCAL) | 
| virtual btVector3 | getForwardVector (TransformMode transform_mode=LOCAL) | 
| void | moveX (float dx, TransformMode transform_mode=GLOBAL) | 
| void | moveY (float dy, TransformMode transform_mode=GLOBAL) | 
| void | moveZ (float dz, TransformMode transform_mode=GLOBAL) | 
| void | rotate (btQuaternion &q, TransformMode transform_mode=GLOBAL) | 
| void | rotateX (float angle, TransformMode transform_mode=GLOBAL) | 
| void | rotateY (float angle, TransformMode transform_mode=GLOBAL) | 
| void | rotateZ (float angle, TransformMode transform_mode=GLOBAL) | 
  Public Member Functions inherited from CObject | |
| CObject () | |
| CObject (const CObject &object) | |
| CObject & | operator= (const CObject &object) | 
| CObject * | retain () | 
| unsigned int | release () const | 
| CObject * | autorelease () | 
| unsigned int | retainCount () const | 
| bool | isValidCObject () const | 
| virtual | ~CObject () | 
Additional Inherited Members | |
  Static Public Member Functions inherited from CObject | |
| static void | safeRetain (void *pointer) | 
| template<class T > | |
| static void | safeRelease (T *pointer) | 
| template<class T > | |
| static void | safeReleaseArray (T *array) | 
| static void | safeRelease (const char *pointer) | 
  Protected Member Functions inherited from CObject | |
| virtual void | copyValuesFromObject (const CObject &object) | 
Definition at line 38 of file transform.h.
| Enumerator | |
|---|---|
| LOCAL | |
| GLOBAL | |
Definition at line 40 of file transform.h.
| enum Transform::UnitType | 
| Enumerator | |
|---|---|
| WORLD | |
| PHYSICSWORLD | |
Definition at line 41 of file transform.h.
| Transform::Transform | ( | ) | 
Definition at line 37 of file transform.cpp.
      
  | 
  virtual | 
Definition at line 233 of file transform.cpp.
      
  | 
  virtual | 
Definition at line 215 of file transform.cpp.
      
  | 
  virtual | 
Definition at line 224 of file transform.cpp.
| btCustomTransform Transform::global | ( | bool | scale = true | ) | const | 
Definition at line 322 of file transform.cpp.
| btCustomTransform & Transform::local | ( | bool | scale = true | ) | const | 
Definition at line 302 of file transform.cpp.
Definition at line 105 of file transform.cpp.
| btQuaternion Transform::localRotation | ( | ) | const | 
Definition at line 132 of file transform.cpp.
| btVector3 Transform::localScale | ( | ) | const | 
Definition at line 123 of file transform.cpp.
| void Transform::moveX | ( | float | dx, | 
| TransformMode | transform_mode = GLOBAL  | 
        ||
| ) | 
Definition at line 242 of file transform.cpp.
| void Transform::moveY | ( | float | dy, | 
| TransformMode | transform_mode = GLOBAL  | 
        ||
| ) | 
Definition at line 250 of file transform.cpp.
| void Transform::moveZ | ( | float | dz, | 
| TransformMode | transform_mode = GLOBAL  | 
        ||
| ) | 
Definition at line 258 of file transform.cpp.
| btVector3 Transform::position | ( | ) | const | 
Definition at line 69 of file transform.cpp.
| void Transform::rotate | ( | btQuaternion & | q, | 
| TransformMode | transform_mode = GLOBAL  | 
        ||
| ) | 
Definition at line 267 of file transform.cpp.
| void Transform::rotateX | ( | float | angle, | 
| TransformMode | transform_mode = GLOBAL  | 
        ||
| ) | 
Definition at line 277 of file transform.cpp.
| void Transform::rotateY | ( | float | angle, | 
| TransformMode | transform_mode = GLOBAL  | 
        ||
| ) | 
Definition at line 284 of file transform.cpp.
| void Transform::rotateZ | ( | float | angle, | 
| TransformMode | transform_mode = GLOBAL  | 
        ||
| ) | 
Definition at line 295 of file transform.cpp.
| btQuaternion Transform::rotation | ( | ) | const | 
Definition at line 93 of file transform.cpp.
| btVector3 Transform::scale | ( | ) | const | 
Definition at line 81 of file transform.cpp.
| void Transform::setLocalPosition | ( | float | x, | 
| float | y, | ||
| float | z | ||
| ) | 
Definition at line 165 of file transform.cpp.
| void Transform::setLocalPosition | ( | const btVector3 & | vec | ) | 
Definition at line 147 of file transform.cpp.
| void Transform::setLocalRotation | ( | float | w, | 
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) | 
Definition at line 209 of file transform.cpp.
| void Transform::setLocalRotation | ( | const btQuaternion & | q | ) | 
Definition at line 192 of file transform.cpp.
| void Transform::setLocalScale | ( | float | x, | 
| float | y, | ||
| float | z | ||
| ) | 
Definition at line 180 of file transform.cpp.
| void Transform::setLocalScale | ( | float | localScale | ) | 
Definition at line 186 of file transform.cpp.
| void Transform::setLocalScale | ( | const btVector3 & | scale | ) | 
Definition at line 171 of file transform.cpp.