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

plots a given grayscale image with a given color palette More...

#include <jkqtfastplotter.h>

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

Public Slots

void setColorMax (double colorMax)
 
void setColorMax (int colorMax)
 
void setColorMax (uint32_t colorMax)
 
void setColorMin (double colorMin)
 
void setColorMin (int colorMin)
 
void setColorMin (uint32_t colorMin)
 
void setPalette (int palette)
 
void setPalette (JKQTFPColorPalette palette)
 
void setRotation (int rotation)
 
- Public Slots inherited from JKQTFPPlot
void setVisible (bool visible)
 

Public Member Functions

 JKQTFPimagePlot (JKQTFastPlotter *parent, void *image, JKQTFPImageFormat imageFormat, int width, int height, double xmin, double xmax, double ymin, double ymax, JKQTFPColorPalette palette=JKQTFP_MATLAB)
 class constructor
 
 JKQTFPimagePlot (JKQTFastPlotter *parent, void *image, JKQTFPImageFormat imageFormat, int width, int height, JKQTFPColorPalette palette=JKQTFP_MATLAB)
 
virtual void drawGraph (QPainter &painter) override
 draw the graph
 
int getColorBarWidth () const
 color bar width in pt
 
double getColorMax () const
 defines maximum color value
 
double getColorMin () const
 defines minimum color value
 
bool getDrawColorBar () const
 draw color bar
 
int getHeight () const
 height of image in pt
 
void * getImage () const
 image to plot
 
JKQTFPImageFormat getImageFormat () const
 format of the image
 
JKQTFPColorPalette getPalette () const
 defines the palette to use
 
int getRotation () const
 rotation of the image when plotting in units of 90 degrees (counter clock wise)
 
int getWidth () const
 width of image in pt
 
double getXmax () const
 maximum x value of the image
 
double getXmin () const
 minimum x value of the image
 
double getYmax () const
 maximum x value of the image
 
double getYmin () const
 minimum x value of the image
 
void setColorBarWidth (int __value)
 color bar width in pt
 
void setDrawColorBar (bool __value)
 draw color bar
 
void setHeight (int __value)
 height of image in pt
 
void setImage (void *__value)
 image to plot
 
void setImage (void *image, JKQTFPImageFormat imageFormat, int width, int height)
 
void setImageFormat (const JKQTFPImageFormat &__value)
 format of the image
 
void setWidth (int __value)
 width of image in pt
 
void setXmax (double __value)
 maximum x value of the image
 
void setXmin (double __value)
 minimum x value of the image
 
void setYmax (double __value)
 maximum x value of the image
 
void setYmin (double __value)
 minimum x value of the image
 
- Public Member Functions inherited from JKQTFPPlot
 JKQTFPPlot (JKQTFastPlotter *parent)
 class constructor
 
virtual ~JKQTFPPlot ()
 virtual class destructor
 
bool isVisible () const
 returns whether this graph is visible inside the plot
 
void paint (QPainter &painter)
 draw the graph
 
void replot ()
 start a replot of the parent widget
 
void setParent (JKQTFastPlotter *parent)
 set the parent of the plot
 

Protected Attributes

int colorBarWidth
 color bar width in pt
 
double colorMax
 defines maximum color value
 
double colorMin
 defines minimum color value
 
bool drawColorBar
 draw color bar
 
int height
 height of image in pt
 
void * image
 image to plot
 
JKQTFPImageFormat imageFormat
 format of the image
 
JKQTFPColorPalette palette
 defines the palette to use
 
int rotation
 rotation of the image when plotting in units of 90 degrees (counter clock wise)
 
int width
 width of image in pt
 
double xmax
 maximum x value of the image
 
double xmin
 minimum x value of the image
 
double ymax
 maximum x value of the image
 
double ymin
 minimum x value of the image
 
- Protected Attributes inherited from JKQTFPPlot
JKQTFastPlotterparent
 parent class, i.e. the plotter to plot on
 
bool visible
 indicates whether the plot is visible or not
 

Detailed Description

plots a given grayscale image with a given color palette

Deprecated:
The class JKQTFastPlotter and all its support classes are deprecated and will be removed in future versions.
  • This plot may plot any 2D array of data (8-, 16-, 32-bit integer images, float and double).
  • This class also draws a color bar in the right border of the plot

Constructor & Destructor Documentation

◆ JKQTFPimagePlot() [1/2]

JKQTFPimagePlot::JKQTFPimagePlot ( JKQTFastPlotter parent,
void *  image,
JKQTFPImageFormat  imageFormat,
int  width,
int  height,
double  xmin,
double  xmax,
double  ymin,
double  ymax,
JKQTFPColorPalette  palette = JKQTFP_MATLAB 
)

class constructor

◆ JKQTFPimagePlot() [2/2]

JKQTFPimagePlot::JKQTFPimagePlot ( JKQTFastPlotter parent,
void *  image,
JKQTFPImageFormat  imageFormat,
int  width,
int  height,
JKQTFPColorPalette  palette = JKQTFP_MATLAB 
)

Member Function Documentation

◆ drawGraph()

virtual void JKQTFPimagePlot::drawGraph ( QPainter &  painter)
overridevirtual

draw the graph

Implements JKQTFPPlot.

◆ getColorBarWidth()

int JKQTFPimagePlot::getColorBarWidth ( ) const
inline

color bar width in pt

