BALL::TrianglePoint Class Reference
[Molecular Surface Computation]

#include <BALL/STRUCTURE/trianglePoint.h>

Inheritance diagram for BALL::TrianglePoint:
BALL::GraphVertex< TrianglePoint, TriangleEdge, Triangle >

List of all members.


Public Member Functions

Constructors and Destructors
 TrianglePoint ()
 TrianglePoint (const TVector3< double > &point, const TVector3< double > &normal=TVector3< double >(0.))
 TrianglePoint (const TrianglePoint &point, bool deep=false)
virtual ~TrianglePoint ()
Assignments
void set (const TrianglePoint &point, bool deep=false)
TrianglePointoperator= (const TrianglePoint &point)
Accessors
TVector3< doublegetPoint () const
void setPoint (const TVector3< double > &point)
TVector3< doublegetNormal () const
void setNormal (const TVector3< double > &normal) throw (Exception::DivisionByZero)
Predicates
virtual bool operator== (const TrianglePoint &point) const
virtual bool operator!= (const TrianglePoint &point) const
virtual bool operator*= (const TrianglePoint &point) const

Protected Attributes

TVector3< doublepoint_
TVector3< doublenormal_

Friends

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

Detailed Description

Generic TriangleEdge Class.


Constructor & Destructor Documentation

BALL::TrianglePoint::TrianglePoint (  ) 

Default constructor. This method creates a new TrianglePoint object.

BALL::TrianglePoint::TrianglePoint ( const TVector3< double > &  point,
const TVector3< double > &  normal = TVector3double >(0.) 
)

Detailed constructor. This method creates a new TrianglePoint object with the given point and normal.

BALL::TrianglePoint::TrianglePoint ( const TrianglePoint point,
bool  deep = false 
)

Copy constructor. Create a new TrianglePoint object from another.

Parameters:
point the TrianglePoint object to be copied
deep if deep = false, all pointers are set to NULL (default). Otherwise the new TrianglePoint object is linked to the neighbours of the old TrianglePoint object.
virtual BALL::TrianglePoint::~TrianglePoint (  )  [virtual]

Destructor. Destructs the TrianglePoint object.


Member Function Documentation

TVector3<double> BALL::TrianglePoint::getNormal (  )  const

Get the normal of the TrianglePoint

TVector3<double> BALL::TrianglePoint::getPoint (  )  const

Get the point

virtual bool BALL::TrianglePoint::operator!= ( const TrianglePoint point  )  const [virtual]

Inequality operator

Returns:
bool false if the TrianglePoints lie on the same point, true otherwise.

Reimplemented from BALL::GraphVertex< TrianglePoint, TriangleEdge, Triangle >.

virtual bool BALL::TrianglePoint::operator*= ( const TrianglePoint point  )  const [virtual]

Similarity operator

Returns:
bool true if the TrianglePoints lie on the same point, false otherwise.

Reimplemented from BALL::GraphVertex< TrianglePoint, TriangleEdge, Triangle >.

TrianglePoint& BALL::TrianglePoint::operator= ( const TrianglePoint point  ) 

Assign from another TrianglePoint. The new TrianglePoint object is linked to the neighbours of the TrianglePoint object to assign from.

Parameters:
point the TrianglePoint object to assign from
virtual bool BALL::TrianglePoint::operator== ( const TrianglePoint point  )  const [virtual]

Equality operator

Returns:
bool true if the TrianglePoints lie on the same point, false otherwise.

Reimplemented from BALL::GraphVertex< TrianglePoint, TriangleEdge, Triangle >.

void BALL::TrianglePoint::set ( const TrianglePoint point,
bool  deep = false 
)

Assign from another TrianglePoint.

Parameters:
point the TrianglePoint object to assign from
deep if deep = false, all pointers are set to NULL (default). Otherwise the new TrianglePoint object is linked to the neighbours of the TrianglePoint object to assign from.
void BALL::TrianglePoint::setNormal ( const TVector3< double > &  normal  )  throw (Exception::DivisionByZero)

Set the normal of the TrianglePoint

void BALL::TrianglePoint::setPoint ( const TVector3< double > &  point  ) 

Set the point


Friends And Related Function Documentation

friend class SASTriangulator [friend]
friend class SESTriangulator [friend]
friend class Triangle [friend]
friend class TriangleEdge [friend]
friend class TriangulatedSAS [friend]
friend class TriangulatedSES [friend]
friend class TriangulatedSphere [friend]
friend class TriangulatedSurface [friend]

Member Data Documentation