#include <graphEdge.h>
Public Member Functions | |
Constructors and Destructors | |
GraphEdge () throw () | |
Default constructor. | |
GraphEdge (const GraphEdge< Vertex, Edge, Face > &edge, bool deep=false) throw () | |
Copy constructor. | |
GraphEdge (Vertex *vertex1, Vertex *vertex2, Face *face1, Face *face2, Index index) throw () | |
Detailled constructor. | |
virtual | ~GraphEdge () throw () |
Destructor. | |
Assignment | |
void | set (const GraphEdge< Vertex, Edge, Face > &edge, bool deep=false) throw () |
Assign from another GraphEdge. | |
GraphEdge< Vertex, Edge, Face > & | operator= (const GraphEdge< Vertex, Edge, Face > &edge) throw () |
Assign from another GraphEdge. | |
void | set (Vertex *vertex0, Vertex *vertex1, Face *face0, Face *face1, Index index) throw () |
Assign from a lot of nice objects. | |
Accessors | |
void | setVertex (Position i, Vertex *vertex) throw () |
Set one of the two vertices of the GraphEdge. | |
Vertex * | getVertex (Position i) const throw () |
Return one of the two vertices of the GraphEdge. | |
void | setFace (Position i, Face *face) throw () |
Set one of the two faces of the GraphEdge. | |
Face * | getFace (Position i) const throw () |
Return one of the two faces of the GraphEdge. | |
void | setIndex (Index index) throw () |
Set the index of the GraphEdge. | |
Index | getIndex () const throw () |
Return the index of the GraphEdge. | |
Vertex * | other (const Vertex *vertex) const throw (Exception::GeneralException) |
Return a pointer to the other vertex of the GraphEdge. | |
Face * | other (const Face *face) const throw (Exception::GeneralException) |
Return a pointer to the other face of the GraphEdge. | |
bool | substitute (const Vertex *old_vertex, Vertex *new_vertex) throw () |
Substitute a vertex by an other one. | |
bool | substitute (const Face *old_vertex, Face *new_vertex) throw () |
Substitute a face by an other one. | |
Face * | remove (const Face *face) throw () |
Delete a face of the GraphEdge. | |
void | revert () throw () |
Predicates | |
virtual bool | operator== (const Edge &) const throw () |
Equality operator. | |
virtual bool | operator!= (const Edge &) const throw () |
Inequality operator. | |
virtual bool | operator *= (const Edge &) const throw () |
Similarity operator. | |
Protected Attributes | |
Vertex * | vertex_ [2] |
Face * | face_ [2] |
Index | index_ |
Friends | |
Class friends | |
| |
class | GraphVertex<Vertex,Edge,Face> |
class | GraphFace<Vertex,Edge,Face> |
class | GraphTriangle<Vertex,Edge,Face> |
|
Default constructor. This method creates a new GraphEdge object. |
|
Copy constructor. Create a new GraphEdge object from another. |
|
Detailled constructor. Create a new GraphEdge object from a lot of nice objects
|
|
Destructor. Destructs the GraphEdge object. The neighboured faces and vertices are {/bf not} destructed. |
|
Return one of the two faces of the GraphEdge.
|
|
Return the index of the GraphEdge.
|
|
Return one of the two vertices of the GraphEdge.
|
|
Similarity operator.
Reimplemented in RSEdge, SASEdge, SESEdge, and TriangleEdge. |
|
Inequality operator.
Reimplemented in RSEdge, SASEdge, SESEdge, and TriangleEdge. |
|
Assign from another GraphEdge. The GraphEdge object is linked to the neighbours of the GraphEdge object to assign from.
|
|
Equality operator.
Reimplemented in RSEdge, SASEdge, SESEdge, and TriangleEdge. |
|
Return a pointer to the other face of the GraphEdge. If the given face is not neighboured to the GraphEdge, an exception is thrown.
|
|
Return a pointer to the other vertex of the GraphEdge. If the given vertex is not incident to the GraphEdge, an exception is thrown.
|
|
Delete a face of the GraphEdge. If the second face of the GraphEdge should be deleted, it is set to NULL. If the first one should be deleted, the second one is copied to first position and then set to NULL.
|
|
Assign from a lot of nice objects.
|
|
Assign from another GraphEdge.
|
|
Set one of the two faces of the GraphEdge.
|
|
Set the index of the GraphEdge.
|
|
Set one of the two vertices of the GraphEdge.
|
|
Substitute a face by an other one.
|
|
Substitute a vertex by an other one.
|