21#ifndef JKQTPGRAPHSIMAGEOVERLAYS_H
22#define JKQTPGRAPHSIMAGEOVERLAYS_H
29#include "jkqtplotter/graphs/jkqtpscatter.h"
30#include "jkqtplotter/jkqtptools.h"
31#include "jkqtplotter/jkqtpbaseelements.h"
32#include "jkqtplotter/graphs/jkqtpimage.h"
33#include "jkqtplotter/jkqtplotter_imexport.h"
34#include "jkqtplotter/jkqtpimagetools.h"
88 virtual void setData(
const bool* __value);
93 virtual void setData(
const bool* data,
int Nx,
int Ny);
118 virtual void setTitle(
const QString& title)
override;
base class for 2D plotter classes (used by the plotter widget JKQTPlotter)
Definition jkqtpbaseplotter.h:394
class to plot an image from an 2-dimensional array of boolean values: alle true values are plotted in...
Definition jkqtpimageoverlays.h:210
virtual void draw(JKQTPEnhancedPainter &painter) override
plots the graph to the plotter object specified as parent
int getImageColumn() const
column to read overlay image from
virtual void setImageColumn(int __value)
column to read overlay image from
JKQTPColumnOverlayImageEnhanced(JKQTPlotter *parent)
virtual bool usesColumn(int c) const override
returns true if the given column is used by the graph
JKQTPColumnOverlayImageEnhanced(JKQTBasePlotter *parent=nullptr)
int imageColumn
column to read overlay image from
Definition jkqtpimageoverlays.h:229
this class extends the QPainter
Definition jkqtpenhancedpainter.h:33
base class for plotting an image
Definition jkqtpimage.h:40
class to plot an image from an 2-dimensional array of boolean values: alle true values are plotted in...
Definition jkqtpimageoverlays.h:139
void setDrawMode(OverlayImageEnhancedDrawMode __value)
indicates whether to draw filled rectangles, or symbols
OverlayImageEnhancedDrawMode
Definition jkqtpimageoverlays.h:142
@ DrawAsImage
Definition jkqtpimageoverlays.h:144
@ DrawAsRectangles
Definition jkqtpimageoverlays.h:143
void setSymbolLineWidth(double __value)
width (in pt) of the lines used to plot the symbol for the data points
double getSymbolLineWidth() const
width (in pt) of the lines used to plot the symbol for the data points
double symbolSizeFactor
a rescaling factor for the symbols
Definition jkqtpimageoverlays.h:191
double getSymbolSizeFactor() const
a rescaling factor for the symbols
double symbolLineWidth
width (in pt) of the lines used to plot the symbol for the data points
Definition jkqtpimageoverlays.h:185
JKQTPGraphSymbols symbol
which symbol to use for the datapoints
Definition jkqtpimageoverlays.h:183
JKQTPOverlayImageEnhanced(JKQTBasePlotter *parent=nullptr)
JKQTPOverlayImageEnhanced(JKQTPlotter *parent)
QString getSymbolFontName() const
get the font to be used for character symbols JKQTPCharacterSymbol+QChar('').unicode()
JKQTPGraphSymbols getSymbol() const
which symbol to use for the datapoints
virtual void drawKeyMarker(JKQTPEnhancedPainter &painter, const QRectF &rect) override
plots a key marker inside the specified rectangle rect
void setSymbolSizeFactor(double __value)
a rescaling factor for the symbols
JKQTPOverlayImageEnhanced(double x, double y, double width, double height, bool *data, int Nx, int Ny, QColor colTrue, JKQTPlotter *parent)
class constructor
void setSymbolFontName(const QString &__value)
set the font to be used for character symbols JKQTPCharacterSymbol+QChar('').unicode()
QString m_symbolFontName
font to be used for character symbols JKQTPCharacterSymbol+QChar('').unicode()
Definition jkqtpimageoverlays.h:193
JKQTPOverlayImageEnhanced(double x, double y, double width, double height, bool *data, int Nx, int Ny, QColor colTrue, JKQTBasePlotter *parent=nullptr)
class constructor
void setSymbolType(JKQTPGraphSymbols __value)
which symbol to use for the datapoints
OverlayImageEnhancedDrawMode drawMode
indicates whether to draw filled rectangles, or symbols
Definition jkqtpimageoverlays.h:188
virtual void draw(JKQTPEnhancedPainter &painter) override
plots the graph to the plotter object specified as parent
OverlayImageEnhancedDrawMode getDrawMode() const
indicates whether to draw filled rectangles, or symbols
class to plot an image from an 2-dimensional array of boolean values: alle true values are plotted in...
Definition jkqtpimageoverlays.h:44
JKQTPOverlayImage(double x, double y, double width, double height, const bool *data, int Nx, int Ny, QColor colTrue, JKQTPlotter *parent)
class constructor
void setFalseColor(const QColor &__value)
color for false pixels
const bool * getData() const
points to the data array, holding the image
void saveImagePlotAsImage(const QString &filename=QString(""), const QByteArray &outputFormat=QByteArray())
save the plotted image as a file with filename and format outputFormat
JKQTPOverlayImage(JKQTPlotter *parent)
void setTrueColor(const QColor &__value)
color for true pixels
JKQTPOverlayImage(double x, double y, double width, double height, const bool *data, int Nx, int Ny, QColor colTrue, JKQTBasePlotter *parent=nullptr)
class constructor
const bool * data
points to the data array, holding the image
Definition jkqtpimageoverlays.h:100
virtual void setParent(JKQTBasePlotter *parent) override
sets the parent painter class
int getNx() const
width of the data array data in pt
QAction * actSaveImage
action that calls saveImagePlotAsImage()
Definition jkqtpimageoverlays.h:113
virtual void setData(const bool *data, int Nx, int Ny)
set the plot-data to a given array data with size Nx * Ny in row-major ordering
QColor getFalseColor() const
color for false pixels
QColor getTrueColor() const
color for true pixels
void setNy(int __value)
height of the data array data in pt
void copyImagePlotAsImage()
copy the plotted image as an image into the clipboard
QVector< double > getDataAsDoubleVector() const
return the data used for plotting as a QVector<double> in row-major data-ordering
QAction * actCopyImage
action that calls copyImagePlotAsImage()
Definition jkqtpimageoverlays.h:115
virtual void draw(JKQTPEnhancedPainter &painter) override
plots the graph to the plotter object specified as parent
virtual QImage drawImage()
return the plotted image only as a QImage
void setNx(size_t __value)
width of the data array data in pt
int Nx
width of the data array data in pt
Definition jkqtpimageoverlays.h:102
void setNy(size_t __value)
height of the data array data in pt
QColor falseColor
color for false pixels
Definition jkqtpimageoverlays.h:109
int getNy() const
height of the data array data in pt
int Ny
height of the data array data in pt
Definition jkqtpimageoverlays.h:104
JKQTPOverlayImage(JKQTBasePlotter *parent=nullptr)
void setNx(int __value)
width of the data array data in pt
virtual void setTitle(const QString &title) override
sets the title of the plot (for display in key!).
QColor trueColor
color for true pixels
Definition jkqtpimageoverlays.h:107
virtual void drawKeyMarker(JKQTPEnhancedPainter &painter, const QRectF &rect) override
plots a key marker inside the specified rectangle rect
virtual QColor getKeyLabelColor() const override
returns the color to be used for the key label
virtual void setData(const bool *__value)
points to the data array, holding the image
plotter widget for scientific plots (uses JKQTBasePlotter to do the actual drawing)
Definition jkqtplotter.h:364
#define JKQTPLOTTER_LIB_EXPORT
Definition jkqtplotter_imexport.h:89