newspeoplefor developersdocumentationdownloads

nLodNode Class Reference
[Scene System]

#include <nlodnode.h>

Inheritance diagram for nLodNode:

nTransformNode nSceneNode nRoot nObject nNode nReferenced nSignalEmitter List of all members.

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
nClasstransformNodeClass

Constructor & Destructor Documentation

nLodNode::nLodNode  ) 
 

constructor

Definition at line 15 of file nlodnode_main.cc.

nLodNode::~nLodNode  )  [virtual]
 

destructor

Definition at line 25 of file nlodnode_main.cc.


Member Function Documentation

virtual bool nLodNode::SaveCmds nPersistServer ps  )  [virtual]
 

object persistency

Reimplemented from nTransformNode.

void nLodNode::Attach nSceneServer sceneServer,
nRenderContext renderContext
[virtual]
 

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.

void nLodNode::AppendThreshold float  distance  )  [inline]
 

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.

float nLodNode::GetThreshold int  index  )  const [inline]
 

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.

void nLodNode::SetMinDistance float  distance  )  [inline]
 

set the minimum camera distance where the node is shown

Definition at line 95 of file nlodnode.h.

float nLodNode::GetMinDistance  )  const [inline]
 

get the minimum camera distance where the node is shown

Definition at line 105 of file nlodnode.h.

void nLodNode::SetMaxDistance float  distance  )  [inline]
 

set the maximum camera distance where the node is shown

Definition at line 75 of file nlodnode.h.

float nLodNode::GetMaxDistance  )  const [inline]
 

get the maximum camera distance where the node is shown

Definition at line 85 of file nlodnode.h.


Member Data Documentation

nArray<nRef<nSceneNode> > nLodNode::lods [protected]
 

Definition at line 42 of file nlodnode.h.

nArray<float> nLodNode::thresholds [protected]
 

Definition at line 43 of file nlodnode.h.

float nLodNode::maxDistance [protected]
 

Definition at line 44 of file nlodnode.h.

float nLodNode::minDistance [protected]
 

Definition at line 45 of file nlodnode.h.

nClass* nLodNode::transformNodeClass [protected]
 

Definition at line 46 of file nlodnode.h.


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

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.