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
|
a speed optimized plotter class More...
#include <jkqtfastplotter.h>
Public Slots | |
void | copyImage () |
copy the current plot image to the clipboard | |
void | redrawPlot () |
replot everything (slowest possible plotting) | |
void | redrawPlotImmediate () |
replot everything (slowest possible plotting) and forces a repaint calling QWidget::repaint() | |
void | setXMax (double value) |
set xMax | |
void | setXMin (double value) |
set xMin | |
void | setYMax (double value) |
set yMax | |
void | setYMin (double value) |
set yMin | |
void | updateData () |
replot only the data | |
void | updateDataImmediate () |
replot only the data, forces a redraw by calling QWidget::repaint() | |
Signals | |
void | clicked (double x, double y) |
emitted whenever the mouse is clicked inside the plot | |
void | clicked (double x, double y, Qt::KeyboardModifiers modifiers) |
emitted whenever the mouse is clicked inside the plot | |
void | doubleClicked (double x, double y) |
emitted whenever the mouse is double-clicked inside the plot | |
void | doubleClicked (double x, double y, Qt::KeyboardModifiers modifiers) |
emitted whenever the mouse is double-clicked inside the plot | |
void | mouseDragFinished (double x_start, double y_start, double x_end, double y_end, Qt::KeyboardModifiers modifiers) |
emitted after the mouse has been dragged with the left button clicked | |
void | mouseDragged (double x_start, double y_start, double x_end, double y_end, Qt::KeyboardModifiers modifiers) |
emitted when the mouse has been dragged with the left button clicked | |
void | mouseMoved (double x, double y) |
emitted whenever the mouse is clicked inside the plot | |
void | plotterSizesChanged () |
emitted whenever the graph sizes (borders, plotWidth, plotHeight) change | |
void | replotting () |
emitted whenever the graph is replotted | |
Public Member Functions | |
JKQTFastPlotter (QWidget *parent=nullptr) | |
class constructor | |
void | addPlot (JKQTFPPlot *g) |
add a new graph | |
void | clearPlots (bool remove=false) |
clear all plots in the graph | |
void | deletePlot (int id, bool remove=false) |
remove given graph | |
void | deletePlot (JKQTFPPlot *g, bool remove=false) |
remove given graph | |
bool | doesMaintainAspectRatio () const |
indicates whether to maintain a specific aspect ratio | |
void | draw (QPainter *painter, QColor background, QSize *size) |
draw the contents onto any QPainter, starting at (0,0), returns the size of the whole plot in size, if supplied with the suppliedbackground color | |
void | draw (QPainter *painter, QSize *size=nullptr) |
draw the contents onto any QPainter, starting at (0,0), returns the size of the whole plot in size, if supplied with the default background color | |
double | getAspectRatio () const |
aspect ratio of the plot, only used when maintainAspectRation is true | |
QColor | getBackgroundColor () const |
color of the background | |
bool | getDragLine () const |
QPen | getDragShapePen () const |
bool | getDrawGrid () const |
indicates whether to draw a grid | |
bool | getDrawSystemBox () const |
indicates whether to draw a system box | |
bool | getDrawZeroAxes () const |
indicates whether to draw axes at x=0/y=0 | |
QColor | getGridColor () const |
color of the coordinate grid | |
Qt::PenStyle | getGridStyle () const |
style of the coordinate grid | |
double | getGridWidth () const |
width of the coordinate grid (in pixel) | |
int | getInternalPlotBorderBottom () const |
internally calculated: free space between widget bottom border and plot bottom border | |
int | getInternalPlotBorderLeft () const |
internally calculated: free space between widget left border and plot left border | |
int | getInternalPlotBorderRight () const |
internally calculated: free space between widget right border and plot left border | |
int | getInternalPlotBorderTop () const |
internally calculated: free space between widget top border and plot bottom border | |
QString | getLabelFontName () const |
font name of the axis labels | |
double | getLabelFontSize () const |
font size (in points) of the axis labels | |
QColor | getPlotBackgroundColor () const |
color of the plot's background | |
int | getPlotBorderBottom () const |
free space between widget bottom border and plot bottom border | |
int | getPlotBorderLeft () const |
free space between widget left border and plot left border | |
int | getPlotBorderRight () const |
free space between widget right border and plot left border | |
int | getPlotBorderTop () const |
free space between widget top border and plot bottom border | |
int | getPlotHeight () const |
plot height in pt inside the widget (calculated by calcPlotScaling() from plotBorderTop, plotBorderBottom and widgetHeight) | |
int | getPlotNum (JKQTFPPlot *g) |
return the internal number (0..N-1) of the given plot, or -1 | |
int | getPlotWidth () const |
plot width in pt inside the widget (calculated by calcPlotScaling() from plotBorderLeft, plotBorderRight and widgetWidth) | |
JKQTFastPlotter * | getSynchronizeX () const |
synchronize x-axis settings to this plotter | |
JKQTFastPlotter * | getSynchronizeY () const |
synchronize y-axis settings to this plotter | |
QColor | getSystemColor () const |
color of the coordinate system | |
double | getSystemWidth () const |
width of the coordinate (in pixel) | |
QString | getTickFontName () const |
font name of the tick labels | |
double | getTickFontSize () const |
font size (in points) of the tick labels | |
double | getTickLength () const |
length of an axis tick (pixels) | |
QString | getXAxisLabel () const |
label of x axis | |
bool | getXAxisLabelVisible () const |
plot x axis label | |
bool | getXAxisLog () const |
is x axis logarithmic? | |
double | getXMax () const |
maximum value of x axis | |
double | getXMin () const |
minimum value of x axis | |
double | getXTickDistance () const |
distance between two labels on x axis | |
double | getXZeroTick () const |
a label position from which axis label plotting is started for the x axis | |
QString | getYAxisLabel () const |
label of y axis | |
bool | getYAxisLabelVisible () const |
plot y axis label | |
bool | getYAxisLog () const |
is x axis logarithmic? | |
double | getYMax () const |
maximum value of y axis | |
double | getYMin () const |
minimum value of y axis | |
double | getYTickDistance () const |
distance between two labels on y axis | |
double | getYZeroTick () const |
a label position from which axis label plotting is started for the y axis | |
bool | isPlotUpdateEnabled () const |
if false the plotting won't be performed (may be used to set more than one parameter without replot | |
double | p2x (long x) |
return x coordinate from x-pixel | |
double | p2y (long y) |
return y coordinate from y-pixel | |
void | setAspectRatio (double __value) |
aspect ratio of the plot, only used when maintainAspectRation is true | |
void | setBackgroundColor (const QColor &__value) |
color of the background | |
void | setDragLine (bool __value) |
void | setDragShapePen (const QPen &__value) |
void | setDrawGrid (bool __value) |
indicates whether to draw a grid | |
void | setDrawSystemBox (bool __value) |
indicates whether to draw a system box | |
void | setDrawZeroAxes (bool __value) |
indicates whether to draw axes at x=0/y=0 | |
void | setGridColor (const QColor &__value) |
color of the coordinate grid | |
void | setGridStyle (Qt::PenStyle __value) |
style of the coordinate grid | |
void | setGridWidth (double __value) |
width of the coordinate grid (in pixel) | |
void | setLabelFontName (const QString &__value) |
font name of the axis labels | |
void | setLabelFontSize (double __value) |
font size (in points) of the axis labels | |
void | setMaintainAspectRatio (bool __value) |
indicates whether to maintain a specific aspect ratio | |
void | setPlotBackgroundColor (const QColor &__value) |
color of the plot's background | |
void | setPlotBorderBottom (int __value) |
free space between widget bottom border and plot bottom border | |
void | setPlotBorderLeft (int __value) |
free space between widget left border and plot left border | |
void | setPlotBorderRight (int __value) |
free space between widget right border and plot left border | |
void | setPlotBorderTop (int __value) |
free space between widget top border and plot bottom border | |
void | setPlotUpdateEnabled (bool __value) |
if false the plotting won't be performed (may be used to set more than one parameter without replot | |
void | setSynchronizeX (JKQTFastPlotter *__value) |
synchronize x-axis settings to this plotter | |
void | setSynchronizeY (JKQTFastPlotter *__value) |
synchronize y-axis settings to this plotter | |
void | setSystemColor (const QColor &__value) |
color of the coordinate system | |
void | setSystemWidth (double __value) |
width of the coordinate (in pixel) | |
void | setTickFontName (const QString &__value) |
font name of the tick labels | |
void | setTickFontSize (double __value) |
font size (in points) of the tick labels | |
void | setTickLength (double __value) |
length of an axis tick (pixels) | |
void | setXAxisLabel (const QString &__value) |
label of x axis | |
void | setXAxisLabelVisible (bool __value) |
plot x axis label | |
void | setXRange (double min, double max, bool logarithmic=false) |
set the properties of the x axis | |
void | setXTickDistance (double __value) |
distance between two labels on x axis | |
void | setXYRange (double xmin, double xmax, double ymin, double ymax, bool xlogarithmic=false, bool ylogarithmic=false) |
set the properties of both axes | |
void | setXZeroTick (double __value) |
a label position from which axis label plotting is started for the x axis | |
void | setYAxisLabel (const QString &__value) |
label of y axis | |
void | setYAxisLabelVisible (bool __value) |
plot y axis label | |
void | setYRange (double min, double max, bool logarithmic=false) |
set the properties of the y axis | |
void | setYTickDistance (double __value) |
distance between two labels on y axis | |
void | setYZeroTick (double __value) |
a label position from which axis label plotting is started for the y axis | |
double | x2p (double x) |
return x-pixel coordinate from x coordinate | |
double | y2p (double y) |
return y-pixel coordinate from y coordinate | |
Static Public Attributes | |
static const double | ABS_MIN_LINEWIDTH |
smallest allowed line width for JKQTFastPlotter | |
static const size_t | LUTSIZE |
size of the lookup tables used by JKQTFPimagePlot_array2image() | |
Protected Member Functions | |
void | calcPlotScaling () |
recalculate the scaling of the plot | |
QSize | minimumSizeHint () const override |
virtual void | mouseDoubleClickEvent (QMouseEvent *event) override |
event handler for a double click | |
virtual void | mouseMoveEvent (QMouseEvent *event) override |
event handler for a mouse move | |
virtual void | mousePressEvent (QMouseEvent *event) override |
event handler for a mouse button press | |
virtual void | mouseReleaseEvent (QMouseEvent *event) override |
event handler for a mouse button is released | |
virtual void | paintEvent (QPaintEvent *event) override |
this simply paints the stored image to the widget's surface | |
void | plotGraphs (QPainter &painter) |
paint the graphs | |
void | plotSystem (QPainter &painter) |
paint the coordinate system | |
virtual void | resizeEvent (QResizeEvent *event) override |
resizes the internal representation (image) of the graphs | |
Protected Attributes | |
QAction * | actCopyImage |
double | aspectRatio |
aspect ratio of the plot, only used when maintainAspectRation is true | |
QColor | backgroundColor |
color of the background | |
QColor | default_backgroundColor |
default value for property backgroundColor. | |
bool | default_drawGrid |
default value for property drawGrid. | |
bool | default_drawSystemBox |
default value for property drawSystemBox. | |
bool | default_drawZeroAxes |
default value for property drawZeroAxes. | |
QColor | default_gridColor |
default value for property gridColor. | |
Qt::PenStyle | default_gridStyle |
default value for property gridStyle. | |
double | default_gridWidth |
default value for property gridWidth. | |
QString | default_labelFontName |
default value for property labelFontName. | |
double | default_labelFontSize |
default value for property labelFontSize. | |
QColor | default_plotBackgroundColor |
default value for property plotBackgroundColor. | |
int | default_plotBorderBottom |
default value for property plotBorderBottom. | |
int | default_plotBorderLeft |
default value for property plotBorderLeft. | |
int | default_plotBorderRight |
default value for property plotBorderRight. | |
int | default_plotBorderTop |
default value for property plotBorderTop. | |
QColor | default_systemColor |
default value for property systemColor. | |
double | default_systemWidth |
default value for property systemWidth. | |
QString | default_tickFontName |
default value for property tickFontName. | |
double | default_tickFontSize |
default value for property tickFontSize. | |
double | default_tickLength |
default value for property tickLength. | |
bool | doDrawing |
if false the plotting won't be performed (may be used to set more than one parameter without replot | |
bool | doFullRepaint |
indicates whether to do full repaint (system and data) at the next repaint (any of the repaint meothods) | |
bool | dragging |
bool | dragLine |
QPen | dragShapePen |
bool | drawGrid |
indicates whether to draw a grid | |
bool | drawSystemBox |
indicates whether to draw a system box | |
bool | drawZeroAxes |
indicates whether to draw axes at x=0/y=0 | |
QColor | gridColor |
color of the coordinate grid | |
Qt::PenStyle | gridStyle |
style of the coordinate grid | |
double | gridWidth |
width of the coordinate grid (in pixel) | |
QImage | image |
this stores the currently displayed plot | |
int | internalPlotBorderBottom |
internally calculated: free space between widget bottom border and plot bottom border | |
int | internalPlotBorderLeft |
internally calculated: free space between widget left border and plot left border | |
int | internalPlotBorderRight |
internally calculated: free space between widget right border and plot left border | |
int | internalPlotBorderTop |
internally calculated: free space between widget top border and plot bottom border | |
QString | labelFontName |
font name of the axis labels | |
double | labelFontSize |
font size (in points) of the axis labels | |
bool | maintainAspectRatio |
indicates whether to maintain a specific aspect ratio | |
QPoint | mouseDragEnd |
QPoint | mouseDragStart |
QMutex | mutexRepaint |
mutex to lock global widget repaint | |
QMutex | mutexRepaintData |
mutex to lock data repaint | |
QMutex | mutexRepaintSystem |
mutex to lock system repaint | |
QImage | oldImage |
this can be used when drawing a zoom rectangle to store an unchanged copy of the currently displayed image. | |
QColor | plotBackgroundColor |
color of the plot's background | |
int | plotBorderBottom |
free space between widget bottom border and plot bottom border | |
int | plotBorderLeft |
free space between widget left border and plot left border | |
int | plotBorderRight |
free space between widget right border and plot left border | |
int | plotBorderTop |
free space between widget top border and plot bottom border | |
int | plotHeight |
plot height in pt inside the widget (calculated by calcPlotScaling() from plotBorderTop, plotBorderBottom and widgetHeight) | |
QVector< JKQTFPPlot * > | plots |
list of plots in this graph | |
int | plotWidth |
plot width in pt inside the widget (calculated by calcPlotScaling() from plotBorderLeft, plotBorderRight and widgetWidth) | |
JKQTFastPlotter * | synchronizeX |
synchronize x-axis settings to this plotter | |
JKQTFastPlotter * | synchronizeY |
synchronize y-axis settings to this plotter | |
QColor | systemColor |
color of the coordinate system | |
QImage | systemImage |
this stores the currently displayed coordinate system | |
double | systemWidth |
width of the coordinate (in pixel) | |
QString | tickFontName |
font name of the tick labels | |
double | tickFontSize |
font size (in points) of the tick labels | |
double | tickLength |
length of an axis tick (pixels) | |
QString | xAxisLabel |
label of x axis | |
bool | xAxisLabelVisible |
plot x axis label | |
bool | xAxisLog |
is x axis logarithmic? | |
double | xMax |
maximum value of x axis | |
double | xMin |
minimum value of x axis | |
double | xOffset |
x axis offset (calculated internally) | |
double | xScale |
x axis scaling factor (calculated internally) | |
double | xTickDistance |
distance between two labels on x axis | |
double | xWidth |
width of plot on x axis (calculated internally) | |
double | xZeroTick |
a label position from which axis label plotting is started for the x axis | |
QString | yAxisLabel |
label of y axis | |
bool | yAxisLabelVisible |
plot y axis label | |
bool | yAxisLog |
is x axis logarithmic? | |
double | yMax |
maximum value of y axis | |
double | yMin |
minimum value of y axis | |
double | yOffset |
y axis offset (calculated internally) | |
double | yScale |
y axis scaling factor (calculated internally) | |
double | yTickDistance |
distance between two labels on y axis | |
double | yWidth |
width of plot on y axis (calculated internally) | |
double | yZeroTick |
a label position from which axis label plotting is started for the y axis | |
a speed optimized plotter class
This plotter class is (in contrast to JKQTPlotter) optimized for speed. It allows to plot function graphs/data in a simple manner. The focus of design was not on a nice output (athough this is not unimportant), but on the speed of the output. So the class may be used to di quick plotting of data, i.e. in fast image sequence applications.
These measures were taken to increase speed:
The class supports these features:
zeroTick
is a tick value that exists in any case (i.e. 0) and tickDistance
which contains the distance between two ticks (only applicable to linear axes). Then the class starts to draw at zeroTick and move on to zeroTick+tickDistance
and zeroTick-tickDistance
until min
/ max
of the axis is reached. For logarithmic axes the class uses zeroTick*10
and zeroTick/10
JKQTFastPlotter::JKQTFastPlotter | ( | QWidget * | parent = nullptr | ) |
class constructor
void JKQTFastPlotter::addPlot | ( | JKQTFPPlot * | g | ) |
add a new graph
|
protected |
recalculate the scaling of the plot
void JKQTFastPlotter::clearPlots | ( | bool | remove = false | ) |
clear all plots in the graph
remove | if true the object will also be deleted from memory, not just from the list |
|
signal |
emitted whenever the mouse is clicked inside the plot
|
signal |
emitted whenever the mouse is clicked inside the plot
|
slot |
copy the current plot image to the clipboard
void JKQTFastPlotter::deletePlot | ( | int | id, |
bool | remove = false |
||
) |
remove given graph
id | specifies the graph to delete |
remove | if true the object will also be deleted from memory, not just from the list |
void JKQTFastPlotter::deletePlot | ( | JKQTFPPlot * | g, |
bool | remove = false |
||
) |
remove given graph
g | specifies the graph to delete |
remove | if true the object will also be deleted from memory, not just from the list |
|
inline |
indicates whether to maintain a specific aspect ratio
|
signal |
emitted whenever the mouse is double-clicked inside the plot
|
signal |
emitted whenever the mouse is double-clicked inside the plot
void JKQTFastPlotter::draw | ( | QPainter * | painter, |
QColor | background, | ||
QSize * | size | ||
) |
draw the contents onto any QPainter, starting at (0,0), returns the size of the whole plot in size, if supplied with the suppliedbackground color
void JKQTFastPlotter::draw | ( | QPainter * | painter, |
QSize * | size = nullptr |
||
) |
draw the contents onto any QPainter, starting at (0,0), returns the size of the whole plot in size, if supplied with the default background color
|
inline |
aspect ratio of the plot, only used when maintainAspectRation is true
The aspect ratio is defined as width/height
of the plot in pt. So if you want to have a plot spanning x=0
..20 and y=0
..10 where each 1x1 square should be as wide as high you will have to set aspectRatio to 2
.
|
inline |
color of the background
|
inline |
|
inline |
|
inline |
indicates whether to draw a grid
|
inline |
indicates whether to draw a system box
|
inline |
indicates whether to draw axes at x=0/y=0
|
inline |
color of the coordinate grid
|
inline |
style of the coordinate grid
|
inline |
width of the coordinate grid (in pixel)
|
inline |
internally calculated: free space between widget bottom border and plot bottom border
|
inline |
internally calculated: free space between widget left border and plot left border
|
inline |
internally calculated: free space between widget right border and plot left border
|
inline |
internally calculated: free space between widget top border and plot bottom border
|
inline |
font name of the axis labels
|
inline |
font size (in points) of the axis labels
|
inline |
color of the plot's background
QColor(Qt::transparent)
!
|
inline |
free space between widget bottom border and plot bottom border
|
inline |
free space between widget left border and plot left border
|
inline |
free space between widget right border and plot left border
|
inline |
free space between widget top border and plot bottom border
|
inline |
plot height in pt inside the widget (calculated by calcPlotScaling() from plotBorderTop, plotBorderBottom and widgetHeight)
int JKQTFastPlotter::getPlotNum | ( | JKQTFPPlot * | g | ) |
return the internal number (0..N-1) of the given plot, or -1
|
inline |
plot width in pt inside the widget (calculated by calcPlotScaling() from plotBorderLeft, plotBorderRight and widgetWidth)
|
inline |
synchronize x-axis settings to this plotter
|
inline |
synchronize y-axis settings to this plotter
|
inline |
color of the coordinate system
|
inline |
width of the coordinate (in pixel)
|
inline |
font name of the tick labels
|
inline |
font size (in points) of the tick labels
|
inline |
length of an axis tick (pixels)
|
inline |
label of x axis
|
inline |
plot x axis label
|
inline |
is x axis logarithmic?
|
inline |
maximum value of x axis
|
inline |
minimum value of x axis
|
inline |
distance between two labels on x axis
|
inline |
a label position from which axis label plotting is started for the x axis
|
inline |
label of y axis
|
inline |
plot y axis label
|
inline |
is x axis logarithmic?
|
inline |
maximum value of y axis
|
inline |
minimum value of y axis
|
inline |
distance between two labels on y axis
|
inline |
a label position from which axis label plotting is started for the y axis
|
inline |
if false
the plotting won't be performed (may be used to set more than one parameter without replot
|
overrideprotected |
|
overrideprotectedvirtual |
event handler for a double click
|
signal |
emitted after the mouse has been dragged with the left button clicked
|
signal |
emitted when the mouse has been dragged with the left button clicked
|
signal |
emitted whenever the mouse is clicked inside the plot
|
overrideprotectedvirtual |
event handler for a mouse move
|
overrideprotectedvirtual |
event handler for a mouse button press
|
overrideprotectedvirtual |
event handler for a mouse button is released
|
inline |
return x coordinate from x-pixel
|
inline |
return y coordinate from y-pixel
|
overrideprotectedvirtual |
this simply paints the stored image to the widget's surface
|
protected |
paint the graphs
|
protected |
paint the coordinate system
|
signal |
emitted whenever the graph sizes (borders, plotWidth, plotHeight) change
|
slot |
replot everything (slowest possible plotting)
|
slot |
replot everything (slowest possible plotting) and forces a repaint calling QWidget::repaint()
|
signal |
emitted whenever the graph is replotted
|
overrideprotectedvirtual |
resizes the internal representation (image) of the graphs
|
inline |
aspect ratio of the plot, only used when maintainAspectRation is true
The aspect ratio is defined as width/height
of the plot in pt. So if you want to have a plot spanning x=0
..20 and y=0
..10 where each 1x1 square should be as wide as high you will have to set aspectRatio to 2
.
|
inline |
color of the background
|
inline |
|
inline |
|
inline |
indicates whether to draw a grid
|
inline |
indicates whether to draw a system box
|
inline |
indicates whether to draw axes at x=0/y=0
|
inline |
color of the coordinate grid
|
inline |
style of the coordinate grid
|
inline |
width of the coordinate grid (in pixel)
|
inline |
font name of the axis labels
|
inline |
font size (in points) of the axis labels
|
inline |
indicates whether to maintain a specific aspect ratio
|
inline |
color of the plot's background
QColor(Qt::transparent)
!
|
inline |
free space between widget bottom border and plot bottom border
|
inline |
free space between widget left border and plot left border
|
inline |
free space between widget right border and plot left border
|
inline |
free space between widget top border and plot bottom border
|
inline |
if false
the plotting won't be performed (may be used to set more than one parameter without replot
|
inline |
synchronize x-axis settings to this plotter
|
inline |
synchronize y-axis settings to this plotter
|
inline |
color of the coordinate system
|
inline |
width of the coordinate (in pixel)
|
inline |
font name of the tick labels
|
inline |
font size (in points) of the tick labels
|
inline |
length of an axis tick (pixels)
|
inline |
label of x axis
|
inline |
plot x axis label
|
slot |
set xMax
|
slot |
set xMin
void JKQTFastPlotter::setXRange | ( | double | min, |
double | max, | ||
bool | logarithmic = false |
||
) |
set the properties of the x axis
|
inline |
distance between two labels on x axis
void JKQTFastPlotter::setXYRange | ( | double | xmin, |
double | xmax, | ||
double | ymin, | ||
double | ymax, | ||
bool | xlogarithmic = false , |
||
bool | ylogarithmic = false |
||
) |
set the properties of both axes
|
inline |
a label position from which axis label plotting is started for the x axis
|
inline |
label of y axis
|
inline |
plot y axis label
|
slot |
set yMax
|
slot |
set yMin
void JKQTFastPlotter::setYRange | ( | double | min, |
double | max, | ||
bool | logarithmic = false |
||
) |
set the properties of the y axis
|
inline |
distance between two labels on y axis
|
inline |
a label position from which axis label plotting is started for the y axis
|
slot |
replot only the data
This internally calls QWidget::update(), so no immediate repaint() is forced! If you want an immediate update, call updateDataImmediate() instead!
|
slot |
replot only the data, forces a redraw by calling QWidget::repaint()
|
inline |
return x-pixel coordinate from x coordinate
|
inline |
return y-pixel coordinate from y coordinate
|
static |
smallest allowed line width for JKQTFastPlotter
|
protected |
|
protected |
aspect ratio of the plot, only used when maintainAspectRation is true
The aspect ratio is defined as width/height
of the plot in pt. So if you want to have a plot spanning x=0
..20 and y=0
..10 where each 1x1 square should be as wide as high you will have to set aspectRatio to 2
.
|
protected |
color of the background
|
protected |
default value for property backgroundColor.
|
protected |
default value for property drawGrid.
|
protected |
default value for property drawSystemBox.
|
protected |
default value for property drawZeroAxes.
|
protected |
default value for property gridColor.
|
protected |
default value for property gridStyle.
|
protected |
default value for property gridWidth.
|
protected |
default value for property labelFontName.
|
protected |
default value for property labelFontSize.
|
protected |
default value for property plotBackgroundColor.
|
protected |
default value for property plotBorderBottom.
|
protected |
default value for property plotBorderLeft.
|
protected |
default value for property plotBorderRight.
|
protected |
default value for property plotBorderTop.
|
protected |
default value for property systemColor.
|
protected |
default value for property systemWidth.
|
protected |
default value for property tickFontName.
|
protected |
default value for property tickFontSize.
|
protected |
default value for property tickLength.
|
protected |
if false
the plotting won't be performed (may be used to set more than one parameter without replot
|
protected |
indicates whether to do full repaint (system and data) at the next repaint (any of the repaint meothods)
|
protected |
|
protected |
|
protected |
|
protected |
indicates whether to draw a grid
|
protected |
indicates whether to draw a system box
|
protected |
indicates whether to draw axes at x=0/y=0
|
protected |
color of the coordinate grid
|
protected |
style of the coordinate grid
|
protected |
width of the coordinate grid (in pixel)
|
protected |
this stores the currently displayed plot
|
protected |
internally calculated: free space between widget bottom border and plot bottom border
|
protected |
internally calculated: free space between widget left border and plot left border
|
protected |
internally calculated: free space between widget right border and plot left border
|
protected |
internally calculated: free space between widget top border and plot bottom border
|
protected |
font name of the axis labels
|
protected |
font size (in points) of the axis labels
|
static |
size of the lookup tables used by JKQTFPimagePlot_array2image()
|
protected |
indicates whether to maintain a specific aspect ratio
|
protected |
|
protected |
|
protected |
mutex to lock global widget repaint
|
protected |
mutex to lock data repaint
|
protected |
mutex to lock system repaint
|
protected |
this can be used when drawing a zoom rectangle to store an unchanged copy of the currently displayed image.
|
protected |
color of the plot's background
QColor(Qt::transparent)
!
|
protected |
free space between widget bottom border and plot bottom border
|
protected |
free space between widget left border and plot left border
|
protected |
free space between widget right border and plot left border
|
protected |
free space between widget top border and plot bottom border
|
protected |
plot height in pt inside the widget (calculated by calcPlotScaling() from plotBorderTop, plotBorderBottom and widgetHeight)
|
protected |
list of plots in this graph
|
protected |
plot width in pt inside the widget (calculated by calcPlotScaling() from plotBorderLeft, plotBorderRight and widgetWidth)
|
protected |
synchronize x-axis settings to this plotter
|
protected |
synchronize y-axis settings to this plotter
|
protected |
color of the coordinate system
|
protected |
this stores the currently displayed coordinate system
|
protected |
width of the coordinate (in pixel)
|
protected |
font name of the tick labels
|
protected |
font size (in points) of the tick labels
|
protected |
length of an axis tick (pixels)
|
protected |
label of x axis
|
protected |
plot x axis label
|
protected |
is x axis logarithmic?
|
protected |
maximum value of x axis
|
protected |
minimum value of x axis
|
protected |
x axis offset (calculated internally)
|
protected |
x axis scaling factor (calculated internally)
|
protected |
distance between two labels on x axis
|
protected |
width of plot on x axis (calculated internally)
|
protected |
a label position from which axis label plotting is started for the x axis
|
protected |
label of y axis
|
protected |
plot y axis label
|
protected |
is x axis logarithmic?
|
protected |
maximum value of y axis
|
protected |
minimum value of y axis
|
protected |
y axis offset (calculated internally)
|
protected |
y axis scaling factor (calculated internally)
|
protected |
distance between two labels on y axis
|
protected |
width of plot on y axis (calculated internally)
|
protected |
a label position from which axis label plotting is started for the y axis