HyperspaceExplorer 0.7.1
Public Member Functions | Private Attributes
UI::RotationSlider Class Reference

A QSlider which represents a rotation from -180 to 180 degrees. More...

#include <RotationSlider.h>

List of all members.

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).

Detailed Description

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.

Author:
Lene Preuss <lene.preuss@gmail.com>

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends

Generated on Mon Apr 9 2012 20:25:19 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo