GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
QwtCompass(3) Qwt User's Guide QwtCompass(3)

QwtCompass -

#include <qwt_compass.h>
Inherits QwtDial.


QwtCompass (QWidget *parent=NULL)
 
virtual ~QwtCompass ()
 
const QMap< double, QString > & labelMap () const
 
QMap< double, QString > & labelMap ()
 
const QwtCompassRose * rose () const
 
QwtCompassRose * rose ()
 
void setLabelMap (const QMap< double, QString > &map)
 
void setRose (QwtCompassRose *rose)
 


virtual void drawRose (QPainter *, const QPoint &center, int radius, double north, QPalette::ColorGroup) const
 
virtual void drawScaleContents (QPainter *, const QPoint &center, int radius) const
 
virtual void keyPressEvent (QKeyEvent *)
 
virtual QwtText scaleLabel (double value) const
 

A Compass Widget.
QwtCompass is a widget to display and enter directions. It consists of a scale, an optional needle and rose.
Note:
The examples/dials example shows how to use QwtCompass.

Constructor. Parameters:
parent Parent widget
Create a compass widget with a scale, no needle and no rose. The default origin is 270.0 with no valid value. It accepts mouse and keyboard inputs and has no step size. The default mode is QwtDial::RotateNeedle.

Draw the compass rose
Parameters:
painter Painter
 
center Center of the compass
 
radius of the circle, where to paint the rose
 
north Direction pointing north, in degrees counter clockwise
 
cg Color group

Draw the contents of the scale
Parameters:
painter Painter
 
center Center of the content circle
 
radius Radius of the content circle
Reimplemented from QwtDial.

Handles key events
Beside the keys described in QwtDial::keyPressEvent numbers from 1-9 (without 5) set the direction according to their position on the num pad.
See also:
isReadOnly()
Reimplemented from QwtDial.

Returns:
map, mapping values to labels
See also:
setLabelMap()

Returns:
map, mapping values to labels
See also:
setLabelMap()

Returns:
rose
See also:
setRose()

Returns:
rose
See also:
setRose()

Map a value to a corresponding label
Parameters:
value Value that will be mapped
Returns:
Label, or QString::null
label() looks in a map for a corresponding label for value or return an null text.
See also:
labelMap(), setLabelMap()
Reimplemented from QwtDial.

Set a map, mapping values to labels. Parameters:
map value to label map
The values of the major ticks are found by looking into this map. The default map consists of the labels N, NE, E, SE, S, SW, W, NW.
Warning:
The map will have no effect for values that are no major tick values. Major ticks can be changed by QwtScaleDraw::setScale
See also:
labelMap(), scaleDraw(), setScale()

Set a rose for the compass
Parameters:
rose Compass rose
Warning:
The rose will be deleted, when a different rose is set or in ~QwtCompass
See also:
rose()

Generated automatically by Doxygen for Qwt User's Guide from the source code.
Tue Nov 20 2012 Version 5.2.3

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.