Class for maintaining an image of a color scale.
#include <DataAnalysis/Color/colorscaleimage.h>
◆ NumberFormat
Enumerator |
---|
ScientificNotation | |
DecimalNotation | |
AutoDetect | |
◆ Orientation
Analogous to Qt::Orientation except the values used are different. Specifically, the values used here start at zero, whereas Qt::Orientation starts at 1. This is done to make using enum's and enum widgets simpler.
Enumerator |
---|
Horizontal | Color scale stretches horizontally.
|
Vertical | Color scale stretches vertically.
|
◆ ScaleType
◆ ColorScaleImage()
◆ ~ColorScaleImage()
◆ getColorScale()
◆ getDepth()
◆ getDisplayNumericLimits()
bool getDisplayNumericLimits |
( |
| ) |
const |
◆ getFont()
const QFont & getFont |
( |
| ) |
const |
◆ getImage()
const QImage & getImage |
( |
| ) |
const |
- Returns
- The current image. It is always valid, but clients will usually want to ensure that they have called updateImage() at some point beforehand so that the image represents the color scale they are interested in.
◆ getLabelIntermediateValues()
bool getLabelIntermediateValues |
( |
| ) |
const |
◆ getLength()
◆ getNumberFormat()
◆ getOrientation()
◆ getPrecision()
int getPrecision |
( |
| ) |
const |
◆ getScaleType()
◆ getTextColor()
const QColor & getTextColor |
( |
| ) |
const |
◆ getTitle()
const QString & getTitle |
( |
| ) |
const |
- Returns
- The currently set title or an empty string if no title is set.
- See also
- setTitle()
◆ getTitleAlwaysHorizontal()
bool getTitleAlwaysHorizontal |
( |
| ) |
const |
◆ getValuesBelowRight()
bool getValuesBelowRight |
( |
| ) |
const |
◆ setColorScale()
◆ setDepth()
void setDepth |
( |
int |
depth | ) |
|
◆ setDisplayNumericLimits()
void setDisplayNumericLimits |
( |
bool |
display | ) |
|
◆ setFont()
void setFont |
( |
const QFont & |
font | ) |
|
◆ setLabelIntermediateValues()
void setLabelIntermediateValues |
( |
bool |
b | ) |
|
◆ setLength()
void setLength |
( |
int |
length | ) |
|
◆ setNumberFormat()
◆ setOrientation()
◆ setPrecision()
void setPrecision |
( |
int |
n | ) |
|
◆ setScaleType()
◆ setTextColor()
void setTextColor |
( |
const QColor & |
color | ) |
|
◆ setTitle()
void setTitle |
( |
const QString & |
title | ) |
|
- Parameters
-
title | The new title for the color scale. It can be an empty string, which is the default. |
- See also
- getTitle()
◆ setTitleAlwaysHorizontal()
void setTitleAlwaysHorizontal |
( |
bool |
b | ) |
|
◆ setValuesBelowRight()
void setValuesBelowRight |
( |
bool |
b | ) |
|
- Parameters
-
b | If true, the values of the color scale will appear to the right for the vertical orientation and below for the horizontal orientation. If false, it will appear to the left/above instead respectively. |
The title of the color scale is on the opposite side of the scale to the values. Thus, if you swap the location of the values, you also swap the location of the title.
◆ updateImage()