Alphabetical Class Index   Class Hierarchy   Compound Members   File Members   File List  

TK_Bounding Class Reference

Handles the TKE_Bounding, and TKE_Bounding_Info opcodes. More...

#include <BOpcodeHandler.h>

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

TK_Status TK_Bounding::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_Bounding.

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.

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

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.

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: