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
Loading...
Searching...
No Matches

if a class is derived from this class, it may use color bars More...

#include <jkqtpimagetools.h>

Inheritance diagram for JKQTPColorPaletteStyleAndToolsMixin:
[legend]
Collaboration diagram for JKQTPColorPaletteStyleAndToolsMixin:
[legend]

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
 
JKQTPVerticalIndependentAxisgetColorBarRightAxis ()
 object used for color bar axes at the right
 
const JKQTPVerticalIndependentAxisgetColorBarRightAxis () const
 object used for color bar axes at the right
 
bool getColorBarRightVisible () const
 right color bar visible
 
JKQTPHorizontalIndependentAxisgetColorBarTopAxis ()
 object used for color bar axes at the top
 
const JKQTPHorizontalIndependentAxisgetColorBarTopAxis () 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
 
JKQTBasePlottercbParent
 
int colorBarOffset
 offset between outside space border and color bar
 
double colorBarRelativeHeight
 height of the color bar, as multiple of plotHeight
 
JKQTPVerticalIndependentAxiscolorBarRightAxis
 object used for color bar axes at the right
 
bool colorBarRightVisible
 right color bar visible
 
JKQTPHorizontalIndependentAxiscolorBarTopAxis
 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
 

Detailed Description

if a class is derived from this class, it may use color bars

Constructor & Destructor Documentation

◆ JKQTPColorPaletteStyleAndToolsMixin()

JKQTPColorPaletteStyleAndToolsMixin::JKQTPColorPaletteStyleAndToolsMixin ( JKQTBasePlotter parent)

◆ ~JKQTPColorPaletteStyleAndToolsMixin()

virtual JKQTPColorPaletteStyleAndToolsMixin::~JKQTPColorPaletteStyleAndToolsMixin ( )
virtual

Member Function Documentation

◆ cbDrawOutside()

virtual void JKQTPColorPaletteStyleAndToolsMixin::cbDrawOutside ( JKQTPEnhancedPainter painter,
QRect  leftSpace,
QRect  rightSpace,
QRect  topSpace,
QRect  bottomSpace 
)
virtual

plots outside the actual plot field of view (e.g. color bars, scale bars, ...)

Note
If you want to draw outside, then you'll also have to implement getOutsideSize(), so enough space is reserved

The four value supplied tell the method where to draw (inside one of the rectangles).

Reimplemented in JKQTPColorPaletteWithModifierStyleAndToolsMixin.

◆ cbGetDataMinMax()

virtual void JKQTPColorPaletteStyleAndToolsMixin::cbGetDataMinMax ( double &  imin,
double &  imax 
)
pure virtual

determine min/max data value of the image

Implemented in JKQTPMathImage, JKQTPXYParametrizedScatterGraph, and JKQTPParametrizedVectorFieldGraph.

◆ cbGetOutsideSize()

virtual void JKQTPColorPaletteStyleAndToolsMixin::cbGetOutsideSize ( JKQTPEnhancedPainter painter,
int &  leftSpace,
int &  rightSpace,
int &  topSpace,
int &  bottomSpace 
)
virtual

if the graph plots outside the actual plot field of view (e.g. color bars, scale bars, ...)

Note
If you want to draw outside, then you'll also have to implement drawOutside()

Reimplemented in JKQTPColorPaletteWithModifierStyleAndToolsMixin.

◆ cbSetParent()

virtual void JKQTPColorPaletteStyleAndToolsMixin::cbSetParent ( JKQTBasePlotter parent)
virtual

set the parent class for internal objects (e.g. color bars)

Reimplemented in JKQTPColorPaletteWithModifierStyleAndToolsMixin.

◆ getActionRangeMaxFail()

JKQTPMathImageColorRangeFailAction JKQTPColorPaletteStyleAndToolsMixin::getActionRangeMaxFail ( ) const

which action to take if a color is above imageMax and autoImageRange ==false

◆ getActionRangeMinFail()

JKQTPMathImageColorRangeFailAction JKQTPColorPaletteStyleAndToolsMixin::getActionRangeMinFail ( ) const

which action to take if a color is below imageMin and autoImageRange ==false

◆ getAutoImageRange()

bool JKQTPColorPaletteStyleAndToolsMixin::getAutoImageRange ( ) const

indicates whether to estimate min/max of the image automatically

◆ getColorBarOffset()

