|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
54 virtual bool event(QEvent* e);
75 void mergeBounds(
double bounds1[6],
double bounds2[6]);
void setFamily(QString family)
the name of the family in which this action is associated
Definition: Action.cpp:136
bool checkEvents
if this is initialization time, do not consider any event
Definition: CreateSC.h:78
virtual camitk::Action::ApplyStatus apply()
method applied when the action is called
Definition: CreateSC.cpp:270
void updateCorners(PMLComponent *)
compute and update bound properties (bottom and top corner) considering selection parameters
Definition: CreateSC.cpp:230
unsigned int getNumberOfStructures() const
get the number of structures
Definition: StructuralComponent.h:252
Action to generate MML/Sofa scn from a vtk mesh.
Definition: CreateSC.h:41
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
@ SUCCESS
everything went according to plan
Definition: Action.h:248
virtual ~CreateSC()=default
the destructor
MultiComponent * getInformativeComponents() const
get all the informative components
Definition: PhysicalModel.h:377
void computeBoundsOfPointIds(PMLComponent *comp, vtkSmartPointer< vtkIdTypeArray > selectedIds, double bounds[6])
compute bounds of a given point selection (list of Point Ids)
Definition: CreateSC.cpp:137
ApplyStatus
Definition: Action.h:247
void setName(QString name)
Definition: Action.cpp:120
virtual bool event(QEvent *e)
intercept signal for dynamic property changed
Definition: CreateSC.cpp:62
void setAutoUpdateProperties(bool)
are the properties to be udpated every time the user makes a change in the widget (default is false)?
Definition: Action.cpp:426
void computeBoundsOfCellIds(PMLComponent *comp, vtkSmartPointer< vtkIdTypeArray > selectedIds, double bounds[6])
compute bounds of a given cell selection (list of cell Ids)
Definition: CreateSC.cpp:167
Atom * getAtom(const unsigned int id)
Get the atom that has the global index given in parameters.
Definition: PhysicalModel.h:385
unsigned int getIndex() const
get the structure unique index (stored in its property)
Definition: Structure.cpp:30
void setComponent(QString component)
the name of the component class that can be used by this action
Definition: Action.cpp:131
virtual void setModified(bool modified=true)
set the modified flag
Definition: sdk/libraries/core/component/Component.h:943
const ComponentList getTargets() const
the currently selected and valid (regarding the component property) components, for which this action...
Definition: Action.cpp:166
QString getName() const
get the name of the action
Definition: Action.h:338
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
void addTag(QString tag)
add a tag to the tags list of this action
Definition: Action.cpp:141
void mergeBounds(double bounds1[6], double bounds2[6])
Definition: CreateSC.cpp:185
This is the main class of this project. Following a nice concept, a physical model is able to represe...
Definition: PhysicalModel.h:86
Action class is an abstract class that enables you to build a action (generally on a component)....
Definition: Action.h:231
void init()
initialize information (properties) and geometric representation from the physical model
Definition: PMLComponent.cpp:109
A cell has an unique index in the physical model object, is composed by atoms, and different basic pr...
Definition: Cell.h:46
const std::string getName() const
get the name of the component
Definition: modeling/libraries/pml/Component.h:147
vtkSmartPointer< vtkSelectionNode > getSelection(const QString &name) const
Get a selection from its name.
Definition: MeshComponent.cpp:478
Component * getComponentByName(const std::string n)
get a structural or multi component by its name.
Definition: PhysicalModel.cpp:553
This class manages a physical model (PML) CamiTK component.
Definition: PMLComponent.h:103
virtual QWidget * getWidget()
use the default widget (but update the values)
Definition: CreateSC.cpp:85
void setDescription(QString description)
the description of the action
Definition: Action.cpp:126
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
CreateSC(camitk::ActionExtension *)
the constructor
Definition: CreateSC.cpp:40
Structure * getStructure(const unsigned int) const
get a structure by its index (fisrt structure is at index 0)
Definition: StructuralComponent.h:220
void getBounds(double *bounds) override
compute the object's bounding box [xmin,xmax, ymin,ymax, zmin,zmax], see Component....
Definition: sdk/libraries/core/component/Component.cpp:671
This class describes what is a generic Action extension. To add a ActionExtension to CamiTK core,...
Definition: ActionExtension.h:80
#define CAMITK_TRACE(MSG)
Log for trace verbosity (the most verbose one, should be used for bug report) The msg will appear onl...
Definition: Log.h:256
Cell * getCell(const unsigned int id)
get the cell that has the global index given in parameters.
Definition: PhysicalModel.h:405
@ 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
StructuralComponent * getAtoms() const
get all the atoms
Definition: PhysicalModel.h:380
void setInformativeComponents(MultiComponent *)
set the exclusive multi component. Becareful: the physical model takes control of this MultiComponent
Definition: PhysicalModel.cpp:686
void refresh()
refresh the display
A multi-component stores other components, hence providing a way to have an tree representation of co...
Definition: MultiComponent.h:44
bool addStructureIfNotIn(Structure *s)
Add a Structure in the list, only if it is not already in (and in this case tells the structure to ad...
Definition: StructuralComponent.cpp:248
bool computeBoundsOfSelection(PMLComponent *comp, QString selectionName, double bounds[6])
compute the bounds of a named selection
Definition: CreateSC.cpp:201
Definition: Action.cpp:35