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

Triangle Class Reference
[Molecular Surface Computation]

Generic TriangleEdge Class. More...

#include <triangle.h>

Inheritance diagram for Triangle:

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

Public Member Functions

Constructors and Destructors
 Triangle () throw ()
 Default constructor.
 Triangle (const Triangle &triangle, bool deep=false) throw ()
 Copy constructor.
virtual ~Triangle () throw ()
 Destructor.
Assignments
void set (const Triangle &triangle, bool deep=false) throw ()
 Assign from another Triangle.
Triangleoperator= (const Triangle &triangle) throw ()
 Assign from another Triangle.
Accessors
void setPoint (Position i, TrianglePoint *point) throw (Exception::IndexOverflow)
 Set one of the three points of the Triangle.
TrianglePointgetPoint (Position i) const throw (Exception::IndexOverflow)
 Return one of the three points of the Triangle.
void remove (TriangleEdge *edge) throw ()
 Remove an edge from the Triangle.
Predicates
virtual bool operator== (const Triangle &) const throw ()
 Equality operator.
virtual bool operator!= (const Triangle &) const throw ()
 Inequality operator.
virtual bool operator *= (const Triangle &) const throw ()
 Similarity operator.

Friends

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


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

Detailed Description

Generic TriangleEdge Class.


Constructor & Destructor Documentation

Triangle::Triangle  )  throw ()
 

Default constructor.

This method creates a new Triangle object.

Triangle::Triangle const Triangle triangle,
bool  deep = false
throw ()
 

Copy constructor.

Create a new Triangle object from another.

Parameters:
triangle the Triangle object to be copied
deep if deep = false, all pointers are set to NULL (default). Otherwise the new Triangle object is linked to the neighbours of the old Triangle object.

virtual Triangle::~Triangle  )  throw () [virtual]
 

Destructor.

Destructs the Triangle object.


Member Function Documentation

TrianglePoint* Triangle::getPoint Position  i  )  const throw (Exception::IndexOverflow)
 

Return one of the three points of the Triangle.

Parameters:
i the relative index of the point which should be given back. If i is greater three, an exception is thrown.
Returns:
TrianglePoint* a pointer to the asked point

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

Similarity operator.

Returns:
true

Reimplemented from GraphTriangle< TrianglePoint, TriangleEdge, Triangle >.

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

Inequality operator.

Returns:
false

Reimplemented from GraphTriangle< TrianglePoint, TriangleEdge, Triangle >.

Triangle& Triangle::operator= const Triangle triangle  )  throw ()
 

Assign from another Triangle.

The Triangle object is linked to the neighbours of the Triangle object to assign from

Parameters:
triangle the Triangle object to assign from

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

Equality operator.

Returns:
true

Reimplemented from GraphTriangle< TrianglePoint, TriangleEdge, Triangle >.

void Triangle::remove TriangleEdge edge  )  throw ()
 

Remove an edge from the Triangle.

The edge is set to NULL.

Parameters:
edge the edge to delete

void Triangle::set const Triangle triangle,
bool  deep = false
throw ()
 

Assign from another Triangle.

Parameters:
triangle the Triangle object to assign from
deep if deep = false, all pointers are set to NULL (default). Otherwise the Triangle object is linked to the neighbours of the Triangle object to assign from

void Triangle::setPoint Position  i,
TrianglePoint point
throw (Exception::IndexOverflow)
 

Set one of the three points of the Triangle.

Parameters:
i the relative index of the point which should be set. If i is greater three, an exception is thrown.
point a pointer to the new point