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

plot a horizontal scale bar More...

#include <jkqtfastplotter.h>

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

Public Member Functions

 JKQTFPQOverlayLinearGridPlot (JKQTFastPlotter *parent, double width=1, QColor color=QColor("grey"), double lineWidth=1, Qt::PenStyle style=Qt::DashLine)
 class constructor
 
virtual void drawGraph (QPainter &painter) override
 draw the graph
 
QColor getColor () const
 color of the grid
 
double getLineWidth () const
 line width of grid lines, given in pt
 
Qt::PenStyle getStyle () const
 grid line style
 
double getWidth () const
 distance between grid lines
 
void setColor (const QColor &__value)
 color of the grid
 
void setLineWidth (double __value)
 line width of grid lines, given in pt
 
void setStyle (Qt::PenStyle __value)
 grid line style
 
void setWidth (double __value)
 distance between grid lines
 
- 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 grid
 
double lineWidth
 line width of grid lines, given in pt
 
Qt::PenStyle style
 grid line style
 
double width
 distance between grid lines
 
- 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
 

Additional Inherited Members

- Public Slots inherited from JKQTFPPlot
void setVisible (bool visible)
 

Detailed Description

plot a horizontal scale bar

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

Constructor & Destructor Documentation

◆ JKQTFPQOverlayLinearGridPlot()

JKQTFPQOverlayLinearGridPlot::JKQTFPQOverlayLinearGridPlot ( JKQTFastPlotter parent,
double  width = 1,
QColor  color = QColor("grey"),
double  lineWidth = 1,
Qt::PenStyle  style = Qt::DashLine 
)
explicit

class constructor

Member Function Documentation

◆ drawGraph()

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

draw the graph

Implements JKQTFPPlot.

◆ getColor()

QColor JKQTFPQOverlayLinearGridPlot::getColor ( ) const
inline

color of the grid

◆ getLineWidth()

double JKQTFPQOverlayLinearGridPlot::getLineWidth ( ) const
inline

line width of grid lines, given in pt

◆ getStyle()

Qt::PenStyle JKQTFPQOverlayLinearGridPlot::getStyle ( ) const
inline

grid line style

◆ getWidth()

double JKQTFPQOverlayLinearGridPlot::getWidth ( ) const
inline

distance between grid lines

◆ setColor()

void JKQTFPQOverlayLinearGridPlot::setColor ( const QColor &  __value)
inline

color of the grid

◆ setLineWidth()

void JKQTFPQOverlayLinearGridPlot::setLineWidth ( double  __value)
inline

line width of grid lines, given in pt

◆ setStyle()

void JKQTFPQOverlayLinearGridPlot::setStyle ( Qt::PenStyle  __value)
inline

grid line style

◆ setWidth()

void JKQTFPQOverlayLinearGridPlot::setWidth ( double  __value)
inline

distance between grid lines

Member Data Documentation

◆ color

QColor JKQTFPQOverlayLinearGridPlot::color
protected

color of the grid

◆ lineWidth

double JKQTFPQOverlayLinearGridPlot::lineWidth
protected

line width of grid lines, given in pt

◆ style

Qt::PenStyle JKQTFPQOverlayLinearGridPlot::style
protected

grid line style

◆ width

double JKQTFPQOverlayLinearGridPlot::width
protected

distance between grid lines


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