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 range of x values More...

#include <jkqtfastplotter.h>

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

Public Slots

void setCenterline (int centerline)
 
void setXmax (double xmax)
 
void setXmax (int xmax)
 
void setXmin (double xmin)
 
void setXmin (int xmin)
 
- Public Slots inherited from JKQTFPPlot
void setVisible (bool visible)
 

Public Member Functions

 JKQTFPXRangePlot (JKQTFastPlotter *parent, double xmin, double xmax, QColor color=QColor("red"), Qt::PenStyle style=Qt::SolidLine, double width=1, Qt::BrushStyle fillStyle=Qt::NoBrush)
 class constructor
 
virtual void drawGraph (QPainter &painter) override
 draw the graph
 
double getCenterline () const
 
QColor getColor () const
 color of the graph
 
QColor getFillColor () const
 fill color of the graph
 
Qt::BrushStyle getFillStyle () const
 fill style of the graph
 
bool getShowCenterline () const
 
Qt::PenStyle getStyle () const
 style of the graph
 
double getWidth () const
 width of the graph (in pt)
 
double getXmax () const
 end of x range
 
double getXmin () const
 start of x range
 
void setColor (const QColor &__value)
 color of the graph
 
void setFillColor (const QColor &__value)
 fill color of the graph
 
void setFillStyle (Qt::BrushStyle __value)
 fill style of the graph
 
void setShowCenterline (bool __value)
 
void setStyle (Qt::PenStyle __value)
 style of the graph
 
void setWidth (double __value)
 width of the graph (in pt)
 
- 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

double centerline
 
QColor color
 color of the graph
 
QColor fillColor
 fill color of the graph
 
Qt::BrushStyle fillStyle
 fill style of the graph
 
bool showCenterline
 
Qt::PenStyle style
 style of the graph
 
double width
 width of the graph (in pt)
 
double xmax
 end of x range
 
double xmin
 start of x range
 
- 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

plot a range of x values

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

Constructor & Destructor Documentation

◆ JKQTFPXRangePlot()

JKQTFPXRangePlot::JKQTFPXRangePlot ( JKQTFastPlotter parent,
double  xmin,
double  xmax,
QColor  color = QColor("red"),
Qt::PenStyle  style = Qt::SolidLine,
double  width = 1,
Qt::BrushStyle  fillStyle = Qt::NoBrush 
)

class constructor

Parameters
parentparent widget
xminrange start
xmaxrange end
colorcolor of the plot
stylestyle of the graph
widthwidth of the plot (in pt)
fillStylefill style of the range

Member Function Documentation

◆ drawGraph()

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

draw the graph

Implements JKQTFPPlot.

◆ getCenterline()

double JKQTFPXRangePlot::getCenterline ( ) const
inline

◆ getColor()

QColor JKQTFPXRangePlot::getColor ( ) const
inline

color of the graph

◆ getFillColor()

QColor JKQTFPXRangePlot::getFillColor ( ) const
inline

fill color of the graph

◆ getFillStyle()

Qt::BrushStyle JKQTFPXRangePlot::getFillStyle ( ) const
inline

fill style of the graph

◆ getShowCenterline()

bool JKQTFPXRangePlot::getShowCenterline ( ) const
inline

◆ getStyle()

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

style of the graph

◆ getWidth()

double JKQTFPXRangePlot::getWidth ( ) const
inline

width of the graph (in pt)

◆ getXmax()

double JKQTFPXRangePlot::getXmax ( ) const
inline

end of x range

◆ getXmin()

double JKQTFPXRangePlot::getXmin ( ) const
inline

start of x range

◆ setCenterline

void JKQTFPXRangePlot::setCenterline ( int  centerline)
inlineslot

◆ setColor()

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

color of the graph

◆ setFillColor()

void JKQTFPXRangePlot::setFillColor ( const QColor &  __value)
inline

fill color of the graph

◆ setFillStyle()

void JKQTFPXRangePlot::setFillStyle ( Qt::BrushStyle  __value)
inline

fill style of the graph

◆ setShowCenterline()

void JKQTFPXRangePlot::setShowCenterline ( bool  __value)
inline

◆ setStyle()

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

style of the graph

◆ setWidth()

void JKQTFPXRangePlot::setWidth ( double  __value)
inline

width of the graph (in pt)

◆ setXmax [1/2]

void JKQTFPXRangePlot::setXmax ( double  xmax)
inlineslot

◆ setXmax [2/2]

void JKQTFPXRangePlot::setXmax ( int  xmax)
inlineslot

◆ setXmin [1/2]

void JKQTFPXRangePlot::setXmin ( double  xmin)
inlineslot

◆ setXmin [2/2]

void JKQTFPXRangePlot::setXmin ( int  xmin)
inlineslot

Member Data Documentation

◆ centerline

double JKQTFPXRangePlot::centerline
protected

◆ color

QColor JKQTFPXRangePlot::color
protected

color of the graph

◆ fillColor

QColor JKQTFPXRangePlot::fillColor
protected

fill color of the graph

◆ fillStyle

Qt::BrushStyle JKQTFPXRangePlot::fillStyle
protected

fill style of the graph

◆ showCenterline

bool JKQTFPXRangePlot::showCenterline
protected

◆ style

Qt::PenStyle JKQTFPXRangePlot::style
protected

style of the graph

◆ width

double JKQTFPXRangePlot::width
protected

width of the graph (in pt)

◆ xmax

double JKQTFPXRangePlot::xmax
protected

end of x range

◆ xmin

double JKQTFPXRangePlot::xmin
protected

start of x range


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