26 #ifndef ATOMPROPERTIES_H 27 #define ATOMPROPERTIES_H 81 virtual void xmlPrint(std::ostream&);
86 static void resetUniqueIndex();
89 void getPosition(
double pos[3])
const;
92 void setPosition(
const double [3]);
95 void setPosition(
const double,
const double,
const double);
105 void setPositionPointer(
double* ptr,
bool update =
true);
143 #endif // ATOMPROPERTIES_H
bool allocated
true only if the memory used for the position was allocated in the constructor and not changed afterw...
Definition: AtomProperties.h:121
double * X
Pointer to the memory triplet that stores the atom's position.
Definition: AtomProperties.h:118
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
Describes the properties common to all structures.
Definition: StructureProperties.h:38
void setPosition(const double [3])
set the position of the atom
Definition: AtomProperties.h:131
static unsigned int maxUniqueIndex
unique number (used to generate unique index for atoms if not given at the instanciation) ...
Definition: AtomProperties.h:109
void getPosition(double pos[3]) const
get the position of the atom (array of 3 doubles)
Definition: AtomProperties.h:125