TK_Grid
-
class
TK_Grid Handles the TKE_Grid opcode.
TK_Gridprovides support for writing/reading the TKE_Grid opcode object to/from an HSF file.The HOOPS/3dGS scene-graph supports ‘grid’ primitives which are defined by a grid type, origin, and points which define grid spacing.
Inherits from:
BBaseOpcodeHandlerIndex
Methods
Clone()GetCounts()GetCounts()GetDOrigin()GetDOrigin()GetDRef1()GetDRef1()GetDRef2()GetDRef2()GetOrigin()GetOrigin()GetRef1()GetRef1()GetRef2()GetRef2()GetType()Read()ReadAscii()SetCounts()SetDOrigin()SetDOrigin()SetDRef1()SetDRef1()SetDRef2()SetDRef2()SetOrigin()SetOrigin()SetRef1()SetRef1()SetRef2()SetRef2()SetType()TK_Grid()Write()WriteAscii()
Variables
Methods
-
TK_Status
TK_Grid::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_Grid::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_Grid::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_Grid::ReadAscii(BStreamFileToolkit &tk) Deprecated.
-
TK_Status
TK_Grid::WriteAscii(BStreamFileToolkit &tk) Deprecated.
-
void
TK_Grid::SetOrigin(float x, float y, float z) Sets the origin point of the grid using discrete float values
-
float const *
TK_Grid::GetOrigin() const const
Returns the origin point of the grid as the address of a float triplet
-
float *
TK_Grid::GetOrigin() Returns the origin point of the grid as the address of a float triplet which may be written
-
void
TK_Grid::SetRef1(float x, float y, float z) Sets the first reference point of the grid using discrete float values
-
void
TK_Grid::SetRef1(float const r[]) Sets the first reference point of the grid using a float triplet
-
float const *
TK_Grid::GetRef1() const const
Returns the first reference point of the grid as the address of a float triplet
-
float *
TK_Grid::GetRef1() Returns the first reference point of the grid as the address of a float triplet which may be written
-
void
TK_Grid::SetRef2(float x, float y, float z) Sets the second reference point of the grid using discrete float values
-
void
TK_Grid::SetRef2(float const r[]) Sets the second reference point of the grid using a float triplet
-
float const *
TK_Grid::GetRef2() const const
Returns the second reference point of the grid as the address of a float triplet
-
float *
TK_Grid::GetRef2() Returns the second reference point of the grid as the address of a float triplet which may be written
-
void
TK_Grid::SetDOrigin(double x, double y, double z) Sets the origin point of the grid using discrete double values
-
void
TK_Grid::SetDOrigin(double const o[]) Sets the origin point of the grid using a double triplet
-
double const *
TK_Grid::GetDOrigin() const const
Returns the origin point of the grid as the address of a double triplet
-
double *
TK_Grid::GetDOrigin() Returns the origin point of the grid as the address of a double triplet which may be written
-
void
TK_Grid::SetDRef1(double x, double y, double z) Sets the first reference point of the grid using discrete double values
-
void
TK_Grid::SetDRef1(double const r[]) Sets the first reference point of the grid using a double triplet
-
double const *
TK_Grid::GetDRef1() const const
Returns the first reference point of the grid as the address of a double triplet
-
double *
TK_Grid::GetDRef1() Returns the first reference point of the grid as the address of a double triplet which may be written
-
void
TK_Grid::SetDRef2(double x, double y, double z) Sets the second reference point of the grid using discrete double values
-
void
TK_Grid::SetDRef2(double const r[]) Sets the second reference point of the grid using a double triplet
-
double const *
TK_Grid::GetDRef2() const const
Returns the second reference point of the grid as the address of a double triplet
-
double *
TK_Grid::GetDRef2() Returns the second reference point of the grid as the address of a double triplet which may be written
-
int const *
TK_Grid::GetCounts() const const
Returns the extent counts of the grid as the address of a pair of integers
-
int *
TK_Grid::GetCounts() Returns the extent counts of the grid as the address of a pair of integers which may be written
Variables