Maratis Engine
Public Member Functions | Protected Member Functions | Protected Attributes

MObject3d Class Reference

#include <MObject3d.h>

Inheritance diagram for MObject3d:
MOBone MOCamera MOEntity MOLight MOSound MOText

List of all members.

Public Member Functions

 MObject3d (void)
virtual ~MObject3d (void)
 MObject3d (const MObject3d &object)
void updateMatrix (void)
void computeLocalMatrix (void)
MMatrix4x4getMatrix (void)
void unlinkChilds (void)
void computeChildsMatrices (void)
MVector3 getInverseRotatedVector (const MVector3 &vector) const
MVector3 getRotatedVector (const MVector3 &vector) const
MVector3 getInversePosition (const MVector3 &position) const
MVector3 getTransformedVector (const MVector3 &vector) const
void setPosition (const MVector3 &position)
MVector3 getTransformedPosition (void) const
MVector3 getPosition (void) const
void setEulerRotation (const MVector3 &euler)
void setAxisAngleRotation (const MVector3 &axis, float angle)
void addAxisAngleRotation (const MVector3 &axis, float angle)
void setRotation (const MQuaternion &rotation)
MVector3 getTransformedRotation (void) const
MVector3 getEulerRotation (void) const
MQuaternion getRotation (void) const
MVector3 getTransformedScale (void) const
void setScale (const MVector3 &scale)
MVector3 getScale (void) const
void linkTo (MObject3d *parent)
void unLink (void)
void setParent (MObject3d *object)
void addChild (MObject3d *child)
bool hasParent (void)
unsigned int getChildsNumber (void)
MObject3dgetParent (void)
MObject3dgetChild (unsigned int id)
void updateBehaviors (void)
void deleteBehavior (unsigned int id)
void invertBehavior (unsigned int idA, unsigned int idB)
void changeBehavior (unsigned int id, MBehavior *behavior)
void addBehavior (MBehavior *behavior)
unsigned int getBehaviorsNumber (void)
MBehaviorgetBehavior (unsigned int id)
bool needToUpdate (void)
void setActive (bool active)
bool isActive (void)
void setVisible (bool visible)
bool isVisible (void)
virtual void updateVisibility (MOCamera *camera)
void setName (const char *name)
const char * getName (void)
virtual int getType (void)
virtual void update (void)

Protected Member Functions

void clearObject3d (void)

Protected Attributes

MString m_name
MVector3 m_position
MVector3 m_scale
MQuaternion m_rotation
MMatrix4x4 m_matrix
vector< MObject3d * > m_childs
bool m_isActive
bool m_isVisible
bool m_needToUpdate
MObject3dm_parent
vector< MBehavior * > m_behaviors

Constructor & Destructor Documentation

MObject3d::MObject3d ( void  )
MObject3d::~MObject3d ( void  ) [virtual]
MObject3d::MObject3d ( const MObject3d object)

Member Function Documentation

void MObject3d::addAxisAngleRotation ( const MVector3 axis,
float  angle 
)
void MObject3d::addBehavior ( MBehavior behavior) [inline]
void MObject3d::addChild ( MObject3d child) [inline]
void MObject3d::changeBehavior ( unsigned int  id,
MBehavior behavior 
)
void MObject3d::clearObject3d ( void  ) [protected]
void MObject3d::computeChildsMatrices ( void  )
void MObject3d::computeLocalMatrix ( void  )
void MObject3d::deleteBehavior ( unsigned int  id)
MBehavior* MObject3d::getBehavior ( unsigned int  id) [inline]
unsigned int MObject3d::getBehaviorsNumber ( void  ) [inline]
MObject3d* MObject3d::getChild ( unsigned int  id) [inline]
unsigned int MObject3d::getChildsNumber ( void  ) [inline]
MVector3 MObject3d::getEulerRotation ( void  ) const [inline]
MVector3 MObject3d::getInversePosition ( const MVector3 position) const [inline]
MVector3 MObject3d::getInverseRotatedVector ( const MVector3 vector) const [inline]
MMatrix4x4* MObject3d::getMatrix ( void  ) [inline]
const char* MObject3d::getName ( void  ) [inline]
MObject3d* MObject3d::getParent ( void  ) [inline]
MVector3 MObject3d::getPosition ( void  ) const [inline]
MVector3 MObject3d::getRotatedVector ( const MVector3 vector) const [inline]
MQuaternion MObject3d::getRotation ( void  ) const [inline]
MVector3 MObject3d::getScale ( void  ) const [inline]
MVector3 MObject3d::getTransformedPosition ( void  ) const [inline]
MVector3 MObject3d::getTransformedRotation ( void  ) const [inline]
MVector3 MObject3d::getTransformedScale ( void  ) const
MVector3 MObject3d::getTransformedVector ( const MVector3 vector) const [inline]
virtual int MObject3d::getType ( void  ) [inline, virtual]

Reimplemented in MOBone, MOCamera, MOEntity, MOLight, MOSound, and MOText.

bool MObject3d::hasParent ( void  ) [inline]
void MObject3d::invertBehavior ( unsigned int  idA,
unsigned int  idB 
)
bool MObject3d::isActive ( void  ) [inline]
bool MObject3d::isVisible ( void  ) [inline]
void MObject3d::linkTo ( MObject3d parent)
bool MObject3d::needToUpdate ( void  ) [inline]
void MObject3d::setActive ( bool  active) [inline]
void MObject3d::setAxisAngleRotation ( const MVector3 axis,
float  angle 
)
void MObject3d::setEulerRotation ( const MVector3 euler)
void MObject3d::setName ( const char *  name)
void MObject3d::setParent ( MObject3d object) [inline]
void MObject3d::setPosition ( const MVector3 position)
void MObject3d::setRotation ( const MQuaternion rotation)
void MObject3d::setScale ( const MVector3 scale)
void MObject3d::setVisible ( bool  visible) [inline]
void MObject3d::unLink ( void  )
void MObject3d::unlinkChilds ( void  )
void MObject3d::update ( void  ) [virtual]

Reimplemented in MOEntity, and MOSound.

void MObject3d::updateBehaviors ( void  )
void MObject3d::updateMatrix ( void  )
virtual void MObject3d::updateVisibility ( MOCamera camera) [inline, virtual]

Reimplemented in MOEntity, MOLight, and MOText.


Member Data Documentation

vector<MBehavior *> MObject3d::m_behaviors [protected]
vector<MObject3d *> MObject3d::m_childs [protected]
bool MObject3d::m_isActive [protected]
bool MObject3d::m_isVisible [protected]
bool MObject3d::m_needToUpdate [protected]

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Friends Defines