GOFIGURE2  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Properties | Private Member Functions | List of all members
ctkDoubleRangeSlider Class Reference

#include <Code/ExternalCode/ctk/ctkDoubleRangeSlider.h>

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

Public Types

typedef QWidget Superclass
 

Public Slots

void setMaximumValue (double maxVal)
 
void setMinimumValue (double minVal)
 
void setValues (double minVal, double maxVal)
 Utility function that set the minimum value and maximum value at once. More...
 

Signals

void maximumPositionChanged (double maxPos)
 
void maximumValueChanged (double maxVal)
 
void minimumPositionChanged (double minPos)
 
void minimumValueChanged (double minVal)
 
void positionsChanged (double minPos, double maxPos)
 
void rangeChanged (double min, double max)
 
void sliderPressed ()
 
void sliderReleased ()
 
void valuesChanged (double minVal, double maxVal)
 Utility signal that is fired when minimum or maximum values have changed. More...
 

Public Member Functions

 ctkDoubleRangeSlider (Qt::Orientation o, QWidget *par=0)
 
 ctkDoubleRangeSlider (QWidget *par=0)
 
bool hasTracking () const
 
double maximum () const
 
double maximumPosition () const
 
double maximumValue () const
 
double minimum () const
 
double minimumPosition () const
 
double minimumValue () const
 
Qt::Orientation orientation () const
 
void setMaximum (double max)
 
void setMaximumPosition (double maxPos)
 
void setMinimum (double min)
 
void setMinimumPosition (double minPos)
 
void setOrientation (Qt::Orientation orientation)
 
void setPositions (double minPos, double maxPos)
 
void setRange (double min, double max)
 
void setSingleStep (double ss)
 
void setSymmetricMoves (bool symmetry)
 
void setTickInterval (double ti)
 
void setTracking (bool enable)
 
double singleStep () const
 
bool symmetricMoves () const
 
double tickInterval () const
 
void triggerAction (QAbstractSlider::SliderAction action)
 
virtual ~ctkDoubleRangeSlider ()
 Destructor. More...
 

Protected Slots

void onMaxPosChanged (int value)
 
void onMaxValueChanged (int value)
 
void onMinPosChanged (int value)
 
void onMinValueChanged (int value)
 
void onPositionsChanged (int min, int max)
 
void onRangeChanged (int min, int max)
 
void onValuesChanged (int min, int max)
 

Protected Member Functions

void setSlider (ctkRangeSlider *slider)
 Subclasses can change the internal slider. More...
 
ctkRangeSliderslider () const
 

Protected Attributes

QScopedPointer
< ctkDoubleRangeSliderPrivate
d_ptr
 

Properties

double maximum
 
double maximumPosition
 
double maximumValue
 
double minimum
 
double minimumPosition
 
double minimumValue
 
Qt::Orientation orientation
 
double singleStep
 
bool symmetricMoves
 
double tickInterval
 
bool tracking
 

Private Member Functions

 Q_DECLARE_PRIVATE (ctkDoubleRangeSlider)
 
 Q_DISABLE_COPY (ctkDoubleRangeSlider)
 

Detailed Description

ctkDoubleRangeSlider is a slider that controls 2 numbers as double. ctkDoubleRangeSlider internally aggregates a ctkRangeSlider (not in the API to prevent misuse). Only subclasses can have access to it.

See Also
ctkRangeSlider, ctkDoubleSlider, ctkRangeWidget

Definition at line 39 of file ctkDoubleRangeSlider.h.

Member Typedef Documentation

Definition at line 55 of file ctkDoubleRangeSlider.h.

Constructor & Destructor Documentation

ctkDoubleRangeSlider::ctkDoubleRangeSlider ( Qt::Orientation  o,
QWidget *  par = 0 
)

Constructor, builds a ctkDoubleRangeSlider whose default values are the same as ctkRangeSlider.

Definition at line 168 of file ctkDoubleRangeSlider.cpp.

ctkDoubleRangeSlider::ctkDoubleRangeSlider ( QWidget *  par = 0)

Constructor, builds a ctkDoubleRangeSlider whose default values are the same as ctkRangeSlider.

Definition at line 160 of file ctkDoubleRangeSlider.cpp.

ctkDoubleRangeSlider::~ctkDoubleRangeSlider ( )
virtual

Destructor.

Definition at line 178 of file ctkDoubleRangeSlider.cpp.

Member Function Documentation

bool ctkDoubleRangeSlider::hasTracking ( ) const

Definition at line 464 of file ctkDoubleRangeSlider.cpp.

