Handles the TKE_Bounding, and TKE_Bounding_Info opcodes. More...
#include <BOpcodeHandler.h>
Public Member Functions | |
TK_Status | Clone (BStreamFileToolkit &tk, BBaseOpcodeHandler **handler) const |
TK_Status | Read (BStreamFileToolkit &tk) |
TK_Status | ReadAscii (BStreamFileToolkit &tk) |
Deprecated. | |
TK_Bounding (unsigned char opcode) | |
TK_Bounding (unsigned char opcode, float min[], float max[]) | |
TK_Bounding (unsigned char opcode, float center[], float radius) | |
TK_Bounding (unsigned char opcode, double min[], double max[]) | |
TK_Bounding (unsigned char opcode, double center[], double radius) | |
TK_Status | Write (BStreamFileToolkit &tk) |
TK_Status | WriteAscii (BStreamFileToolkit &tk) |
Deprecated. | |
Protected Attributes | |
double | m_dvalues [6] |
internal use | |
bool | m_is_valid |
internal use | |
char | m_type |
internal use | |
float | m_values [6] |
internal use |
Handles the TKE_Bounding, and TKE_Bounding_Info opcodes.
TK_Bounding provides support for writing/reading the TKE_Bounding TKE_Bounding_Info opcode objects to/from an HSF file.
The HOOPS/3dGS scene-graph supports 'marker' primitives which consist of a 3D point, as well as distant and local lights which are also denoted by a single 3D point.
Two different opcodes are used as follows: The TKE_Bounding opcode will export a bounding volume that was explicitly set on a HOOPS segment (if any). The TKE_Bounding_Info will cause an explicit computation of the HOOPS/3dGS bounding information and export it.
TK_Bounding::TK_Bounding | ( | unsigned char | opcode | ) | [inline] |
default constructor
TK_Bounding::TK_Bounding | ( | unsigned char | opcode, |
float | min[], | ||
float | max[] | ||
) | [inline] |
constructor variant that accepts min and max values
TK_Bounding::TK_Bounding | ( | unsigned char | opcode, |
float | center[], | ||
float | radius | ||
) | [inline] |
constructor variant that accepts center and radius values
TK_Bounding::TK_Bounding | ( | unsigned char | opcode, |
double | min[], | ||
double | max[] | ||
) | [inline] |
constructor variant that accepts min and max double values
References BBaseOpcodeHandler::Set_General_Flags(), and TK_Double_Precision.
TK_Bounding::TK_Bounding | ( | unsigned char | opcode, |
double | center[], | ||
double | radius | ||
) | [inline] |
constructor variant that accepts center and radius double values
References BBaseOpcodeHandler::Set_General_Flags(), and TK_Double_Precision.
TK_Status TK_Bounding::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_Bounding::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.
TK_Status TK_Bounding::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.