VR-Forces 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)
 
virtual ~trpgLod (void) override
 
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
 
virtual void Reset (void) override
 
virtual bool Write (trpgWriteBuffer &) override
 
virtual bool Read (trpgReadBuffer &) override
 
virtual bool Print (trpgPrintBuffer &) const override
 
- 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  )
virtual trpgLod::~trpgLod ( void  )
overridevirtual

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.

virtual void trpgLod::Reset ( void  )
overridevirtual

Resets the contents back to empty.

Implements trpgReadWriteable.

virtual bool trpgLod::Write ( trpgWriteBuffer )
overridevirtual

Writes this class to a write buffer.

Implements trpgReadWriteable.

virtual bool trpgLod::Read ( trpgReadBuffer )
overridevirtual

Reads this class from a read buffer.

Reimplemented from trpgReadWriteable.

virtual bool trpgLod::Print ( trpgPrintBuffer ) const
overridevirtual

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 Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)