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

osgView::Hull Class Reference

represents Hulls. Used by the SpaceManager. More...

Inherits osgView::Entity.


Public Types

enum  ShowingObjects { SHOW_ELLIPSES = 0, SHOW_OUTERHULL, SHOW_INNERHULL }

Public Member Functions

 Hull ()
 constructor

 Hull (osg::NodePath &, osg::Vec3Array *, osg::Vec3Array *, osg::Vec3Array *)
 constructor

 Hull (osg::NodePath &, osg::Vec3Array *, osg::Vec3Array *, osg::Vec3Array *, const std::string &name)
 constructor

void setEllipses (osg::Vec3Array *ellipses)
osg::Vec3Array * getEllipses (void)
void setInnerHull (osg::Vec3Array *innerHull)
osg::Vec3Array * getInnerHull (void)
void setOuterHull (osg::Vec3Array *outerHull)
osg::Vec3Array * getOuterHull (void)
void setHulls (osg::Vec3Array *innerHull, osg::Vec3Array *outerHull)
void showEllipses (bool)
 set whether to show ellipses

void showInnerHull (bool)
 set whether to show the Inner Hull

void showOuterHull (bool)
 set whether to show the Outer Hull

void showAll ()
 show ellipses, inner and outer hulls

void hideAll ()
 hide ellipses, inner and outer hulls

unsigned int getFlag ()
 return _showingFlag value

virtual osg::Geode * getGeode (void)
 Creates a Geode with the ellipses and the Inner and Outer hulls.


Detailed Description

Stores a polygonal representation for the vertex ellipses and the Inner and Outer Hulls for an object.


Constructor & Destructor Documentation

Hull::Hull  ) 
 

Constructor

Hull::Hull osg::NodePath &  path,
osg::Vec3Array *  ellipses,
osg::Vec3Array *  innerHull,
osg::Vec3Array *  outerHull
 

Constructor

Parameters:
path the NodePath for the corresponding object in the Scene graph
ellipses the ellipses
innerHull vertices for the InnerHull
outerHull vertices for the OuterHull

Hull::Hull osg::NodePath &  path,
osg::Vec3Array *  ellipses,
osg::Vec3Array *  innerHull,
osg::Vec3Array *  outerHull,
const std::string &  name
 

Constructor

Parameters:
path the NodePath for the corresponding object in the Scene graph
ellipses the ellipses
innerHull vertices for the InnerHull
outerHull vertices for the OuterHull
name a name associated with the object


Member Function Documentation

osg::Geode * Hull::getGeode void   )  [virtual]
 

creates a geode used to display the ellipses and the Inner and Outer Hulls.

Returns:
a reference to a Geode

Reimplemented from osgView::Entity.

void Hull::showEllipses bool  val  ) 
 

set whether or not to show the ellipses

Parameters:
val true show ellipses, false otherwhise

void Hull::showInnerHull bool  val  ) 
 

set whether or not to show the innerHull

Parameters:
val true show, false otherwhise

void Hull::showOuterHull bool  val  ) 
 

set whether or not to show the outerHull

Parameters:
val true show, false otherwhise


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