#include <BOpcodeHandler.h>
Public Member Functions | |
TK_Status | Clone (BStreamFileToolkit &tk, BBaseOpcodeHandler **handler) const |
TK_Status | Read (BStreamFileToolkit &tk) alter |
TK_Status | ReadAscii (BStreamFileToolkit &tk) alter |
Deprecated. | |
void | Reset () alter |
TK_LOD () | |
TK_Status | Write (BStreamFileToolkit &tk) alter |
TK_Status | WriteAscii (BStreamFileToolkit &tk) alter |
Deprecated. | |
Protected Member Functions | |
TK_Status | ReadOneList (BStreamFileToolkit &tk) alter |
reads the list of primitives into m_primitives[m_current_level], terminated with a TKE_Termination | |
Protected Attributes | |
int | m_current_level |
the index of the level currently in progress. | |
struct vlist_s * | m_current_working |
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 | m_highest_level |
keeps track of highest level lod that has been seen so far | |
int | m_levels_allocated |
the number of entries allocated in m_num_primitives and m_primitives | |
int * | m_num_primitives |
an array of ints to indicate the length of each row in m_primitives | |
BBaseOpcodeHandler *** | m_primitives |
for each level, an array of opcode handler pointers that store the primitives | |
int | m_substage |
tracks progress of reading individual opcode handler arrays. |
Handles segment-level LODs only. LODs attached to Shells are handled by TK_Shell.
TK_LOD::TK_LOD | ( | ) | [inline] |
constructor
TK_Status TK_LOD::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.
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.
tk | A reference to the BStreamFileToolkit object. |
Implements BBaseOpcodeHandler.
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.
Reimplemented from BBaseOpcodeHandler.
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.
tk | A reference to the BStreamFileToolkit object. |
Implements BBaseOpcodeHandler.