Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
gte::TriangulateCDT< InputType, ComputeType > Class Template Reference

#include <GteTriangulateCDT.h>

Classes

class  Tree
 

Public Types

typedef std::vector< intPolygon
 

Public Member Functions

std::vector< std::array< int, 3 > > const & GetAllTriangles () const
 
std::vector< bool > const & GetIsInside () const
 
std::vector< std::array< int, 3 > > const & GetOutsideTriangles () const
 
std::vector< std::array< int, 3 > > const & GetTriangles () const
 
bool IsInside (int triIndex) const
 
bool IsOutside (int triIndex) const
 
bool operator() ()
 
bool operator() (Polygon const &polygon)
 
bool operator() (Polygon const &outer, Polygon const &inner)
 
bool operator() (Polygon const &outer, std::vector< Polygon > const &inners)
 
bool operator() (std::shared_ptr< Tree > const &tree)
 
 TriangulateCDT (int numPoints, Vector2< InputType > const *points)
 
 TriangulateCDT (std::vector< Vector2< InputType >> const &points)
 

Private Member Functions

int GetNumPointsAndOffsets (std::shared_ptr< Tree > const &tree, std::map< std::shared_ptr< Tree >, int > &offsets) const
 
bool InsertEdges (std::shared_ptr< Tree > const &tree)
 
bool IsInside (std::shared_ptr< Tree > const &tree, Vector2< ComputeType > const *points, Vector2< ComputeType > const &test, std::map< std::shared_ptr< Tree >, int > const &offsets) const
 
void LookupIndex (std::shared_ptr< Tree > const &tree, int &v, std::map< std::shared_ptr< Tree >, int > const &offsets) const
 
void PackPoints (std::shared_ptr< Tree > const &tree, std::vector< Vector2< InputType >> &points)
 
bool TriangulatePacked (int numPoints, Vector2< InputType > const *points, std::shared_ptr< Tree > const &tree, std::map< std::shared_ptr< Tree >, int > const &offsets)
 

Private Attributes

std::vector< std::array< int, 3 > > mAllTriangles
 
ConstrainedDelaunay2< InputType, ComputeType > mConstrainedDelaunay
 
std::vector< bool > mIsInside
 
int mNumPoints
 
std::vector< std::array< int, 3 > > mOutsideTriangles
 
Vector2< InputType > const * mPoints
 
std::vector< std::array< int, 3 > > mTriangles
 

Detailed Description

template<typename InputType, typename ComputeType>
class gte::TriangulateCDT< InputType, ComputeType >

Definition at line 36 of file GteTriangulateCDT.h.

Member Typedef Documentation

template<typename InputType , typename ComputeType >
typedef std::vector<int> gte::TriangulateCDT< InputType, ComputeType >::Polygon

Definition at line 68 of file GteTriangulateCDT.h.

Constructor & Destructor Documentation

template<typename InputType , typename ComputeType >
gte::TriangulateCDT< InputType, ComputeType >::TriangulateCDT ( int  numPoints,
Vector2< InputType > const *  points 
)

Definition at line 151 of file GteTriangulateCDT.h.

template<typename InputType , typename ComputeType >
gte::TriangulateCDT< InputType, ComputeType >::TriangulateCDT ( std::vector< Vector2< InputType >> const &  points)

Definition at line 168 of file GteTriangulateCDT.h.

Member Function Documentation

template<typename InputType , typename ComputeType >
std::vector< std::array< int, 3 > > const & gte::TriangulateCDT< InputType, ComputeType >::GetAllTriangles ( ) const
inline

Definition at line 197 of file GteTriangulateCDT.h.

template<typename InputType , typename ComputeType >
std::vector< bool > const & gte::TriangulateCDT< InputType, ComputeType >::GetIsInside ( ) const
inline

Definition at line 203 of file GteTriangulateCDT.h.

template<typename InputType , typename ComputeType >
int gte::TriangulateCDT< InputType, ComputeType >::GetNumPointsAndOffsets ( std::shared_ptr< Tree > const &  tree,
std::map< std::shared_ptr< Tree >, int > &  offsets 
) const
private

Definition at line 374 of file GteTriangulateCDT.h.

template<typename InputType , typename ComputeType >
std::vector< std::array< int, 3 > > const & gte::TriangulateCDT< InputType, ComputeType >::GetOutsideTriangles ( ) const
inline

Definition at line 191 of file GteTriangulateCDT.h.

template<typename InputType , typename ComputeType >
std::vector< std::array< int, 3 > > const & gte::TriangulateCDT< InputType, ComputeType >::GetTriangles ( ) const
inline

Definition at line 185 of file GteTriangulateCDT.h.

