97 void setPosition(
const double,
const double,
const double);
105 bool setIndex(
const unsigned int)
override;
117 unsigned int indexInAtoms;
133 return (std::string(className) == std::string(
"Atom"));
This class manages all the properties attached to an atom.
Definition: AtomProperties.h:45
void getPosition(double pos[3]) const
get the position of the atom (array of 3 doubles)
Definition: AtomProperties.h:125
void setPosition(const double[3])
set the position of the atom
Definition: AtomProperties.h:131
An atom has an unique index in the physical model object, a 3D position, and different basic properti...
Definition: Atom.h:49
void xmlPrint(std::ostream &, const StructuralComponent *) override
print to an output stream in "pseudo" XML format.
Definition: Atom.cpp:76
void setPosition(const double[3])
set the position of the atom
Definition: Atom.h:125
void getPosition(double pos[3]) const
get the position of the atom (array of 3 doubles)
Definition: Atom.h:121
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
Atom(PhysicalModel *myPM)
Default constructor : set the position to the origin, generate a unique index.
Definition: Atom.cpp:34
~Atom() override
std destructor
Definition: Atom.cpp:57
AtomProperties * getProperties() const
Get a ptr to the AtomProperties.
Definition: Atom.h:135
bool isInstanceOf(const char *) const override
return true only if the parameter is equal to "Atom"
Definition: Atom.h:132
bool setIndex(const unsigned int) override
set the index.
Definition: Atom.cpp:63
This is the main class of this project.
Definition: PhysicalModel.h:86
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.
Definition: Structure.h:43
StructureProperties * properties
Property of the current structure.
Definition: Structure.h:104