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_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 theBStreamFileToolkitobject.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 theBStreamFileToolkitobject.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
BStreamFileToolkitobject.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
intan 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
intkeeps track of highest level lod that has been seen so far
-
int
TK_LOD::m_levels_allocated protected
intthe number of entries allocated in m_num_primitives and m_primitives