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

#include <GteTriangulateEC.h>

Classes

class  Tree
 
class  Vertex
 

Public Types

typedef std::vector< intPolygon
 

Public Member Functions

std::vector< std::array< int, 3 > > const & GetTriangles () 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)
 
 TriangulateEC (int numPoints, Vector2< InputType > const *points)
 
 TriangulateEC (std::vector< Vector2< InputType >> const &points)
 

Private Member Functions

bool CombinePolygons (int nextElement, Polygon const &outer, Polygon const &inner, std::map< int, int > &indexMap, std::vector< int > &combined)
 
void DoEarClipping (int numVertices, int const *indices)
 
int InitializeFromTree (std::shared_ptr< Tree > const &tree)
 
void InitializeVertices (int numVertices, int const *indices)
 
void InsertAfterC (int i)
 
void InsertAfterE (int i)
 
void InsertAfterR (int i)
 
void InsertBeforeE (int i)
 
void InsertEndE (int i)
 
bool IsConvex (int i)
 
bool IsEar (int i)
 
bool ProcessOuterAndInners (int &nextElement, Polygon const &outer, std::vector< Polygon > const &inners, std::map< int, int > &indexMap, std::vector< int > &combined)
 
void RemapIndices (std::map< int, int > const &indexMap)
 
int RemoveE (int i)
 
void RemoveR (int i)
 
void RemoveV (int i)
 
VertexV (int i)
 

Private Attributes

int mCFirst
 
int mCLast
 
std::vector< Vector2< ComputeType > > mComputePoints
 
int mEFirst
 
int mELast
 
std::vector< bool > mIsConverted
 
int mNumPoints
 
Vector2< InputType > const * mPoints
 
PrimalQuery2< ComputeType > mQuery
 
int mRFirst
 
int mRLast
 
std::vector< std::array< int, 3 > > mTriangles
 
std::vector< VertexmVertices
 

Detailed Description

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

Definition at line 27 of file GteTriangulateEC.h.

Member Typedef Documentation

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

Definition at line 45 of file GteTriangulateEC.h.

Constructor & Destructor Documentation

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

Definition at line 173 of file GteTriangulateEC.h.

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

Definition at line 197 of file GteTriangulateEC.h.

Member Function Documentation

template<typename InputType , typename ComputeType >
bool gte::TriangulateEC< InputType, ComputeType >::CombinePolygons ( int  nextElement,
Polygon const &  outer,
Polygon const &  inner,
std::map< int, int > &  indexMap,
std::vector< int > &  combined 
)
private

Definition at line 701 of file GteTriangulateEC.h.

template<typename InputType , typename ComputeType >
void gte::TriangulateEC< InputType, ComputeType >::DoEarClipping ( int  numVertices,
int const *  indices 
)
private

Definition at line 580 of file GteTriangulateEC.h.

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

Definition at line 221 of file GteTriangulateEC.h.

template<typename InputType , typename ComputeType >
int gte::TriangulateEC< InputType, ComputeType >::InitializeFromTree ( std::shared_ptr< Tree > const &  tree)
private

Definition at line 1046 of file GteTriangulateEC.h.

template<typename InputType , typename ComputeType >
void gte::TriangulateEC< InputType, ComputeType >::InitializeVertices ( int  numVertices,
int const *  indices 
)
private

Definition at line 540 of file GteTriangulateEC.h.

template<typename InputType , typename ComputeType >
void gte::TriangulateEC< InputType, ComputeType >::InsertAfterC ( int  i)
private

Definition at line 1197 of file GteTriangulateEC.h.

template<typename InputType , typename ComputeType >
void gte::TriangulateEC< InputType, ComputeType >::InsertAfterE ( int  i)
private

Definition at line 1243 of file GteTriangulateEC.h.

template<typename InputType , typename ComputeType >
void gte::TriangulateEC< InputType, ComputeType >::InsertAfterR ( int  i)
private

Definition at line 1213 of file GteTriangulateEC.h.

template<typename InputType , typename ComputeType >
void gte::TriangulateEC< InputType, ComputeType >::InsertBeforeE ( int  i)
private

Definition at line 1255 of file GteTriangulateEC.h.

template<typename InputType , typename ComputeType >
void gte::TriangulateEC< InputType, ComputeType >::InsertEndE ( int  i)
private

