|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
27 #ifndef MMLCOMPONENT_H
28 #define MMLCOMPONENT_H
30 #include <camitkcore/Component.h>
78 virtual void setSelected(
const bool b,
const bool recursive =
true);
PMLComponent * pmlComponent
physical model manager
Definition: MMLComponent.h:106
#define CAMITK_WARNING(MSG)
Log for warning verbosity (the most common one) Will appear by default.
Definition: Log.h:266
PhysicalModel * takePml()
This is nearly the same as getPml(), but it also transfers ownership of the pointer.
Definition: MonitoringManager.cpp:268
PMLComponent * getPMLComponent()
get Physical model manager
Definition: MMLComponent.cpp:157
MMLComponent(const QString &)
Default constructor: give it the name of the file containing the data (.mml file) This method may thr...
Definition: MMLComponent.cpp:50
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
virtual ~MMLComponent()
destructor
Definition: MMLComponent.cpp:120
void removeChild(InterfaceNode *) override
remove a child node.
Definition: sdk/libraries/core/component/Component.cpp:550
void addChild(InterfaceNode *) override
add a child Component (sub item in the hierarchy), and modify the child's parent to be equal to this ...
Definition: sdk/libraries/core/component/Component.cpp:542
MonitoringGuiManager * getMonitoringGuiManager()
get MonitoringGuiManager
Definition: MMLComponent.cpp:152
virtual void setModified(bool modified=true)
set the modified flag
Definition: sdk/libraries/core/component/Component.h:943
QString myFileName
the file name from which the Component is loaded
Definition: sdk/libraries/core/component/Component.h:845
MonitoringDialog * getDialog()
get dialog
Definition: MonitoringGuiManager.cpp:64
void connectPml()
connect pml
Definition: MMLComponent.cpp:168
bool saveMmlInFile(QString fileName)
Save MMLIn file.
Definition: MonitoringGuiManager.cpp:211
std::string getPmlFileName()
Definition: MonitoringManager.cpp:285
QString exportedMml
when a .scn is loaded, name of the automatically exported mml file (empty string otherwise)
Definition: MMLComponent.h:112
Action class is an abstract class that enables you to build a action (generally on a component)....
Definition: Action.h:231
virtual QAction * getQAction(Component *target=nullptr)
Get the corresponding QAction.
Definition: Action.cpp:204
A GUI to manipulate mml documents.
Definition: MonitoringGuiManager.h:45
bool loadMmlInFile(QString fileName)
Load a MMLIn file.
Definition: MonitoringGuiManager.cpp:181
void saveMML()
save the mml in the current filename (and the pml if needed)
Definition: MMLComponent.cpp:192
This class manage an MML monitoring document ".mml".
Definition: MMLComponent.h:48
Exception class to handle abortion in component instantiation. Particularly useful to handle construc...
Definition: AbortException.h:66
virtual void setSelected(const bool b, const bool recursive=true)
Update the selection flag.
Definition: sdk/libraries/core/component/Component.cpp:445
This class manages a physical model (PML) CamiTK component.
Definition: PMLComponent.h:103
virtual void setSelected(const bool b, const bool recursive=true)
Update the selection flag (this method is overridden in order to show the default modeling action whe...
Definition: MMLComponent.cpp:139
bool neverSelected
the first selection should trigger the pml exporer action (default action)
Definition: MMLComponent.h:115
MMLDisplay * display
display manager
Definition: MMLComponent.h:109
#define MMLCOMPONENT_API
Definition: MMLComponentAPI.h:54
void deleteChildren() override final
delete all sub Component, but do not delete the pointer (only the top-level component has the right t...
Definition: sdk/libraries/core/component/Component.cpp:559
void initRepresentation()
init the representation (nothing to do, every 3D representation is managed by the PMLComponent)
Definition: MMLComponent.h:70
MonitoringManager * getMonitoringManager()
get Monitoring Manager
Definition: MonitoringGuiManager.cpp:74
MMLDisplay * getDisplay()
get the display
Definition: MMLComponent.cpp:162
TODO Describe the class here.
Definition: MMLDisplay.h:47
virtual bool getModified() const
check if the mml or pml were modified in the UI
Definition: MMLComponent.cpp:186
void updateDisplay()
slot called when display have to be updated
Definition: MMLDisplay.cpp:78
virtual void refresh()
refresh all the viewer that are currently displaying this Component At the end the InterfaceNode modi...
Definition: sdk/libraries/core/component/Component.cpp:286
MonitoringGuiManager * mmlGUI
the mml GUI class is used directly
Definition: MMLComponent.h:103
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:302
virtual bool getModified() const
set the modified flag
Definition: sdk/libraries/core/component/Component.h:948
Definition: Action.cpp:35