MMS3DMatrixStack Class Reference

#include <mms3dmatrixstack.h>

List of all members.


Public Member Functions

 MMS3DMatrixStack ()
void clear ()
void setBaseMatrix (MMSMatrix base_matrix)
bool getResultMatrix (MMSMatrix result_matrix)
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 Types

enum  MOP { MOP_SCALE = 0, MOP_TRANSLATE, MOP_ROTATE }
 matrix operations More...

Private Member Functions

bool add (MOP mop, float p0, float p1, float p2, float p3)

Private Attributes

MSI ms [MS_SIZE]
 stack
int ms_cnt
 number of items in the stack
MMSMatrix base_matrix
 base matrix (matrix before stack operations)
bool base_matrix_set
 is base matrix set?
MMSMatrix result_matrix
 result matrix (matrix after stack operations)
bool result_matrix_set
 is result matrix set?

Classes

struct  MSI
 matrix stack item More...

Detailed Description

Definition at line 38 of file mms3dmatrixstack.h.


Member Enumeration Documentation

enum MMS3DMatrixStack::MOP [private]

matrix operations

Enumerator:
MOP_SCALE 
MOP_TRANSLATE 
MOP_ROTATE 

Definition at line 41 of file mms3dmatrixstack.h.


Constructor & Destructor Documentation

MMS3DMatrixStack::MMS3DMatrixStack (  ) 

Definition at line 35 of file mms3dmatrixstack.cpp.


Member Function Documentation

bool MMS3DMatrixStack::add ( MOP  mop,
float  p0,
float  p1,
float  p2,
float  p3 
) [private]

Definition at line 41 of file mms3dmatrixstack.cpp.

void MMS3DMatrixStack::clear (  ) 

Definition at line 58 of file mms3dmatrixstack.cpp.

void MMS3DMatrixStack::setBaseMatrix ( MMSMatrix  base_matrix  ) 

Definition at line 63 of file mms3dmatrixstack.cpp.

bool MMS3DMatrixStack::getResultMatrix ( MMSMatrix  result_matrix  ) 

Definition at line 77 of file mms3dmatrixstack.cpp.

bool MMS3DMatrixStack::scale ( float  sx,
float  sy,
float  sz 
)

Definition at line 110 of file mms3dmatrixstack.cpp.

bool MMS3DMatrixStack::translate ( float  tx,
float  ty,
float  tz 
)

Definition at line 116 of file mms3dmatrixstack.cpp.

bool MMS3DMatrixStack::rotate ( float  angle,
float  x,
float  y,
float  z 
)

Definition at line 122 of file mms3dmatrixstack.cpp.


Member Data Documentation

MSI MMS3DMatrixStack::ms[MS_SIZE] [private]

stack

Definition at line 57 of file mms3dmatrixstack.h.

int MMS3DMatrixStack::ms_cnt [private]

number of items in the stack

Definition at line 60 of file mms3dmatrixstack.h.

base matrix (matrix before stack operations)

Definition at line 63 of file mms3dmatrixstack.h.

is base matrix set?

Definition at line 66 of file mms3dmatrixstack.h.

result matrix (matrix after stack operations)

Definition at line 69 of file mms3dmatrixstack.h.

is result matrix set?

Definition at line 72 of file mms3dmatrixstack.h.


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