double ctkDoubleRangeSlider::maximum ( ) const

This property holds the slider's maximum value. When setting this property, the minimum is adjusted if necessary to ensure that the range remains valid. Also the slider's current values are adjusted to be within the new range.

double ctkDoubleRangeSlider::maximumPosition ( ) const

This property holds the current slider maximum position. If tracking is enabled (the default), this is identical to maximumValue.

void ctkDoubleRangeSlider::maximumPositionChanged ( double  maxPos)
signal

This signal is emitted when sliderDown is true and the slider moves. This usually happens when the user is dragging the maximum slider. The value is the new slider maximum position. This signal is emitted even when tracking is turned off.

double ctkDoubleRangeSlider::maximumValue ( ) const

This property holds the slider's current maximum value. The slider forces the maximum value to be within the legal range: minimum <= minvalue <= maxvalue <= maximum. Changing the maximumValue also changes the maximumPosition.

void ctkDoubleRangeSlider::maximumValueChanged ( double  maxVal)
signal

This signal is emitted when the slider maximum value has changed, with the new slider value as argument.

double ctkDoubleRangeSlider::minimum ( ) const

This property holds the sliders's minimum value. When setting this property, the maximum is adjusted if necessary to ensure that the range remains valid. Also the slider's current values are adjusted to be within the new range.

double ctkDoubleRangeSlider::minimumPosition ( ) const

This property holds the current slider minimum position. If tracking is enabled (the default), this is identical to minimumValue.

void ctkDoubleRangeSlider::minimumPositionChanged ( double  minPos)
signal

This signal is emitted when sliderDown is true and the slider moves. This usually happens when the user is dragging the minimum slider. The value is the new slider minimum position. This signal is emitted even when tracking is turned off.

double ctkDoubleRangeSlider::minimumValue ( ) const

This property holds the slider's current minimum value. The slider forces the minimum value to be within the legal range: minimum <= minvalue <= maxvalue <= maximum. Changing the minimumValue also changes the minimumPosition.

void ctkDoubleRangeSlider::minimumValueChanged ( double  minVal)
signal

This signal is emitted when the slider minimum value has changed, with the new slider value as argument.

void ctkDoubleRangeSlider::onMaxPosChanged ( int  value)
protectedslot

Definition at line 575 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::onMaxValueChanged ( int  value)
protectedslot

Definition at line 527 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::onMinPosChanged ( int  value)
protectedslot

Definition at line 568 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::onMinValueChanged ( int  value)
protectedslot

Definition at line 513 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::onPositionsChanged ( int  min,
int  max 
)
protectedslot

Definition at line 582 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::onRangeChanged ( int  min,
int  max 
)
protectedslot

Definition at line 589 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::onValuesChanged ( int  min,
int  max 
)
protectedslot

Definition at line 541 of file ctkDoubleRangeSlider.cpp.

Qt::Orientation ctkDoubleRangeSlider::orientation ( ) const

This property holds the orientation of the slider. The orientation must be Qt::Vertical (the default) or Qt::Horizontal.

void ctkDoubleRangeSlider::positionsChanged ( double  minPos,
double  maxPos 
)
signal

Utility signal that is fired when minimum or maximum positions have changed.

ctkDoubleRangeSlider::Q_DECLARE_PRIVATE ( ctkDoubleRangeSlider  )
private
ctkDoubleRangeSlider::Q_DISABLE_COPY ( ctkDoubleRangeSlider  )
private
void ctkDoubleRangeSlider::rangeChanged ( double  min,
double  max 
)
signal

This signal is emitted when the slider range has changed, with min being the new minimum, and max being the new maximum. Warning: don't confound with valuesChanged(double, double);

See Also
QAbstractSlider::rangeChanged()
void ctkDoubleRangeSlider::setMaximum ( double  max)

Definition at line 209 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::setMaximumPosition ( double  maxPos)

Definition at line 284 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::setMaximumValue ( double  maxVal)
slot

This property holds the slider's current maximum value. The slider forces the maximum value to be within the legal range: minimum <= minvalue <= maxvalue <= maximum. Changing the maximumValue also changes the maximumPosition.

Definition at line 343 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::setMinimum ( double  min)

Definition at line 183 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::setMinimumPosition ( double  minPos)

Definition at line 270 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::setMinimumValue ( double  minVal)
slot

This property holds the slider's current minimum value. The slider forces the minimum value to be within the legal range: minimum <= minvalue <= maxvalue <= maximum. Changing the minimumValue also changes the minimumPosition.

Definition at line 305 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::setOrientation ( Qt::Orientation  orientation)

