Computer Assited Medical Intervention Tool Kit  version 5.0
MMLDisplay.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2021 Univ. Grenoble Alpes, CNRS, Grenoble INP, TIMC, 38000 Grenoble, France
6  *
7  * Visit http://camitk.imag.fr for more information
8  *
9  * This file is part of CamiTK.
10  *
11  * CamiTK is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * CamiTK is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Lesser General Public License version 3 for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * version 3 along with CamiTK. If not, see <http://www.gnu.org/licenses/>.
22  *
23  * $CAMITK_LICENCE_END$
24  ****************************************************************************/
25 
26 
27 #ifndef MMLDisplay_H
28 #define MMLDisplay_H
29 
30 #include <QObject>
31 
32 class MMLComponent;
33 class MMLMonitorDisplay;
34 
35 // Monitoring includes
36 #include <Monitor.h>
37 #include "MMLComponentAPI.h"
38 
47 class MMLCOMPONENT_API MMLDisplay : QObject {
48  Q_OBJECT
49 
50 public:
51  MMLDisplay(MMLComponent* mmlManager);
52  ~MMLDisplay() override;
53 
54 public slots:
56  void updateDisplay();
58  void connectMonitor();
60  void updateMonitorsTable();
62  void connectPml();
64  Monitor* getDisplayedMonitor();
66  int getDisplayedMonitorLine();
67 
68 private:
71 };
72 
73 #endif
MMLComponentAPI.h
MMLComponent::getPMLComponent
PMLComponent * getPMLComponent()
get Physical model manager
Definition: MMLComponent.cpp:157
MonitoringDriver.h
MMLMonitorDisplay.h
MMLDisplay.h
MMLMonitorDisplayFactory
A Factory for creating MMLMonitorDiplay.
Definition: MMLMonitorDisplayFactory.h:47
MMLDisplay::mmlManager
MMLComponent * mmlManager
Definition: MMLDisplay.h:69
MMLComponent::getMonitoringGuiManager
MonitoringGuiManager * getMonitoringGuiManager()
get MonitoringGuiManager
Definition: MMLComponent.cpp:152
Monitor::getValueType
Monitor::type getValueType()
Definition: Monitor.cpp:222
MonitoringGuiManager::getDialog
MonitoringDialog * getDialog()
get dialog
Definition: MonitoringGuiManager.cpp:64
MMLMonitorDisplayFactory::getNumberOfDisplaysByType
unsigned int getNumberOfDisplaysByType(Monitor::type type)
give the number of displays registered for a specified type
Definition: MMLMonitorDisplayFactory.cpp:55
MonitoringDialog.h
MMLComponent::connectPml
void connectPml()
connect pml
Definition: MMLComponent.cpp:168
MonitoringManager::getMonitor
Monitor * getMonitor(const unsigned int i) const
get a monitor by its index in the list
Definition: MonitoringManager.cpp:378
MMLDisplay::~MMLDisplay
~MMLDisplay() override
Definition: MMLDisplay.cpp:70
MMLMonitorDisplayFactory::getInstance
static MMLMonitorDisplayFactory * getInstance()
return the unique instance of the factory
Definition: MMLMonitorDisplayFactory.cpp:60
MMLDisplay::MMLDisplay
MMLDisplay(MMLComponent *mmlManager)
Definition: MMLDisplay.cpp:49
Atom.h
MMLDisplay::getDisplayedMonitor
Monitor * getDisplayedMonitor()
get the displayed monitor
Definition: MMLDisplay.cpp:150
MMLMonitorDisplay::hide
virtual void hide()=0
hide display
MMLMonitorDisplay
Generic class for MML Monitor 3D/Graphical representation.
Definition: MMLMonitorDisplay.h:45
MMLComponent
This class manage an MML monitoring document ".mml".
Definition: MMLComponent.h:48
MMLDisplay::connectPml
void connectPml()
slot called when physical model have changed
Definition: MMLDisplay.cpp:176
MMLMonitorDisplayFactory.h
MMLDisplay::connectMonitor
void connectMonitor()
slot called when Monitor displayed have changed
Definition: MMLDisplay.cpp:98
MMLDisplay::monitorDisplay
MMLMonitorDisplay * monitorDisplay
Definition: MMLDisplay.h:70
MonitoringGuiManager.h
MMLDisplay::getDisplayedMonitorLine
int getDisplayedMonitorLine()
get the line of the displayed monitor in the monitor tab
Definition: MMLDisplay.cpp:163
MonitoringDialog::getMonitorsTableWidget
QTableWidget * getMonitorsTableWidget()
get the monitors table
Definition: MonitoringDialog.cpp:365
MMLCOMPONENT_API
#define MMLCOMPONENT_API
Definition: MMLComponentAPI.h:54
MMLMonitorDisplayFactory::getDisplayByType
std::string getDisplayByType(Monitor::type type, const unsigned int i)
get a display name by its type and index
Definition: MMLMonitorDisplayFactory.cpp:45
PhysicalModel.h
MonitoringGuiManager::getMonitoringManager
MonitoringManager * getMonitoringManager()
get Monitoring Manager
Definition: MonitoringGuiManager.cpp:74
MMLDisplay
TODO Describe the class here.
Definition: MMLDisplay.h:47
MMLDisplay::updateDisplay
void updateDisplay()
slot called when display have to be updated
Definition: MMLDisplay.cpp:78
Monitor
A monitor calculate and store followed data (ex:calculation between current position and references) ...
Definition: Monitor.h:49
MMLComponent.h
PMLComponent.h
MMLDisplay::updateMonitorsTable
void updateMonitorsTable()
slot called when Monitors tab have to be updated
Definition: MMLDisplay.cpp:127
Monitor.h
PMLComponent::refreshDisplay
void refreshDisplay()
Refresh the display of the component according to the selected 3D items by the user.
Definition: PMLComponent.cpp:349
MMLMonitorDisplay::update
virtual void update()=0
update display
MMLMonitorDisplayFactory::createMonitorDisplay
MMLMonitorDisplay * createMonitorDisplay(std::string id, Monitor *monitor, MMLComponent *manager)
Creates an MMLMonitorDisplay based on its string id or return null if there is no id in the map.
Definition: MMLMonitorDisplayFactory.cpp:36