ALBA
|
#include <albaGUIRangeSlider.h>
Public Member Functions | |
albaGUIRangeSlider (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name=wxPanelNameStr) | |
void | SetListener (albaObserver *listener) |
double | GetValue (int i) const |
void | SetValue (int i, double value) |
const double * | GetRange () const |
void | SetRange (double *range) |
void | SetRange (double minR, double maxR) |
void | SetNumberOfWidgets (int num) |
void | EnableCenterWidget (bool enable) |
void | EnableBoundaryHandles (bool enable) |
bool | IsDragging () const |
Protected Member Functions | |
void | Initialize () |
void | OnPaint (wxPaintEvent &event) |
void | OnMouse (wxMouseEvent &event) |
void | OnRangeModified (wxCommandEvent &event) |
void | RedrawWidgets (wxDC &dc, bool eraseWidgets=false) |
void | DrawLabel (int x, int y, double val) |
Protected Attributes | |
double | m_Range [2] |
double | m_Value [3] |
int | m_NumberOfWidgets |
albaObserver * | m_Listener |
class name: albaGUIRangeSlider Class that handles a slider for visualising or changing range.
Definition at line 27 of file albaGUIRangeSlider.h.
albaGUIRangeSlider::albaGUIRangeSlider | ( | wxWindow * | parent, |
wxWindowID | id, | ||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = 0 , |
||
const wxString & | name = wxPanelNameStr |
||
) |
constructor
|
inline |
function for setting the listener of events coming from another object
Definition at line 34 of file albaGUIRangeSlider.h.
References m_Listener.
|
inline |
Get the 'min', 'max' or 'mid' value according to 'i'.
Definition at line 37 of file albaGUIRangeSlider.h.
References m_Value.
void albaGUIRangeSlider::SetValue | ( | int | i, |
double | value | ||
) |
Set the 'min', 'max' or 'mid' value according to 'i'.
|
inline |
Get the range of the slider.
Definition at line 43 of file albaGUIRangeSlider.h.
References m_Range.
void albaGUIRangeSlider::SetRange | ( | double * | range | ) |
Set the range for the slider.
|
inline |
Set the range for the slider.
Definition at line 49 of file albaGUIRangeSlider.h.
References SetRange().
Referenced by SetRange().
|
inline |
Set the number of widgets for the slider.
Definition at line 52 of file albaGUIRangeSlider.h.
References m_NumberOfWidgets.
|
inline |
Enable/Disable the center cursor for the slider.
Definition at line 55 of file albaGUIRangeSlider.h.
References m_NumberOfWidgets.
|
inline |
Hide / show the circles on the boundary of the slider.
Definition at line 58 of file albaGUIRangeSlider.h.
|
inline |
Return true if one of the cursors are moving.
Definition at line 61 of file albaGUIRangeSlider.h.
|
protected |
Initialize the values for the slider.
|
protected |
Refresh the slider shape.
|
protected |
Move the cursors on mouse event.
|
protected |
Intercept slider events and forward to the listener.
|
protected |
Redraw the widgets in the new position.
|
protected |
Draw a label according to the mouse position.
|
protected |
Definition at line 82 of file albaGUIRangeSlider.h.
Referenced by GetRange().
|
protected |
Definition at line 83 of file albaGUIRangeSlider.h.
Referenced by GetValue().
|
protected |
Definition at line 85 of file albaGUIRangeSlider.h.
Referenced by EnableCenterWidget(), and SetNumberOfWidgets().
|
protected |
Definition at line 86 of file albaGUIRangeSlider.h.
Referenced by SetListener().