|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
25 #ifndef PML_COMPONENT_EXTENSION_H
26 #define PML_COMPONENT_EXTENSION_H
45 Q_PLUGIN_METADATA(IID
"fr.imag.camitk.modeling.component.pmlcomponent")
52 virtual QString
getName()
const override;
static void resetProgressBar()
Resets the progress bar if it exists.
Definition: Application.cpp:361
void setExclusiveComponents(MultiComponent *)
set the exclusive multi component. Becareful: the physical model takes control of this MultiComponent
Definition: PhysicalModel.cpp:676
@ WEDGE
the structure is a wedge (like the Pink Floyd's "Dark Side Of the Moon" prism), it must be a cell and...
Definition: StructureProperties.h:160
vtkSmartPointer< vtkSelectionNode > getSelectionAt(unsigned int index) const
Get a selection from its index in the list.
Definition: MeshComponent.cpp:490
@ TETRAHEDRON
the structure is a tetrahedron, it must be a cell and have sub-structures that are atoms
Definition: StructureProperties.h:159
GeometricType
Geometric type gives information about which kind of geometric representation is the structure.
Definition: StructureProperties.h:130
virtual QString getDescription() const override
get the plugin description (can be html)
Definition: PMLComponentExtension.cpp:50
An atom has an unique index in the physical model object, a 3D position, and different basic properti...
Definition: Atom.h:49
PhysicalModel * getPhysicalModel()
Definition: PMLComponent.cpp:104
virtual bool save(camitk::Component *component) const override
save from or to PML
Definition: PMLComponentExtension.cpp:76
const QString getFileName() const
get the file name where the data have to be stored/were stored
Definition: sdk/libraries/core/component/Component.cpp:461
MultiComponent * getInformativeComponents() const
get all the informative components
Definition: PhysicalModel.h:377
This class describes what is a generic Component extension. To add a ComponentExtension to CamiTK cor...
Definition: ComponentExtension.h:83
Atom * getAtom(const unsigned int id)
Get the atom that has the global index given in parameters.
Definition: PhysicalModel.h:385
virtual void setModified(bool modified=true)
set the modified flag
Definition: sdk/libraries/core/component/Component.h:943
virtual camitk::Component * open(const QString &) override
get a new instance from data stored in a file (this is the most important method to redefine in your ...
Definition: PMLComponentExtension.cpp:62
virtual QString getName() const override
get the plugin name
Definition: PMLComponentExtension.cpp:45
unsigned int getNumberOfSelections() const
Get the number of selections.
Definition: MeshComponent.cpp:468
A structural component is composed either by cell or by atoms.
Definition: StructuralComponent.h:52
void addStructure(Structure *s, bool check=true)
Add a Structure in the list (and tells the structure to add this structural component in its list).
Definition: StructuralComponent.h:212
virtual vtkSmartPointer< vtkPointSet > getPointSet()=0
This is the main class of this project. Following a nice concept, a physical model is able to represe...
Definition: PhysicalModel.h:86
MeshComponentExtension()
Constructor protected because the class is virtual.
Definition: MeshComponentExtension.cpp:54
@ INVALID
invalid geometry type
Definition: StructureProperties.h:154
static void showStatusBarMessage(QString msg, int timeout=0)
Set a message to the status bar.
Definition: Application.cpp:345
A cell has an unique index in the physical model object, is composed by atoms, and different basic pr...
Definition: Cell.h:46
Abstract class created to support export file formats for MeshComponent Any data component plugin cre...
Definition: MeshComponentExtension.h:75
void xmlPrint(std::ostream &o, bool opt=false)
print the physical model to an output stream in a XML format (see physicalmodel.xsd for detail about ...
Definition: PhysicalModel.cpp:258
@ PYRAMID
the structure has a quad base and one vertex outside the defined base plane (like an egyptian pyramid...
Definition: StructureProperties.h:161
This class manages a physical model (PML) CamiTK component.
Definition: PMLComponent.h:103
This PML ComponentExtension allows you to manipulate physical model file ".pml". see http://www-timc....
Definition: PMLComponentExtension.h:42
void addSubComponent(Component *)
add a component in the list of subcomponents (and set the isExclusive flag accordingly to the state o...
Definition: MultiComponent.h:122
@ HEXAHEDRON
the structure is a hexahedron, it must be a cell and have sub-structures that are atoms
Definition: StructureProperties.h:162
@ TRIANGLE
the structure is a triangle, i.e it must be a cell composed of 3 atoms
Definition: StructureProperties.h:157
PMLComponentExtension()
the constructor (does nothing really)
Definition: PMLComponentExtension.h:72
@ LINE
the structure is a simple line, i.e it must be a cell composed of only 2 atoms
Definition: StructureProperties.h:156
void setName(const std::string)
set the name of the component
Definition: modeling/libraries/pml/Component.h:150
virtual ~PMLComponentExtension()=default
the destructor
Cell * getCell(unsigned int) const override
get cell by order number (not cell index)
Definition: StructuralComponent.cpp:197
@ POLY_VERTEX
the structure is a poly vertex, i.e it must be a cell and it is a point clouds
Definition: StructureProperties.h:164
virtual QStringList getFileExtensions() const override
get the list of managed extensions (each file with an extension in the list can be loaded by this Ext...
Definition: PMLComponentExtension.cpp:55
void setInformativeComponents(MultiComponent *)
set the exclusive multi component. Becareful: the physical model takes control of this MultiComponent
Definition: PhysicalModel.cpp:686
@ QUAD
the structure is a quad, i.e it must be a cell composed of 4 atoms
Definition: StructureProperties.h:158
Basic component to manage any kind of mesh.
Definition: MeshComponent.h:53
A multi-component stores other components, hence providing a way to have an tree representation of co...
Definition: MultiComponent.h:44
@ POLY_LINE
the structure is a polyline, i.e it must be a cell and the order of the atom in the cell are arranged...
Definition: StructureProperties.h:163
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:302
Definition: Action.cpp:35
void setAtoms(StructuralComponent *, bool deleteOld=true)
set the atom structural component.
Definition: PhysicalModel.cpp:572