 |
Computer Assited Medical Intervention Tool Kit
version 4.1
|
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:105
#define CAMITK_WARNING(MSG)
Log for warning verbosity (the most common one) Will appear by default.
Definition: Log.h:261
PhysicalModel * takePml()
This is nearly the same as getPml(), but it also transfers ownership of the pointer.
Definition: MonitoringManager.cpp:267
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
virtual void refresh() const
refresh all the viewer that are currently displaying this Component
Definition: sdk/libraries/core/component/Component.cpp:298
const QString getFileName() const
get the file name where the data have to be stored/were stored
Definition: sdk/libraries/core/component/Component.cpp:572
virtual ~MMLComponent()
destructor
Definition: MMLComponent.cpp:120
void removeChild(InterfaceNode *) override
remove from the the sub item vector.
Definition: sdk/libraries/core/component/Component.cpp:582
QAction * getQAction()
Get the corresponding QAction.
Definition: Action.cpp:182
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:550
MonitoringGuiManager * getMonitoringGuiManager()
get MonitoringGuiManager
Definition: MMLComponent.cpp:152
virtual void initRepresentation()=0
instantiate the concrete representation (either InterfaceGeometry or InterfaceBitMap) if needed.
virtual void setModified(bool modified=true)
set the modified flag
Definition: sdk/libraries/core/component/Component.h:881
QString myFileName
the file name from which the Component is loaded
Definition: sdk/libraries/core/component/Component.h:784
MonitoringDialog * getDialog()
get dialog
Definition: MonitoringGuiManager.cpp:63
void connectPml()
connect pml
Definition: MMLComponent.cpp:168
bool saveMmlInFile(QString fileName)
Save MMLIn file.
Definition: MonitoringGuiManager.cpp:210
std::string getPmlFileName()
Definition: MonitoringManager.cpp:284
QString exportedMml
when a .scn is loaded, name of the automatically exported mml file (empty string otherwise)
Definition: MMLComponent.h:111
Action class is an abstract class that enables you to build a action (generally on a component)....
Definition: Action.h:228
A GUI to manipulate mml documents.
Definition: MonitoringGuiManager.h:44
bool loadMmlInFile(QString fileName)
Load a MMLIn file.
Definition: MonitoringGuiManager.cpp:180
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:47
Exception class to handle abortion in component instantiation. Particularly useful to handle construc...
Definition: AbortException.h:64
virtual void setSelected(const bool b, const bool recursive=true)
Update the selection flag.
Definition: sdk/libraries/core/component/Component.cpp:557
This class manages a physical model (PML) CamiTK component.
Definition: PMLComponent.h:98
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:114
MMLDisplay * display
display manager
Definition: MMLComponent.h:108
#define MMLCOMPONENT_API
Definition: MMLComponentAPI.h:53
MonitoringManager * getMonitoringManager()
get Monitoring Manager
Definition: MonitoringGuiManager.cpp:73
MMLDisplay * getDisplay()
get the display
Definition: MMLComponent.cpp:162
TODO Describe the class here.
Definition: MMLDisplay.h:46
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
void deleteChildren() override
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:590
virtual void refreshInterfaceNode()
Asks all viewers that are currently displaying this Component to rebuild the representation of the In...
Definition: sdk/libraries/core/component/Component.cpp:307
MonitoringGuiManager * mmlGUI
the mml GUI class is used directly
Definition: MMLComponent.h:102
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:297
virtual bool getModified() const
set the modified flag
Definition: sdk/libraries/core/component/Component.h:886
Definition: Action.cpp:36