#include <mms3dmatrixstack.h>
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... | |
Definition at line 38 of file mms3dmatrixstack.h.
enum MMS3DMatrixStack::MOP [private] |
| MMS3DMatrixStack::MMS3DMatrixStack | ( | ) |
Definition at line 35 of file mms3dmatrixstack.cpp.
| 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.
MSI MMS3DMatrixStack::ms[MS_SIZE] [private] |
int MMS3DMatrixStack::ms_cnt [private] |
MMSMatrix MMS3DMatrixStack::base_matrix [private] |
bool MMS3DMatrixStack::base_matrix_set [private] |
MMSMatrix MMS3DMatrixStack::result_matrix [private] |
bool MMS3DMatrixStack::result_matrix_set [private] |