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 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...

#include <jkqtfastplotter.h>

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

Public Types

enum  SymbolType {
  stCircle ,
  stRectangle
}

Public Slots

void setColor (QColor color)
void setRotation (int rotation)
Public Slots inherited from JKQTFPPlot
void setVisible (bool visible)

Public Member Functions

 JKQTFPimageOverlayPlot (JKQTFastPlotter *parent, bool *image, int width, int height, double xmin, double xmax, double ymin, double ymax, QColor color=QColor("red"))
 class constructor
 JKQTFPimageOverlayPlot (JKQTFastPlotter *parent, bool *image, int width, int height, QColor color=QColor("red"))
virtual void drawGraph (QPainter &painter) override
 draw the graph
QColor getColor () const
 color of the overlay pixels
int getHeight () const
 height of image in pt
bool * getImage () const
 image to plot
int getRotation () const
 rotation of the image when plotting in units of 90 degrees
bool getShowAsSymbols () const
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 setData (bool *image, int width, int height)
void setShowAsSymbols (bool __value)
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

QColor color
 color of the overlay pixels
int height
 height of image in pt
bool * image
 image to plot
double linewidth
 linewidth of symbols
int rotation
 rotation of the image when plotting in units of 90 degrees
bool showAsSymbols
SymbolType symboltype
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 an image overlay, i.e. a boolean image where each true pixel is drawn with a given color and the false pixels are transparent

Deprecated
The class JKQTFastPlotter and all its support classes are deprecated and will be removed in future versions.

Member Enumeration Documentation

◆ SymbolType

Enumerator
stCircle 
stRectangle 

Constructor & Destructor Documentation

◆ JKQTFPimageOverlayPlot() [1/2]

JKQTFPimageOverlayPlot::JKQTFPimageOverlayPlot ( JKQTFastPlotter * parent,
bool * image,
int width,
int height,
double xmin,
double xmax,
double ymin,
double ymax,
QColor color = QColor("red") )

class constructor

◆ JKQTFPimageOverlayPlot() [2/2]

JKQTFPimageOverlayPlot::JKQTFPimageOverlayPlot ( JKQTFastPlotter * parent,
bool * image,
int width,
int height,
QColor color = QColor("red") )

Member Function Documentation

◆ drawGraph()

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

draw the graph

Implements JKQTFPPlot.

◆ getColor()

QColor JKQTFPimageOverlayPlot::getColor ( ) const
inline

color of the overlay pixels

◆ getHeight()

int JKQTFPimageOverlayPlot::getHeight ( ) const
inline

height of image in pt

◆ getImage()

bool * JKQTFPimageOverlayPlot::getImage ( ) const
inline

image to plot

◆ getRotation()

int JKQTFPimageOverlayPlot::getRotation ( ) const
inline

rotation of the image when plotting in units of 90 degrees

◆ getShowAsSymbols()

bool JKQTFPimageOverlayPlot::getShowAsSymbols ( ) const
inline

◆ getWidth()

int JKQTFPimageOverlayPlot::getWidth ( ) const
inline

width of image in pt

◆ getXmax()

double JKQTFPimageOverlayPlot::getXmax ( ) const
inline

maximum x value of the image

◆ getXmin()

double JKQTFPimageOverlayPlot::getXmin ( ) const
inline

minimum x value of the image

◆ getYmax()

double JKQTFPimageOverlayPlot::getYmax ( ) const
inline

maximum x value of the image

◆ getYmin()

double JKQTFPimageOverlayPlot::getYmin ( ) const
inline

minimum x value of the image

◆ setColor

void JKQTFPimageOverlayPlot::setColor ( QColor color)
inlineslot

◆ setData()

void JKQTFPimageOverlayPlot::setData ( bool * image,
int width,
int height )
inline

◆ setRotation

void JKQTFPimageOverlayPlot::setRotation ( int rotation)
inlineslot

◆ setShowAsSymbols()

void JKQTFPimageOverlayPlot::setShowAsSymbols ( bool __value)
inline

◆ setXmax()

void JKQTFPimageOverlayPlot::setXmax ( double __value)
inline

maximum x value of the image

◆ setXmin()

void JKQTFPimageOverlayPlot::setXmin ( double __value)
inline

minimum x value of the image

◆ setYmax()

void JKQTFPimageOverlayPlot::setYmax ( double __value)
inline

maximum x value of the image

◆ setYmin()

void JKQTFPimageOverlayPlot::setYmin ( double __value)
inline

minimum x value of the image

Member Data Documentation

◆ color

QColor JKQTFPimageOverlayPlot::color
protected

color of the overlay pixels

◆ height

int JKQTFPimageOverlayPlot::height
protected

height of image in pt

◆ image

bool* JKQTFPimageOverlayPlot::image
protected

image to plot

◆ linewidth

double JKQTFPimageOverlayPlot::linewidth
protected

linewidth of symbols

◆ rotation

int JKQTFPimageOverlayPlot::rotation
protected

rotation of the image when plotting in units of 90 degrees

◆ showAsSymbols

bool JKQTFPimageOverlayPlot::showAsSymbols
protected

◆ symboltype

SymbolType JKQTFPimageOverlayPlot::symboltype
protected

◆ width

int JKQTFPimageOverlayPlot::width
protected

width of image in pt

◆ xmax

double JKQTFPimageOverlayPlot::xmax
protected

maximum x value of the image

◆ xmin

double JKQTFPimageOverlayPlot::xmin
protected

minimum x value of the image

◆ ymax

double JKQTFPimageOverlayPlot::ymax
protected

maximum x value of the image

◆ ymin

double JKQTFPimageOverlayPlot::ymin
protected

minimum x value of the image


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