OpenSceneGraph  3.5.1
Public Types | Public Member Functions | Protected Member Functions | List of all members
osgUtil::DelaunayTriangulator Class Reference
Inheritance diagram for osgUtil::DelaunayTriangulator:
Inheritance graph
[legend]

Public Types

typedef std::vector< osg::ref_ptr< DelaunayConstraint > > linelist
 

Public Member Functions

 DelaunayTriangulator ()
 
 DelaunayTriangulator (osg::Vec3Array *points, osg::Vec3Array *normals=0)
 
 DelaunayTriangulator (const DelaunayTriangulator &copy, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 
void setInputPointArray (osg::Vec3Array *points)
 Set the input point array. More...
 
const osg::Vec3ArraygetInputPointArray () const
 Get the const input point array. More...
 
osg::Vec3ArraygetInputPointArray ()
 Get the input point array. More...
 
void setOutputNormalArray (osg::Vec3Array *normals)
 Set the output normal array (optional). More...
 
const osg::Vec3ArraygetOutputNormalArray () const
 Get the const output normal array (optional). More...
 
osg::Vec3ArraygetOutputNormalArray ()
 Get the output normal array (optional). More...
 
void addInputConstraint (DelaunayConstraint *dc)
 Add an input constraint loop. More...
 
bool triangulate ()
 Start triangulation. More...
 
const osg::DrawElementsUIntgetTriangles () const
 Get the generated primitive (call triangulate() first). More...
 
osg::DrawElementsUIntgetTriangles ()
 Get the generated primitive (call triangulate() first). More...
 
void removeInternalTriangles (DelaunayConstraint *constraint)
 remove the triangles internal to the constraint loops. More...
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 Set whether to use a mutex to ensure ref() and unref() are thread safe. More...
 
bool getThreadSafeRefUnref () const
 Get whether a mutex is used to ensure ref() and unref() are thread safe. More...
 
OpenThreads::Mutex * getRefMutex () const
 Get the mutex used to ensure thread safety of ref()/unref(). More...
 
int ref () const
 Increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
int unref () const
 Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it. More...
 
int unref_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it. More...
 
int referenceCount () const
 Return the number of pointers currently referencing this object. More...
 
ObserverSetgetObserverSet () const
 Get the ObserverSet if one is attached, otherwise return NULL. More...
 
ObserverSetgetOrCreateObserverSet () const
 Get the ObserverSet if one is attached, otherwise create an ObserverSet, attach it, then return this newly created ObserverSet. More...
 
void addObserver (Observer *observer) const
 Add a Observer that is observing this object, notify the Observer when this object gets deleted. More...
 
void removeObserver (Observer *observer) const
 Remove Observer that is observing this object. More...
 

Protected Member Functions

virtual ~DelaunayTriangulator ()
 
DelaunayTriangulatoroperator= (const DelaunayTriangulator &)
 
int getindex (const osg::Vec3 &pt, const osg::Vec3Array *points)
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 

Additional Inherited Members

- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::Mutex * getGlobalReferencedMutex ()
 Get the optional global Referenced mutex, this can be shared between all osg::Referenced. More...
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 Set whether reference counting should use a mutex for thread safe reference counting. More...
 
static bool getThreadSafeReferenceCounting ()
 Get whether reference counting is active. More...
 
static void setDeleteHandler (DeleteHandler *handler)
 Set a DeleteHandler to which deletion of all referenced counted objects will be delegated. More...
 
static DeleteHandlergetDeleteHandler ()
 Get a DeleteHandler. More...
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

Member Typedef Documentation

Constructor & Destructor Documentation

osgUtil::DelaunayTriangulator::DelaunayTriangulator ( )
osgUtil::DelaunayTriangulator::DelaunayTriangulator ( osg::Vec3Array points,
osg::Vec3Array normals = 0 
)
explicit
osgUtil::DelaunayTriangulator::DelaunayTriangulator ( const DelaunayTriangulator copy,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)
virtual osgUtil::DelaunayTriangulator::~DelaunayTriangulator ( )
protectedvirtual

Member Function Documentation

void osgUtil::DelaunayTriangulator::addInputConstraint ( DelaunayConstraint dc)
inline

Add an input constraint loop.

the edges of the loop will constrain the triangulation. if remove!=0, the internal triangles of the constraint will be removed; the user may the replace the constraint line with an equivalent geometry. GWM July 2005

int osgUtil::DelaunayTriangulator::getindex ( const osg::Vec3 pt,
const osg::Vec3Array points 
)
protected
const osg::Vec3Array* osgUtil::DelaunayTriangulator::getInputPointArray ( ) const
inline

Get the const input point array.

osg::Vec3Array* osgUtil::DelaunayTriangulator::getInputPointArray ( )
inline

Get the input point array.

const osg::Vec3Array* osgUtil::DelaunayTriangulator::getOutputNormalArray ( ) const
inline

Get the const output normal array (optional).

osg::Vec3Array* osgUtil::DelaunayTriangulator::getOutputNormalArray ( )
inline

Get the output normal array (optional).

const osg::DrawElementsUInt* osgUtil::DelaunayTriangulator::getTriangles ( ) const
inline

Get the generated primitive (call triangulate() first).

osg::DrawElementsUInt* osgUtil::DelaunayTriangulator::getTriangles ( )
inline

Get the generated primitive (call triangulate() first).

DelaunayTriangulator& osgUtil::DelaunayTriangulator::operator= ( const DelaunayTriangulator )
inlineprotected
void osgUtil::DelaunayTriangulator::removeInternalTriangles ( DelaunayConstraint constraint)

remove the triangles internal to the constraint loops.

(Line strips cannot remove any internal triangles).

void osgUtil::DelaunayTriangulator::setInputPointArray ( osg::Vec3Array points)
inline

Set the input point array.

void osgUtil::DelaunayTriangulator::setOutputNormalArray ( osg::Vec3Array normals)
inline

Set the output normal array (optional).

bool osgUtil::DelaunayTriangulator::triangulate ( )

Start triangulation.


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

osg logo
Generated at Wed Nov 11 2015 22:15:14 for the OpenSceneGraph by doxygen 1.8.10.