#include <mms3dobject.h>

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 MMS3DScene * | scene |
| scene in which the object is drawn | |
| int | obj_id |
| id of the object in the scene | |
| MMS3DObject * | parent |
| parent object or NULL | |
| MMS3DMatrixStack | matrixStack |
| stores base matrix and matrix operations | |
| vector< MMS3DObject * > | children |
| children objects | |
Friends | |
| class | MMS3DScene |
| class | MMS3DRectangle |
| class | MMS3DSphere |
| class | MMS3DTorus |
| class | MMS3DCylinder |
| class | MMS3DPrimitives |
Definition at line 40 of file mms3dobject.h.
| 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.
| 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.
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.
class MMS3DScene* MMS3DObject::scene [private] |
int MMS3DObject::obj_id [private] |
MMS3DObject* MMS3DObject::parent [private] |
MMS3DMatrixStack MMS3DObject::matrixStack [private] |
vector<MMS3DObject*> MMS3DObject::children [private] |