/usr/include/BALL/STRUCTURE/SESEdge.h is in libball1.4-dev 1.4.3~beta1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 | // -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_STRUCTURE_SESEDGE_H
#define BALL_STRUCTURE_SESEDGE_H
#ifndef BALL_STRUCTURE_GRAPHEDGE_H
# include <BALL/STRUCTURE/graphEdge.h>
#endif
#ifndef BALL_STRUCTURE_RSEDGE_H
# include <BALL/STRUCTURE/RSEdge.h>
#endif
#ifndef BALL_MATHS_CIRCLE3_H
# include <BALL/MATHS/circle3.h>
#endif
namespace BALL
{
class SESFace;
class SESVertex;
class SolventExcludedSurface;
class TriangulatedSES;
class SESComputer;
class SESSingularityCleaner;
class SESTriangulator;
/** Generic SESEdge Class.
\ingroup Surface
*/
class BALL_EXPORT SESEdge : public GraphEdge< SESVertex,SESEdge,SESFace >
{
public:
/** @name Class friends
- class SESFace
- class SESVertex
- class SolventExcludedSurface
- class SESComputer
- class TSESSingularityCleaner
- class TriangulatedSES
- class SESTriangulator
*/
friend class SESFace;
friend class SESVertex;
friend class SolventExcludedSurface;
friend class SESComputer;
friend class SESSingularityCleaner;
friend class TriangulatedSES;
friend class SESTriangulator;
BALL_CREATE(SESEdge)
/** @name Enums
*/
//@{
/** type of SESEdge:
<tt>0</tt> concave
<tt>1</tt> convex
<tt>2</tt> singular
*/
enum Type
{
TYPE_CONCAVE = 0,
TYPE_CONVEX = 1,
TYPE_SINGULAR = 2
};
//@}
/** @name Constructors and Destructors
*/
//@{
/** Default constructor.
This method creates a new SESEdge object.
*/
SESEdge()
;
/** Copy constructor.
Create a new SESEdge object from another.
@param sesedge the SESEdge object to be copied
@param deep if deep = false, all pointers are set to NULL
(default). Otherwise the new SESEdge object is linked
to the neighbours of the old SESEdge object.
*/
SESEdge(const SESEdge& sesedge, bool deep = false)
;
/** Detailled constructor.
Create a new SESEdge object from some nice objects.
@param vertex0 assigned to the first vertex
@param vertex1 assigned to the second vertex
@param face0 assigned to the first face
@param face1 assigned to the second face
@param circle assigned to the circle
@param rsedge assigned to the RSEdge
@param type assigned to the type of the SESEdge
@param index assigned to the index
*/
SESEdge
(SESVertex* vertex0,
SESVertex* vertex1,
SESFace* face0,
SESFace* face1,
const TCircle3<double>& circle,
RSEdge* rsedge,
Type type,
Index index)
;
/** Destructor.
Destructs the SESEdge object.
*/
virtual ~SESEdge()
;
//@}
/** @name Assignment
*/
//@{
/** Assign from another SESEdge.
@param sesedge the SESEdge object to assign from
@param deep if deep = false, all pointers are set to NULL
(default). Otherwise the SESEdge object is linked to
the neighbours of the SESEdge object to assign from.
*/
void set(const SESEdge& sesedge, bool deep = false)
;
/** Assign from another SESEdge.
The SESEdge object is linked to the neighbours of the SESEdge object
to assign from.
@param sesedge the SESEdge object to assign from
*/
SESEdge& operator = (const SESEdge& sesedge)
;
/** Assign from some nice objects.
@param vertex0 assigned to the first vertex
@param vertex1 assigned to the second vertex
@param face0 assigned to the first face
@param face1 assigned to the second face
@param circle assigned to the circle
@param rsedge assigned to the RSEdge
@param type assigned to the type of the SESEdge
@param index assigned to the index
*/
void set(SESVertex* vertex0,
SESVertex* vertex1,
SESFace* face0,
SESFace* face1,
const TCircle3<double>& circle,
RSEdge* rsedge,
Type type,
Index index)
;
//@}
/** @name Accessors
*/
//@{
/** Set the circle on wich the SESEdge lies.
@param center the new circle
*/
void setCircle(const TCircle3<double>& center)
;
/** Return the circle on wich the SESEdge lies.
@return TCircle3<double> the circle of The SESEdge
*/
TCircle3<double> getCircle() const
;
/** Set the corresponding RSEdge.
@param rsedge a pointer to the new RSEdge
*/
void setRSEdge(RSEdge* rsedge)
;
/** Return the corresponding RSEdge.
@return RSEdge* a pointer to th correwsponding RSEdge
*/
RSEdge* getRSEdge() const
;
/** Set the type of the SESEdge.
@param type the new type of the SESEdge
*/
void setType(Type type)
;
/** Get the type of the SESEdge.
@return Type the type of the SESEdge
*/
Type getType() const
;
//@}
/** @name Predicates
*/
//@{
/** Equality operator.
@return bool <b>true</b> if all vertices are equal modulo order,
<b>false</b> otherwise
*/
virtual bool operator == (const SESEdge& sesedge) const
;
/** Inequality operator.
@return bool <b>false</b> if all vertices are equal modulo order,
<b>true</b> otherwise
*/
virtual bool operator != (const SESEdge& sesedge) const
;
/** similarity operator.
@return bool <b>true</b>
*/
virtual bool operator *= (const SESEdge&) const
;
/** isFree.
@return bool <b>true</b> if the RSEdge of the SESEdge is free,
<b>false</b> otherwise
*/
bool isFree() const
;
//@}
protected:
/*_ @name Attributes
*/
//@{
/*_ The circle on which the SESEdge lies.
*/
TCircle3<double> circle_;
/*_ A pointer to the corresponding RSEdge.
*/
RSEdge* rsedge_;
/*_ The type of the SESEdge.
*/
//int type;
Type type_;
//@}
};
/** @name Storers
*/
//@{
/** Output- Operator
*/
BALL_EXPORT std::ostream& operator << (std::ostream& s, const SESEdge& sesedge);
//@}
} // namespace BALL
#endif // BALL_STRUCTURE_SESEDGE_H
|