![]() |
Computer Assited Medical Intervention Tool Kit
version 3.4
|
Public Member Functions | |
| bool | addAtom (Atom *) |
| add an atom to the cluster if in the given precision (true if added) (update center) More... | |
| bool | addAtom (Atom *) |
| add an atom to the cluster if in the given precision (true if added) (update center) More... | |
| Cluster (double distance) | |
| create a cluster of this atom, using the given precision More... | |
| Cluster (double distance) | |
| create a cluster of this atom, using the given precision More... | |
| Atom * | getAtom (unsigned int id) |
| get composing atom by index More... | |
| Atom * | getAtom (unsigned int id) |
| get composing atom by index More... | |
| Atom * | getCenter () |
| get the center (create if necessary) More... | |
| Atom * | getCenter () |
| get the center (create if necessary) More... | |
| unsigned int | nrOfAtoms () |
| get nr of atoms in the cluster More... | |
| unsigned int | nrOfAtoms () |
| get nr of atoms in the cluster More... | |
| ~Cluster () | |
| ~Cluster () | |
Static Public Attributes | |
| static unsigned int | atomIndex = 10000 |
| current atom index for new atoms More... | |
Private Member Functions | |
| void | updateCenter () |
| update center position More... | |
| void | updateCenter () |
| update center position More... | |
Private Attributes | |
| Atom * | center |
| cluster center More... | |
| double | distance |
| distance precision More... | |
| Cell * | myCell |
| the cluster cell More... | |
class Cluster
a cluster is a set of point that are nearly at the same place (at a given precision)
| Cluster::Cluster | ( | double | distance | ) |
create a cluster of this atom, using the given precision
References atomIndex, distance(), nrOfNewAtoms, and StructureProperties::POLY_VERTEX.
| Cluster::~Cluster | ( | ) |
| Cluster::Cluster | ( | double | distance | ) |
create a cluster of this atom, using the given precision
| Cluster::~Cluster | ( | ) |
| bool Cluster::addAtom | ( | Atom * | a | ) |
add an atom to the cluster if in the given precision (true if added) (update center)
References distance(), and Atom::getPosition().
Referenced by insert().
| bool Cluster::addAtom | ( | Atom * | ) |
add an atom to the cluster if in the given precision (true if added) (update center)
| Atom * Cluster::getAtom | ( | unsigned int | id | ) |
get composing atom by index
| Atom* Cluster::getAtom | ( | unsigned int | id | ) |
get composing atom by index
| Atom * Cluster::getCenter | ( | ) |
get the center (create if necessary)
| Atom* Cluster::getCenter | ( | ) |
get the center (create if necessary)
| unsigned int Cluster::nrOfAtoms | ( | ) |
get nr of atoms in the cluster
| unsigned int Cluster::nrOfAtoms | ( | ) |
get nr of atoms in the cluster
|
private |
update center position
|
private |
update center position
|
static |
current atom index for new atoms
Referenced by Cluster().
|
private |
cluster center
|
private |
distance precision
|
private |
the cluster cell
1.8.8