BALL
1.4.1
|
#include <BALL/STRUCTURE/RSEdge.h>
Public Member Functions | |
Constructors and Destructors | |
RSEdge () | |
RSEdge (const RSEdge &rsedge, bool deep=false) | |
RSEdge (RSVertex *vertex1, RSVertex *vertex2, RSFace *face1, RSFace *face2, const TVector3< double > ¢er_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) | |
virtual | ~RSEdge () |
Assignment | |
void | set (const RSEdge &rsedge, bool deep=false) |
RSEdge & | operator= (const RSEdge &rsedge) |
void | set (RSVertex *vertex0, RSVertex *vertex1, RSFace *face0, RSFace *face1, const TVector3< double > ¢er_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) |
Accessors | |
void | setCenterOfTorus (const TVector3< double > ¢er) |
TVector3< double > | getCenterOfTorus () const |
void | setMajorRadiusOfTorus (const double &radius) |
double | getMajorRadiusOfTorus () const |
void | setAngle (const TAngle< double > &angle) |
TAngle< double > | getAngle () const |
void | setContactCircle (Position i, const TCircle3< double > &circle) |
TCircle3< double > | getContactCircle (Position i) const |
void | setIntersectionPoint (Position i, const TVector3< double > &point) |
TVector3< double > | getIntersectionPoint (Position i) const throw (Exception::GeneralException) |
void | setSingular (bool singular) |
Predicates | |
virtual bool | operator== (const RSEdge &rsedge) const |
virtual bool | operator!= (const RSEdge &rsedge) const |
virtual bool | operator*= (const RSEdge &rsedge) const |
bool | isSingular () const |
bool | isFree () const |
Protected Attributes | |
TVector3< double > | center_of_torus_ |
double | radius_of_torus_ |
TAngle< double > | angle_ |
TCircle3< double > | circle0_ |
TCircle3< double > | circle1_ |
TVector3< double > | intersection_point0_ |
TVector3< double > | intersection_point1_ |
bool | singular_ |
Friends | |
Class friends | |
| |
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 | SolventAccessibleSurface |
class | SASVertex |
class | TriangulatedSAS |
class | SASTriangulator |
Default constructor. This method creates a new RSEdge object.
BALL::RSEdge::RSEdge | ( | const RSEdge & | rsedge, |
bool | deep = false |
||
) |
BALL::RSEdge::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 | ||
) |
Detailled constructor. Create a new RSEdge object from a lot of nice objects
vertex1 | assigned to the first vertex |
vertex2 | assigned to the second vertex |
face1 | assigned to the first face |
face2 | assigned to the second face |
center_of_torus | assigned to the center of the torus |
radius_of_torus | assigned to the radius of the torus |
angle | assigned to th angle |
circle1 | assigned to the first contact circle |
circle2 | assigned to the second contact circle |
intersection_point1 | assigned to the first intersection point (in singular case) |
intersection_point2 | assigned to the second intersection point (in singular case) |
singular | |
index | assigned to the index |
virtual BALL::RSEdge::~RSEdge | ( | ) | [virtual] |
Destructor. Destructs the RSEdge object. The neighboured faces and vertices are {/bf not} destructed.
TAngle<double> BALL::RSEdge::getAngle | ( | ) | const |
Return the rotation angle. Return the rotation angle between the starting and ending position of the probe sphere when it rolls over the RSEdge.
TVector3<double> BALL::RSEdge::getCenterOfTorus | ( | ) | const |
Return the center of the torus. Return the center of the torus described by the probe sphere when it rolls over the RSEdge.
TCircle3<double> BALL::RSEdge::getContactCircle | ( | Position | i | ) | const |
Return one of the the contact circles. Return one of the the contact circles of the probe sphere with the two RSVertices
i |
TVector3<double> BALL::RSEdge::getIntersectionPoint | ( | Position | i | ) | const throw (Exception::GeneralException) |
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.
double BALL::RSEdge::getMajorRadiusOfTorus | ( | ) | const |
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.
bool BALL::RSEdge::isFree | ( | ) | const |
isFree
bool BALL::RSEdge::isSingular | ( | ) | const |
isSingular
Inequality operator.
Reimplemented from BALL::GraphEdge< RSVertex, RSEdge, RSFace >.
Similarity operator.
Reimplemented from BALL::GraphEdge< RSVertex, RSEdge, RSFace >.
Equality operator.
Reimplemented from BALL::GraphEdge< RSVertex, RSEdge, RSFace >.
void BALL::RSEdge::set | ( | const RSEdge & | rsedge, |
bool | deep = false |
||
) |
void BALL::RSEdge::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 | ||
) |
Assign from a lot of nice objects
vertex0 | assigned to the first vertex |
vertex1 | assigned to the second vertex |
face0 | assigned to the first face |
face1 | assigned to the second face |
center_of_torus | assigned to the center of the torus |
radius_of_torus | assigned to the radius of the torus |
angle | assigned to th angle |
circle0 | assigned to the first contact circle |
circle1 | assigned to the second contact circle |
intersection_point0 | assigned to the first intersection point (in singular case) |
intersection_point1 | assigned to the second intersection point (in singular case) |
singular | |
index | assigned to the index |
void BALL::RSEdge::setAngle | ( | const TAngle< double > & | angle | ) |
Set the rotation angle. Set the rotation angle between the starting and ending position of the probe sphere when it rolls over the RSEdge.
angle | the new rotation angle |
void BALL::RSEdge::setCenterOfTorus | ( | const TVector3< double > & | center | ) |
Set the center of the torus. Set the center of the torus described by the probe sphere when it rolls over the RSEdge.
center | the new center |
void BALL::RSEdge::setContactCircle | ( | Position | i, |
const TCircle3< double > & | circle | ||
) |
Set one of the two contact circles. Set one of the two contact circles of the probe sphere with the two RSVertices.
i | the first contact circle is changed if i = 0, the second otherwise |
circle | the new contact circle |
void BALL::RSEdge::setIntersectionPoint | ( | Position | i, |
const TVector3< double > & | point | ||
) |
Set one of the intersection points. Set one of the intersection points of the probe sphere with the RSEdge.
i | the first intersection point is changed if i = 0, the second otherwise |
point | the new intersection point |
void BALL::RSEdge::setMajorRadiusOfTorus | ( | const double & | radius | ) |
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.
radius | the new radius |
void BALL::RSEdge::setSingular | ( | bool | singular | ) |
Set singular
friend class ReducedSurface [friend] |
friend class RSComputer [friend] |
friend class SASTriangulator [friend] |
friend class SESComputer [friend] |
friend class SESSingularityCleaner [friend] |
friend class SESTriangulator [friend] |
friend class SolventAccessibleSurface [friend] |
friend class SolventExcludedSurface [friend] |
friend class TriangulatedSAS [friend] |
friend class TriangulatedSES [friend] |
TAngle<double> BALL::RSEdge::angle_ [protected] |
TVector3<double> BALL::RSEdge::center_of_torus_ [protected] |
TCircle3<double> BALL::RSEdge::circle0_ [protected] |
TCircle3<double> BALL::RSEdge::circle1_ [protected] |
TVector3<double> BALL::RSEdge::intersection_point0_ [protected] |
TVector3<double> BALL::RSEdge::intersection_point1_ [protected] |
double BALL::RSEdge::radius_of_torus_ [protected] |
bool BALL::RSEdge::singular_ [protected] |