◆ getColorMax()

double JKQTFPimagePlot::getColorMax ( ) const
inline

defines maximum color value

◆ getColorMin()

double JKQTFPimagePlot::getColorMin ( ) const
inline

defines minimum color value

◆ getDrawColorBar()

bool JKQTFPimagePlot::getDrawColorBar ( ) const
inline

draw color bar

◆ getHeight()

int JKQTFPimagePlot::getHeight ( ) const
inline

height of image in pt

◆ getImage()

void * JKQTFPimagePlot::getImage ( ) const
inline

image to plot

◆ getImageFormat()

JKQTFPImageFormat JKQTFPimagePlot::getImageFormat ( ) const
inline

format of the image

◆ getPalette()

JKQTFPColorPalette JKQTFPimagePlot::getPalette ( ) const
inline

defines the palette to use

◆ getRotation()

int JKQTFPimagePlot::getRotation ( ) const
inline

rotation of the image when plotting in units of 90 degrees (counter clock wise)

◆ getWidth()

int JKQTFPimagePlot::getWidth ( ) const
inline

width of image in pt

◆ getXmax()

double JKQTFPimagePlot::getXmax ( ) const
inline

maximum x value of the image

◆ getXmin()

double JKQTFPimagePlot::getXmin ( ) const
inline

minimum x value of the image

◆ getYmax()

double JKQTFPimagePlot::getYmax ( ) const
inline

maximum x value of the image

◆ getYmin()

double JKQTFPimagePlot::getYmin ( ) const
inline

minimum x value of the image

◆ setColorBarWidth()

void JKQTFPimagePlot::setColorBarWidth ( int  __value)
inline

color bar width in pt

◆ setColorMax [1/3]

void JKQTFPimagePlot::setColorMax ( double  colorMax)
inlineslot

◆ setColorMax [2/3]

void JKQTFPimagePlot::setColorMax ( int  colorMax)
inlineslot

◆ setColorMax [3/3]

void JKQTFPimagePlot::setColorMax ( uint32_t  colorMax)
inlineslot

◆ setColorMin [1/3]

void JKQTFPimagePlot::setColorMin ( double  colorMin)
inlineslot

◆ setColorMin [2/3]

void JKQTFPimagePlot::setColorMin ( int  colorMin)
inlineslot

◆ setColorMin [3/3]

void JKQTFPimagePlot::setColorMin ( uint32_t  colorMin)
inlineslot

◆ setDrawColorBar()

void JKQTFPimagePlot::setDrawColorBar ( bool  __value)
inline

draw color bar

◆ setHeight()

void JKQTFPimagePlot::setHeight ( int  __value)
inline

height of image in pt

◆ setImage() [1/2]

void JKQTFPimagePlot::setImage ( void *  __value)
inline

image to plot

◆ setImage() [2/2]

void JKQTFPimagePlot::setImage ( void *  image,
JKQTFPImageFormat  imageFormat,
int  width,
int  height 
)
inline

◆ setImageFormat()

void JKQTFPimagePlot::setImageFormat ( const JKQTFPImageFormat __value)
inline

format of the image

◆ setPalette [1/2]

void JKQTFPimagePlot::setPalette ( int  palette)
inlineslot

◆ setPalette [2/2]

void JKQTFPimagePlot::setPalette ( JKQTFPColorPalette  palette)
inlineslot

◆ setRotation

void JKQTFPimagePlot::setRotation ( int  rotation)
inlineslot

◆ setWidth()

void JKQTFPimagePlot::setWidth ( int  __value)
inline

width of image in pt

◆ setXmax()

void JKQTFPimagePlot::setXmax ( double  __value)
inline

maximum x value of the image

◆ setXmin()

void JKQTFPimagePlot::setXmin ( double  __value)
inline

minimum x value of the image

◆ setYmax()

void JKQTFPimagePlot::setYmax ( double  __value)
inline

maximum x value of the image

◆ setYmin()

void JKQTFPimagePlot::setYmin ( double  __value)
inline

minimum x value of the image

Member Data Documentation

◆ colorBarWidth

int JKQTFPimagePlot::colorBarWidth
protected

color bar width in pt

◆ colorMax

double JKQTFPimagePlot::colorMax
protected

defines maximum color value

◆ colorMin

double JKQTFPimagePlot::colorMin
protected

defines minimum color value

◆ drawColorBar

bool JKQTFPimagePlot::drawColorBar
protected

draw color bar

◆ height

int JKQTFPimagePlot::height
protected

height of image in pt

◆ image

void* JKQTFPimagePlot::image
protected

image to plot

◆ imageFormat

JKQTFPImageFormat JKQTFPimagePlot::imageFormat
protected

format of the image

◆ palette

JKQTFPColorPalette JKQTFPimagePlot::palette
protected

defines the palette to use

◆ rotation

int JKQTFPimagePlot::rotation
protected

rotation of the image when plotting in units of 90 degrees (counter clock wise)

◆ width

int JKQTFPimagePlot::width
protected

width of image in pt

◆ xmax

double JKQTFPimagePlot::xmax
protected

maximum x value of the image

◆ xmin

double JKQTFPimagePlot::xmin
protected

minimum x value of the image

◆ ymax

double JKQTFPimagePlot::ymax
protected

maximum x value of the image

◆ ymin

double JKQTFPimagePlot::ymin
protected

minimum x value of the image


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