Alphabetical Class Index   Class Hierarchy   Compound Members   File Members   File List  

TK_Matrix Class Reference

Handles the TKE_Modelling_Matrix and TKE_Texture_Matrix opcodes. More...

#include <BOpcodeHandler.h>

List of all members.

Public Member Functions

TK_Status Clone (BStreamFileToolkit &tk, BBaseOpcodeHandler **handler) const
double const * GetDMatrix () const
double * GetDMatrix ()
float const * GetMatrix () const
float * GetMatrix ()
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

Detailed Description

Handles the TKE_Modelling_Matrix and TKE_Texture_Matrix opcodes.

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.


Constructor & Destructor Documentation

TK_Matrix::TK_Matrix ( unsigned char  opcode) [inline]

constructor


Member Function Documentation

TK_Status TK_Matrix::Clone ( BStreamFileToolkit tk,
BBaseOpcodeHandler **  handler 
) const [virtual]

Copies the opcode handler

Parameters:
tkA reference to the BStreamFileToolkit object.
handlerA pointer to the opcode handler object. Passed by reference.
Returns:
The result of the function call.

Reimplemented from BBaseOpcodeHandler.

Reimplemented in HTK_Matrix.

double const* TK_Matrix::GetDMatrix ( ) const [inline]

Returns the matrix as the address of the array of doubles

double* TK_Matrix::GetDMatrix ( ) [inline]

Returns the matrix as the address of the array of doubles, which may be modified directly

float const* TK_Matrix::GetMatrix ( ) const [inline]

Returns the matrix as the address of the array of floats

float* TK_Matrix::GetMatrix ( ) [inline]

Returns the matrix as the address of the array of floats, which may be modified directly

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:
tkA reference to the BStreamFileToolkit object.
Returns:
The result of the function call.

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.

Parameters:
tkA reference to the BStreamFileToolkit object.
Returns:
The result of the function call.

Implements BBaseOpcodeHandler.


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