#include <BOpcodeHandler.h>
Public Member Functions | |
TK_Status | Clone (BStreamFileToolkit &tk, BBaseOpcodeHandler **handler) const |
double * | GetDMatrix () |
double const * | GetDMatrix () const |
float * | GetMatrix () |
float const * | GetMatrix () const |
TK_Status | Read (BStreamFileToolkit &tk) |
TK_Status | ReadAscii (BStreamFileToolkit &tk) |
Deprecated. | |
void | SetDMatrix (double const *m) |
void | SetMatrix (float const *m) |
TK_Matrix (unsigned char opcode) | |
TK_Status | Write (BStreamFileToolkit &tk) |
TK_Status | WriteAscii (BStreamFileToolkit &tk) |
Deprecated. | |
Protected Attributes | |
double | m_dmatrix [16] |
internal use | |
float | m_matrix [16] |
internal use |
TK_Matrix provides support for writing/reading the TKE_Modelling_Matrix and TKE_Texture_Matrix opcode objects to/from an HSF file.
The HOOPS/3dGS scene-graph supports modelling and texture matrices.
TK_Matrix::TK_Matrix | ( | unsigned char | opcode | ) | [inline] |
constructor
TK_Status TK_Matrix::Clone | ( | BStreamFileToolkit & | tk, | |
BBaseOpcodeHandler ** | handler | |||
) | const [virtual] |
Copies the opcode handler
tk | A reference to the BStreamFileToolkit object. | |
handler | A pointer to the opcode handler object. Passed by reference. |
Reimplemented from BBaseOpcodeHandler.
Reimplemented in HTK_Matrix.
double* TK_Matrix::GetDMatrix | ( | ) | [inline] |
Returns the matrix as the address of the array of doubles, which may be modified directly
double const* TK_Matrix::GetDMatrix | ( | ) | const [inline] |
Returns the matrix as the address of the array of doubles
float* TK_Matrix::GetMatrix | ( | ) | [inline] |
Returns the matrix as the address of the array of floats, which may be modified directly
float const* TK_Matrix::GetMatrix | ( | ) | const [inline] |
Returns the matrix as the address of the array of floats
TK_Status TK_Matrix::Read | ( | BStreamFileToolkit & | tk | ) | [virtual] |
Reads data from the toolkit buffer, decodes/decompresses it, and maps it to the opcode handlers data members. User-defined classes which need to write out custom data should utilize one of the available GetData() methods.
tk | A reference to the BStreamFileToolkit object. |
Implements BBaseOpcodeHandler.
void TK_Matrix::SetDMatrix | ( | double const * | m | ) | [inline] |
Sets the matrix to the specified values
void TK_Matrix::SetMatrix | ( | float const * | m | ) | [inline] |
Sets the matrix to the specified values
TK_Status TK_Matrix::Write | ( | BStreamFileToolkit & | tk | ) | [virtual] |
Encodes/compresses data and writes data to the toolkit buffer. User-defined classes which need to write out custom data should utilize one of the available PutData() methods, and first write out the opcode associated with the group of binary data followed by the data itself.
tk | A reference to the BStreamFileToolkit object. |
Implements BBaseOpcodeHandler.