Definition at line 485 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::setPositions ( double  minPos,
double  maxPos 
)

Utility function that set the minimum position and maximum position at once.

Definition at line 291 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::setRange ( double  min,
double  max 
)

Sets the slider's minimum to min and its maximum to max. If max is smaller than min, min becomes the only legal value.

Definition at line 235 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::setSingleStep ( double  ss)

This property holds the single step. The smaller of two natural steps that an abstract sliders provides and typically corresponds to the user pressing an arrow key

Definition at line 426 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::setSlider ( ctkRangeSlider slider)
protected

Subclasses can change the internal slider.

Definition at line 606 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::setSymmetricMoves ( bool  symmetry)

Definition at line 506 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::setTickInterval ( double  ti)

This property holds the interval between tickmarks. This is a value interval, not a pixel interval. If it is 0, the slider will choose between lineStep() and pageStep(). The default value is 0.

Definition at line 457 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::setTracking ( bool  enable)

This property holds whether slider tracking is enabled. If tracking is enabled (the default), the slider emits the minimumValueChanged() signal while the left/bottom handler is being dragged and the slider emits the maximumValueChanged() signal while the right/top handler is being dragged. If tracking is disabled, the slider emits the minimumValueChanged() and maximumValueChanged() signals only when the user releases the slider.

Definition at line 471 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::setValues ( double  minVal,
double  maxVal 
)
slot

Utility function that set the minimum value and maximum value at once.

Definition at line 374 of file ctkDoubleRangeSlider.cpp.

double ctkDoubleRangeSlider::singleStep ( ) const
ctkRangeSlider * ctkDoubleRangeSlider::slider ( ) const
protected

Definition at line 599 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::sliderPressed ( )
signal

This signal is emitted when the user presses one slider with the mouse, or programmatically when setSliderDown(true) is called.

void ctkDoubleRangeSlider::sliderReleased ( )
signal

This signal is emitted when the user releases one slider with the mouse, or programmatically when setSliderDown(false) is called.

bool ctkDoubleRangeSlider::symmetricMoves ( ) const

When symmetricMoves is true, moving a handle will move the other handle symmetrically, otherwise the handles are independent. False by default

double ctkDoubleRangeSlider::tickInterval ( ) const
void ctkDoubleRangeSlider::triggerAction ( QAbstractSlider::SliderAction  action)

Triggers a slider action on the current slider. Possible actions are SliderSingleStepAdd, SliderSingleStepSub, SliderPageStepAdd, SliderPageStepSub, SliderToMinimum, SliderToMaximum, and SliderMove.

Definition at line 478 of file ctkDoubleRangeSlider.cpp.

void ctkDoubleRangeSlider::valuesChanged ( double  minVal,
double  maxVal 
)
signal

Utility signal that is fired when minimum or maximum values have changed.

Member Data Documentation

QScopedPointer<ctkDoubleRangeSliderPrivate> ctkDoubleRangeSlider::d_ptr
protected

Definition at line 249 of file ctkDoubleRangeSlider.h.

Property Documentation

double ctkDoubleRangeSlider::maximum
readwrite

Definition at line 43 of file ctkDoubleRangeSlider.h.

double ctkDoubleRangeSlider::maximumPosition
readwrite

Definition at line 48 of file ctkDoubleRangeSlider.h.

double ctkDoubleRangeSlider::maximumValue
readwrite

Definition at line 46 of file ctkDoubleRangeSlider.h.

double ctkDoubleRangeSlider::minimum
readwrite

Definition at line 42 of file ctkDoubleRangeSlider.h.

double ctkDoubleRangeSlider::minimumPosition
readwrite

Definition at line 47 of file ctkDoubleRangeSlider.h.

double ctkDoubleRangeSlider::minimumValue
readwrite

Definition at line 45 of file ctkDoubleRangeSlider.h.

Qt::Orientation ctkDoubleRangeSlider::orientation
readwrite

Definition at line 50 of file ctkDoubleRangeSlider.h.

double ctkDoubleRangeSlider::singleStep
readwrite

Definition at line 44 of file ctkDoubleRangeSlider.h.

bool ctkDoubleRangeSlider::symmetricMoves
readwrite

Definition at line 52 of file ctkDoubleRangeSlider.h.

double ctkDoubleRangeSlider::tickInterval
readwrite

Definition at line 51 of file ctkDoubleRangeSlider.h.

bool ctkDoubleRangeSlider::tracking
readwrite

Definition at line 49 of file ctkDoubleRangeSlider.h.


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