VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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. More...
 
void SetNumChild (int)
 Set the number of children hint. More...
 
void SetLOD (double in, double out, double width)
 Set the LOD information. More...
 
bool GetCenter (trpg3dPoint &) const
 Center of this LOD. Distance from the viewer is calculated from this. More...
 
bool GetNumChild (int &) const
 Number of children hint. More...
 
bool GetLOD (double &in, double &out, double &width) const
 LOD specific information. More...
 
void SetID (int)
 Set the group ID. More...
 
bool GetID (int &) const
 Group IDs are used here the same way as in trpgGroup. More...
 
void SetName (const char *)
 
const charGetName (void) const
 Returns the lod name. More...
 
void SetRangeIndex (int ri)
 Set the range Index. More...
 
bool GetRangeIndex (int &ri) const
 Get the range index. More...
 
void Reset (void)
 Resets the contents back to empty. More...
 
bool Write (trpgWriteBuffer &)
 Writes this class to a write buffer. More...
 
bool Read (trpgReadBuffer &)
 Reads this class from a read buffer. More...
 
bool Print (trpgPrintBuffer &) const
 Prints this class to a print buffer. More...
 
- 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. More...
 
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 Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)