BALL
1.5.0
include
BALL
STRUCTURE
trianglePoint.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
5
#ifndef BALL_STRUCTURE_TRIANGLEPOINT_H
6
#define BALL_STRUCTURE_TRIANGLEPOINT_H
7
8
#ifndef BALL_MATHS_VECTOR3_H
9
# include <
BALL/MATHS/vector3.h
>
10
#endif
11
12
#ifndef BALL_STRUCTURE_GRAPHEDGE_H
13
# include <
BALL/STRUCTURE/graphEdge.h
>
14
#endif
15
16
#ifndef BALL_STRUCTURE_GRAPHFACE_H
17
# include <
BALL/STRUCTURE/graphFace.h
>
18
#endif
19
20
#ifndef BALL_STRUCTURE_GRAPHVERTEX_H
21
# include <
BALL/STRUCTURE/graphVertex.h
>
22
#endif
23
24
25
namespace
BALL
26
{
27
28
class
TriangleEdge;
29
class
Triangle;
30
class
TriangulatedSurface;
31
class
TriangulatedSphere;
32
class
TriangulatedSES;
33
class
SESTriangulator;
34
class
TriangulatedSAS;
35
class
SASTriangulator;
36
37
41
class
BALL_EXPORT
TrianglePoint
42
:
public
GraphVertex
< TrianglePoint,TriangleEdge,Triangle >
43
{
44
45
public
:
46
59
friend
class
Triangle
;
60
friend
class
TriangleEdge
;
61
friend
class
TriangulatedSurface
;
62
friend
class
TriangulatedSphere
;
63
friend
class
TriangulatedSES
;
64
friend
class
SESTriangulator
;
65
friend
class
TriangulatedSAS
;
66
friend
class
SASTriangulator
;
67
68
BALL_CREATE
(
TrianglePoint
)
69
70
73
77
TrianglePoint
()
78
;
79
84
TrianglePoint
(
const
TVector3<double>
& point,
const
TVector3<double>
& normal =
TVector3<double>
(0.));
85
93
TrianglePoint
(
const
TrianglePoint
& point,
bool
deep =
false
)
94
;
95
99
virtual
~
TrianglePoint
()
100
;
101
103
106
114
void
set(
const
TrianglePoint
& point,
bool
deep =
false
)
115
;
116
122
TrianglePoint
& operator = (
const
TrianglePoint
& point)
123
;
124
126
129
132
TVector3<double>
getPoint()
const
133
;
134
137
void
setPoint(
const
TVector3<double>
& point)
138
;
139
142
TVector3<double>
getNormal
()
const
143
;
144
148
void
setNormal(
const
TVector3<double>
& normal);
149
151
155
160
virtual
bool
operator ==
(
const
TrianglePoint
& point)
const
161
;
162
167
virtual
bool
operator !=
(
const
TrianglePoint
& point)
const
168
;
169
174
virtual
bool
operator *= (
const
TrianglePoint
& point)
const
175
;
176
178
179
protected
:
180
181
/*_ The point itself
182
*/
183
TVector3<double>
point_
;
184
/*_ The normal vector of the point
185
*/
186
TVector3<double>
normal_
;
187
188
};
189
190
194
197
BALL_EXPORT
std::ostream&
operator <<
(std::ostream& s,
const
TrianglePoint
& point);
198
200
201
202
}
// namespace BALL
203
204
205
#endif // BALL_STRUCTURE_TRIANGLEPOINT_H
BALL::TrianglePoint
Definition:
trianglePoint.h:41
BALL::GraphVertex
Definition:
graphEdge.h:18
BALL::operator!=
BALL_EXPORT bool operator!=(const String &s1, const String &s2)
BALL::SESTriangulator
Definition:
triangulatedSES.h:163
vector3.h
graphFace.h
graphVertex.h
BALL::TriangulatedSphere
Definition:
triangulatedSurface.h:387
BALL::TriangulatedSES
Definition:
triangulatedSES.h:54
BALL
Definition:
constants.h:12
BALL::VIEW::getNormal
BALL_VIEW_EXPORT Vector3 getNormal(const Vector3 &v)
BALL::TriangulatedSAS
Definition:
triangulatedSAS.h:62
BALL::TVector3< double >
BALL::TrianglePoint::point_
TVector3< double > point_
Definition:
trianglePoint.h:183
graphEdge.h
BALL::TriangleEdge
Definition:
triangleEdge.h:37
BALL::operator==
BALL_EXPORT bool operator==(const String &s1, const String &s2)
BALL::Triangle
Definition:
triangle.h:37
BALL::operator<<
BALL_EXPORT std::ostream & operator<<(std::ostream &os, const Exception::GeneralException &e)
BALL_CREATE
#define BALL_CREATE(name)
Definition:
create.h:62
BALL_EXPORT
#define BALL_EXPORT
Definition:
COMMON/global.h:50
BALL::TriangulatedSurface
Definition:
triangulatedSurface.h:40
BALL::SASTriangulator
Definition:
triangulatedSAS.h:160
BALL::TrianglePoint::normal_
TVector3< double > normal_
Definition:
trianglePoint.h:186
Generated by
1.8.17