![]() |
Computer Assited Medical Intervention Tool Kit
version 4.0
|
Pure virtual class that represent an element of the structure. More...
#include <Structure.h>
Public Member Functions | |
virtual void | addStructuralComponent (StructuralComponent *) |
add a particular StructuralComponent in the list More... | |
std::vector< StructuralComponent * > | getAllStructuralComponents () |
get the list of all the StructuralComponent that are using this structure More... | |
unsigned int | getIndex () const |
get the structure unique index (stored in its property) More... | |
std::string | getName () const |
get the name of the structure More... | |
unsigned int | getNumberOfStructuralComponents () const |
get the number of StructuralComponent that are using this structure More... | |
StructuralComponent * | getStructuralComponent (unsigned int i) |
get a particular StructuralComponent that is using this structure More... | |
StructureProperties::GeometricType | getType () const |
get the type of index More... | |
virtual bool | isInstanceOf (const char *) const =0 |
pure virtual method, implemented in the child-class More... | |
void | removeStructuralComponent (StructuralComponent *) |
remove a particular StructuralComponent from the list More... | |
virtual bool | setIndex (const unsigned int) |
set the index. More... | |
void | setName (std::string) |
set the name of the structure More... | |
virtual void | setPhysicalModel (PhysicalModel *) |
set the physical model More... | |
Structure () | |
Base constructor. More... | |
virtual void | xmlPrint (std::ostream &, const StructuralComponent *)=0 |
print to an output stream in "pseaudo" XML format. More... | |
virtual | ~Structure () |
Virtual destructor needed here as this is an abstract class (pure virtual) More... | |
Public Attributes | |
bool | hasIndex |
indicate if the Structure has an index (which is not the case all the time) More... | |
Protected Attributes | |
StructureProperties * | properties |
Property of the current structure. More... | |
Private Attributes | |
std::vector< StructuralComponent * > | mySCs |
list of StructuralComponent that are using this structure More... | |
Pure virtual class that represent an element of the structure.
This implies that every structure could be represented in 3D and is a part of a structural component.
|
inline |
Base constructor.
References hasIndex.
|
inlinevirtual |
Virtual destructor needed here as this is an abstract class (pure virtual)
References isInstanceOf(), and xmlPrint().
|
inlinevirtual |
add a particular StructuralComponent in the list
Reimplemented in Cell.
References mySCs.
Referenced by Cell::addStructuralComponent(), and StructuralComponent::addStructure().
|
inline |
get the list of all the StructuralComponent that are using this structure
References mySCs.
Referenced by Reference::getDistanceToTriangularMesh().
unsigned int Structure::getIndex | ( | ) | const |
get the structure unique index (stored in its property)
References StructureProperties::getIndex(), and properties.
Referenced by PhysicalModel::addAtom(), SurfaceExtractor::AddCell(), AtomDC::AtomDC(), PMLExplorerWidget::buildAtomTreeWidgetItem(), PMLExplorerWidget::buildCellTreeWidgetItem(), MonitorNormDisplacement::calculate(), MonitorDistanceZ::calculate(), MonitorForce::calculate(), MonitorDistanceY::calculate(), MonitorGeometricDeviation::calculate(), MonitorRen::calculate(), MonitorDisplacement::calculate(), MonitorDistanceX::calculate(), Position::calculate(), CellDC::CellDC(), CreateSC::computeBoundsOfCellIds(), PMLExplorerWidget::createAtomPropertyList(), PMLExplorerWidget::createCellPropertyList(), LoadsEditor::createDCLoads(), SofaSimulator::createPml(), AtomDC::doubleClicked(), PhysicalModel::exportAnsysMesh(), PhysicalModel::exportPatran(), PMLTransform::generateExternalSurface(), PMLTransform::generateNeighborhood(), PhysicalModel::getAtom(), AtomDCProperties::getIndex(), Reference::getNearest(), MonitoringManager::getOldPosition(), PhysicalModel::getPositionPointer(), LoadsSimulationDriver::init(), Monitor::Monitor(), PhysicalModel::parseComponents(), StructuralComponentDCPopup::saveToCsv(), PMLComponent::selectCell(), PhysicalModel::setAtoms(), SofaSimulator::SofaSimulator(), LoadsSimulationDriver::updateAtomData(), Simulator::updatePositions(), CellDCProperties::updateProperties(), AtomDCProperties::updateProperties(), AtomDCWidget::updateProperties(), Cell::xmlPrint(), and Atom::xmlPrint().
std::string Structure::getName | ( | ) | const |
get the name of the structure
References Properties::getName(), and properties.
Referenced by AtomDC::AtomDC(), and PMLExplorerWidget::createAtomPropertyList().
|
inline |
get the number of StructuralComponent that are using this structure
References mySCs.
Referenced by CellDC::initRepresentation(), Cell::makePrintData(), AtomDC::updatePosition(), and AtomDCWidget::updateProperties().
|
inline |
get a particular StructuralComponent that is using this structure
References mySCs.
Referenced by CellDC::initRepresentation(), Cell::makePrintData(), AtomDC::updatePosition(), AtomDCWidget::updateProperties(), and AtomDCWidget::usedInTableClicked().
StructureProperties::GeometricType Structure::getType | ( | ) | const |
get the type of index
References StructureProperties::getType(), and properties.
Referenced by SurfaceExtractor::AddCell(), StructuralComponentDC::cellsToGeometry(), PMLComponent::cellToVTK(), PhysicalModel::exportAnsysMesh(), PhysicalModel::exportPatran(), PMLTransform::generateExternalSurface(), PMLTransform::generateNeighborhood(), CellDCProperties::getGeometry(), Cell::getQuadFaces(), Cell::getTriangleFaces(), Cell::normal(), SofaSimulator::SofaSimulator(), StructuralComponentDC::structuralComponentToVtk(), Cell::surface(), and Cell::volume().
|
pure virtual |
pure virtual method, implemented in the child-class
Implemented in Atom, and Cell.
Referenced by StructuralComponent::getAtoms(), StructuralComponent::isCompatible(), PhysicalModel::optimizeIndexes(), and ~Structure().
|
inline |
remove a particular StructuralComponent from the list
References mySCs.
Referenced by Cell::deleteAllStructures(), and StructuralComponent::removeStructure().
|
virtual |
set the index.
The index have to be unique otherwise this method has no effect. The sub-classes method will check that this index is not in use.
Reimplemented in Cell, and Atom.
References hasIndex, properties, and StructureProperties::setIndex().
Referenced by Atom::setIndex(), and Cell::setIndex().
void Structure::setName | ( | std::string | n | ) |
set the name of the structure
References properties, and Properties::setName().
Referenced by AtomDC::setName().
|
virtual |
set the physical model
References properties, and Properties::setPhysicalModel().
Referenced by StructuralComponent::setPhysicalModel().
|
pure virtual |
print to an output stream in "pseaudo" XML format.
this method is called by the structural component that includes this structure.
Implemented in Atom, and Cell.
Referenced by ~Structure().
bool Structure::hasIndex |
indicate if the Structure has an index (which is not the case all the time)
Referenced by PMLExplorerWidget::buildCellTreeWidgetItem(), setIndex(), and Structure().
|
private |
list of StructuralComponent that are using this structure
Referenced by addStructuralComponent(), getAllStructuralComponents(), getNumberOfStructuralComponents(), getStructuralComponent(), and removeStructuralComponent().
|
protected |
Property of the current structure.
Referenced by Atom::Atom(), Cell::Cell(), getIndex(), getName(), Cell::getProperties(), getType(), setIndex(), Atom::setIndex(), setName(), setPhysicalModel(), Cell::xmlPrint(), Atom::xmlPrint(), Atom::~Atom(), and Cell::~Cell().