int JKQTPColorPaletteStyleAndToolsMixin::getColorBarOffset ( ) const

offset between outside space border and color bar

◆ getColorBarRelativeHeight()

double JKQTPColorPaletteStyleAndToolsMixin::getColorBarRelativeHeight ( ) const

height of the color bar, as multiple of plotHeight

◆ getColorBarRightAxis() [1/2]

JKQTPVerticalIndependentAxis * JKQTPColorPaletteStyleAndToolsMixin::getColorBarRightAxis ( )

object used for color bar axes at the right

Note
this axis has some kind of a special role. It is used to format color bar axes

◆ getColorBarRightAxis() [2/2]

const JKQTPVerticalIndependentAxis * JKQTPColorPaletteStyleAndToolsMixin::getColorBarRightAxis ( ) const

object used for color bar axes at the right

Note
this axis has some kind of a special role. It is used to format color bar axes

◆ getColorBarRightVisible()

bool JKQTPColorPaletteStyleAndToolsMixin::getColorBarRightVisible ( ) const

right color bar visible

◆ getColorBarTopAxis() [1/2]

JKQTPHorizontalIndependentAxis * JKQTPColorPaletteStyleAndToolsMixin::getColorBarTopAxis ( )

object used for color bar axes at the top

Note
this axis has some kind of a special role. It is used to format color bar axes

◆ getColorBarTopAxis() [2/2]

const JKQTPHorizontalIndependentAxis * JKQTPColorPaletteStyleAndToolsMixin::getColorBarTopAxis ( ) const

object used for color bar axes at the top

Note
this axis has some kind of a special role. It is used to format color bar axes

◆ getColorBarTopVisible()

bool JKQTPColorPaletteStyleAndToolsMixin::getColorBarTopVisible ( ) const

top color bar visible

◆ getColorBarWidth()

int JKQTPColorPaletteStyleAndToolsMixin::getColorBarWidth ( ) const

width of the color bar

◆ getColorPalette()

JKQTPMathImageColorPalette JKQTPColorPaletteStyleAndToolsMixin::getColorPalette ( ) const

palette for plotting an image

◆ getImageMax()

double JKQTPColorPaletteStyleAndToolsMixin::getImageMax ( ) const

image value range maximum

◆ getImageMin()

double JKQTPColorPaletteStyleAndToolsMixin::getImageMin ( ) const

image value range minimum

◆ getImageName()

QString JKQTPColorPaletteStyleAndToolsMixin::getImageName ( ) const

name of the image displayed above color bar (may contain LaTeX markup!)

◆ getImageNameFontName()

QString JKQTPColorPaletteStyleAndToolsMixin::getImageNameFontName ( ) const

font name when displaying imageName

◆ getImageNameFontSize()

double JKQTPColorPaletteStyleAndToolsMixin::getImageNameFontSize ( ) const

font size in points when displaying imageName

◆ getInfColor()

QColor JKQTPColorPaletteStyleAndToolsMixin::getInfColor ( ) const

color to use for an infinity value

◆ getNanColor()

QColor JKQTPColorPaletteStyleAndToolsMixin::getNanColor ( ) const

color to use for a not-a-number value

◆ getPaletteIcon() [1/2]

static QIcon JKQTPColorPaletteStyleAndToolsMixin::getPaletteIcon ( int  i)
static

get QIcon representing the given palette

◆ getPaletteIcon() [2/2]

static QIcon JKQTPColorPaletteStyleAndToolsMixin::getPaletteIcon ( JKQTPMathImageColorPalette  palette)
static

get QIcon representing the given palette

◆ getPaletteImage() [1/2]

static QImage JKQTPColorPaletteStyleAndToolsMixin::getPaletteImage ( int  i,
size_t  width 
)
static

get QIcon representing the given palette

◆ getPaletteImage() [2/2]

static QImage JKQTPColorPaletteStyleAndToolsMixin::getPaletteImage ( JKQTPMathImageColorPalette  palette,
size_t  width 
)
static

get QIcon representing the given palette

◆ getPaletteKeyIcon() [1/2]

static QIcon JKQTPColorPaletteStyleAndToolsMixin::getPaletteKeyIcon ( int  i)
static

get QIcon representing the given palette

◆ getPaletteKeyIcon() [2/2]

