|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
97 void setPosition(
const double,
const double,
const double);
105 bool setIndex(
const unsigned int)
override;
133 return (std::string(className) == std::string(
"Atom"));
AtomProperties * getProperties() const
Get a ptr to the AtomProperties.
Definition: Atom.h:135
bool addGlobalIndexAtomPair(std::GlobalIndexStructurePair)
add or update a pair to the atom map.
Definition: PhysicalModel.cpp:605
void setPosition(const double[3])
set the position of the atom
Definition: AtomProperties.h:131
void getPosition(double pos[3]) const
get the position of the atom (array of 3 doubles)
Definition: Atom.h:121
This class manages all the properties attached to an atom.
Definition: AtomProperties.h:45
An atom has an unique index in the physical model object, a 3D position, and different basic properti...
Definition: Atom.h:49
std::pair< unsigned int, Structure * > GlobalIndexStructurePair
definition of a couple (=STL pair) (int , Structure *) this associates a global cell/atom index to th...
Definition: PhysicalModel.h:66
unsigned int getIndex() const
get the structure unique index (stored in its property)
Definition: Structure.cpp:30
~Atom() override
std destructor
Definition: Atom.cpp:57
Atom(PhysicalModel *myPM)
Default constructor : set the position to the origin, generate a unique index.
Definition: Atom.cpp:34
A structural component is composed either by cell or by atoms.
Definition: StructuralComponent.h:52
Pure virtual class that represent an element of the structure. This implies that every structure coul...
Definition: Structure.h:43
unsigned int indexInAtoms
Definition: Atom.h:117
bool setIndex(const unsigned int) override
set the index.
Definition: Atom.cpp:63
This is the main class of this project. Following a nice concept, a physical model is able to represe...
Definition: PhysicalModel.h:86
PhysicalModel * getPhysicalModel() const
get the physical model
Definition: Properties.h:262
void xmlPrint(std::ostream &, const StructuralComponent *) override
print to an output stream in "pseudo" XML format.
Definition: Atom.cpp:76
bool isInstanceOf(const char *) const override
return true only if the parameter is equal to "Atom"
Definition: Atom.h:132
StructureProperties * properties
Property of the current structure.
Definition: Structure.h:104
void setPosition(const double[3])
set the position of the atom
Definition: Atom.h:125
unsigned int getIndexInAtoms() const
get the index of this atom in the global atom structural component, i.e. its order number in atoms
Definition: Atom.cpp:71
void getPosition(double pos[3]) const
get the position of the atom (array of 3 doubles)
Definition: AtomProperties.h:125
StructuralComponent * getAtoms() const
get all the atoms
Definition: PhysicalModel.h:380
virtual bool setIndex(const unsigned int)
set the index.
Definition: Structure.cpp:34