Interface for the callback handler that user can derive from and inject into the triangulation to monitor certain events or order aborting the calculation. More...
#include <Triangulation.h>
Public Member Functions | |
virtual | ~ICallbackHandler () |
Virtual destructor. | |
virtual void | onAddSuperTriangle () |
Called when super-triangle is added. | |
virtual void | onInsertVertexInsideTriangle (const TriInd iRepurposedTri, const TriInd iNewTri1, const TriInd iNewTri2) |
Called when inserted vertex is inside a triangle. | |
virtual void | onInsertVertexOnEdge (const TriInd iRepurposedTri1, const TriInd iRepurposedTri2, const TriInd iNewTri1, const TriInd iNewTri2) |
Called when inserted vertex is on an edge. | |
virtual void | onFlipEdge (const TriInd iT, const TriInd iTopo) |
Called just before an edge between tro triangles is flipped. | |
virtual void | onAddVertexStart (const VertInd iV, const AddVertexType::Enum vertexType) |
Called at the start of adding new vertex to the triangulation. | |
virtual void | onAddEdgeStart (const Edge &edge) |
Called at the start of adding a constraint edge to the triangulation. | |
virtual void | onReTriangulatePolygon (const std::vector< TriInd > &tris) |
Called when inserting a constraint edge causes polygon containing triangles to be re-triangulated @tris triangles in the polygon that will be re-triangulated and triangles re-purposed. | |
virtual bool | isAbortCalculation () const |
Tells whether the user wants to abort the triangulation at the earliest opportunity. | |
Interface for the callback handler that user can derive from and inject into the triangulation to monitor certain events or order aborting the calculation.
Definition at line 296 of file Triangulation.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 300 of file Triangulation.h.
|
inlinevirtual |
Tells whether the user wants to abort the triangulation at the earliest opportunity.
Definition at line 381 of file Triangulation.h.
|
inlinevirtual |
Called at the start of adding a constraint edge to the triangulation.
edge | constraint that is added/enforced |
Definition at line 365 of file Triangulation.h.
|
inlinevirtual |
Called when super-triangle is added.
1.Added three new vertices with indices 0, 1, 2
Definition at line 308 of file Triangulation.h.
|
inlinevirtual |
Called at the start of adding new vertex to the triangulation.
iV | index of the vertex |
vertexType | what type of vertex is being added |
Definition at line 358 of file Triangulation.h.
|
inlinevirtual |
Called just before an edge between tro triangles is flipped.
iT | index of the first triangle sharing an edge |
iTopo | index of the second triangle sharing an edge |
Definition at line 349 of file Triangulation.h.
|
inlinevirtual |
Called when inserted vertex is inside a triangle.
The triangle is split in three: original trianlge is re-purposed and two new triangles are added
iRepurposedTri | index of original triangle containing the point that will be modified (re-purposed) |
iNewTri1 | index of first added new triangle |
iNewTri2 | index of second added new triangle |
Definition at line 320 of file Triangulation.h.
|
inlinevirtual |
Called when inserted vertex is on an edge.
Two triangles sharing an edge are split in four:original triangles are re-purposed and two new triangles are added.
iRepurposedTri1 | index of first original triangle sharing an edge that will be modified (re-purposed) |
iRepurposedTri2 | index of second original triangle sharing an edge that will be modified (re-purposed) |
iNewTri1 | index of first added new triangle |
iNewTri2 | index of second added new triangle |
Definition at line 337 of file Triangulation.h.
|
inlinevirtual |
Called when inserting a constraint edge causes polygon containing triangles to be re-triangulated @tris triangles in the polygon that will be re-triangulated and triangles re-purposed.
Definition at line 374 of file Triangulation.h.