HyperspaceExplorer 0.7.1
|
A QSlider which represents a rotation from -180 to 180 degrees. More...
#include <RotationSlider.h>
Public Member Functions | |
RotationSlider (unsigned precision=2, QWidget *parent=0) | |
Constructs a RotationSlider with given stepsize in degrees. | |
virtual double | value () const |
Returns the value of the slider. | |
virtual void | setValue (double rot) |
Sets the value to rot . | |
Private Attributes | |
double | _precision |
How big the stepsize is (in degrees). |
A QSlider which represents a rotation from -180 to 180 degrees.
The rotation value is displayed in degrees, but returned in radians. The number of digits behind the dot is passed to the constructor as integer parameter.