Computer Assited Medical Intervention Tool Kit  version 5.0
Statistics.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 #include <QtGui>
27 #include <QTableWidget>
28 
29 #include "MMLMonitorDisplay.h"
30 #include "MMLComponentAPI.h"
31 
32 #ifndef MMLMONITORSDISLPAYS_STATISTICS_H
33 #define MMLMONITORSDISLPAYS_STATISTICS_H
34 
36 
37 public:
38 
40  Statistics(Monitor* monitor, MMLComponent* manager);
42  ~Statistics() override;
43 
45  void update() override;
47  void hide() override;
48 
49 private:
50 
52  QTableWidget* table;
54  int line;
56  int oldRowSize;
57 
58 };
59 
60 #endif
MMLMonitorDisplay::manager
MMLComponent * manager
display
Definition: MMLMonitorDisplay.h:64
MMLComponentAPI.h
MMLMonitorDisplay.h
MMLDisplay.h
MMLComponent::getMonitoringGuiManager
MonitoringGuiManager * getMonitoringGuiManager()
get MonitoringGuiManager
Definition: MMLComponent.cpp:152
Monitor::SCALARSET
@ SCALARSET
Definition: Monitor.h:108
Statistics::table
QTableWidget * table
tabular
Definition: Statistics.h:75
MonitoringGuiManager::getDialog
MonitoringDialog * getDialog()
get dialog
Definition: MonitoringGuiManager.cpp:64
MMLMonitorDisplay::monitor
Monitor * monitor
monitor
Definition: MMLMonitorDisplay.h:62
statisticsRegistered
bool statisticsRegistered
Definition: Statistics.cpp:37
Statistics::update
void update() override
update display
Definition: Statistics.cpp:59
MonitoringDialog.h
MMLMonitorDisplayFactory::getInstance
static MMLMonitorDisplayFactory * getInstance()
return the unique instance of the factory
Definition: MMLMonitorDisplayFactory.cpp:60
Statistics::Statistics
Statistics(Monitor *monitor, MMLComponent *manager)
constructor
Definition: Statistics.cpp:39
Statistics::oldRowSize
int oldRowSize
old row size in the monitors table
Definition: Statistics.h:79
Statistics::line
int line
row line in monitor table
Definition: Statistics.h:77
Statistics::~Statistics
~Statistics() override
destructor
Definition: Statistics.cpp:53
MMLMonitorDisplay::hide
virtual void hide()=0
hide display
MMLMonitorDisplay
Generic class for MML Monitor 3D/Graphical representation.
Definition: MMLMonitorDisplay.h:45
Statistics
Definition: Statistics.h:35
MMLComponent
This class manage an MML monitoring document ".mml".
Definition: MMLComponent.h:48
MMLMonitorDisplayFactory::registerClass
bool registerClass(std::string id, Monitor::type type)
Register a class into the map A registered class can be created using createMonitorDisplay().
Definition: MMLMonitorDisplayFactory.h:64
MMLMonitorDisplayFactory.h
MonitoringGuiManager.h
Monitor::getValue
double getValue(const unsigned int i)
get value i of values vector
Definition: Monitor.cpp:250
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
Statistics::hide
void hide() override
hide display
Definition: Statistics.cpp:99
Statistics.h
MMLComponent::getDisplay
MMLDisplay * getDisplay()
get the display
Definition: MMLComponent.cpp:162
Monitor
A monitor calculate and store followed data (ex:calculation between current position and references) ...
Definition: Monitor.h:49
Monitor::getNumberOfValues
unsigned int getNumberOfValues()
get number of value in values vetor
Definition: Monitor.cpp:270
MMLComponent.h
MMLMonitorDisplay::update
virtual void update()=0
update display