JKQTPlotter
an extensive Qt4/Qt5 Plotter framework (including a fast variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
JKQTFastPlotter: Speed-Optimized Plotter class

This is an indepent (and fully self-contained) plotter class, which is optimized for drawing speed, rather than output quality. It lacks several of the advanced features of JKQTPlotter, but can be used in cases, where fast update of plots or real-time plotting is required. More...

Classes

class  JKQTFastPlotter
 a speed optimized plotter class More...
 
class  JKQTFPimageOverlayPlot
 plots an image overlay, i.e. a boolean image where each true pixel is drawn with a given color and the false pixels are transparent More...
 
class  JKQTFPimagePlot
 plots a given grayscale image with a given color palette More...
 
class  JKQTFPLinePlot
 a simple line plot for JKQTFastPlotter More...
 
class  JKQTFPPlot
 base class for all plots that may be plotted by JKQTFastPlotter More...
 
class  JKQTFPQImagePlot
 a plot of a QImage More...
 
class  JKQTFPQOverlayLinearGridPlot
 plot a horizontal scale bar More...
 
class  JKQTFPQScaleBarXPlot
 plot a horizontal scale bar More...
 
class  JKQTFPRGBImageOverlayPlot
 plots 1,2 or 3 given grayscale images as an overlay plot, where each channel is drawn as one color channel (e.g. red, green or blue). More...
 
class  JKQTFPVBarPlot
 a simple vertical bar plot for JKQTFastPlotter More...
 
class  JKQTFPVCrossPlot
 a simple plot that draws a cross for every datapoint More...
 
class  JKQTFPXRangePlot
 plot a range of x values More...
 
class  JKQTFPYRangePlot
 plot a range of x values More...
 

Enumerations

enum  JKQTFPColorPalette {
  JKQTFP_RED =0,
  JKQTFP_INVERTEDRED =1,
  JKQTFP_GREEN =2,
  JKQTFP_INVERTEDGREEN =3,
  JKQTFP_BLUE =4,
  JKQTFP_INVERTEDBLUE =5,
  JKQTFP_GRAY =6,
  JKQTFP_INVERTEDGRAY =7,
  JKQTFP_MATLAB =8,
  JKQTFP_RYGB =9,
  JKQTFP_HSV =10,
  JKQTFP_INVERTED_HSV =11,
  JKQTFP_RAINBOW =12,
  JKQTFP_HOT =13,
  JKQTFP_OCEAN =14,
  JKQTFP_TRAFFICLIGHT =15,
  JKQTFP_BLUEMAGENTAYELLOW =16,
  JKQTFP_BLUEYELLOW =17,
  JKQTFP_CYAN =18
}
 An enum for selecting the palette for coloring. More...
 
enum  JKQTFPImageFormat {
  JKQTFP_uint8 =0,
  JKQTFP_uint16 =1,
  JKQTFP_uint32 =2,
  JKQTFP_float =3,
  JKQTFP_double =4,
  JKQTFP_int64 =5
}
 datatype for an image plotpalette for coloring More...
 

Functions

template<class T >
void JKQTFPimagePlot_array2image (T *dbl, int width, int height, QImage &img, JKQTFPColorPalette palette, double minColor, double maxColor)
 convert a 2D image (as 1D array) into a QImage with given palette (see JKQTFPColorPalette) More...
 
JKQTFASTPLOTTER_LIB_EXPORT QIcon JKQTFPimagePlot_getPaletteIcon (int i)
 get QIcon representing the given palette More...
 
JKQTFASTPLOTTER_LIB_EXPORT QIcon JKQTFPimagePlot_getPaletteIcon (JKQTFPColorPalette palette)
 get QIcon representing the given palette More...
 
JKQTFASTPLOTTER_LIB_EXPORT QStringList JKQTFPimagePlot_getPalettes ()
 get list with all available palettes More...
 
template<class T >
void JKQTFPRGBImageOverlayPlot_array2image (T *dbl, int width, int height, QImage &img, int channel, double minColor_, double maxColor_)
 convert a 2D image (as 1D array) into a QImage and puts the image values into one color channel (set by channel). More...
 

Detailed Description

This is an indepent (and fully self-contained) plotter class, which is optimized for drawing speed, rather than output quality. It lacks several of the advanced features of JKQTPlotter, but can be used in cases, where fast update of plots or real-time plotting is required.

An example for the usage of this class can be found here: ../../examples/jkqtfastplotter_test

Enumeration Type Documentation

◆ JKQTFPColorPalette

An enum for selecting the palette for coloring.

Here, the color palettes are illustrated (left is the color for the minimum and right for the maximum).

Enumerator
JKQTFP_RED 
JKQTFP_INVERTEDRED 
JKQTFP_GREEN 
JKQTFP_INVERTEDGREEN 
JKQTFP_BLUE 
JKQTFP_INVERTEDBLUE 
JKQTFP_GRAY 
JKQTFP_INVERTEDGRAY 
JKQTFP_MATLAB 
JKQTFP_RYGB 
JKQTFP_HSV 
JKQTFP_INVERTED_HSV 
JKQTFP_RAINBOW 
JKQTFP_HOT 
JKQTFP_OCEAN 
JKQTFP_TRAFFICLIGHT 
JKQTFP_BLUEMAGENTAYELLOW 
JKQTFP_BLUEYELLOW 
JKQTFP_CYAN 

◆ JKQTFPImageFormat

datatype for an image plotpalette for coloring

Here, the color palettes are illustrated (left is the color for the minimum and right for the maximum).

Enumerator
JKQTFP_uint8 

8 bit int

JKQTFP_uint16 

16 bit int

JKQTFP_uint32 

32 bit int

JKQTFP_float 

float

JKQTFP_double 

double

JKQTFP_int64 

64 bit signed int

Function Documentation

◆ JKQTFPimagePlot_array2image()

template<class T >
void JKQTFPimagePlot_array2image ( T *  dbl,
int  width,
int  height,
QImage &  img,
JKQTFPColorPalette  palette,
double  minColor,
double  maxColor 
)
inline

convert a 2D image (as 1D array) into a QImage with given palette (see JKQTFPColorPalette)

This method uses lookup tables which are saved as static variables to convert the 2D array into an image. The luts are only created once, and stored then, so mor CPU time is saved. The precompiler define JKQTFastPlotter::LUTSIZE sets the size of the LUTs. Note that if you don't use a specific color palette, the according LUT won't be calculated and stored!

◆ JKQTFPimagePlot_getPaletteIcon() [1/2]

JKQTFASTPLOTTER_LIB_EXPORT QIcon JKQTFPimagePlot_getPaletteIcon ( int  i)

get QIcon representing the given palette

See also
JKQTFPimagePlot_array2image()

◆ JKQTFPimagePlot_getPaletteIcon() [2/2]

JKQTFASTPLOTTER_LIB_EXPORT QIcon JKQTFPimagePlot_getPaletteIcon ( JKQTFPColorPalette  palette)

get QIcon representing the given palette

See also
JKQTFPimagePlot_array2image()

◆ JKQTFPimagePlot_getPalettes()

JKQTFASTPLOTTER_LIB_EXPORT QStringList JKQTFPimagePlot_getPalettes ( )

get list with all available palettes

See also
JKQTFPimagePlot_array2image()

◆ JKQTFPRGBImageOverlayPlot_array2image()

template<class T >
void JKQTFPRGBImageOverlayPlot_array2image ( T *  dbl,
int  width,
int  height,
QImage &  img,
int  channel,
double  minColor_,
double  maxColor_ 
)
inline

convert a 2D image (as 1D array) into a QImage and puts the image values into one color channel (set by channel).