WStatistics Class Reference

Display window for the stats. More...

#include <wstatistics.h>

Collaboration diagram for WStatistics:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Display window for the stats.

Definition at line 18 of file wstatistics.h.


Constructor & Destructor Documentation

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().

Here is the call graph for this function:

WStatistics::~WStatistics (  )  [virtual]

Definition at line 25 of file wstatistics.cpp.


Member Function Documentation

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().

void WStatistics::UpdateStats ( Selection s,
Image pImage 
) [slot]

Method called by Visu2d when an update of the stats is needed.

Parameters:
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().

Here is the caller graph for this function:


Member Data Documentation

Internal Qt mechanism binding to windows created with the designer

Definition at line 28 of file wstatistics.h.

Referenced by InitNul(), UpdateStats(), and WStatistics().


The documentation for this class was generated from the following files:

Generated on Tue Sep 13 10:10:34 2011 for DrawQt by  doxygen 1.5.6