TK_LOD

class TK_LOD

Handles the TKE_LOD opcode.

Handles segment-level LODs only. LODs attached to Shells are handled by TK_Shell.

Inherits from: BBaseOpcodeHandler

Methods

TK_Status TK_LOD::ReadOneList(BStreamFileToolkit &tk)

protected

reads the list of primitives into m_primitives[m_current_level], terminated with a TKE_Termination

TK_LOD::TK_LOD()

constructor

TK_LOD::~TK_LOD()
TK_Status TK_LOD::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 the BStreamFileToolkit object.

Returns

The result of the function call.
TK_Status TK_LOD::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 the BStreamFileToolkit object.

Returns

The result of the function call.
TK_Status TK_LOD::Clone(BStreamFileToolkit &tk, BBaseOpcodeHandler **handler) const

const virtual

Copies the opcode handler

Parameters

tk: A reference to the BStreamFileToolkit object.

handler: A pointer to the opcode handler object. Passed by reference.

Returns

The result of the function call.
TK_Status TK_LOD::ReadAscii(BStreamFileToolkit &tk)

Deprecated.

TK_Status TK_LOD::WriteAscii(BStreamFileToolkit &tk)

Deprecated.

void TK_LOD::Reset()

virtual

Resets the current opcode handler. This is called by the toolkit when it is done processing an opcode. This method reinitializes any opcode handler variables and frees up temporary data.

Variables

int *TK_LOD::m_num_primitives

protected

int

an array of ints to indicate the length of each row in m_primitives

BBaseOpcodeHandler ***TK_LOD::m_primitives

protected

for each level, an array of opcode handler pointers that store the primitives

int TK_LOD::m_highest_level

protected

int

keeps track of highest level lod that has been seen so far

int TK_LOD::m_levels_allocated

protected

int

the number of entries allocated in m_num_primitives and m_primitives

int TK_LOD::m_substage

protected

int

tracks progress of reading individual opcode handler arrays.

struct vlist_s *TK_LOD::m_current_working

protected

struct vlist_s

holds the geometry list in progress. struct vlist_s the incomplete type for vlist_t (used until vlist.h header file is read in)

int TK_LOD::m_current_level

protected

int

the index of the level currently in progress.