VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
trpgLod Class Reference
Inheritance diagram for trpgLod:
Inheritance graph
[legend]

Public Member Functions

 trpgLod (void)
 ~trpgLod (void)
void SetCenter (const trpg3dPoint &)
 Set the calculated center.
void SetNumChild (int)
 Set the number of children hint.
void SetLOD (double in, double out, double width)
 Set the LOD information.
bool GetCenter (trpg3dPoint &) const
 Center of this LOD. Distance from the viewer is calculated from this.
bool GetNumChild (int &) const
 Number of children hint.
bool GetLOD (double &in, double &out, double &width) const
 LOD specific information.
void SetID (int)
 Set the group ID.
bool GetID (int &) const
 Group IDs are used here the same way as in trpgGroup.
void SetName (const char *)
const charGetName (void) const
 Returns the lod name.
void SetRangeIndex (int ri)
 Set the range Index.
bool GetRangeIndex (int &ri) const
 Get the range index.
void Reset (void)
 Resets the contents back to empty.
bool Write (trpgWriteBuffer &)
 Writes this class to a write buffer.
bool Read (trpgReadBuffer &)
 Reads this class from a read buffer.
bool Print (trpgPrintBuffer &) const
 Prints this class to a print buffer.
- Public Member Functions inherited from trpgReadWriteable
 trpgReadWriteable ()
const chargetErrMess () const
- Public Member Functions inherited from trpgCheckable
 trpgCheckable (void)
virtual ~trpgCheckable (void)
bool isValid (void) const
 Returns the state of the valid flag, or can be overriden by a subclass to do a more complex check.
virtual TeAttrHdl GetHandle () const
virtual void SetHandle (TeAttrHdl hdl)

Protected Attributes

int numRange
double switchIn
double switchOut
double width
trpg3dPoint center
int id
charname
int rangeIndex
- Protected Attributes inherited from trpgReadWriteable
char errMess [512]
- Protected Attributes inherited from trpgCheckable
bool valid
TeAttrHdl handle
bool writeHandle

Constructor & Destructor Documentation

trpgLod::trpgLod ( void  )
trpgLod::~trpgLod ( void  )

Member Function Documentation

void trpgLod::SetCenter ( const trpg3dPoint )

Set the calculated center.

void trpgLod::SetNumChild ( int  )

Set the number of children hint.

void trpgLod::SetLOD ( double  in,
double  out,
double  width 
)

Set the LOD information.

bool trpgLod::GetCenter ( trpg3dPoint ) const

Center of this LOD. Distance from the viewer is calculated from this.

bool trpgLod::GetNumChild ( int &  ) const

Number of children hint.

bool trpgLod::GetLOD ( double &  in,
double &  out,
double &  width 
) const

LOD specific information.

in and out can be switched. width is the transition range for doing fading.

void trpgLod::SetID ( int  )

Set the group ID.

bool trpgLod::GetID ( int &  ) const

Group IDs are used here the same way as in trpgGroup.

void trpgLod::SetName ( const char )
const char* trpgLod::GetName ( void  ) const

Returns the lod name.

void trpgLod::SetRangeIndex ( int  ri)

Set the range Index.

bool trpgLod::GetRangeIndex ( int &  ri) const

Get the range index.

void trpgLod::Reset ( void  )
virtual

Resets the contents back to empty.

Implements trpgReadWriteable.

bool trpgLod::Write ( trpgWriteBuffer )
virtual

Writes this class to a write buffer.

Implements trpgReadWriteable.

bool trpgLod::Read ( trpgReadBuffer )
virtual

Reads this class from a read buffer.

Reimplemented from trpgReadWriteable.

bool trpgLod::Print ( trpgPrintBuffer ) const
virtual

Prints this class to a print buffer.

Reimplemented from trpgReadWriteable.

Member Data Documentation

int trpgLod::numRange
protected
double trpgLod::switchIn
protected
double trpgLod::switchOut
protected
double trpgLod::width
protected
trpg3dPoint trpgLod::center
protected
int trpgLod::id
protected
char* trpgLod::name
protected
int trpgLod::rangeIndex
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)