Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

TriangleEdge Class Reference
[Molecular Surface Computation]

Generic TriangleEdge Class. More...

#include <triangleEdge.h>

Inheritance diagram for TriangleEdge:

GraphEdge< TrianglePoint, TriangleEdge, Triangle > List of all members.

Public Member Functions

Constructors and Destructors
 TriangleEdge () throw ()
 Default constructor.
 TriangleEdge (const TriangleEdge &edge, bool deep=false) throw ()
 Copy constructor.
virtual ~TriangleEdge () throw ()
 Destructor.
Accessors
void setPoint (Position i, TrianglePoint *point) throw ()
 Set one of the two points of the TriangleEdge.
TrianglePointgetPoint (Position i) const throw ()
 Return one of the two points of the TriangleEdge.
void setTriangle (Position i, Triangle *triangle) throw ()
 Set one of the two triangles of the TriangleEdge.
TrianglegetTriangle (Position i) const throw ()
 Return one of the two triangles of the TriangleEdge.
Predicates
virtual bool operator== (const TriangleEdge &) const throw ()
 Equality operator.
virtual bool operator!= (const TriangleEdge &) const throw ()
 Inequality operator.
virtual bool operator *= (const TriangleEdge &) const throw ()
 Similarity operator.

Friends

Class friends
  • class Triangle - class TriangleEdge - class TriangulatedSurface - class TriangulatedSphere - class TriangulatedSES - class TriangulatedSAS - class SESTriangulator - class SASTriangulator


class Triangle
class TrianglePoint
class TriangulatedSurface
class TriangulatedSphere
class TriangulatedSES
class TriangulatedSAS
class SESTriangulator
class SASTriangulator

Detailed Description

Generic TriangleEdge Class.


Constructor & Destructor Documentation

TriangleEdge::TriangleEdge  )  throw ()
 

Default constructor.

This method creates a new TriangleEdge object.

TriangleEdge::TriangleEdge const TriangleEdge edge,
bool  deep = false
throw ()
 

Copy constructor.

Create a new TriangleEdge object from another.

Parameters:
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 TriangleEdge::~TriangleEdge  )  throw () [virtual]
 

Destructor.

Destructs the TriangleEdge object.


Member Function Documentation

TrianglePoint* TriangleEdge::getPoint Position  i  )  const throw ()
 

Return one of the two points of the TriangleEdge.

Parameters:
i 
Returns:
TrianglePoint* a pointer to the first point if i = 0, a pointer to the second point otherwise

Triangle* TriangleEdge::getTriangle Position  i  )  const throw ()
 

Return one of the two triangles of the TriangleEdge.

Parameters:
i 
Returns:
Triangle* a pointer to the first triangle if i = 0, a pointer to the second triangle otherwise

virtual bool TriangleEdge::operator *= const TriangleEdge  )  const throw () [virtual]
 

Similarity operator.

Returns:
bool true

Reimplemented from GraphEdge< TrianglePoint, TriangleEdge, Triangle >.

virtual bool TriangleEdge::operator!= const TriangleEdge  )  const throw () [virtual]
 

Inequality operator.

Returns:
bool false if the vertices are similar, true otherwise.

Reimplemented from GraphEdge< TrianglePoint, TriangleEdge, Triangle >.

virtual bool TriangleEdge::operator== const TriangleEdge  )  const throw () [virtual]
 

Equality operator.

Returns:
bool true if the vertices are similar, false otherwise.

Reimplemented from GraphEdge< TrianglePoint, TriangleEdge, Triangle >.

void TriangleEdge::setPoint Position  i,
TrianglePoint point
throw ()
 

Set one of the two points of the TriangleEdge.

Parameters:
i the first point is changed if i = 0, the second otherwise
point a pointer to the new point

void TriangleEdge::setTriangle Position  i,
Triangle triangle
throw ()
 

Set one of the two triangles of the TriangleEdge.

Parameters:
i change the first triangle, if i = 0, the second otherwise
triangle a pointer to the new triangle