Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

TK_Circle Class Reference

#include <BOpcodeHandler.h>

Inheritance diagram for TK_Circle:

Inheritance graph
[legend]
Collaboration diagram for TK_Circle:

Collaboration graph
[legend]
List of all members.

Detailed Description

Handles the TKE_Circle, TKE_Circular_Arc, TKE_Circular_Chord and TKE_Circular_Wedge opcodes.

TK_Circle provides support for writing/reading the TKE_Circle, TKE_Circular_Arc, TKE_Circular_Chord and TKE_Circular_Wedge opcode objects to/from an HSF file.

The HOOPS/3dGS scene-graph can contain various forms of a 'circle' primitive, defined by three non-colinear points.

Definition at line 4007 of file BOpcodeHandler.h.

Public Member Functions

 TK_Circle (unsigned char opcode)
TK_Status Read (BStreamFileToolkit &tk) alter
TK_Status Write (BStreamFileToolkit &tk) alter
void SetStart (float x, float y, float z) alter
void SetStart (float const *s) alter
void SetMiddle (float x, float y, float z) alter
void SetMiddle (float const *m) alter
void SetEnd (float x, float y, float z) alter
void SetEnd (float const *e) alter
void SetPoints (float const *s, float const *m, float const *e) alter
float const * GetStart (void) const
float const * GetMiddle (void) const
float const * GetEnd (void) const

Protected Attributes

float m_start [3]
float m_middle [3]
float m_end [3]


Constructor & Destructor Documentation

TK_Circle::TK_Circle unsigned char  opcode  )  [inline]
 

constructor

Definition at line 4019 of file BOpcodeHandler.h.


Member Function Documentation

float const* TK_Circle::GetEnd void   )  const [inline]
 

Returns the end point of the arc as the address of a float triplet

Definition at line 4058 of file BOpcodeHandler.h.

float const* TK_Circle::GetMiddle void   )  const [inline]
 

Returns the intermediate point of the arc as the address of a float triplet

Definition at line 4056 of file BOpcodeHandler.h.

float const* TK_Circle::GetStart void   )  const [inline]
 

Returns the start point of the arc as the address of a float triplet

Definition at line 4054 of file BOpcodeHandler.h.

TK_Status TK_Circle::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 the BStreamFileToolkit object.
Returns:
The result of the function call.

Implements BBaseOpcodeHandler.

void TK_Circle::SetEnd float const *  e  )  [inline]
 

Sets the end point of the arc using a float triplet

Definition at line 4046 of file BOpcodeHandler.h.

void TK_Circle::SetEnd float  x,
float  y,
float  z
[inline]
 

Sets the end point of the arc using discrete float values

Definition at line 4042 of file BOpcodeHandler.h.

void TK_Circle::SetMiddle float const *  m  )  [inline]
 

Sets the intermediate point of the arc using a float triplet

Definition at line 4038 of file BOpcodeHandler.h.

void TK_Circle::SetMiddle float  x,
float  y,
float  z
[inline]
 

Sets the intermediate point of the arc using discrete float values

Definition at line 4034 of file BOpcodeHandler.h.

void TK_Circle::SetPoints float const *  s,
float const *  m,
float const *  e
[inline]
 

Sets the three points describing the arc using discrete point triplets

Definition at line 4050 of file BOpcodeHandler.h.

void TK_Circle::SetStart float const *  s  )  [inline]
 

Sets the start point of the arc using a float triplet

Definition at line 4030 of file BOpcodeHandler.h.

void TK_Circle::SetStart float  x,
float  y,
float  z
[inline]
 

Sets the start point of the arc using discrete float values

Definition at line 4026 of file BOpcodeHandler.h.

TK_Status TK_Circle::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 the BStreamFileToolkit object.
Returns:
The result of the function call.

Implements BBaseOpcodeHandler.


Member Data Documentation

float TK_Circle::m_end[3] [protected]
 

internal use; End point

Definition at line 4015 of file BOpcodeHandler.h.

float TK_Circle::m_middle[3] [protected]
 

internal use; Middle point

Definition at line 4014 of file BOpcodeHandler.h.

float TK_Circle::m_start[3] [protected]
 

internal use; Starting point

Definition at line 4013 of file BOpcodeHandler.h.


The documentation for this class was generated from the following file:
Generated on Tue May 17 12:06:05 2005 for Autodesk DWF 3D Toolkit by  doxygen 1.4.1