template<typename InputType , typename ComputeType >
bool gte::TriangulateCDT< InputType, ComputeType >::InsertEdges ( std::shared_ptr< Tree > const &  tree)
private

Definition at line 443 of file GteTriangulateCDT.h.

template<typename InputType , typename ComputeType >
bool gte::TriangulateCDT< InputType, ComputeType >::IsInside ( int  triIndex) const
inline

Definition at line 209 of file GteTriangulateCDT.h.

template<typename InputType , typename ComputeType >
bool gte::TriangulateCDT< InputType, ComputeType >::IsInside ( std::shared_ptr< Tree > const &  tree,
Vector2< ComputeType > const *  points,
Vector2< ComputeType > const &  test,
std::map< std::shared_ptr< Tree >, int > const &  offsets 
) const
private

Definition at line 534 of file GteTriangulateCDT.h.

template<typename InputType , typename ComputeType >
bool gte::TriangulateCDT< InputType, ComputeType >::IsOutside ( int  triIndex) const
inline

Definition at line 222 of file GteTriangulateCDT.h.

template<typename InputType , typename ComputeType >
void gte::TriangulateCDT< InputType, ComputeType >::LookupIndex ( std::shared_ptr< Tree > const &  tree,
int v,
std::map< std::shared_ptr< Tree >, int > const &  offsets 
) const
private

Definition at line 493 of file GteTriangulateCDT.h.

template<typename InputType , typename ComputeType >
bool gte::TriangulateCDT< InputType, ComputeType >::operator() ( )

Definition at line 235 of file GteTriangulateCDT.h.

template<typename InputType , typename ComputeType >
bool gte::TriangulateCDT< InputType, ComputeType >::operator() ( Polygon const &  polygon)

Definition at line 252 of file GteTriangulateCDT.h.

template<typename InputType , typename ComputeType >
bool gte::TriangulateCDT< InputType, ComputeType >::operator() ( Polygon const &  outer,
Polygon const &  inner 
)

Definition at line 265 of file GteTriangulateCDT.h.

template<typename InputType , typename ComputeType >
bool gte::TriangulateCDT< InputType, ComputeType >::operator() ( Polygon const &  outer,
std::vector< Polygon > const &  inners 
)

Definition at line 283 of file GteTriangulateCDT.h.

template<typename InputType , typename ComputeType >
bool gte::TriangulateCDT< InputType, ComputeType >::operator() ( std::shared_ptr< Tree > const &  tree)

Definition at line 305 of file GteTriangulateCDT.h.

template<typename InputType , typename ComputeType >
void gte::TriangulateCDT< InputType, ComputeType >::PackPoints ( std::shared_ptr< Tree > const &  tree,
std::vector< Vector2< InputType >> &  points 
)
private

Definition at line 405 of file GteTriangulateCDT.h.

template<typename InputType , typename ComputeType >
bool gte::TriangulateCDT< InputType, ComputeType >::TriangulatePacked ( int  numPoints,
Vector2< InputType > const *  points,
std::shared_ptr< Tree > const &  tree,
std::map< std::shared_ptr< Tree >, int > const &  offsets 
)
private

Definition at line 342 of file GteTriangulateCDT.h.

Member Data Documentation

template<typename InputType , typename ComputeType >
std::vector<std::array<int, 3> > gte::TriangulateCDT< InputType, ComputeType >::mAllTriangles
private

Definition at line 143 of file GteTriangulateCDT.h.

template<typename InputType , typename ComputeType >
ConstrainedDelaunay2<InputType, ComputeType> gte::TriangulateCDT< InputType, ComputeType >::mConstrainedDelaunay
private

Definition at line 146 of file GteTriangulateCDT.h.

template<typename InputType , typename ComputeType >
std::vector<bool> gte::TriangulateCDT< InputType, ComputeType >::mIsInside
private

Definition at line 144 of file GteTriangulateCDT.h.

template<typename InputType , typename ComputeType >
int gte::TriangulateCDT< InputType, ComputeType >::mNumPoints
private

Definition at line 136 of file GteTriangulateCDT.h.

template<typename InputType , typename ComputeType >
std::vector<std::array<int, 3> > gte::TriangulateCDT< InputType, ComputeType >::mOutsideTriangles
private

Definition at line 142 of file GteTriangulateCDT.h.

template<typename InputType , typename ComputeType >
Vector2<InputType> const* gte::TriangulateCDT< InputType, ComputeType >::mPoints
private

Definition at line 137 of file GteTriangulateCDT.h.

template<typename InputType , typename ComputeType >
std::vector<std::array<int, 3> > gte::TriangulateCDT< InputType, ComputeType >::mTriangles
private

Definition at line 141 of file GteTriangulateCDT.h.


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


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:07