static QIcon JKQTPColorPaletteStyleAndToolsMixin::getPaletteKeyIcon ( JKQTPMathImageColorPalette  palette)
static

get QIcon representing the given palette

◆ getPaletteKeyImage() [1/2]

static QImage JKQTPColorPaletteStyleAndToolsMixin::getPaletteKeyImage ( int  i,
size_t  width,
size_t  height 
)
static

get QIcon representing the given palette

◆ getPaletteKeyImage() [2/2]

static QImage JKQTPColorPaletteStyleAndToolsMixin::getPaletteKeyImage ( JKQTPMathImageColorPalette  palette,
size_t  width,
size_t  height 
)
static

get QIcon representing the given palette

◆ getPalettes()

static QStringList JKQTPColorPaletteStyleAndToolsMixin::getPalettes ( )
static

get list with all available palettes

◆ getPalettesCount()

static int JKQTPColorPaletteStyleAndToolsMixin::getPalettesCount ( )
static

get list with all available palettes

◆ getRangeMaxFailColor()

QColor JKQTPColorPaletteStyleAndToolsMixin::getRangeMaxFailColor ( ) const

color to use for some settings of rangeMaxFailAction

◆ getRangeMinFailColor()

QColor JKQTPColorPaletteStyleAndToolsMixin::getRangeMinFailColor ( ) const

color to use for some settings of rangeMinFailAction

◆ getShowColorBar()

bool JKQTPColorPaletteStyleAndToolsMixin::getShowColorBar ( ) const

indicate whether to display a color bar

◆ setAutoImageRange()

void JKQTPColorPaletteStyleAndToolsMixin::setAutoImageRange ( bool  __value)

indicates whether to estimate min/max of the image automatically

◆ setColorBarOffset()

void JKQTPColorPaletteStyleAndToolsMixin::setColorBarOffset ( int  __value)

offset between outside space border and color bar

◆ setColorBarRelativeHeight()

void JKQTPColorPaletteStyleAndToolsMixin::setColorBarRelativeHeight ( double  __value)

height of the color bar, as multiple of plotHeight

◆ setColorBarRightVisible()

void JKQTPColorPaletteStyleAndToolsMixin::setColorBarRightVisible ( bool  __value)

right color bar visible

◆ setColorBarTopVisible()

void JKQTPColorPaletteStyleAndToolsMixin::setColorBarTopVisible ( bool  __value)

top color bar visible

◆ setColorBarWidth()

void JKQTPColorPaletteStyleAndToolsMixin::setColorBarWidth ( int  __value)

width of the color bar

◆ setColorPalette() [1/2]

void JKQTPColorPaletteStyleAndToolsMixin::setColorPalette ( const JKQTPMathImageColorPalette __value)

palette for plotting an image

◆ setColorPalette() [2/2]

void JKQTPColorPaletteStyleAndToolsMixin::setColorPalette ( int  pal)

palette for plotting an image

◆ setImageMax()

void JKQTPColorPaletteStyleAndToolsMixin::setImageMax ( double  __value)

image value range maximum

◆ setImageMin()

void JKQTPColorPaletteStyleAndToolsMixin::setImageMin ( double  __value)

image value range minimum

◆ setImageName()

void JKQTPColorPaletteStyleAndToolsMixin::setImageName ( const QString &  __value)

name of the image displayed above color bar (may contain LaTeX markup!)

◆ setImageNameFontName()

void JKQTPColorPaletteStyleAndToolsMixin::setImageNameFontName ( const QString &  __value)

font name when displaying imageName

◆ setImageNameFontSize()

void JKQTPColorPaletteStyleAndToolsMixin::setImageNameFontSize ( double  __value)

font size in points when displaying imageName

◆ setInfColor()

void JKQTPColorPaletteStyleAndToolsMixin::setInfColor ( const QColor &  __value)

color to use for an infinity value

◆ setNanColor()

void JKQTPColorPaletteStyleAndToolsMixin::setNanColor ( const QColor &  __value)

color to use for a not-a-number value

◆ setRangeMaxFailAction()

void JKQTPColorPaletteStyleAndToolsMixin::setRangeMaxFailAction ( const JKQTPMathImageColorRangeFailAction __value)

which action to take if a color is above imageMax and autoImageRange ==false

◆ setRangeMaxFailColor()

void JKQTPColorPaletteStyleAndToolsMixin::setRangeMaxFailColor ( const QColor &  __value)

