/usr/include/BALL/STRUCTURE/RSEdge.h is in libball1.4-dev 1.4.1+20111206-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 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 | // -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_STRUCTURE_RSEDGE_H
#define BALL_STRUCTURE_RSEDGE_H
#ifndef BALL_STRUCTURE_GRAPHEDGE_H
# include <BALL/STRUCTURE/graphEdge.h>
#endif
#ifndef BALL_MATHS_ANGLE_H
# include <BALL/MATHS/angle.h>
#endif
#ifndef BALL_MATHS_CIRCLE3_H
# include <BALL/MATHS/circle3.h>
#endif
#ifndef BALL_MATHS_VECTOR3_H
# include <BALL/MATHS/vector3.h>
#endif
namespace BALL
{
class RSFace;
class RSVertex;
class ReducedSurface;
class RSComputer;
class SESEdge;
class SESFace;
class SESVertex;
class SolventExcludedSurface;
class SESComputer;
class SESSingularityCleaner;
class TriangulatedSES;
class SESTriangulator;
class SASEdge;
class SASFace;
class SASVertex;
class SolventAccessibleSurface;
class TriangulatedSAS;
class SASTriangulator;
/** Generic RSEdge Class.
\ingroup Surface
*/
class BALL_EXPORT RSEdge : public GraphEdge< RSVertex,RSEdge,RSFace >
{
public:
/** @name Class friends
- class RSFace
- class RSVertex
- class ReducedSurface
- class RSComputer
- class SESEdge
- class SESFace
- class SESVertex
- class SolventExcludedSurface
- class SESComputer
- class TSESSingularityCleaner
- class TriangulatedSES
- class SESTriangulator
- class SASEdge
- class SASFace
- class SASVertex
\itme class SolventAccessibleSurface
- class TriangulatedSAS
- class SASTriangulator
*/
friend class RSFace;
friend class RSVertex;
friend class ReducedSurface;
friend class RSComputer;
friend class SESEdge;
friend class SESFace;
friend class SESVertex;
friend class SolventExcludedSurface;
friend class SESComputer;
friend class SESSingularityCleaner;
friend class TriangulatedSES;
friend class SESTriangulator;
friend class SASEdge;
friend class SASFace;
friend class SolventAccessibleSurface;
friend class SASVertex;
friend class TriangulatedSAS;
friend class SASTriangulator;
BALL_CREATE(RSEdge)
/** @name Constructors and Destructors
*/
//@{
/** Default constructor.
This method creates a new RSEdge object.
*/
RSEdge()
;
/** Copy constructor.
Create a new RSEdge object from another.
@param rsedge the RSEdge object to be copied
@param deep if deep = false, all pointers are set to NULL
(default). Otherwise the new RSEdge object is linked
to the neighbours of the old RSEdge object.
*/
RSEdge(const RSEdge& rsedge, bool deep = false)
;
/** Detailled constructor.
Create a new RSEdge object from a lot of nice objects
@param vertex1 assigned to the first vertex
@param vertex2 assigned to the second vertex
@param face1 assigned to the first face
@param face2 assigned to the second face
@param center_of_torus assigned to the center of the torus
@param radius_of_torus assigned to the radius of the torus
@param angle assigned to th angle
@param circle1 assigned to the first contact circle
@param circle2 assigned to the second contact circle
@param intersection_point1 assigned to the first intersection point
(in singular case)
@param intersection_point2 assigned to the second intersection point
(in singular case)
@param singular
@param index assigned to the index
*/
RSEdge(RSVertex* vertex1,
RSVertex* vertex2,
RSFace* face1,
RSFace* face2,
const TVector3<double>& center_of_torus,
const double& radius_of_torus,
const TAngle<double>& angle,
const TCircle3<double>& circle1,
const TCircle3<double>& circle2,
const TVector3<double>& intersection_point1,
const TVector3<double>& intersection_point2,
bool singular,
Index index)
;
/** Destructor.
Destructs the RSEdge object.
The neighboured faces and vertices are {/bf not} destructed.
*/
virtual ~RSEdge()
;
//@}
/** @name Assignment
*/
//@{
/** Assign from another RSEdge.
@param rsedge the RSEdge object to assign from
@param deep if deep = false, all pointers are set to NULL
(default). Otherwise the RSEdge object is linked to
the neighbours of the RSEdge object to assign from.
*/
void set(const RSEdge& rsedge, bool deep = false)
;
/** Assign from another RSEdge.
The RSEdge object is linked to the neighbours of the RSEdge object to
assign from.
@param rsedge the RSEdge object to assign from
*/
RSEdge& operator = (const RSEdge& rsedge)
;
/** Assign from a lot of 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 center_of_torus assigned to the center of the torus
@param radius_of_torus assigned to the radius of the torus
@param angle assigned to th angle
@param circle0 assigned to the first contact circle
@param circle1 assigned to the second contact circle
@param intersection_point0 assigned to the first intersection point
(in singular case)
@param intersection_point1 assigned to the second intersection point
(in singular case)
@param singular
@param index assigned to the index
*/
void set(RSVertex* vertex0,
RSVertex* vertex1,
RSFace* face0,
RSFace* face1,
const TVector3<double>& center_of_torus,
const double& radius_of_torus,
const TAngle<double>& angle,
const TCircle3<double>& circle0,
const TCircle3<double>& circle1,
const TVector3<double>& intersection_point0,
const TVector3<double>& intersection_point1,
bool singular,
Index index)
;
//@}
/** @name Accessors
*/
//@{
/** Set the center of the torus.
Set the center of the torus described by the probe sphere when it
rolls over the RSEdge.
@param center the new center
*/
void setCenterOfTorus(const TVector3<double>& center)
;
/** Return the center of the torus.
Return the center of the torus described by the probe sphere
when it rolls over the RSEdge.
@return TVector3<double> the center of the torus
*/
TVector3<double> getCenterOfTorus() const
;
/** Set the major radius of the torus.
Set the major radius of the torus described by the probe sphere
when it rolls over the RSEdge.
@param radius the new radius
*/
void setMajorRadiusOfTorus(const double& radius)
;
/** Return the major radius of the torus.
Return the major radius of the torus described by the probe sphere
when it rolls over the RSEdge.
@return TVector3<double> the major radius of the torus
*/
double getMajorRadiusOfTorus() const
;
/** Set the rotation angle.
Set the rotation angle between the starting and ending position of
the probe sphere when it rolls over the RSEdge.
@param angle the new rotation angle
*/
void setAngle(const TAngle<double>& angle)
;
/** Return the rotation angle.
Return the rotation angle between the starting and ending position
of the probe sphere when it rolls over the RSEdge.
@return TAngle<double> the rotation angle
*/
TAngle<double> getAngle() const
;
/** Set one of the two contact circles.
Set one of the two contact circles of the probe sphere with the two
RSVertices.
@param i the first contact circle is changed if i = 0,
the second otherwise
@param circle the new contact circle
*/
void setContactCircle(Position i, const TCircle3<double>& circle)
;
/** Return one of the the contact circles.
Return one of the the contact circles of the probe sphere with the
two RSVertices
@param i
@return TCircle3<double> the contact circle with the first RSVertex
if i = 0, the contact circle with the second
RSVertex otherwise
*/
TCircle3<double> getContactCircle(Position i) const
;
/** Set one of the intersection points.
Set one of the intersection points of the probe sphere with the RSEdge.
@param i the first intersection point is changed if i = 0,
the second otherwise
@param point the new intersection point
*/
void setIntersectionPoint(Position i, const TVector3<double>& point)
;
/** Return one of the intersection points.
Return one of the intersection points of the probe sphere
with the RSEdge. If the RSEdge not is singular, an exception
is thrown.
@return TVector3<double> the intersection point near to the first
RSVertex if i = 0, the intersection point near
to the second RSVertex otherwise
*/
TVector3<double> getIntersectionPoint(Position i) const
throw(Exception::GeneralException);
/** Set singular
*/
void setSingular(bool singular)
;
//@}
/** @name Predicates
*/
//@{
/** Equality operator.
@return bool, <b>true</b> if all vertices and all faces are equal
modulo order, <b>false</b> otherwise
*/
virtual bool operator == (const RSEdge& rsedge) const
;
/** Inequality operator.
@return bool <b>false</b> if all vertices and all faces are equal
modulo order, <b>true</b> otherwise
*/
virtual bool operator != (const RSEdge& rsedge) const
;
/** Similarity operator.
@return bool <b>true</b> if all vertices are similar modulo order,
<b>false</b> otherwise
*/
virtual bool operator *=(const RSEdge& rsedge) const
;
/** isSingular
@return bool <b>true</b> if the RSEdge is singular,
<b>false</b> otherwise
*/
bool isSingular() const
;
/** isFree
@return bool <b>true</b> if the RSEdge is free, <b>false</b> otherwise
*/
bool isFree() const
;
//@}
protected:
/*_ @name Attributes
*/
//@{
/*_ The center of the torus described by the probe when ir rolls over
the RSEdge
*/
TVector3<double> center_of_torus_;
/*_ The major radius of the torus described by the probe when ir rolls
over the RSEdge
*/
double radius_of_torus_;
/*_ The rotation angle between the starting and ending position of the
probe sphere when it rolls over the RSEdge
*/
TAngle<double> angle_;
/*_ The contact circle of the probe sphere with the first RSVertex
*/
TCircle3<double> circle0_;
/*_ The contact circle of the probe sphere with the second RSVertex
*/
TCircle3<double> circle1_;
/*_ The intersection point of the probe sphere with the RSEdge near to
the first RSVertex (in singular case).
*/
TVector3<double> intersection_point0_;
/*_ The intersection point of the probe sphere with the RSEdge near to
the second RSVertex (in singular case).
*/
TVector3<double> intersection_point1_;
/*_ singular
*/
bool singular_;
//@}
};
/** @name Storers
*/
//@{
/** Output- Operator
*/
BALL_EXPORT std::ostream& operator << (std::ostream& s, const RSEdge& rsedge);
//@}
} // namespace BALL
#endif // BALL_STRUCTURE_RSEDGE_H
|