JKQTPlotter trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
|
if a class is derived from this class, it may use color bars More...
#include <jkqtpimagetools.h>
Public Member Functions | |
JKQTPColorPaletteStyleAndToolsMixin (JKQTBasePlotter *parent) | |
virtual | ~JKQTPColorPaletteStyleAndToolsMixin () |
virtual void | cbDrawOutside (JKQTPEnhancedPainter &painter, QRect leftSpace, QRect rightSpace, QRect topSpace, QRect bottomSpace) |
plots outside the actual plot field of view (e.g. color bars, scale bars, ...) | |
virtual void | cbGetDataMinMax (double &imin, double &imax)=0 |
determine min/max data value of the image | |
virtual void | cbGetOutsideSize (JKQTPEnhancedPainter &painter, int &leftSpace, int &rightSpace, int &topSpace, int &bottomSpace) |
if the graph plots outside the actual plot field of view (e.g. color bars, scale bars, ...) | |
virtual void | cbSetParent (JKQTBasePlotter *parent) |
set the parent class for internal objects (e.g. color bars) | |
JKQTPMathImageColorRangeFailAction | getActionRangeMaxFail () const |
which action to take if a color is above imageMax and autoImageRange ==false | |
JKQTPMathImageColorRangeFailAction | getActionRangeMinFail () const |
which action to take if a color is below imageMin and autoImageRange ==false | |
bool | getAutoImageRange () const |
indicates whether to estimate min/max of the image automatically | |
int | getColorBarOffset () const |
offset between outside space border and color bar | |
double | getColorBarRelativeHeight () const |
height of the color bar, as multiple of plotHeight | |
JKQTPVerticalIndependentAxis * | getColorBarRightAxis () |
object used for color bar axes at the right | |
const JKQTPVerticalIndependentAxis * | getColorBarRightAxis () const |
object used for color bar axes at the right | |
bool | getColorBarRightVisible () const |
right color bar visible | |
JKQTPHorizontalIndependentAxis * | getColorBarTopAxis () |
object used for color bar axes at the top | |
const JKQTPHorizontalIndependentAxis * | getColorBarTopAxis () const |
object used for color bar axes at the top | |
bool | getColorBarTopVisible () const |
top color bar visible | |
int | getColorBarWidth () const |
width of the color bar | |
JKQTPMathImageColorPalette | getColorPalette () const |
palette for plotting an image | |
double | getImageMax () const |
image value range maximum | |
double | getImageMin () const |
image value range minimum | |
QString | getImageName () const |
name of the image displayed above color bar (may contain LaTeX markup!) | |
QString | getImageNameFontName () const |
font name when displaying imageName | |
double | getImageNameFontSize () const |
font size in points when displaying imageName | |
QColor | getInfColor () const |
color to use for an infinity value | |
QColor | getNanColor () const |
color to use for a not-a-number value | |
QColor | getRangeMaxFailColor () const |
color to use for some settings of rangeMaxFailAction | |
QColor | getRangeMinFailColor () const |
color to use for some settings of rangeMinFailAction | |
bool | getShowColorBar () const |
indicate whether to display a color bar | |
void | setAutoImageRange (bool __value) |
indicates whether to estimate min/max of the image automatically | |
void | setColorBarOffset (int __value) |
offset between outside space border and color bar | |
void | setColorBarRelativeHeight (double __value) |
height of the color bar, as multiple of plotHeight | |
void | setColorBarRightVisible (bool __value) |
right color bar visible | |
void | setColorBarTopVisible (bool __value) |
top color bar visible | |
void | setColorBarWidth (int __value) |
width of the color bar | |
void | setColorPalette (const JKQTPMathImageColorPalette &__value) |
palette for plotting an image | |
void | setColorPalette (int pal) |
palette for plotting an image | |
void | setImageMax (double __value) |
image value range maximum | |
void | setImageMin (double __value) |
image value range minimum | |
void | setImageName (const QString &__value) |
name of the image displayed above color bar (may contain LaTeX markup!) | |
void | setImageNameFontName (const QString &__value) |
font name when displaying imageName | |
void | setImageNameFontSize (double __value) |
font size in points when displaying imageName | |
void | setInfColor (const QColor &__value) |
color to use for an infinity value | |
void | setNanColor (const QColor &__value) |
color to use for a not-a-number value | |
void | setRangeMaxFailAction (const JKQTPMathImageColorRangeFailAction &__value) |
which action to take if a color is above imageMax and autoImageRange ==false | |
void | setRangeMaxFailColor (const QColor &__value) |
color to use for some settings of rangeMaxFailAction | |
void | setRangeMinFailAction (const JKQTPMathImageColorRangeFailAction &__value) |
which action to take if a color is below imageMin and autoImageRange ==false | |
void | setRangeMinFailColor (const QColor &__value) |
color to use for some settings of rangeMinFailAction | |
void | setShowColorBar (bool __value) |
indicate whether to display a color bar | |
Static Public Member Functions | |
static QIcon | getPaletteIcon (int i) |
get QIcon representing the given palette | |
static QIcon | getPaletteIcon (JKQTPMathImageColorPalette palette) |
get QIcon representing the given palette | |
static QImage | getPaletteImage (int i, size_t width) |
get QIcon representing the given palette | |
static QImage | getPaletteImage (JKQTPMathImageColorPalette palette, size_t width) |
get QIcon representing the given palette | |
static QIcon | getPaletteKeyIcon (int i) |
get QIcon representing the given palette | |
static QIcon | getPaletteKeyIcon (JKQTPMathImageColorPalette palette) |
get QIcon representing the given palette | |
static QImage | getPaletteKeyImage (int i, size_t width, size_t height) |
get QIcon representing the given palette | |
static QImage | getPaletteKeyImage (JKQTPMathImageColorPalette palette, size_t width, size_t height) |
get QIcon representing the given palette | |
static QStringList | getPalettes () |
get list with all available palettes | |
static int | getPalettesCount () |
get list with all available palettes | |
Protected Attributes | |
bool | autoImageRange |
indicates whether to estimate min/max of the image automatically | |
JKQTBasePlotter * | cbParent |
int | colorBarOffset |
offset between outside space border and color bar | |
double | colorBarRelativeHeight |
height of the color bar, as multiple of plotHeight | |
JKQTPVerticalIndependentAxis * | colorBarRightAxis |
object used for color bar axes at the right | |
bool | colorBarRightVisible |
right color bar visible | |
JKQTPHorizontalIndependentAxis * | colorBarTopAxis |
object used for color bar axes at the top | |
bool | colorBarTopVisible |
top color bar visible | |
int | colorBarWidth |
width of the color bar | |
double | imageMax |
image value range maximum | |
double | imageMin |
image value range minimum | |
QString | imageName |
name of the image displayed above color bar (may contain LaTeX markup!) | |
QString | imageNameFontName |
font name when displaying imageName | |
double | imageNameFontSize |
font size in points when displaying imageName | |
QColor | infColor |
color to use for an infinity value | |
QColor | nanColor |
color to use for a not-a-number value | |
JKQTPMathImageColorPalette | palette |
palette for plotting an image | |
JKQTPMathImageColorRangeFailAction | rangeMaxFailAction |
which action to take if a color is above imageMax and autoImageRange ==false | |
QColor | rangeMaxFailColor |
color to use for some settings of rangeMaxFailAction | |
JKQTPMathImageColorRangeFailAction | rangeMinFailAction |
which action to take if a color is below imageMin and autoImageRange ==false | |
QColor | rangeMinFailColor |
color to use for some settings of rangeMinFailAction | |
bool | showColorBar |
indicate whether to display a color bar | |
if a class is derived from this class, it may use color bars
JKQTPColorPaletteStyleAndToolsMixin::JKQTPColorPaletteStyleAndToolsMixin | ( | JKQTBasePlotter * | parent | ) |
|
virtual |
|
virtual |
plots outside the actual plot field of view (e.g. color bars, scale bars, ...)
The four value supplied tell the method where to draw (inside one of the rectangles).
Reimplemented in JKQTPColorPaletteWithModifierStyleAndToolsMixin.
|
pure virtual |
determine min/max data value of the image
Implemented in JKQTPMathImage, JKQTPXYParametrizedScatterGraph, and JKQTPParametrizedVectorFieldGraph.
|
virtual |
if the graph plots outside the actual plot field of view (e.g. color bars, scale bars, ...)
Reimplemented in JKQTPColorPaletteWithModifierStyleAndToolsMixin.
|
virtual |
set the parent class for internal objects (e.g. color bars)
Reimplemented in JKQTPColorPaletteWithModifierStyleAndToolsMixin.
JKQTPMathImageColorRangeFailAction JKQTPColorPaletteStyleAndToolsMixin::getActionRangeMaxFail | ( | ) | const |
which action to take if a color is above imageMax and autoImageRange ==false
JKQTPMathImageColorRangeFailAction JKQTPColorPaletteStyleAndToolsMixin::getActionRangeMinFail | ( | ) | const |
which action to take if a color is below imageMin and autoImageRange ==false
bool JKQTPColorPaletteStyleAndToolsMixin::getAutoImageRange | ( | ) | const |
indicates whether to estimate min/max of the image automatically
int JKQTPColorPaletteStyleAndToolsMixin::getColorBarOffset | ( | ) | const |
offset between outside space border and color bar
double JKQTPColorPaletteStyleAndToolsMixin::getColorBarRelativeHeight | ( | ) | const |
height of the color bar, as multiple of plotHeight
JKQTPVerticalIndependentAxis * JKQTPColorPaletteStyleAndToolsMixin::getColorBarRightAxis | ( | ) |
object used for color bar axes at the right
const JKQTPVerticalIndependentAxis * JKQTPColorPaletteStyleAndToolsMixin::getColorBarRightAxis | ( | ) | const |
object used for color bar axes at the right
bool JKQTPColorPaletteStyleAndToolsMixin::getColorBarRightVisible | ( | ) | const |
right color bar visible
JKQTPHorizontalIndependentAxis * JKQTPColorPaletteStyleAndToolsMixin::getColorBarTopAxis | ( | ) |
object used for color bar axes at the top
const JKQTPHorizontalIndependentAxis * JKQTPColorPaletteStyleAndToolsMixin::getColorBarTopAxis | ( | ) | const |
object used for color bar axes at the top
bool JKQTPColorPaletteStyleAndToolsMixin::getColorBarTopVisible | ( | ) | const |
top color bar visible
int JKQTPColorPaletteStyleAndToolsMixin::getColorBarWidth | ( | ) | const |
width of the color bar
JKQTPMathImageColorPalette JKQTPColorPaletteStyleAndToolsMixin::getColorPalette | ( | ) | const |
palette for plotting an image
double JKQTPColorPaletteStyleAndToolsMixin::getImageMax | ( | ) | const |
image value range maximum
double JKQTPColorPaletteStyleAndToolsMixin::getImageMin | ( | ) | const |
image value range minimum
QString JKQTPColorPaletteStyleAndToolsMixin::getImageName | ( | ) | const |
name of the image displayed above color bar (may contain LaTeX markup!)
QString JKQTPColorPaletteStyleAndToolsMixin::getImageNameFontName | ( | ) | const |
font name when displaying imageName
double JKQTPColorPaletteStyleAndToolsMixin::getImageNameFontSize | ( | ) | const |
font size in points when displaying imageName
QColor JKQTPColorPaletteStyleAndToolsMixin::getInfColor | ( | ) | const |
color to use for an infinity value
QColor JKQTPColorPaletteStyleAndToolsMixin::getNanColor | ( | ) | const |
color to use for a not-a-number value
|
static |
get QIcon representing the given palette
|
static |
get QIcon representing the given palette
|
static |
get QIcon representing the given palette
|
static |
get QIcon representing the given palette
|
static |
get QIcon representing the given palette
|
static |
get QIcon representing the given palette
|
static |
get QIcon representing the given palette
|
static |
get QIcon representing the given palette
|
static |
get list with all available palettes
|
static |
get list with all available palettes
QColor JKQTPColorPaletteStyleAndToolsMixin::getRangeMaxFailColor | ( | ) | const |
color to use for some settings of rangeMaxFailAction
QColor JKQTPColorPaletteStyleAndToolsMixin::getRangeMinFailColor | ( | ) | const |
color to use for some settings of rangeMinFailAction
bool JKQTPColorPaletteStyleAndToolsMixin::getShowColorBar | ( | ) | const |
indicate whether to display a color bar
void JKQTPColorPaletteStyleAndToolsMixin::setAutoImageRange | ( | bool | __value | ) |
indicates whether to estimate min/max of the image automatically
void JKQTPColorPaletteStyleAndToolsMixin::setColorBarOffset | ( | int | __value | ) |
offset between outside space border and color bar
void JKQTPColorPaletteStyleAndToolsMixin::setColorBarRelativeHeight | ( | double | __value | ) |
height of the color bar, as multiple of plotHeight
void JKQTPColorPaletteStyleAndToolsMixin::setColorBarRightVisible | ( | bool | __value | ) |
right color bar visible
void JKQTPColorPaletteStyleAndToolsMixin::setColorBarTopVisible | ( | bool | __value | ) |
top color bar visible
void JKQTPColorPaletteStyleAndToolsMixin::setColorBarWidth | ( | int | __value | ) |
width of the color bar
void JKQTPColorPaletteStyleAndToolsMixin::setColorPalette | ( | const JKQTPMathImageColorPalette & | __value | ) |
palette for plotting an image
void JKQTPColorPaletteStyleAndToolsMixin::setColorPalette | ( | int | pal | ) |
palette for plotting an image
void JKQTPColorPaletteStyleAndToolsMixin::setImageMax | ( | double | __value | ) |
image value range maximum
void JKQTPColorPaletteStyleAndToolsMixin::setImageMin | ( | double | __value | ) |
image value range minimum
void JKQTPColorPaletteStyleAndToolsMixin::setImageName | ( | const QString & | __value | ) |
name of the image displayed above color bar (may contain LaTeX markup!)
void JKQTPColorPaletteStyleAndToolsMixin::setImageNameFontName | ( | const QString & | __value | ) |
font name when displaying imageName
void JKQTPColorPaletteStyleAndToolsMixin::setImageNameFontSize | ( | double | __value | ) |
font size in points when displaying imageName
void JKQTPColorPaletteStyleAndToolsMixin::setInfColor | ( | const QColor & | __value | ) |
color to use for an infinity value
void JKQTPColorPaletteStyleAndToolsMixin::setNanColor | ( | const QColor & | __value | ) |
color to use for a not-a-number value
void JKQTPColorPaletteStyleAndToolsMixin::setRangeMaxFailAction | ( | const JKQTPMathImageColorRangeFailAction & | __value | ) |
which action to take if a color is above imageMax and autoImageRange ==false
void JKQTPColorPaletteStyleAndToolsMixin::setRangeMaxFailColor | ( | const QColor & | __value | ) |
color to use for some settings of rangeMaxFailAction
void JKQTPColorPaletteStyleAndToolsMixin::setRangeMinFailAction | ( | const JKQTPMathImageColorRangeFailAction & | __value | ) |
which action to take if a color is below imageMin and autoImageRange ==false
void JKQTPColorPaletteStyleAndToolsMixin::setRangeMinFailColor | ( | const QColor & | __value | ) |
color to use for some settings of rangeMinFailAction
void JKQTPColorPaletteStyleAndToolsMixin::setShowColorBar | ( | bool | __value | ) |
indicate whether to display a color bar
|
protected |
indicates whether to estimate min/max of the image automatically
|
protected |
|
protected |
offset between outside space border and color bar
|
protected |
height of the color bar, as multiple of plotHeight
|
protected |
object used for color bar axes at the right
|
protected |
right color bar visible
|
protected |
object used for color bar axes at the top
|
protected |
top color bar visible
|
protected |
width of the color bar
|
protected |
image value range maximum
|
protected |
image value range minimum
|
protected |
name of the image displayed above color bar (may contain LaTeX markup!)
|
protected |
font name when displaying imageName
|
protected |
font size in points when displaying imageName
|
protected |
color to use for an infinity value
|
protected |
color to use for a not-a-number value
|
protected |
palette for plotting an image
|
protected |
which action to take if a color is above imageMax and autoImageRange ==false
|
protected |
color to use for some settings of rangeMaxFailAction
|
protected |
which action to take if a color is below imageMin and autoImageRange ==false
|
protected |
color to use for some settings of rangeMinFailAction
|
protected |
indicate whether to display a color bar