#include <graphFace.h>
Public Member Functions | |
Constructors and Destructors | |
GraphTriangle () throw () | |
Default constructor. | |
GraphTriangle (const GraphTriangle< Vertex, Edge, Face > &face, bool deep=false) throw () | |
Copy constructor. | |
GraphTriangle (Vertex *vertex1, Vertex *vertex2, Vertex *vertex3, Edge *edge1, Edge *edge2, Edge *edge3, Index index) throw () | |
Detailled constructor. | |
virtual | ~GraphTriangle () throw () |
Destructor. | |
Assignment | |
void | set (const GraphTriangle< Vertex, Edge, Face > &face, bool deep=false) throw () |
Assign from another GraphTriangle. | |
GraphTriangle< Vertex, Edge, Face > & | operator= (const GraphTriangle< Vertex, Edge, Face > &face) throw () |
Assign from another GraphTriangle. | |
void | set (Vertex *vertex1, Vertex *vertex2, Vertex *vertex3, Edge *edge1, Edge *edge2, Edge *edge3, Index index) throw () |
Assign to a lot of nice objects. | |
Accessors | |
void | setVertex (Position i, Vertex *vertex) throw (Exception::IndexOverflow) |
Set one of the vertices of the GraphTriangle. | |
Vertex * | getVertex (Position i) const throw (Exception::IndexOverflow) |
Return one of the vertices of the GraphTriangle. | |
void | setEdge (Position i, Edge *edge) throw (Exception::IndexOverflow) |
Set one of the edges of the GraphTriangle. | |
Edge * | getEdge (Position i) const throw (Exception::IndexOverflow) |
Return one of the edges of the GraphTriangle. | |
void | setIndex (Index index) throw () |
Set the index of the GraphTriangle. | |
Index | getIndex () const throw () |
Return the index of the GraphTriangle. | |
bool | getEdges (const Vertex *vertex, Edge *&edge1, Edge *&edge2) const throw () |
Find the two edges of the GraphTriangle that belong to the given vertex. | |
bool | getEdge (const Vertex *vertex1, const Vertex *vertex2, Edge *&edge) const throw () |
Find the edge of the GraphTriangle that belongs to the two given vertices. | |
Index | getSimilarEdge (const Edge *edge, Edge *&similar_edge) const throw () |
Find the edge of the GraphFace that is similar to the given edge. | |
Index | getRelativeIndex (const Vertex *vertex) const throw () |
Return the relative index of a vertex in the GraphTriangle. | |
Index | getRelativeIndex (const Edge *edge) const throw () |
Return the relative index of an edge in the GraphTriangle. | |
Vertex * | third (const Vertex *v1, const Vertex *v2) const throw () |
Return a pointer to the third vertex of the GraphTriangle. | |
Edge * | third (const Edge *e1, const Edge *e2) const throw () |
Return a pointer to the third edge of the GraphTriangle. | |
Edge * | getOppositeEdge (const Vertex *vertex) const throw () |
Get the edge of the GraphFace which lies on the opposite side of the given vertex. | |
Vertex * | getOppositeVertex (const Edge *edge) const throw () |
Get the vertex of the GraphFace which lies on the opposite side of the given edge. | |
bool | substitute (const Vertex *old_vertex, Vertex *new_vertex) throw () |
Substitute a vertex by an other one. | |
bool | substitute (const Edge *old_edge, Edge *new_edge) throw () |
Substitute an edge by an other one. | |
Predicates | |
virtual bool | operator== (const Face &) const throw () |
Equality operator. | |
virtual bool | operator!= (const Face &) const throw () |
Inequality operator. | |
virtual bool | operator *= (const Face &) const throw () |
Similarity operator. | |
Vertex * | has (Vertex *vertex) const throw () |
Test whether a vertex is meber of the face. | |
Edge * | has (Edge *edge) const throw () |
Test whether an edge is meber of the face. | |
Protected Attributes | |
Vertex * | vertex_ [3] |
Edge * | edge_ [3] |
Index | index_ |
Friends | |
Class friends | |
| |
class | GraphVertex<Vertex,Edge,Face> |
class | GraphEdge<Vertex,Edge,Face> |
|
Default constructor. This method creates a new GraphTriangle object. |
|
Copy constructor. Create a new GraphTriangle object from another.
|
|
Detailled constructor. Create a new GraphTriangle object from some nice objects
|
|
Destructor. Destructs the GraphTriangle object. |
|
Find the edge of the GraphTriangle that belongs to the two given vertices.
|
|
Return one of the edges of the GraphTriangle.
|
|
Find the two edges of the GraphTriangle that belong to the given vertex.
|
|
Return the index of the GraphTriangle.
|
|
Get the edge of the GraphFace which lies on the opposite side of the given vertex.
|
|
Get the vertex of the GraphFace which lies on the opposite side of the given edge.
|
|
Return the relative index of an edge in the GraphTriangle.
|
|
Return the relative index of a vertex in the GraphTriangle.
|
|
Find the edge of the GraphFace that is similar to the given edge.
|
|
Return one of the vertices of the GraphTriangle.
|
|
Test whether an edge is meber of the face.
|
|
Test whether a vertex is meber of the face.
|
|
Similarity operator.
|
|
Inequality operator.
|
|
Assign from another GraphTriangle. The GraphTriangle object is linked to the neighbours of the GraphTriangle object to assifgn from.
|
|
Equality operator.
|
|
Assign to a lot of nice objects.
|
|
Assign from another GraphTriangle.
|
|
Set one of the edges of the GraphTriangle.
|
|
Set the index of the GraphTriangle.
|
|
Set one of the vertices of the GraphTriangle.
|
|
Substitute an edge by an other one.
|
|
Substitute a vertex by an other one.
|
|
Return a pointer to the third edge of the GraphTriangle.
|
|
Return a pointer to the third vertex of the GraphTriangle.
|