LOD - Level Of Detail group node which allows switching between children depending on distance from eye point.
Inheritance:
Public Methods
-
LOD()
-
META_Node(LOD)
-
virtual void traverse(NodeVisitor& nv)
-
void setRange(const unsigned int index, const float range)
- Sets the value of range list element index to range which is a floating point distance specified in world coordinates.
-
inline const float getRange(const unsigned int index) const
- returns the range for specified index
-
inline const int getNumRanges() const
- returns the number of ranges currently set
-
inline void setCenter(const Vec3 ¢er)
- Sets the object-space point which defines the center of the osg::LOD.
-
inline const Vec3& getCenter() const
- return the LOD center point.
-
const int evaluate(const Vec3& eye_local, const float bias=1.0f) const
- return the child to traverse.
Protected Fields
-
RangeList _rangeList2
-
Vec3 _center
Protected Methods
-
virtual ~LOD()
Protected Members
-
typedef std::vector<float> RangeList RangeList _rangeList
Inherited from Group:
Public Methods
-
virtual bool addChild( Node* child )
-
virtual bool removeChild( Node* child )
-
virtual bool replaceChild( Node* origChild, Node* newChild )
-
inline const int getNumChildren() const
-
inline Node* getChild( const int i )
-
inline const Node* getChild( const int i ) const
-
inline bool containsNode( const Node* node ) const
-
inline ChildList::iterator findNode( const Node* node )
-
inline ChildList::const_iterator findNode( const Node* node ) const
Protected Fields
-
ChildList _children
Protected Methods
-
virtual const bool computeBound() const
Inherited from Node:
Public Methods
-
virtual Object* clone() const
-
virtual bool isSameKindAs(const Object* obj) const
-
virtual const char* className() const
-
virtual void accept(NodeVisitor& nv)
-
virtual void ascend(NodeVisitor& nv)
-
inline void setName( const std::string& name )
-
inline void setName( const char* name )
-
inline const std::string& getName() const
-
inline const ParentList& getParents() const
-
inline Group* getParent(const int i)
-
inline const Group* getParent(const int i) const
-
inline const int getNumParents() const
-
void setAppCallback(NodeCallback* nc)
-
inline NodeCallback* getAppCallback()
-
inline const NodeCallback* getAppCallback() const
-
inline const int getNumChildrenRequiringAppTraversal() const
-
inline void setUserData(void* data, MemoryAdapter* ma=0L)
-
inline void* getUserData()
-
inline const void* getUserData() const
-
inline MemoryAdapter* getMemoryAdapter()
-
inline const MemoryAdapter* getMemoryAdapter() const
-
inline void setNodeMask(const NodeMask nm)
-
inline const NodeMask getNodeMask() const
-
inline const DescriptionList& getDescriptions() const
-
inline DescriptionList& getDescriptions()
-
inline const std::string& getDescription(const int i) const
-
inline std::string& getDescription(const int i)
-
inline const int getNumDescriptions() const
-
void addDescription(const std::string& desc)
-
inline void setStateSet(osg::StateSet* dstate)
-
inline osg::StateSet* getStateSet()
-
inline const osg::StateSet* getStateSet() const
-
inline const BoundingSphere& getBound() const
-
void dirtyBound()
Public Members
-
typedef std::vector<Group*> ParentList
-
typedef std::vector<std::string> DescriptionList
Protected Fields
-
mutable BoundingSphere _bsphere
-
mutable bool _bsphere_computed
-
std::string _name
-
ParentList _parents
-
ref_ptr<NodeCallback> _appCallback
-
int _numChildrenRequiringAppTraversal
-
void* _userData
-
ref_ptr<MemoryAdapter> _memoryAdapter
-
NodeMask _nodeMask
-
DescriptionList _descriptions
-
ref_ptr<StateSet> _dstate
Protected Methods
-
void setNumChildrenRequiringAppTraversal(const int num)
Inherited from Object:
Public Methods
-
inline Referenced& operator = (Referenced&)
-
inline void ref() const
-
inline void unref() const
-
inline const int referenceCount() const
Protected Fields
-
mutable int _refCount
Documentation
LOD - Level Of Detail group node which allows switching between children
depending on distance from eye point.
Typical uses are for load balancing - objects further away from
the eye point are rendered at a lower level of detail, and at times
of high stress on the graphics pipeline lower levels of detail can
also be chosen.
- LOD()
- META_Node(LOD)
- virtual void traverse(NodeVisitor& nv)
- void setRange(const unsigned int index, const float range)
- Sets the value of range list element index to range which
is a floating point distance specified in world coordinates.
Range list automatically expands to accomodate values beyond
the current getNumRanges().
- inline const float getRange(const unsigned int index) const
- returns the range for specified index
- inline const int getNumRanges() const
- returns the number of ranges currently set
- inline void setCenter(const Vec3 ¢er)
- Sets the object-space point which defines the center of the osg::LOD.
center is affected by any transforms in the hierarchy above the osg::LOD.
- inline const Vec3& getCenter() const
- return the LOD center point.
- const int evaluate(const Vec3& eye_local, const float bias=1.0f) const
- return the child to traverse.
Selected by the distance between the eye point in local
coordinates and the LOD center, mutliplied by the bias.
- virtual ~LOD()
- typedef std::vector<float> RangeList RangeList _rangeList
- RangeList _rangeList2
- Vec3 _center
- Direct child classes:
- Impostor
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.