|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
26 #ifndef GENERATEMODEL_H
27 #define GENERATEMODEL_H
57 return Action::getWidget();
78 #endif // GENERATEMODEL_H
void setFamily(QString family)
the name of the family in which this action is associated
Definition: Action.cpp:136
#define CAMITK_WARNING(MSG)
Log for warning verbosity (the most common one) Will appear by default.
Definition: Log.h:266
void setNullY()
set the y coordinate as NULL
Definition: Direction.h:218
virtual ~GenerateModel()=default
the destructor
@ SUCCESS
everything went according to plan
Definition: Action.h:248
static TranslationUnit & MM()
millimeters
Definition: TranslationUnit.cpp:44
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
Action to generate MML/Sofa scn from a vtk mesh.
Definition: GenerateModel.h:46
@ ABORTED
the action was aborted before completion
Definition: Action.h:251
MultiComponent * getInformativeComponents() const
get all the informative components
Definition: PhysicalModel.h:377
ApplyStatus
Definition: Action.h:247
void xmlPrint(std::ostream &) const
Print to an ostream.
Definition: Loads.cpp:187
void setName(QString name)
Definition: Action.cpp:120
Atom * getAtom(const unsigned int id)
Get the atom that has the global index given in parameters.
Definition: PhysicalModel.h:385
void setComponent(QString component)
the name of the component class that can be used by this action
Definition: Action.cpp:131
void addTarget(std::string currentData)
add a lots of new targets using a description string (...)
Definition: Load.cpp:209
void addLoad(Load *ld)
add a load to the list
Definition: Loads.cpp:244
const ComponentList getTargets() const
the currently selected and valid (regarding the component property) components, for which this action...
Definition: Action.cpp:166
A structural component is composed either by cell or by atoms.
Definition: StructuralComponent.h:52
void setUnit(const Unit u)
set the unit
Definition: Load.cpp:277
Class that defines the direction of the Load with x, y and z.
Definition: Direction.h:39
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
This class describes a property that can be used in components and actions or any class that needs to...
Definition: Property.h:303
void addTag(QString tag)
add a tag to the tags list of this action
Definition: Action.cpp:141
GenerateModel(camitk::ActionExtension *)
the constructor
Definition: GenerateModel.cpp:54
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 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
void saveMMLFiles(QString baseFilename)
save all the MML, PML and LML file
Definition: GenerateModel.cpp:168
vtkSmartPointer< vtkSelectionNode > getSelection(const QString &name) const
Get a selection from its name.
Definition: MeshComponent.cpp:478
void setDescription(QString description)
the description of the action
Definition: Action.cpp:126
virtual camitk::Action::ApplyStatus apply()
method applied when the action is called
Definition: GenerateModel.cpp:70
QString getName() const override
get the name to be displayed
Definition: sdk/libraries/core/component/Component.h:907
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
Manager of the benchmark tests. Do simulation loop and tests.
Definition: MonitoringManager.h:50
This class makes it possible to manage a list of "Load". Remember that Load is an abstract class (con...
Definition: Loads.h:71
void setNullZ()
set the z coordinate as NULL
Definition: Direction.h:249
virtual bool addParameter(Property *)
Add a new parameter to the action, using the CamiTK property class.
Definition: Action.cpp:440
This class describes what is a generic Action extension. To add a ActionExtension to CamiTK core,...
Definition: ActionExtension.h:80
Class that defines the type of Load 'Translation'.
Definition: Translation.h:39
std::set< int > fixedDOFIndex
Definition: GenerateModel.h:72
void saveSOFAFile(QString baseFilename)
save the .scn file, TODO add the choice to save MML with another simulator
Definition: GenerateModel.cpp:121
void setFileName(const QString &)
set the file name where the data have to be stored
Definition: sdk/libraries/core/component/Component.cpp:466
static MonitoringManager * createManager(const char *mml)
create an interactive or noninteractive manager according to simulator type
Definition: MonitoringManagerFactory.cpp:32
Basic component to manage any kind of mesh.
Definition: MeshComponent.h:53
void refresh()
refresh the display
virtual QWidget * getWidget()
default widget
Definition: GenerateModel.h:56
void setNullX()
set the x coordinate as NULL
Definition: Direction.h:188
void addValueEvent(const double v, const double d)
set the valueEvent.
Definition: Load.cpp:198
Definition: Action.cpp:35
camitk::MeshComponent * targetMesh
The current managed mesh.
Definition: GenerateModel.h:75
void setDirection(const double x, const double y, const double z)
Set the direction using 3 coordinates.
Definition: Load.cpp:246