TK_Matrix
-
class
TK_Matrix Handles the TKE_Modelling_Matrix and TKE_Texture_Matrix opcodes.
TK_Matrixprovides 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.
Inherits from:
BBaseOpcodeHandlerIndex
Methods
Clone()GetDMatrix()GetDMatrix()GetMatrix()GetMatrix()Read()ReadAscii()SetDMatrix()SetMatrix()TK_Matrix()Write()WriteAscii()
Variables
Methods
-
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.Parameters
tk: A reference to theBStreamFileToolkitobject.Returns
The result of the function call.
-
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.Parameters
tk: A reference to theBStreamFileToolkitobject.Returns
The result of the function call.
-
TK_Status
TK_Matrix::Clone(BStreamFileToolkit &tk, BBaseOpcodeHandler **handler) const const virtual
Copies the opcode handler
Parameters
tk: A reference to the
BStreamFileToolkitobject.handler: A pointer to the opcode handler object. Passed by reference.
Returns
The result of the function call.
-
TK_Status
TK_Matrix::ReadAscii(BStreamFileToolkit &tk) Deprecated.
-
TK_Status
TK_Matrix::WriteAscii(BStreamFileToolkit &tk) Deprecated.
-
float const *
TK_Matrix::GetMatrix() const const
Returns the matrix as the address of the array of floats
-
float *
TK_Matrix::GetMatrix() Returns the matrix as the address of the array of floats, which may be modified directly
-
double const *
TK_Matrix::GetDMatrix() const const
Returns the matrix as the address of the array of doubles
-
double *
TK_Matrix::GetDMatrix() Returns the matrix as the address of the array of doubles, which may be modified directly
Variables