OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
osgUtil::EdgeCollector Class Reference

#include <EdgeCollector.h>

Collaboration diagram for osgUtil::EdgeCollector:
Collaboration graph
[legend]

Classes

struct  Edge
 
struct  Edgeloop
 
struct  Point
 
struct  Triangle
 

Public Types

typedef std::list
< osg::ref_ptr< osg::UIntArray > > 
IndexArrayList
 
typedef std::set< osg::ref_ptr
< Edge >, dereference_less > 
EdgeSet
 
typedef std::vector
< osg::ref_ptr< Edge > > 
EdgeList
 
typedef std::list
< osg::ref_ptr< Edgeloop > > 
EdgeloopList
 
typedef std::set< osg::ref_ptr
< Point >, dereference_less > 
PointSet
 
typedef std::vector
< osg::ref_ptr< Point > > 
PointList
 
typedef std::list
< osg::ref_ptr< Triangle > > 
TriangleList
 
typedef std::set< osg::ref_ptr
< Triangle > > 
TriangleSet
 
typedef std::map< osg::ref_ptr
< Triangle >, unsigned int,
dereference_less > 
TriangleMap
 

Public Member Functions

 ~EdgeCollector ()
 
void setGeometry (osg::Geometry *geometry)
 
osg::Geometry * getGeometry ()
 
unsigned int getNumOfTriangles ()
 
Triangle * addTriangle (unsigned int p1, unsigned int p2, unsigned int p3)
 
Triangle * addTriangle (Point *p1, Point *p2, Point *p3)
 
Edge * addEdge (Triangle *triangle, Point *p1, Point *p2)
 
Point * addPoint (Triangle *triangle, unsigned int p1)
 
Point * addPoint (Triangle *triangle, Point *point)
 
void getBoundaryEdgeList (EdgeList &el)
 
bool extractBoundaryEdgeloop (EdgeList &el, Edgeloop &edgeloop)
 
bool extractBoundaryEdgeloopList (EdgeList &el, EdgeloopList &edgeloopList)
 
void getEdgeloopIndexList (IndexArrayList &ial)
 

Public Attributes

osg::Geometry * _geometry
 
EdgeSet _edgeSet
 
TriangleSet _triangleSet
 
PointSet _pointSet
 
PointList _originalPointList
 

Detailed Description

Definition at line 62 of file EdgeCollector.h.

Member Typedef Documentation

Definition at line 81 of file EdgeCollector.h.

Definition at line 82 of file EdgeCollector.h.

Definition at line 80 of file EdgeCollector.h.

Definition at line 69 of file EdgeCollector.h.

Definition at line 84 of file EdgeCollector.h.

Definition at line 83 of file EdgeCollector.h.

Definition at line 85 of file EdgeCollector.h.

Definition at line 87 of file EdgeCollector.h.

Definition at line 86 of file EdgeCollector.h.

Constructor & Destructor Documentation

osgUtil::EdgeCollector::~EdgeCollector ( )

Member Function Documentation

Edge* osgUtil::EdgeCollector::addEdge ( Triangle *  triangle,
Point *  p1,
Point *  p2 
)
Point* osgUtil::EdgeCollector::addPoint ( Triangle *  triangle,
unsigned int  p1 
)
inline

Definition at line 188 of file EdgeCollector.h.

Here is the call graph for this function:

Here is the caller graph for this function:

Point* osgUtil::EdgeCollector::addPoint ( Triangle *  triangle,
Point *  point 
)
Triangle* osgUtil::EdgeCollector::addTriangle ( unsigned int  p1,
unsigned int  p2,
unsigned int  p3 
)
Triangle* osgUtil::EdgeCollector::addTriangle ( Point *  p1,
Point *  p2,
Point *  p3 
)
bool osgUtil::EdgeCollector::extractBoundaryEdgeloop ( EdgeList &  el,
Edgeloop &  edgeloop 
)
bool osgUtil::EdgeCollector::extractBoundaryEdgeloopList ( EdgeList &  el,
EdgeloopList &  edgeloopList 
)
void osgUtil::EdgeCollector::getBoundaryEdgeList ( EdgeList &  el)
void osgUtil::EdgeCollector::getEdgeloopIndexList ( IndexArrayList &  ial)
osg::Geometry* osgUtil::EdgeCollector::getGeometry ( )
inline

Definition at line 76 of file EdgeCollector.h.

unsigned int osgUtil::EdgeCollector::getNumOfTriangles ( )
inline

Definition at line 78 of file EdgeCollector.h.

void osgUtil::EdgeCollector::setGeometry ( osg::Geometry *  geometry)

Member Data Documentation

EdgeSet osgUtil::EdgeCollector::_edgeSet

Definition at line 201 of file EdgeCollector.h.

osg::Geometry* osgUtil::EdgeCollector::_geometry

Definition at line 199 of file EdgeCollector.h.

PointList osgUtil::EdgeCollector::_originalPointList

Definition at line 204 of file EdgeCollector.h.

PointSet osgUtil::EdgeCollector::_pointSet

Definition at line 203 of file EdgeCollector.h.

TriangleSet osgUtil::EdgeCollector::_triangleSet

Definition at line 202 of file EdgeCollector.h.


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