BALL
1.4.2
|
#include <BALL/STRUCTURE/RSFace.h>
Public Member Functions | |
Constructors and Destructors | |
RSFace () | |
RSFace (const RSFace &rsface, bool deep=false) | |
RSFace (RSVertex *vertex1, RSVertex *vertex2, RSVertex *vertex3, RSEdge *edge1, RSEdge *edge2, RSEdge *edge3, const TVector3< double > ¢er, const TVector3< double > &normal, bool singular, Index index) throw (Exception::DivisionByZero) | |
virtual | ~RSFace () |
Assignment | |
void | set (const RSFace &rsface, bool deep=false) |
RSFace & | operator= (const RSFace &rsface) |
void | set (RSVertex *vertex1, RSVertex *vertex2, RSVertex *vertex3, RSEdge *edge1, RSEdge *edge2, RSEdge *edge3, const TVector3< double > ¢er, const TVector3< double > &normal, bool singular, Index index) throw (Exception::DivisionByZero) |
Predicates | |
virtual bool | operator== (const RSFace &rsface) const |
virtual bool | operator!= (const RSFace &rsface) const |
virtual bool | operator*= (const RSFace &rsface) const |
bool | isSingular () const |
Accessors | |
void | setCenter (const TVector3< double > ¢er) |
TVector3< double > | getCenter () const |
void | setNormal (const TVector3< double > &normal) throw (Exception::DivisionByZero) |
TVector3< double > | getNormal () const |
void | setSingular (bool singular) |
void | remove (HashSet< RSEdge * > &edges, HashSet< RSVertex * > &vertices, HashSet< RSFace * > &faces) |
Public Member Functions inherited from BALL::GraphTriangle< RSVertex, RSEdge, RSFace > | |
GraphTriangle () | |
GraphTriangle (const GraphTriangle< RSVertex, RSEdge, RSFace > &face, bool deep=false) | |
GraphTriangle (RSVertex *vertex1, RSVertex *vertex2, RSVertex *vertex3, RSEdge *edge1, RSEdge *edge2, RSEdge *edge3, Index index) | |
virtual | ~GraphTriangle () |
void | set (const GraphTriangle< RSVertex, RSEdge, RSFace > &face, bool deep=false) |
void | set (RSVertex *vertex1, RSVertex *vertex2, RSVertex *vertex3, RSEdge *edge1, RSEdge *edge2, RSEdge *edge3, Index index) |
GraphTriangle< RSVertex, RSEdge, RSFace > & | operator= (const GraphTriangle< RSVertex, RSEdge, RSFace > &face) |
void | setVertex (Position i, RSVertex *vertex) throw (Exception::IndexOverflow) |
RSVertex * | getVertex (Position i) const throw (Exception::IndexOverflow) |
void | setEdge (Position i, RSEdge *edge) throw (Exception::IndexOverflow) |
RSEdge * | getEdge (Position i) const throw (Exception::IndexOverflow) |
bool | getEdge (const RSVertex *vertex1, const RSVertex *vertex2, RSEdge *&edge) const |
void | setIndex (Index index) |
Index | getIndex () const |
bool | getEdges (const RSVertex *vertex, RSEdge *&edge1, RSEdge *&edge2) const |
Index | getSimilarEdge (const RSEdge *edge, RSEdge *&similar_edge) const |
Index | getRelativeIndex (const RSVertex *vertex) const |
Index | getRelativeIndex (const RSEdge *edge) const |
RSVertex * | third (const RSVertex *v1, const RSVertex *v2) const |
RSEdge * | third (const RSEdge *e1, const RSEdge *e2) const |
RSEdge * | getOppositeEdge (const RSVertex *vertex) const |
RSVertex * | getOppositeVertex (const RSEdge *edge) const |
bool | substitute (const RSVertex *old_vertex, RSVertex *new_vertex) |
bool | substitute (const RSEdge *old_edge, RSEdge *new_edge) |
RSVertex * | has (RSVertex *vertex) const |
RSEdge * | has (RSEdge *edge) const |
Protected Attributes | |
TVector3< double > | center_ |
TVector3< double > | normal_ |
bool | singular_ |
Protected Attributes inherited from BALL::GraphTriangle< RSVertex, RSEdge, RSFace > | |
RSVertex * | vertex_ [3] |
RSEdge * | edge_ [3] |
Index | index_ |
Friends | |
Class friends | |
| |
class | RSEdge |
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 |
Class friends | |
|
BALL::RSFace::RSFace | ( | ) |
Default constructor. This method creates a new RSFace object.
BALL::RSFace::RSFace | ( | RSVertex * | vertex1, |
RSVertex * | vertex2, | ||
RSVertex * | vertex3, | ||
RSEdge * | edge1, | ||
RSEdge * | edge2, | ||
RSEdge * | edge3, | ||
const TVector3< double > & | center, | ||
const TVector3< double > & | normal, | ||
bool | singular, | ||
Index | index | ||
) | throw (Exception::DivisionByZero) |
Detailled constructor. Create a new RSFace object from a lot of nice objects
vertex1 | assigned to the first vertex |
vertex2 | assigned to the second vertex |
vertex3 | assigned to the third vertex |
edge1 | assigned to the first edge |
edge2 | assigned to the second edge |
edge3 | assigned to the third edge |
center | assigned to the center |
normal | assigned to the normal vector |
singular | |
index | assigned to the index |
|
virtual |
Destructor. Destructs the RSFace object.
Return the center of the probe sphere defining the RSFace.
Return the vector orthogonal to the RSFace.
bool BALL::RSFace::isSingular | ( | ) | const |
isSingular
Inequality operator.
Reimplemented from BALL::GraphTriangle< RSVertex, RSEdge, RSFace >.
Similarity operator.
Reimplemented from BALL::GraphTriangle< RSVertex, RSEdge, RSFace >.
Equality operator.
Reimplemented from BALL::GraphTriangle< RSVertex, RSEdge, RSFace >.
void BALL::RSFace::remove | ( | HashSet< RSEdge * > & | edges, |
HashSet< RSVertex * > & | vertices, | ||
HashSet< RSFace * > & | faces | ||
) |
Remove a RSFace from a ReducedSurface graph structure.
edges | In this HashSet all edges are pushed which do not belong to any face after this remove step. |
vertices | In this HashSet all vertices are pushed which possibliy are isolated after this remove step. |
faces | In this HashSet all faces are pushed which have lost a neighbour face during this remove step. |
void BALL::RSFace::set | ( | RSVertex * | vertex1, |
RSVertex * | vertex2, | ||
RSVertex * | vertex3, | ||
RSEdge * | edge1, | ||
RSEdge * | edge2, | ||
RSEdge * | edge3, | ||
const TVector3< double > & | center, | ||
const TVector3< double > & | normal, | ||
bool | singular, | ||
Index | index | ||
) | throw (Exception::DivisionByZero) |
Assign to a lot of nice objects
vertex1 | assigned to the first vertex |
vertex2 | assigned to the second vertex |
vertex3 | assigned to the third vertex |
edge1 | assigned to the first edge |
edge2 | assigned to the second edge |
edge3 | assigned to the third edge |
center | assigned to the center |
normal | assigned to the normal vector |
singular | |
index | assigned to the index |
Set the center of the probe sphere defining the RSFace.
center | the new center |
void BALL::RSFace::setNormal | ( | const TVector3< double > & | normal | ) | throw (Exception::DivisionByZero) |
Set the vector orthogonal to the RSFace.
normal | the new normal |
void BALL::RSFace::setSingular | ( | bool | singular | ) |
Set singular
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |