MMS3DObject Class Reference

#include <mms3dobject.h>

Inheritance diagram for MMS3DObject:

List of all members.

Public Member Functions

 MMS3DObject (class MMS3DScene *scene)
 MMS3DObject (class MMS3DScene *scene, int material, int texture)
bool addObject (MMS3DObject *object)
bool show ()
bool hide ()
bool cullFace (bool cullface)
void reset ()
bool scale (float sx, float sy, float sz)
bool translate (float tx, float ty, float tz)
bool rotate (float angle, float x, float y, float z)

Private Member Functions

void setBaseMatrix (MMSMatrix matrix)
bool getResultMatrix (MMSMatrix result)
bool genMatrices ()

Private Attributes

class MMS3DScenescene
 scene in which the object is drawn
int obj_id
 id of the object in the scene
 parent object or NULL
MMS3DMatrixStack matrixStack
 stores base matrix and matrix operations
vector< MMS3DObject * > children
 children objects


class MMS3DScene
class MMS3DRectangle
class MMS3DSphere
class MMS3DTorus
class MMS3DCylinder
class MMS3DPrimitives

Detailed Description

Definition at line 40 of file mms3dobject.h.

Constructor & Destructor Documentation

MMS3DObject::MMS3DObject ( class MMS3DScene scene  ) 

Definition at line 36 of file mms3dobject.cpp.

MMS3DObject::MMS3DObject ( class MMS3DScene scene,
int  material,
int  texture 

Definition at line 51 of file mms3dobject.cpp.

Member Function Documentation

void MMS3DObject::setBaseMatrix ( MMSMatrix  matrix  )  [private]

Definition at line 126 of file mms3dobject.cpp.

bool MMS3DObject::getResultMatrix ( MMSMatrix  result  )  [private]

Definition at line 130 of file mms3dobject.cpp.

bool MMS3DObject::genMatrices (  )  [private]

Definition at line 143 of file mms3dobject.cpp.

bool MMS3DObject::addObject ( MMS3DObject object  ) 

Definition at line 73 of file mms3dobject.cpp.

bool MMS3DObject::show (  ) 

Definition at line 95 of file mms3dobject.cpp.

bool MMS3DObject::hide (  ) 

Definition at line 105 of file mms3dobject.cpp.

bool MMS3DObject::cullFace ( bool  cullface  ) 

Definition at line 115 of file mms3dobject.cpp.

void MMS3DObject::reset (  ) 

Definition at line 161 of file mms3dobject.cpp.

bool MMS3DObject::scale ( float  sx,
float  sy,
float  sz 

Definition at line 165 of file mms3dobject.cpp.

bool MMS3DObject::translate ( float  tx,
float  ty,
float  tz 

Definition at line 169 of file mms3dobject.cpp.

bool MMS3DObject::rotate ( float  angle,
float  x,
float  y,
float  z 

Definition at line 173 of file mms3dobject.cpp.

Friends And Related Function Documentation

friend class MMS3DScene [friend]

Definition at line 86 of file mms3dobject.h.

friend class MMS3DRectangle [friend]

Definition at line 87 of file mms3dobject.h.

friend class MMS3DSphere [friend]

Definition at line 88 of file mms3dobject.h.

friend class MMS3DTorus [friend]

Definition at line 89 of file mms3dobject.h.

friend class MMS3DCylinder [friend]

Definition at line 90 of file mms3dobject.h.

friend class MMS3DPrimitives [friend]

Definition at line 91 of file mms3dobject.h.

Member Data Documentation

class MMS3DScene* MMS3DObject::scene [private]

scene in which the object is drawn

Definition at line 43 of file mms3dobject.h.

int MMS3DObject::obj_id [private]

id of the object in the scene

Definition at line 46 of file mms3dobject.h.

parent object or NULL

Definition at line 49 of file mms3dobject.h.

stores base matrix and matrix operations

Definition at line 52 of file mms3dobject.h.

vector<MMS3DObject*> MMS3DObject::children [private]

children objects

Definition at line 55 of file mms3dobject.h.

The documentation for this class was generated from the following files: