VR-Forces 5.0.2 Developer's Guide
 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 &)
 
void SetNumChild (int)
 
void SetLOD (double in, double out, double width)
 
bool GetCenter (trpg3dPoint &) const
 
bool GetNumChild (int &) const
 
bool GetLOD (double &in, double &out, double &width) const
 
void SetID (int)
 
bool GetID (int &) const
 
void SetName (const char *)
 
const charGetName (void) const
 
void SetRangeIndex (int ri)
 
bool GetRangeIndex (int &ri) const
 
void Reset (void)
 
bool Write (trpgWriteBuffer &)
 
bool Read (trpgReadBuffer &)
 
bool Print (trpgPrintBuffer &) const
 
- 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
 
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 Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)