91 void getPosition(
double pos[3])
const;
94 void setPosition(
const double [3]);
97 void setPosition(
const double,
const double,
const double);
105 bool setIndex(
const unsigned int)
override;
108 unsigned int getIndexInAtoms()
const;
111 bool isInstanceOf(
const char*)
const override;
122 return getProperties()->getPosition(p);
126 getProperties()->setPosition(pos);
129 getProperties()->setPosition(x, y, z);
133 return (std::string(className) == std::string(
"Atom"));
void setPosition(const double [3])
set the position of the atom
Definition: Atom.h:125
Pure virtual class that represent an element of the structure.
Definition: Structure.h:43
AtomProperties * getProperties() const
Get a ptr to the AtomProperties.
Definition: Atom.h:135
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
This is the main class of this project.
Definition: PhysicalModel.h:86
void getPosition(double pos[3]) const
get the position of the atom (array of 3 doubles)
Definition: Atom.h:121
A structural component is composed either by cell or by atoms.
Definition: StructuralComponent.h:52
bool isInstanceOf(const char *) const override
return true only if the parameter is equal to "Atom"
Definition: Atom.h:132
unsigned int indexInAtoms
Definition: Atom.h:117