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

vuMCSlider Class Reference

The widget provides a slider and to labels to display a title an the actual value. More...

#include <vuMarchingCubes.h>

Inheritance diagram for vuMCSlider:

Inheritance graph
[legend]
Collaboration diagram for vuMCSlider:

Collaboration graph
[legend]
List of all members.

Public Types

enum  { idMCSSlider = vuMCRGBColor::idMCRGBLast, idMCSLast }

Public Member Functions

 vuMCSlider ()
 Default constructor.
 vuMCSlider (wxWindow *p, const char *title, const char *format, vuMCDecorator< float > *cb, float min, float max, float val, int slMax=VU_MCS_SLIDER_MAX, bool cont=VU_MCS_CONTINUOUS_UPDATE)
virtual ~vuMCSlider ()
 Destructor.
 operator float ()
 Value getter.
void operator= (float val)
 Value setter.
float Min ()
 _min getter.
void Min (float min)
 _min setter.
float Max ()
 _max getter.
void Max (float max)
 _max setter.
const char * Format ()
 _format getter.
void Format (const char *f)
 _format setter.
bool UpdateMode ()
 _updateMode getter. A value of true means,
void UpdateMode (bool mode)
 _updateMode setter.
void OnScroll (wxScrollEvent &event)
 DECLARE_DYNAMIC_CLASS (vuMCSlider)
 DECLARE_EVENT_TABLE ()

Private Member Functions

void _setText (float val)
void _setValue (float val)
float _getValue ()

Private Attributes

float _min
float _max
int _slMax
wxStaticText * _title
const char * _format
wxStaticText * _value
wxSlider * _slider
vuMCDecorator< float > * _callback
bool _updateMode

Detailed Description

The widget provides a slider and to labels to display a title an the actual value.

The label which holds the value is updated automatically by the slider and by class updates.

Definition at line 687 of file vuMarchingCubes.h.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
idMCSSlider 
idMCSLast 

Definition at line 692 of file vuMarchingCubes.h.


Constructor & Destructor Documentation

vuMCSlider::vuMCSlider  )  [inline]
 

Default constructor.

Definition at line 719 of file vuMarchingCubes.h.

vuMCSlider::vuMCSlider wxWindow *  p,
const char *  title,
const char *  format,
vuMCDecorator< float > *  cb,
float  min,
float  max,
float  val,
int  slMax = VU_MCS_SLIDER_MAX,
bool  cont = VU_MCS_CONTINUOUS_UPDATE
 

Definition at line 591 of file vuMarchingCubes.cpp.

References assert, DEBUG6, DEBUGC, max, and min.

vuMCSlider::~vuMCSlider  )  [virtual]
 

Destructor.

Definition at line 613 of file vuMarchingCubes.cpp.

References DEBUGD.


Member Function Documentation

float vuMCSlider::_getValue  )  [private]
 

Definition at line 636 of file vuMarchingCubes.cpp.

References _max, _min, _slider, and DEBUG0.

Referenced by Max(), Min(), OnScroll(), and operator float().

void vuMCSlider::_setText float  val  )  [private]
 

Definition at line 622 of file vuMarchingCubes.cpp.

References _format, _value, and DEBUG0.

Referenced by Max(), Min(), OnScroll(), and operator=().

void vuMCSlider::_setValue float  val  )  [private]
 

Definition at line 628 of file vuMarchingCubes.cpp.

References _max, _min, _slider, _slMax, _title, assert, DEBUG0, and DEBUG6.

Referenced by Max(), Min(), and operator=().

vuMCSlider::DECLARE_DYNAMIC_CLASS vuMCSlider   ) 
 

vuMCSlider::DECLARE_EVENT_TABLE  ) 
 

Reimplemented from vuMCWidget.

void vuMCSlider::Format const char *  f  ) 
 

_format setter.

Definition at line 701 of file vuMarchingCubes.cpp.

References _format, and DEBUG0.

const char * vuMCSlider::Format  ) 
 

_format getter.

Definition at line 695 of file vuMarchingCubes.cpp.

References DEBUG0.

Referenced by vuMarchingCubes::init().

void vuMCSlider::Max float  max  ) 
 

_max setter.

Definition at line 681 of file vuMarchingCubes.cpp.

References _getValue(), _max, _min, _setText(), _setValue(), assert, DEBUG0, and max.

Here is the call graph for this function:

float vuMCSlider::Max  ) 
 

_max getter.

Definition at line 675 of file vuMarchingCubes.cpp.

References DEBUG0.

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

void vuMCSlider::Min float  min  ) 
 

_min setter.

Definition at line 661 of file vuMarchingCubes.cpp.

References _getValue(), _max, _min, _setText(), _setValue(), assert, DEBUG0, and min.

Here is the call graph for this function:

float vuMCSlider::Min  ) 
 

_min getter.

Definition at line 655 of file vuMarchingCubes.cpp.

References DEBUG0.

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

void vuMCSlider::OnScroll wxScrollEvent &  event  ) 
 

Definition at line 719 of file vuMarchingCubes.cpp.

References _getValue(), _setText(), _updateMode, DEBUG0, DEBUG2, and VU_MCS_END_UPDATE.

Here is the call graph for this function:

vuMCSlider::operator float  ) 
 

Value getter.

Definition at line 642 of file vuMarchingCubes.cpp.

References _getValue(), and DEBUG0.

Here is the call graph for this function:

void vuMCSlider::operator= float  val  ) 
 

Value setter.

Definition at line 648 of file vuMarchingCubes.cpp.

References _setText(), _setValue(), and DEBUG0.

Here is the call graph for this function:

void vuMCSlider::UpdateMode bool  mode  ) 
 

_updateMode setter.

Definition at line 713 of file vuMarchingCubes.cpp.

References _updateMode, and DEBUG0.

bool vuMCSlider::UpdateMode  ) 
 

_updateMode getter. A value of true means,

Definition at line 707 of file vuMarchingCubes.cpp.

References DEBUG0.

Referenced by vuMarchingCubes::addTop(), vuMarchingCubes::createSettingsNotebook(), and vuMarchingCubes::OnUpdateModeChecked().


Member Data Documentation

vuMCDecorator<float>* vuMCSlider::_callback [private]
 

Definition at line 708 of file vuMarchingCubes.h.

const char* vuMCSlider::_format [private]
 

Definition at line 704 of file vuMarchingCubes.h.

Referenced by _setText(), and Format().

float vuMCSlider::_max [private]
 

Definition at line 700 of file vuMarchingCubes.h.

Referenced by _getValue(), _setValue(), Max(), and Min().

float vuMCSlider::_min [private]
 

Definition at line 699 of file vuMarchingCubes.h.

Referenced by _getValue(), _setValue(), Max(), and Min().

wxSlider* vuMCSlider::_slider [private]
 

Definition at line 706 of file vuMarchingCubes.h.

Referenced by _getValue(), and _setValue().

int vuMCSlider::_slMax [private]
 

Definition at line 701 of file vuMarchingCubes.h.

Referenced by _setValue().

wxStaticText* vuMCSlider::_title [private]
 

Definition at line 703 of file vuMarchingCubes.h.

Referenced by _setValue().

bool vuMCSlider::_updateMode [private]
 

Definition at line 710 of file vuMarchingCubes.h.

Referenced by OnScroll(), and UpdateMode().

wxStaticText* vuMCSlider::_value [private]
 

Definition at line 705 of file vuMarchingCubes.h.

Referenced by _setText().


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