#include <wstatistics.h>
Public Slots | |
void | UpdateStats (Selection *s, Image *pImage) |
Method called by Visu2d when an update of the stats is needed. | |
Signals | |
void | SaveSelection () |
void | ReadSelection () |
Public Member Functions | |
WStatistics (QWidget *parent=NULL) | |
virtual | ~WStatistics () |
Protected Member Functions | |
void | InitNul () |
Protected Attributes | |
Ui::WStatistics | m_ui |
Definition at line 18 of file wstatistics.h.
WStatistics::WStatistics | ( | QWidget * | parent = NULL |
) |
Window dedicated to the display of shapes' characteristics : size, stats on the gray levels
Definition at line 16 of file wstatistics.cpp.
References InitNul(), Ui_WStatistics::m_pbRead, Ui_WStatistics::m_pbSave, m_ui, ReadSelection(), SaveSelection(), and Ui_WStatistics::setupUi().
WStatistics::~WStatistics | ( | ) | [virtual] |
Definition at line 25 of file wstatistics.cpp.
void WStatistics::SaveSelection | ( | ) | [signal] |
signal sent to the visualization when the user clicks on 'Save'
Definition at line 89 of file moc_wstatistics.cpp.
Referenced by WStatistics().
void WStatistics::ReadSelection | ( | ) | [signal] |
signal sent to the visualization when the user clicks on 'Read'
Definition at line 95 of file moc_wstatistics.cpp.
Referenced by WStatistics().
Method called by Visu2d when an update of the stats is needed.
s | pointer to the current selection (set of shapes displayed on scree) | |
pImage | pointer to the data (for the computation of stats) |
Definition at line 29 of file wstatistics.cpp.
References Shape::GetCenterX(), Shape::GetCenterY(), Shape::GetHeight(), Selection::GetShape(), Shape::GetSurface(), Selection::GetSurface(), Shape::GetType(), Shape::GetWidth(), InitNul(), Ui_WStatistics::m_cx, Ui_WStatistics::m_cy, Ui_WStatistics::m_ht, Ui_WStatistics::m_lg, Ui_WStatistics::m_nbHits, Ui_WStatistics::m_nbTotHits, Ui_WStatistics::m_surf, Ui_WStatistics::m_totSurf, Ui_WStatistics::m_type, m_ui, Shape::SumValues(), and Selection::SumValues().
Referenced by WFrame::UpdateStats().
void WStatistics::InitNul | ( | ) | [protected] |
Reset everything in the window
Definition at line 57 of file wstatistics.cpp.
References Ui_WStatistics::m_cx, Ui_WStatistics::m_cy, Ui_WStatistics::m_ht, Ui_WStatistics::m_lg, Ui_WStatistics::m_nbHits, Ui_WStatistics::m_surf, Ui_WStatistics::m_type, and m_ui.
Referenced by UpdateStats(), and WStatistics().
Ui::WStatistics WStatistics::m_ui [protected] |
Internal Qt mechanism binding to windows created with the designer
Definition at line 28 of file wstatistics.h.
Referenced by InitNul(), UpdateStats(), and WStatistics().