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

osgExtension::Group Class Reference

Leaf Node for grouping Drawables. More...

Inherited by osgAR::Assessment, osgAR::RegionCGAL, osgAR::RegionNoCGAL, and osgExtension::Camera.


Public Member Functions

 Group (const Group &, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
bool clearMatrixEstimates (void)
 clear the matrix estimates stored in this group.

bool addMatrixEstimate (osg::NodePath &, const MatrixEstimate &)
 Add another matrix estimate. Matrix estimates correspond to different paths.

bool removeMatrixEstimate (osg::NodePath &)
 Remove the matrix estimate correspoind to specified path.

bool replaceMatrixEstimate (osg::NodePath &, const MatrixEstimate &, osg::NodePath &)
 Replace the matrix estimate corresponding to the especified path.

bool containsMatrixEstimate (osg::NodePath &)
 Return true if a matrix estimate for a given path is stored, false otherwise.

bool containsMatrixEstimate (const osg::NodePath &)
 Return true if a matrix estimate for a given path is stored, false otherwise.

MatrixEstimategetMatrixEstimate (unsigned int)
 Return the matrix estimate stored at the specified position.

const MatrixEstimategetMatrixEstimate (unsigned int) const
 Return the const matrix estimate stored at the specified position.

MatrixEstimategetMatrixEstimate (const osg::NodePath &)
 Return the matrix estimate for a given path.

const MatrixEstimategetMatrixEstimate (const osg::NodePath &) const
 Return the cont matrix estimate for a given path.

void setVertices (const osg::Vec3Array *vertices)
const osg::Vec3Array * getVertices (void)
 Return the vertices for the children of all subtrees.

void setDamaged (bool val)
 Set if the node is damaged.

bool isDamaged (void)
 Return if this node is damaged.

virtual void augment (osgView::SpaceManager *, const MatrixEstimate &, const osg::Vec3Array *, osg::NodePath &)=0

Static Protected Attributes

const int ELLIPSE_PTS = 20


Detailed Description

Stores both the vertices that correspond to subtree and a matrix estimate representing the view independent estimate. Both information are used for computing the view dependent error estimate.


Constructor & Destructor Documentation

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

Copy constructor using CopyOp to manage deep vs shallow copy.


Member Function Documentation

bool Group::addMatrixEstimate osg::NodePath &  path,
const MatrixEstimate matrixEstimate
 

add the const matrix estimate corresponding to the specified path

Parameters:
path the NodePath
matrixEstimate the new matrix estimate
Returns:
true if successful, false otherwise

virtual void osgExtension::Group::augment osgView::SpaceManager ,
const MatrixEstimate ,
const osg::Vec3Array *  ,
osg::NodePath & 
[pure virtual]
 

augment is called by the augmentVisitor each subclass of osgExtension::Group should implement this.

bool Group::clearMatrixEstimates void   ) 
 

clear the EstimateList

Returns:
true

bool Group::containsMatrixEstimate const osg::NodePath &  path  ) 
 

checkes whether or not there is a MatrixEstimate corresponding to the specified path

Parameters:
path the const NodePath
Returns:
true if there is a matrix estimate, false otherwise

bool Group::containsMatrixEstimate osg::NodePath &  path  ) 
 

checkes whether or not there is a MatrixEstimate corresponding to the specified path

Parameters:
path the NodePath
Returns:
true if there is a matrix estimate, false otherwise

const MatrixEstimate & Group::getMatrixEstimate const osg::NodePath &  path  )  const
 

get the const matrix estimate corresponding to the specified path

Parameters:
path the NodePath
Returns:
the const MatrixEstimate

MatrixEstimate & Group::getMatrixEstimate const osg::NodePath &  path  ) 
 

get the matrix estimate corresponding to the specified path

Parameters:
path the NodePath
Returns:
the MatrixEstimate

const MatrixEstimate & Group::getMatrixEstimate unsigned int  pos  )  const
 

get the const matrix estimate store at a given position.

Parameters:
pos the position on the EstimateList
Returns:
the const MatrixEstimate

MatrixEstimate & Group::getMatrixEstimate unsigned int  pos  ) 
 

get the matrix estimate store at a given position.

Parameters:
pos the position on the EstimateList
Returns:
the MatrixEstimate

const osg::Vec3Array * Group::getVertices void   ) 
 

return the vertices corresponding to the 3D convex hull

Returns:
the vertices

bool Group::removeMatrixEstimate osg::NodePath &  path  ) 
 

remove the const matrix estimate corresponding to the specified path

Parameters:
path the NodePath
Returns:
true if successful, false otherwise

bool Group::replaceMatrixEstimate osg::NodePath &  path,
const MatrixEstimate matrixEstimate,
osg::NodePath &  newPath
 

replace the const matrix estimate corresponding to the specified path

Parameters:
path the NodePath
matrixEstimate the new matrix estimate
newPath the new NodePath
Returns:
true if successful, false otherwise

void Group::setVertices const osg::Vec3Array *  vertices  ) 
 

Set the vertices corresponding to all the children This function locally computes the 3D convex hull of the vertices before storing them.


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