color to use for some settings of rangeMaxFailAction

◆ setRangeMinFailAction()

void JKQTPColorPaletteStyleAndToolsMixin::setRangeMinFailAction ( const JKQTPMathImageColorRangeFailAction __value)

which action to take if a color is below imageMin and autoImageRange ==false

◆ setRangeMinFailColor()

void JKQTPColorPaletteStyleAndToolsMixin::setRangeMinFailColor ( const QColor &  __value)

color to use for some settings of rangeMinFailAction

◆ setShowColorBar()

void JKQTPColorPaletteStyleAndToolsMixin::setShowColorBar ( bool  __value)

indicate whether to display a color bar

Member Data Documentation

◆ autoImageRange

bool JKQTPColorPaletteStyleAndToolsMixin::autoImageRange
protected

indicates whether to estimate min/max of the image automatically

◆ cbParent

JKQTBasePlotter* JKQTPColorPaletteStyleAndToolsMixin::cbParent
protected

◆ colorBarOffset

int JKQTPColorPaletteStyleAndToolsMixin::colorBarOffset
protected

offset between outside space border and color bar

◆ colorBarRelativeHeight

double JKQTPColorPaletteStyleAndToolsMixin::colorBarRelativeHeight
protected

height of the color bar, as multiple of plotHeight

◆ colorBarRightAxis

JKQTPVerticalIndependentAxis* JKQTPColorPaletteStyleAndToolsMixin::colorBarRightAxis
protected

object used for color bar axes at the right

Note
this axis has some kind of a special role. It is used to format color bar axes

◆ colorBarRightVisible

bool JKQTPColorPaletteStyleAndToolsMixin::colorBarRightVisible
protected

right color bar visible

◆ colorBarTopAxis

JKQTPHorizontalIndependentAxis* JKQTPColorPaletteStyleAndToolsMixin::colorBarTopAxis
protected

object used for color bar axes at the top

Note
this axis has some kind of a special role. It is used to format color bar axes

◆ colorBarTopVisible

bool JKQTPColorPaletteStyleAndToolsMixin::colorBarTopVisible
protected

top color bar visible

◆ colorBarWidth

int JKQTPColorPaletteStyleAndToolsMixin::colorBarWidth
protected

width of the color bar

◆ imageMax

double JKQTPColorPaletteStyleAndToolsMixin::imageMax
protected

image value range maximum

◆ imageMin

double JKQTPColorPaletteStyleAndToolsMixin::imageMin
protected

image value range minimum

◆ imageName

QString JKQTPColorPaletteStyleAndToolsMixin::imageName
protected

name of the image displayed above color bar (may contain LaTeX markup!)

◆ imageNameFontName

QString JKQTPColorPaletteStyleAndToolsMixin::imageNameFontName
protected

font name when displaying imageName

◆ imageNameFontSize

double JKQTPColorPaletteStyleAndToolsMixin::imageNameFontSize
protected

font size in points when displaying imageName

◆ infColor

QColor JKQTPColorPaletteStyleAndToolsMixin::infColor
protected

color to use for an infinity value

◆ nanColor

QColor JKQTPColorPaletteStyleAndToolsMixin::nanColor
protected

color to use for a not-a-number value

◆ palette

JKQTPMathImageColorPalette JKQTPColorPaletteStyleAndToolsMixin::palette
protected

palette for plotting an image

◆ rangeMaxFailAction

JKQTPMathImageColorRangeFailAction JKQTPColorPaletteStyleAndToolsMixin::rangeMaxFailAction
protected

which action to take if a color is above imageMax and autoImageRange ==false

◆ rangeMaxFailColor

QColor JKQTPColorPaletteStyleAndToolsMixin::rangeMaxFailColor
protected

color to use for some settings of rangeMaxFailAction

◆ rangeMinFailAction

JKQTPMathImageColorRangeFailAction JKQTPColorPaletteStyleAndToolsMixin::rangeMinFailAction
protected

which action to take if a color is below imageMin and autoImageRange ==false

◆ rangeMinFailColor

QColor JKQTPColorPaletteStyleAndToolsMixin::rangeMinFailColor
protected

color to use for some settings of rangeMinFailAction

◆ showColorBar

bool JKQTPColorPaletteStyleAndToolsMixin::showColorBar
protected

indicate whether to display a color bar


The documentation for this class was generated from the following file: