#include <BALL/STRUCTURE/triangleEdge.h>
Public Member Functions | |
Constructors and Destructors | |
TriangleEdge () | |
TriangleEdge (TrianglePoint *v1, TrianglePoint *v2) | |
TriangleEdge (const TriangleEdge &edge, bool deep=false) | |
virtual | ~TriangleEdge () |
Accessors | |
void | setPoint (Position i, TrianglePoint *point) |
TrianglePoint * | getPoint (Position i) const |
void | setTriangle (Position i, Triangle *triangle) |
Triangle * | getTriangle (Position i) const |
Predicates | |
virtual bool | operator== (const TriangleEdge &) const |
virtual bool | operator!= (const TriangleEdge &) const |
virtual bool | operator*= (const TriangleEdge &) const |
Friends | |
Class friends | |
- class Triangle
| |
class | Triangle |
class | TrianglePoint |
class | TriangulatedSurface |
class | TriangulatedSphere |
class | TriangulatedSES |
class | TriangulatedSAS |
class | SESTriangulator |
class | SASTriangulator |
Generic TriangleEdge Class.
Definition at line 37 of file triangleEdge.h.
BALL::TriangleEdge::TriangleEdge | ( | ) |
Default constructor. This method creates a new TriangleEdge object.
BALL::TriangleEdge::TriangleEdge | ( | TrianglePoint * | v1, | |
TrianglePoint * | v2 | |||
) |
Detailed constructor. Creates a new TriangleEdge object connecting the passed TrianglePoint instances.
BALL::TriangleEdge::TriangleEdge | ( | const TriangleEdge & | edge, | |
bool | deep = false | |||
) |
Copy constructor. Create a new TriangleEdge object from another.
edge | the TriangleEdge object to be copied | |
deep | if deep = false, all pointers are set to NULL (default). Otherwise the new TriangleEdge object is linked to the neighbours of the old TriangleEdge object. |
virtual BALL::TriangleEdge::~TriangleEdge | ( | ) | [virtual] |
Destructor. Destructs the TriangleEdge object.
TrianglePoint* BALL::TriangleEdge::getPoint | ( | Position | i | ) | const |
Return one of the two points of the TriangleEdge.
i |
Return one of the two triangles of the TriangleEdge.
i |
virtual bool BALL::TriangleEdge::operator!= | ( | const TriangleEdge & | ) | const [virtual] |
Inequality operator
Reimplemented from BALL::GraphEdge< TrianglePoint, TriangleEdge, Triangle >.
virtual bool BALL::TriangleEdge::operator*= | ( | const TriangleEdge & | ) | const [virtual] |
Similarity operator
Reimplemented from BALL::GraphEdge< TrianglePoint, TriangleEdge, Triangle >.
virtual bool BALL::TriangleEdge::operator== | ( | const TriangleEdge & | ) | const [virtual] |
Equality operator
Reimplemented from BALL::GraphEdge< TrianglePoint, TriangleEdge, Triangle >.
void BALL::TriangleEdge::setPoint | ( | Position | i, | |
TrianglePoint * | point | |||
) |
Set one of the two points of the TriangleEdge.
i | the first point is changed if i = 0, the second otherwise | |
point | a pointer to the new point |
Set one of the two triangles of the TriangleEdge.
i | change the first triangle, if i = 0, the second otherwise | |
triangle | a pointer to the new triangle |
friend class SASTriangulator [friend] |
Definition at line 62 of file triangleEdge.h.
friend class SESTriangulator [friend] |
Definition at line 61 of file triangleEdge.h.
friend class Triangle [friend] |
Definition at line 55 of file triangleEdge.h.
friend class TrianglePoint [friend] |
Definition at line 56 of file triangleEdge.h.
friend class TriangulatedSAS [friend] |
Definition at line 60 of file triangleEdge.h.
friend class TriangulatedSES [friend] |
Definition at line 59 of file triangleEdge.h.
friend class TriangulatedSphere [friend] |
Definition at line 58 of file triangleEdge.h.
friend class TriangulatedSurface [friend] |
Definition at line 57 of file triangleEdge.h.