slsDetectorPackage/libs/qwt-6.1.5/doc/man/man3/QwtCompassScaleDraw.3
Dhanya Thattil 38cd10d4e6
Qt5 built in qwt (#570)
- qt4->qt5
- in built qt5 6.1.5 because rhel7 is not upto date with qt5, removed findqwt.cmake
- made a fix in qwt lib (qwt_plot_layout.h) to work with 5.15 and lower versions for qrect constr.
- qt5 forms fixed, qt4 many hard coding forms switched to forms including qtabwidget, scrolls etc, fonts moved to forms
 - docking option enabled by default, removed option to disable docking feature from "Mode"
- added qVersionResolve utility functions to handle compatibility before and after qt5.12
- qtplots (ian's code) takes in gain mode enable to set some settings within the class, with proper gain plot ticks
- ensure gain plots have no zooming of z axis in 2d and y axis in 1d
- removed placeholder text in qpalette in main window form as its not supportd until 5.12 (so using qt5.9 designer insted of qt5.15 to cope)
- tab order
Servers:
- fixed some error messages that were empty for fail in funcs (mostly minor as if this error, major issues)
2022-11-11 15:15:10 +01:00

134 lines
2.8 KiB
Groff

.TH "QwtCompassScaleDraw" 3 "Mon Jun 1 2020" "Version 6.1.5" "Qwt User's Guide" \" -*- nroff -*-
.ad l
.nh
.SH NAME
QwtCompassScaleDraw \- A special scale draw made for \fBQwtCompass\fP\&.
.SH SYNOPSIS
.br
.PP
.PP
\fC#include <qwt_compass\&.h>\fP
.PP
Inherits \fBQwtRoundScaleDraw\fP\&.
.SS "Public Member Functions"
.in +1c
.ti -1c
.RI "\fBQwtCompassScaleDraw\fP ()"
.br
.RI "Constructor\&. "
.ti -1c
.RI "\fBQwtCompassScaleDraw\fP (const QMap< double, QString > &map)"
.br
.RI "Constructor\&. "
.ti -1c
.RI "void \fBsetLabelMap\fP (const QMap< double, QString > &map)"
.br
.RI "Set a map, mapping values to labels\&. "
.ti -1c
.RI "QMap< double, QString > \fBlabelMap\fP () const"
.br
.ti -1c
.RI "virtual \fBQwtText\fP \fBlabel\fP (double value) const"
.br
.in -1c
.SS "Additional Inherited Members"
.SH "Detailed Description"
.PP
A special scale draw made for \fBQwtCompass\fP\&.
\fBQwtCompassScaleDraw\fP maps values to strings using a special map, that can be modified by the application
.PP
The default map consists of the labels N, NE, E, SE, S, SW, W, NW\&.
.PP
\fBSee also\fP
.RS 4
\fBQwtCompass\fP
.RE
.PP
.SH "Constructor & Destructor Documentation"
.PP
.SS "QwtCompassScaleDraw::QwtCompassScaleDraw ()\fC [explicit]\fP"
.PP
Constructor\&. Initializes a label map for multiples of 45 degrees
.SS "QwtCompassScaleDraw::QwtCompassScaleDraw (const QMap< double, QString > & map)\fC [explicit]\fP"
.PP
Constructor\&.
.PP
\fBParameters\fP
.RS 4
\fImap\fP Value to label map
.RE
.PP
.SH "Member Function Documentation"
.PP
.SS "\fBQwtText\fP QwtCompassScaleDraw::label (double value) const\fC [virtual]\fP"
Map a value to a corresponding label
.PP
\fBParameters\fP
.RS 4
\fIvalue\fP Value that will be mapped
.RE
.PP
\fBlabel()\fP looks in the \fBlabelMap()\fP for a corresponding label for value or returns an null text\&.
.PP
\fBReturns\fP
.RS 4
Label
.RE
.PP
\fBSee also\fP
.RS 4
\fBlabelMap()\fP, \fBsetLabelMap()\fP
.RE
.PP
.PP
Reimplemented from \fBQwtAbstractScaleDraw\fP\&.
.SS "QMap< double, QString > QwtCompassScaleDraw::labelMap () const"
.PP
\fBReturns\fP
.RS 4
map, mapping values to labels
.RE
.PP
\fBSee also\fP
.RS 4
\fBsetLabelMap()\fP
.RE
.PP
.SS "void QwtCompassScaleDraw::setLabelMap (const QMap< double, QString > & map)"
.PP
Set a map, mapping values to labels\&.
.PP
\fBParameters\fP
.RS 4
\fImap\fP Value to label map
.RE
.PP
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\&.
.PP
\fBWarning\fP
.RS 4
The map will have no effect for values that are no major tick values\&. Major ticks can be changed by QwtScaleDraw::setScale
.RE
.PP
\fBSee also\fP
.RS 4
\fBlabelMap()\fP, scaleDraw(), setScale()
.RE
.PP
.SH "Author"
.PP
Generated automatically by Doxygen for Qwt User's Guide from the source code\&.