TK_Sphere
-
class
TK_Sphere Handles the TKE_Sphere opcode.
TK_Sphereprovides support for writing/reading the TKE_Sphere opcode object to/from an HSF file.The HOOPS/3dGS scene-graph can contain ‘sphere’ primitives which are defined by the center point the radius, two vectors to dictate where tessellation should begin.
Inherits from:
BBaseOpcodeHandlerIndex
Methods
Clone()GetAxis()GetCenter()GetDAxis()GetDCenter()GetDOrtho()GetDRadius()GetOrtho()GetRadius()Read()ReadAscii()Reset()SetAxis()SetAxis()SetCenter()SetCenter()SetDAxis()SetDAxis()SetDCenter()SetDCenter()SetDOrtho()SetDOrtho()SetDRadius()SetOrtho()SetOrtho()SetRadius()TK_Sphere()Write()WriteAscii()
Variables
Enumerations
Methods
-
TK_Status
TK_Sphere::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_Sphere::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_Sphere::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_Sphere::ReadAscii(BStreamFileToolkit &tk) Deprecated.
-
TK_Status
TK_Sphere::WriteAscii(BStreamFileToolkit &tk) Deprecated.
-
void
TK_Sphere::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.
-
void
TK_Sphere::SetCenter(float x, float y, float z) Sets the center of the sphere using discrete float values
-
void
TK_Sphere::SetAxis(float x, float y, float z) Sets the axis of the sphere using discrete float values
-
void
TK_Sphere::SetOrtho(float x, float y, float z) Sets the ortho of the sphere using discrete float values
-
void
TK_Sphere::SetDCenter(double x, double y, double z) Sets the center of the sphere using discrete double values
-
double const *
TK_Sphere::GetDCenter() const const
Returns the center as the address of a float array
-
void
TK_Sphere::SetDAxis(double x, double y, double z) Sets the axis of the sphere using discrete double values
-
void
TK_Sphere::SetDOrtho(double x, double y, double z) Sets the ortho of the sphere using discrete double values
-
double const *
TK_Sphere::GetDOrtho() const const
Returns the ortho as the address of a double array
Variables
-
float
TK_Sphere::m_ortho[3] protected
floatinternal use; direction vector to equator at longitude=0
-
double
TK_Sphere::m_dortho[3] protected
doubleinternal use; direction vector to equator at longitude=0