Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

vuMCHistogram Class Reference

This widget shows a historgram and displayes the value of a bar under the mouse cursor. More...

#include <vuMarchingCubes.h>

Inheritance diagram for vuMCHistogram:

Inheritance graph
[legend]
Collaboration diagram for vuMCHistogram:

Collaboration graph
[legend]
List of all members.

Public Types

enum  { idMCHPaint = vuMCSlider::idMCSLast, idCbxDelayedUpdate, idClkHistogram, idMCHLast }

Public Member Functions

 vuMCHistogram ()
 Default constructor.
 vuMCHistogram (wxWindow *p, wxSize size, vuMCDecorator< int > *cb=NULL)
virtual ~vuMCHistogram ()
 Destructor.
void Clear ()
void Flush ()
void Inc (int i, int val=1)
void SetSelColor (vuVector c)
void SetSelColor (wxColour &c)
void Select (int type)
void OnTextChange (wxString txt)
void OnClicked (int idx)
void OnDelayedUpdateChecked (wxCommandEvent &event)
 DECLARE_DYNAMIC_CLASS (vuMCHistogram)
 DECLARE_EVENT_TABLE ()

Private Attributes

wxCheckBox * _delayedUpdate
 Checkbox which controlls the widget repainting.
wxWindow * _parent
 We remember the parent for the OnPaint event handler.
_HistoCanvas_histoDC
 This widget plots the histogram.
wxStaticText * _desc
 If the mouse is over a bar in the histogram, it's value is shown here.
vuMCDecorator< int > * _callback

Detailed Description

This widget shows a historgram and displayes the value of a bar under the mouse cursor.

The widget also provides a checkbox to change the GUI update behaviour.

Definition at line 865 of file vuMarchingCubes.h.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
idMCHPaint 
idCbxDelayedUpdate 
idClkHistogram 
idMCHLast 

Definition at line 870 of file vuMarchingCubes.h.


Constructor & Destructor Documentation

vuMCHistogram::vuMCHistogram  )  [inline]
 

Default constructor.

Definition at line 894 of file vuMarchingCubes.h.

vuMCHistogram::vuMCHistogram wxWindow *  p,
wxSize  size,
vuMCDecorator< int > *  cb = NULL
 

Definition at line 952 of file vuMarchingCubes.cpp.

References DEBUGC, and size.

vuMCHistogram::~vuMCHistogram  )  [virtual]
 

Destructor.

Definition at line 967 of file vuMarchingCubes.cpp.

References DEBUGD.


Member Function Documentation

void vuMCHistogram::Clear  ) 
 

Definition at line 975 of file vuMarchingCubes.cpp.

References _histoDC, DEBUG0, and _HistoCanvas::Reset().

Referenced by vuMCMCBHistoCallback::Clear().

Here is the call graph for this function:

vuMCHistogram::DECLARE_DYNAMIC_CLASS vuMCHistogram   ) 
 

vuMCHistogram::DECLARE_EVENT_TABLE  ) 
 

Reimplemented from vuMCWidget.

void vuMCHistogram::Flush  ) 
 

Definition at line 981 of file vuMarchingCubes.cpp.

References _histoDC, DEBUG0, and _HistoCanvas::OnPaint().

Referenced by vuMCMCBHistoCallback::Flush(), vuMarchingCubes::OnChar(), OnClicked(), vuMarchingCubes::OnCubeChange(), vuMarchingCubes::OnThresChange(), and Select().

Here is the call graph for this function:

void vuMCHistogram::Inc int  i,
int  val = 1
 

Definition at line 989 of file vuMarchingCubes.cpp.

References _histoDC, DEBUG0, and _HistoCanvas::Inc().

Referenced by vuMCMCBHistoCallback::Inc().

Here is the call graph for this function:

void vuMCHistogram::OnClicked int  idx  ) 
 

Definition at line 1021 of file vuMarchingCubes.cpp.

References _histoDC, DEBUG0, DEBUG5, Flush(), and _HistoCanvas::Select().

Referenced by _HistoCanvas::OnMouse().

Here is the call graph for this function:

void vuMCHistogram::OnDelayedUpdateChecked wxCommandEvent &  event  ) 
 

Definition at line 1032 of file vuMarchingCubes.cpp.

References _delayedUpdate, _histoDC, DEBUG0, and _HistoCanvas::DelayedUpdate().

Here is the call graph for this function:

void vuMCHistogram::OnTextChange wxString  txt  ) 
 

Definition at line 1015 of file vuMarchingCubes.cpp.

References _desc, and DEBUG0.

Referenced by _HistoCanvas::OnMotion(), and _HistoCanvas::OnPaint().

void vuMCHistogram::Select int  type  ) 
 

Definition at line 1008 of file vuMarchingCubes.cpp.

References _histoDC, DEBUG0, Flush(), and _HistoCanvas::Select().

Referenced by vuMarchingCubes::OnCubeChange(), and vuMarchingCubes::onDblClick().

Here is the call graph for this function:

void vuMCHistogram::SetSelColor wxColour &  c  ) 
 

Definition at line 1002 of file vuMarchingCubes.cpp.

References _histoDC, DEBUG0, and _HistoCanvas::SetSelColor().

Here is the call graph for this function:

void vuMCHistogram::SetSelColor vuVector  c  ) 
 

Definition at line 995 of file vuMarchingCubes.cpp.

References _histoDC, DEBUG0, and _HistoCanvas::SetSelColor().

Referenced by vuMarchingCubes::init(), and vuMarchingCubes::OnSetObjectColor().

Here is the call graph for this function:


Member Data Documentation

vuMCDecorator<int>* vuMCHistogram::_callback [private]
 

Definition at line 889 of file vuMarchingCubes.h.

wxCheckBox* vuMCHistogram::_delayedUpdate [private]
 

Checkbox which controlls the widget repainting.

Definition at line 880 of file vuMarchingCubes.h.

Referenced by OnDelayedUpdateChecked().

wxStaticText* vuMCHistogram::_desc [private]
 

If the mouse is over a bar in the histogram, it's value is shown here.

Definition at line 887 of file vuMarchingCubes.h.

Referenced by OnTextChange().

_HistoCanvas* vuMCHistogram::_histoDC [private]
 

This widget plots the histogram.

Definition at line 884 of file vuMarchingCubes.h.

Referenced by Clear(), Flush(), Inc(), OnClicked(), OnDelayedUpdateChecked(), Select(), and SetSelColor().

wxWindow* vuMCHistogram::_parent [private]
 

We remember the parent for the OnPaint event handler.

Definition at line 882 of file vuMarchingCubes.h.


The documentation for this class was generated from the following files:
Generated on Wed Dec 15 21:21:35 2004 for vuVolume by  doxygen 1.3.9.1