Definition at line 1229 of file GteTriangulateEC.h.

template<typename InputType , typename ComputeType >
bool gte::TriangulateEC< InputType, ComputeType >::IsConvex ( int  i)
private

Definition at line 1136 of file GteTriangulateEC.h.

template<typename InputType , typename ComputeType >
bool gte::TriangulateEC< InputType, ComputeType >::IsEar ( int  i)
private

Definition at line 1147 of file GteTriangulateEC.h.

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

Definition at line 227 of file GteTriangulateEC.h.

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

Definition at line 257 of file GteTriangulateEC.h.

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

Definition at line 290 of file GteTriangulateEC.h.

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

Definition at line 370 of file GteTriangulateEC.h.

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

Definition at line 455 of file GteTriangulateEC.h.

template<typename InputType , typename ComputeType >
bool gte::TriangulateEC< InputType, ComputeType >::ProcessOuterAndInners ( int nextElement,
Polygon const &  outer,
std::vector< Polygon > const &  inners,
std::map< int, int > &  indexMap,
std::vector< int > &  combined 
)
private

Definition at line 981 of file GteTriangulateEC.h.

template<typename InputType , typename ComputeType >
void gte::TriangulateEC< InputType, ComputeType >::RemapIndices ( std::map< int, int > const &  indexMap)
private

Definition at line 1028 of file GteTriangulateEC.h.

template<typename InputType , typename ComputeType >
int gte::TriangulateEC< InputType, ComputeType >::RemoveE ( int  i)
private

Definition at line 1276 of file GteTriangulateEC.h.

template<typename InputType , typename ComputeType >
void gte::TriangulateEC< InputType, ComputeType >::RemoveR ( int  i)
private

Definition at line 1286 of file GteTriangulateEC.h.

template<typename InputType , typename ComputeType >
void gte::TriangulateEC< InputType, ComputeType >::RemoveV ( int  i)
private

Definition at line 1267 of file GteTriangulateEC.h.

template<typename InputType , typename ComputeType >
TriangulateEC< InputType, ComputeType >::Vertex & gte::TriangulateEC< InputType, ComputeType >::V ( int  i)
inlineprivate

Definition at line 1130 of file GteTriangulateEC.h.

Member Data Documentation

template<typename InputType, typename ComputeType>
int gte::TriangulateEC< InputType, ComputeType >::mCFirst
private

Definition at line 166 of file GteTriangulateEC.h.

template<typename InputType, typename ComputeType>
int gte::TriangulateEC< InputType, ComputeType >::mCLast
private

Definition at line 166 of file GteTriangulateEC.h.

template<typename InputType, typename ComputeType>
std::vector<Vector2<ComputeType> > gte::TriangulateEC< InputType, ComputeType >::mComputePoints
private

Definition at line 135 of file GteTriangulateEC.h.

template<typename InputType, typename ComputeType>
int gte::TriangulateEC< InputType, ComputeType >::mEFirst
private

Definition at line 168 of file GteTriangulateEC.h.

template<typename InputType, typename ComputeType>
int gte::TriangulateEC< InputType, ComputeType >::mELast
private

Definition at line 168 of file GteTriangulateEC.h.

template<typename InputType, typename ComputeType>
std::vector<bool> gte::TriangulateEC< InputType, ComputeType >::mIsConverted
private

Definition at line 136 of file GteTriangulateEC.h.

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

Definition at line 124 of file GteTriangulateEC.h.

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

Definition at line 125 of file GteTriangulateEC.h.

template<typename InputType, typename ComputeType>
PrimalQuery2<ComputeType> gte::TriangulateEC< InputType, ComputeType >::mQuery
private

Definition at line 137 of file GteTriangulateEC.h.

template<typename InputType, typename ComputeType>
int gte::TriangulateEC< InputType, ComputeType >::mRFirst
private

Definition at line 167 of file GteTriangulateEC.h.

template<typename InputType, typename ComputeType>
int gte::TriangulateEC< InputType, ComputeType >::mRLast
private

Definition at line 167 of file GteTriangulateEC.h.

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

Definition at line 128 of file GteTriangulateEC.h.

template<typename InputType, typename ComputeType>
std::vector<Vertex> gte::TriangulateEC< InputType, ComputeType >::mVertices
private

Definition at line 165 of file GteTriangulateEC.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