MMS3DScene Class Reference

#include <mms3dscene.h>

List of all members.

Public Member Functions

 MMS3DScene ()
bool setPrimitives (string id, MMS_VERTEX_ARRAY *vertices, MMS_VERTEX_ARRAY *normals, MMS_VERTEX_ARRAY *texcoords, MMS_INDEX_ARRAY *indices)
void getMeshArrays (MMS_VERTEX_ARRAY ***varrays, MMS_INDEX_ARRAY ***iarrays)
void getObjects (MMS3D_OBJECT ***objects)
void setBaseMatrix (MMSMatrix matrix)
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)
bool genMatrices ()

Private Types

enum  OBJ { OBJ_NOTSET = -1, OBJ_SIZE = 256 }

Private Member Functions

int newObject (MMS3DObject *object)
MMS3D_OBJECTgetObject (int object)
bool getResultMatrix (MMSMatrix result)

Private Attributes

int objects_cnt
MMS3DPolygonMesh mms3dpm
MMS3DMatrixStack matrixStack
 stores base matrix and matrix operations
vector< MMS3DObject * > children
 children objects


class MMS3DObject
class MMS3DRectangle
class MMS3DSphere
class MMS3DTorus
class MMS3DCylinder
class MMS3DPrimitives

Detailed Description

Definition at line 39 of file mms3dscene.h.

Member Enumeration Documentation

enum MMS3DScene::OBJ [private]


Definition at line 42 of file mms3dscene.h.

Constructor & Destructor Documentation

MMS3DScene::MMS3DScene (  ) 

Definition at line 36 of file mms3dscene.cpp.

Member Function Documentation

int MMS3DScene::newObject ( MMS3DObject object  )  [private]

Definition at line 41 of file mms3dscene.cpp.

MMS3D_OBJECT * MMS3DScene::getObject ( int  object  )  [private]

Definition at line 69 of file mms3dscene.cpp.

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

Definition at line 73 of file mms3dscene.cpp.

bool MMS3DScene::setPrimitives ( string  id,

Definition at line 77 of file mms3dscene.cpp.

void MMS3DScene::getMeshArrays ( MMS_VERTEX_ARRAY ***  varrays,
MMS_INDEX_ARRAY ***  iarrays 

Definition at line 82 of file mms3dscene.cpp.

void MMS3DScene::getObjects ( MMS3D_OBJECT ***  objects  ) 

Definition at line 86 of file mms3dscene.cpp.

void MMS3DScene::setBaseMatrix ( MMSMatrix  matrix  ) 

Definition at line 90 of file mms3dscene.cpp.

void MMS3DScene::reset (  ) 

Definition at line 94 of file mms3dscene.cpp.

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

Definition at line 98 of file mms3dscene.cpp.

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

Definition at line 102 of file mms3dscene.cpp.

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

Definition at line 106 of file mms3dscene.cpp.

bool MMS3DScene::genMatrices (  ) 

Definition at line 110 of file mms3dscene.cpp.

Friends And Related Function Documentation

friend class MMS3DObject [friend]

Definition at line 90 of file mms3dscene.h.

friend class MMS3DRectangle [friend]

Definition at line 91 of file mms3dscene.h.

friend class MMS3DSphere [friend]

Definition at line 92 of file mms3dscene.h.

friend class MMS3DTorus [friend]

Definition at line 93 of file mms3dscene.h.

friend class MMS3DCylinder [friend]

Definition at line 94 of file mms3dscene.h.

friend class MMS3DPrimitives [friend]

Definition at line 95 of file mms3dscene.h.

Member Data Documentation

MMS3D_OBJECT MMS3DScene::objbuf[OBJ_SIZE] [private]


Definition at line 48 of file mms3dscene.h.

MMS3D_OBJECT* MMS3DScene::objects[OBJ_SIZE+1] [private]

Definition at line 49 of file mms3dscene.h.

int MMS3DScene::objects_cnt [private]

Definition at line 50 of file mms3dscene.h.

Definition at line 52 of file mms3dscene.h.

stores base matrix and matrix operations

Definition at line 55 of file mms3dscene.h.

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

children objects

Definition at line 58 of file mms3dscene.h.

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