78 #if defined(__has_warning)
79 # pragma GCC diagnostic push
80 # if __has_warning("-Woverloaded-virtual")
81 # pragma GCC diagnostic ignored "-Woverloaded-virtual"
85 #if defined(__has_warning)
86 # pragma GCC diagnostic pop
118 bool setIndex(
const unsigned int)
override;
152 return this->parentSC;
166 return (std::string(className) == std::string(
"Cell"));
Describes and manages the properties attached to cells.
Definition: CellProperties.h:44
A cell has an unique index in the physical model object, is composed by atoms, and different basic pr...
Definition: Cell.h:46
bool isInstanceOf(const char *) const override
return true only if the parameter is equal to "MultiComponent"
Definition: Cell.h:165
double signedVolumeTriangle(double p1[3], double p2[3], double p3[3])
Compute the volume of a triangle with the origin of the coordinate system.
Definition: Cell.cpp:598
Cell(PhysicalModel *myPM, const StructureProperties::GeometricType t)
constructor that generates a unique index
Definition: Cell.cpp:36
void deleteAllStructures() override
This method overload the one defined in StructuralComponent.
Definition: Cell.cpp:215
bool setIndex(const unsigned int) override
set the index.
Definition: Cell.cpp:139
double surface()
Compute the surface of the cell.
Definition: Cell.cpp:492
StructuralComponent * getQuadFaces()
Return a new structural component directly representing the Cell as a list of quad faces (when possib...
Definition: Cell.cpp:385
StructuralComponent::ComposedBy composedBy() override
overloaded from Structural component, always return StructuralComponent::ATOMS
Definition: Cell.h:169
StructuralComponent * getTriangleFaces()
Return a new structural component directly representing the Cell as a list of triangular faces (when ...
Definition: Cell.cpp:231
CellProperties * getProperties()
return the property
Definition: Cell.cpp:226
bool makePrintData(const StructuralComponent *)
is this sc the one that will be the one that will make the cell to print out all its data or is this ...
Definition: Cell.cpp:147
const StructuralComponent * getParentSC()
Get the direct parent structural that own this cell.
Definition: Cell.h:151
double * normal()
compute the normal of the facet Warning : Only available for QUAD and TRIANGLE type cells
Definition: Cell.cpp:460
double volume()
Compute the volume of the cell.
Definition: Cell.cpp:545
void xmlPrint(std::ostream &, const StructuralComponent *) override
print to an output stream in "pseudo" XML format.
Definition: Cell.cpp:179
void addStructuralComponent(StructuralComponent *) override
add a particular StructuralComponent in the list (and set parentSC if null)
Definition: Cell.h:173
~Cell() override
the destructor, my tailor. BECAREFUL: the atoms should not not be deleted here...
Definition: Cell.cpp:118
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
ComposedBy
What this structural component is made of.
Definition: StructuralComponent.h:173
@ ATOMS
the structural component is made of atoms
Definition: StructuralComponent.h:176
GeometricType
Geometric type gives information about which kind of geometric representation is the structure.
Definition: StructureProperties.h:107
Pure virtual class that represent an element of the structure.
Definition: Structure.h:43
virtual void addStructuralComponent(StructuralComponent *)
add a particular StructuralComponent in the list
Definition: Structure.h:128