ALBA
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
albaGUIFloatSlider Class Reference

#include <albaGUIFloatSlider.h>

Inheritance diagram for albaGUIFloatSlider:
Inheritance graph
[legend]
Collaboration diagram for albaGUIFloatSlider:
Collaboration graph
[legend]

Public Member Functions

 albaGUIFloatSlider (wxWindow *parent=NULL, wxWindowID id=-1, const double &value=0, const double &minvalue=0, const double &maxvalue=1, const wxPoint &position=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxSL_HORIZONTAL)
 
 ~albaGUIFloatSlider ()
 
void SetValue (double value)
 
double GetValue ()
 
double GetSliderValue ()
 
void SetRange (double min, double max, double value)
 
void SetRange (double min, double max)
 
void SetNumberOfSteps (int num)
 
int GetNumberOfSteps ()
 
double GetStep ()
 
void SetMax (double max)
 
double GetMax ()
 
void SetMin (double min)
 
double GetMin ()
 

Protected Member Functions

double Round (double val)
 
double Pow10 (double exponent)
 
void DiscretizeRangeRange (double min, double max, double n, double *ra, double *rb, double *rs)
 

Protected Attributes

int m_DesiredTicks
 
int m_Ticks
 
double m_Value
 
double m_Step
 
double m_Max
 
double m_Min
 

Detailed Description

a Slider that can be used to set double values, albaGUIFloatSlider send usual wxWindows Events; Use albaGUIFloatSlider in combination with a albaGUIValidator to receive notification as albaEvents.

Definition at line 38 of file albaGUIFloatSlider.h.

Constructor & Destructor Documentation

◆ albaGUIFloatSlider()

albaGUIFloatSlider::albaGUIFloatSlider ( wxWindow *  parent = NULL,
wxWindowID  id = -1,
const double &  value = 0,
const double &  minvalue = 0,
const double &  maxvalue = 1,
const wxPoint &  position = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxSL_HORIZONTAL 
)

◆ ~albaGUIFloatSlider()

albaGUIFloatSlider::~albaGUIFloatSlider ( )

Member Function Documentation

◆ SetValue()

void albaGUIFloatSlider::SetValue ( double  value)

Set the slider value.

◆ GetValue()

double albaGUIFloatSlider::GetValue ( )

Get the current value.

◆ GetSliderValue()

double albaGUIFloatSlider::GetSliderValue ( )

Get the slider Value.

◆ SetRange() [1/2]

void albaGUIFloatSlider::SetRange ( double  min,
double  max,
double  value 
)

Set the slider range and value.

◆ SetRange() [2/2]

void albaGUIFloatSlider::SetRange ( double  min,
double  max 
)

Set the slider range.

◆ SetNumberOfSteps()

void albaGUIFloatSlider::SetNumberOfSteps ( int  num)

Set the number of slider's steps.

◆ GetNumberOfSteps()

int albaGUIFloatSlider::GetNumberOfSteps ( )
inline

Get the number of slider's steps.

Definition at line 72 of file albaGUIFloatSlider.h.

◆ GetStep()

double albaGUIFloatSlider::GetStep ( )
inline

Get the slider's step value.

Definition at line 75 of file albaGUIFloatSlider.h.

◆ SetMax()

void albaGUIFloatSlider::SetMax ( double  max)

Set the slider's max value.

◆ GetMax()

double albaGUIFloatSlider::GetMax ( )
inline

Get the slider's max value.

Definition at line 81 of file albaGUIFloatSlider.h.

◆ SetMin()

void albaGUIFloatSlider::SetMin ( double  min)

Set the slider's min value.

◆ GetMin()

double albaGUIFloatSlider::GetMin ( )
inline

Get the slider's min value.

Definition at line 87 of file albaGUIFloatSlider.h.

◆ Round()

double albaGUIFloatSlider::Round ( double  val)
protected

◆ Pow10()

double albaGUIFloatSlider::Pow10 ( double  exponent)
protected

◆ DiscretizeRangeRange()

void albaGUIFloatSlider::DiscretizeRangeRange ( double  min,
double  max,
double  n,
double *  ra,
double *  rb,
double *  rs 
)
protected

Member Data Documentation

◆ m_DesiredTicks

int albaGUIFloatSlider::m_DesiredTicks
protected

Definition at line 94 of file albaGUIFloatSlider.h.

◆ m_Ticks

int albaGUIFloatSlider::m_Ticks
protected

Definition at line 95 of file albaGUIFloatSlider.h.

◆ m_Value

double albaGUIFloatSlider::m_Value
protected

Definition at line 97 of file albaGUIFloatSlider.h.

◆ m_Step

double albaGUIFloatSlider::m_Step
protected

Definition at line 98 of file albaGUIFloatSlider.h.

◆ m_Max

double albaGUIFloatSlider::m_Max
protected

Definition at line 99 of file albaGUIFloatSlider.h.

◆ m_Min

double albaGUIFloatSlider::m_Min
protected

Definition at line 100 of file albaGUIFloatSlider.h.


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