|
virtual void | addChild (Transform *)=0 |
| insert transform to child list.
|
|
template<typename T > |
MEMNULL _FORCEINLINE T * | addComponent () |
| Adds the component of the specified type in the container if this component already exists, returns available.
|
|
virtual Transform * | Child (int id)=0 |
|
_FORCEINLINE unsigned int | ChildCount () |
| returns number of dependent objects.
|
|
TransformList & | children () |
| the list of dependent objects.
|
|
virtual Transform * | createTransform (char *name)=0 |
| creates a dependent object.
|
|
virtual void | deleteChilds ()=0 |
| delete all childs.
|
|
virtual void | detachChild (Transform *child)=0 |
| remove transform from child list.
|
|
_FORCEINLINE Scene * | getScene () |
| returns the scene to which an object belongs.
|
|
virtual Transform * | getTransform (char *name)=0 |
| restores the dependent object by name.
|
|
_FORCEINLINE Transform * | parent () |
| returns the parent object.
|
|
_FORCEINLINE vector3d * | realPosition () |
| returns the actual position of the object
|
|
_FORCEINLINE quaterniond * | realRotate () |
| returns the real razvorot object
|
|
_FORCEINLINE vector3f * | realScale () |
| returns the real scale
|
|
virtual void | setChildReal (Transform *transform)=0 |
|
virtual void | setParentReal (Transform *transform)=0 |
|
virtual Transform & | setPosition (double x, double y, double z)=0 |
|
virtual Transform & | setPosition (vector3d &pos)=0 |
|
virtual Transform & | setPosition (const vector3d &pos)=0 |
|
virtual Transform & | setRotate (const quaterniond &_rotate)=0 |
|
virtual Transform & | setScale (float x, float y, float z)=0 |
|
virtual Transform & | setScale (const vector3f &_scale)=0 |
|
virtual void | setSelected (bool)=0 |
| specifies a choice object.
|
|
virtual void | setSprite (bool)=0 |
| the reversal of the object relative to the camera.
|
|
virtual void | setVisible (bool)=0 |
| sets the object visible.
|
|
template<typename T > |
_FORCEINLINE T * | addComponent () |
| Adds the component of the specified type in the container if this component already exists, returns available.
|
|
_FORCEINLINE Component * | addComponent (char *name) |
|
_FORCEINLINE Component * | addComponent (const char *name) |
|
_FORCEINLINE iterator | begin () |
| The first element of the list of components.
|
|
template<typename T > |
_FORCEINLINE void | deleteComponent () |
| Detaches the component from the container and remove the component.
|
|
_FORCEINLINE iterator | end () |
| The final element of the list component.
|
|
_FORCEINLINE void | freeComponents () |
| detaches and removes components
|
|
template<typename T > |
_FORCEINLINE T * | getComponent () |
| Returns the component of the given type, if it is not in a container returns 0.
|
|
_FORCEINLINE Component * | getComponent (void *t) |
| Returns the component of the given type, if it is not in a container returns 0.
|
|
_FORCEINLINE Component * | getComponent (char *name) |
|
_FORCEINLINE Component * | getComponent (const char *name) |
|
_FORCEINLINE ComponentsMap & | list () |
| Returns list of Components.
|
|
virtual CSAD_API void | quit () |
| Transfers control to the nested components quit calling each of them.
|
|
template<typename T > |
_FORCEINLINE void | removeComponent () |
| Detaches the component from a container.
|
|
CSAD_API void * | set (unsigned _int32, void *) |
| used for any interface commands.
|
|
CSAD_API void * | setComponents (unsigned int id, void *param) |
|
virtual CSAD_API void | start () |
| Transfers control to the nested components start calling each of them.
|
|
virtual CSAD_API void | update () |
| Transfers control to the nested components causing update each of them.
|
|
_FORCEINLINE bool | isContainer () |
| returns true if the object is a container.
|
|
_FORCEINLINE ParametersList * | read (ParametersList *data) |
| read attributes object.
|
|
_FORCEINLINE void * | type () |
| the output pointer to the typeid() of the class.
|
|
_FORCEINLINE void | write (ParametersList *data) |
| record attributes of the object.
|
|
Transform - a key element of the environment specifies the position of the object.
Object allows you to organize position and recalculation of coordinates for building orientation of the object relative to the calculation point. This allows to minimize, and in some cases eliminate, the loss of accuracy.
For description in the configuration:
<Scene name="myScene">
<Transform name="the name of the transform" pos="x y z of position" rot="x y z and angle rotation" scale="x y z of scale">
... internal objects or components ...
</Transform>
</Scene>
*
- See Also
- csad: scene Scene ContainerComponents