nLodNode Class Reference
[Scene System]
#include <nlodnode.h>
Inheritance diagram for nLodNode:

Detailed Description
A lod node switches its child nodes on and off according to its current camera distance to accomplish different representations with different levels of detail.(C) 2002 RadonLabs GmbH
Definition at line 17 of file nlodnode.h.
Public Member Functions | |
| nLodNode () | |
| constructor | |
| virtual | ~nLodNode () |
| destructor | |
| virtual bool | SaveCmds (nPersistServer *ps) |
| object persistency | |
| virtual void | Attach (nSceneServer *sceneServer, nRenderContext *renderContext) |
| called by nSceneServer when object is attached to scene | |
| void | AppendThreshold (float distance) |
| append camera distance threshold when the child node at index is switched on and its predecessor switched off | |
| float | GetThreshold (int index) const |
| get camera distance threshold when the child node at index is switched on and its predecessor switched off | |
| void | SetMinDistance (float distance) |
| set the minimum camera distance where the node is shown | |
| float | GetMinDistance () const |
| get the minimum camera distance where the node is shown | |
| void | SetMaxDistance (float distance) |
| set the maximum camera distance where the node is shown | |
| float | GetMaxDistance () const |
| get the maximum camera distance where the node is shown | |
Protected Attributes | |
| nArray< nRef< nSceneNode > > | lods |
| nArray< float > | thresholds |
| float | maxDistance |
| float | minDistance |
| nClass * | transformNodeClass |
Constructor & Destructor Documentation
|
|
constructor
Definition at line 15 of file nlodnode_main.cc. |
|
|
destructor
Definition at line 25 of file nlodnode_main.cc. |
Member Function Documentation
|
|
object persistency
Reimplemented from nTransformNode. |
|
||||||||||||
|
called by nSceneServer when object is attached to scene Attach to the scene server. FIXME FLOH: NOTE, this method will only be correct if this node and its parent nodes are not animated. Reimplemented from nTransformNode. Definition at line 37 of file nlodnode_main.cc. |
|
|
append camera distance threshold when the child node at index is switched on and its predecessor switched off
Definition at line 55 of file nlodnode.h. |
|
|
get camera distance threshold when the child node at index is switched on and its predecessor switched off
Definition at line 65 of file nlodnode.h. |
|
|
set the minimum camera distance where the node is shown
Definition at line 95 of file nlodnode.h. |
|
|
get the minimum camera distance where the node is shown
Definition at line 105 of file nlodnode.h. |
|
|
set the maximum camera distance where the node is shown
Definition at line 75 of file nlodnode.h. |
|
|
get the maximum camera distance where the node is shown
Definition at line 85 of file nlodnode.h. |
Member Data Documentation
|
|
Definition at line 42 of file nlodnode.h. |
|
|
Definition at line 43 of file nlodnode.h. |
|
|
Definition at line 44 of file nlodnode.h. |
|
|
Definition at line 45 of file nlodnode.h. |
|
|
Definition at line 46 of file nlodnode.h. |
The documentation for this class was generated from the following files: