Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields

osgAR::LOE Class Reference

Level Of Error class. More...

Inherits osgAR::Assessment.


Public Member Functions

 LOE (const LOE &, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 META_Node (osgAR, LOE)
void traverse (osg::NodeVisitor &nv)
bool addAugmentation (Node *, float min, float max)
bool addHUDAugmentation (Node *, float min, float max)
bool removeChild (Node *)
void setRange (unsigned int childNo, float min, float max)
void augment (osgView::SpaceManager *, const osgExtension::MatrixEstimate &, const osg::Vec3Array *, osg::NodePath &)

Protected Types

typedef std::pair< float,
float > 
MinMaxPair
typedef std::vector< MinMaxPair > RangeList

Protected Member Functions

void init ()
bool setAllChildrenOff ()
bool setAllChildrenOn ()
bool setSingleChildOn (unsigned int pos)

Protected Attributes

RangeList _rangeList


Detailed Description

LOE is an osgExtension::Group node which allows LOEing between children. Typical uses would be for objects which might need to be rendered differently at different times, for instance a LOE could be used to represent the different states of a traffic light.


Constructor & Destructor Documentation

LOE::LOE const LOE ,
const osg::CopyOp &  copyop = osg::CopyOp::SHALLOW_COPY
 

Copy constructor using CopyOp to manage deep vs shallow copy.


Member Function Documentation

bool LOE::addAugmentation Node *  node,
float  min,
float  max
 

Adds an Augmentation. This is a 3d Node. Augmentations are selected based on the registration error estimate of the model.

bool LOE::addHUDAugmentation Node *  node,
float  min,
float  max
 

Adds an Augmentation as a child to the HUD. Augmentations are selected based on the registration error estimate of the model.

bool LOE::setAllChildrenOff  )  [protected]
 

Set all the children off (false), and set the new default child value to off (false).

bool LOE::setAllChildrenOn  )  [protected]
 

Set all the children on (true), and set the new default child value to on (true).

bool LOE::setSingleChildOn unsigned int  pos  )  [protected]
 

Set a single child to be on, LOE off all other children.


The documentation for this class was generated from the following files:
Generated on Wed Nov 17 12:22:38 2004 for osgAR by doxygen 1.3.7