Loading...
Searching...
No Matches
trianglePoint.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_STRUCTURE_TRIANGLEPOINT_H
#define BALL_STRUCTURE_TRIANGLEPOINT_H
#ifndef BALL_MATHS_VECTOR3_H
# include <BALL/MATHS/vector3.h>
#endif
#ifndef BALL_STRUCTURE_GRAPHEDGE_H
# include <BALL/STRUCTURE/graphEdge.h>
#endif
#ifndef BALL_STRUCTURE_GRAPHFACE_H
# include <BALL/STRUCTURE/graphFace.h>
#endif
#ifndef BALL_STRUCTURE_GRAPHVERTEX_H
# include <BALL/STRUCTURE/graphVertex.h>
#endif
namespace BALL
{
class TriangleEdge;
class Triangle;
class TriangulatedSurface;
class TriangulatedSphere;
class TriangulatedSES;
class SESTriangulator;
class TriangulatedSAS;
class SASTriangulator;
class BALL_EXPORT TrianglePoint
: public GraphVertex< TrianglePoint,TriangleEdge,Triangle >
{
public:
friend class Triangle;
friend class TriangleEdge;
friend class TriangulatedSurface;
friend class TriangulatedSphere;
friend class TriangulatedSES;
friend class SESTriangulator;
friend class TriangulatedSAS;
friend class SASTriangulator;
BALL_CREATE(TrianglePoint)
TrianglePoint()
;
TrianglePoint(const TVector3<double>& point, const TVector3<double>& normal = TVector3<double>(0.));
TrianglePoint(const TrianglePoint& point, bool deep = false)
;
virtual ~TrianglePoint()
;
void set(const TrianglePoint& point, bool deep = false)
;
TrianglePoint& operator = (const TrianglePoint& point)
;
TVector3<double> getPoint() const
;
void setPoint(const TVector3<double>& point)
;
TVector3<double> getNormal() const
;
void setNormal(const TVector3<double>& normal);
virtual bool operator == (const TrianglePoint& point) const
;
virtual bool operator != (const TrianglePoint& point) const
;
virtual bool operator *= (const TrianglePoint& point) const
;
protected:
/*_ The point itself
*/
TVector3<double> point_;
/*_ The normal vector of the point
*/
TVector3<double> normal_;
};
BALL_EXPORT std::ostream& operator << (std::ostream& s, const TrianglePoint& point);
} // namespace BALL
#endif // BALL_STRUCTURE_TRIANGLEPOINT_H
BALL_EXPORT
#define BALL_EXPORT
Definition COMMON/global.h:50
BALL::GraphVertex< TrianglePoint, TriangleEdge, Triangle >::GraphVertex
GraphVertex()
Definition graphVertex.h:275
BALL::SASTriangulator
Definition triangulatedSAS.h:161
BALL::SESTriangulator
Definition triangulatedSES.h:164
BALL::TVector3
Definition vector3.h:71
BALL::TriangleEdge
Definition triangleEdge.h:39
BALL::TrianglePoint
Definition trianglePoint.h:43
BALL::TrianglePoint::setPoint
void setPoint(const TVector3< double > &point)
BALL::TrianglePoint::getNormal
TVector3< double > getNormal() const
BALL::TrianglePoint::SESTriangulator
friend class SESTriangulator
Definition trianglePoint.h:64
BALL::TrianglePoint::SASTriangulator
friend class SASTriangulator
Definition trianglePoint.h:66
BALL::TrianglePoint::TrianglePoint
TrianglePoint()
BALL::TrianglePoint::TriangulatedSphere
friend class TriangulatedSphere
Definition trianglePoint.h:62
BALL::TrianglePoint::normal_
TVector3< double > normal_
Definition trianglePoint.h:186
BALL::TrianglePoint::setNormal
void setNormal(const TVector3< double > &normal)
BALL::TrianglePoint::point_
TVector3< double > point_
Definition trianglePoint.h:183
BALL::TrianglePoint::TriangulatedSurface
friend class TriangulatedSurface
Definition trianglePoint.h:61
BALL::TrianglePoint::TriangulatedSAS
friend class TriangulatedSAS
Definition trianglePoint.h:65
BALL::TrianglePoint::TriangulatedSES
friend class TriangulatedSES
Definition trianglePoint.h:63
BALL::TrianglePoint::getPoint
TVector3< double > getPoint() const
BALL::TrianglePoint::Triangle
friend class Triangle
Definition trianglePoint.h:59
BALL::TrianglePoint::TriangleEdge
friend class TriangleEdge
Definition trianglePoint.h:60
BALL::TrianglePoint::set
void set(const TrianglePoint &point, bool deep=false)
BALL::Triangle
Definition triangle.h:39
BALL::TriangulatedSAS
Definition triangulatedSAS.h:63
BALL::TriangulatedSES
Definition triangulatedSES.h:55
BALL::TriangulatedSphere
Definition triangulatedSurface.h:388
BALL::TriangulatedSurface
Definition triangulatedSurface.h:41
BALL_CREATE
#define BALL_CREATE(name)
Definition create.h:62
graphEdge.h
graphFace.h
graphVertex.h
BALL
Definition constants.h:13
std
STL namespace.
vector3.h