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 JKQTFPYRangePlot:
[legend]
Collaboration diagram for JKQTFPYRangePlot:
[legend]

Public Slots

void setCenterline (int centerline)
void setYmax (double xmax)
void setYmax (int xmax)
void setYmin (double xmin)
void setYmin (int xmin)
Public Slots inherited from JKQTFPPlot
void setVisible (bool visible)

Public Member Functions

 JKQTFPYRangePlot (JKQTFastPlotter *parent, double ymin, double ymax, 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 getYmax () const
 end of x range
double getYmin () 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 ymax
 end of x range
double ymin
 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

◆ JKQTFPYRangePlot()

JKQTFPYRangePlot::JKQTFPYRangePlot ( JKQTFastPlotter * parent,
double ymin,
double ymax,
QColor color = QColor("red"),
Qt::PenStyle style = Qt::SolidLine,
double width = 1,
Qt::BrushStyle fillStyle = Qt::NoBrush )

class constructor

Parameters
parentparent widget
yminrange start
ymaxrange 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 JKQTFPYRangePlot::drawGraph ( QPainter & painter)
overridevirtual

draw the graph

Implements JKQTFPPlot.

◆ getCenterline()

double JKQTFPYRangePlot::getCenterline ( ) const
inline

◆ getColor()

QColor JKQTFPYRangePlot::getColor ( ) const
inline

color of the graph

◆ getFillColor()

QColor JKQTFPYRangePlot::getFillColor ( ) const
inline

fill color of the graph

◆ getFillStyle()

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

fill style of the graph

◆ getShowCenterline()

bool JKQTFPYRangePlot::getShowCenterline ( ) const
inline

◆ getStyle()

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

style of the graph

◆ getWidth()

double JKQTFPYRangePlot::getWidth ( ) const
inline

width of the graph (in pt)

◆ getYmax()

double JKQTFPYRangePlot::getYmax ( ) const
inline

end of x range

◆ getYmin()

double JKQTFPYRangePlot::getYmin ( ) const
inline

start of x range

◆ setCenterline

void JKQTFPYRangePlot::setCenterline ( int centerline)
inlineslot

◆ setColor()

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

color of the graph

◆ setFillColor()

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

fill color of the graph

◆ setFillStyle()

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

fill style of the graph

◆ setShowCenterline()

void JKQTFPYRangePlot::setShowCenterline ( bool __value)
inline

◆ setStyle()

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

style of the graph

◆ setWidth()

void JKQTFPYRangePlot::setWidth ( double __value)
inline

width of the graph (in pt)

◆ setYmax [1/2]

void JKQTFPYRangePlot::setYmax ( double xmax)
inlineslot

◆ setYmax [2/2]

void JKQTFPYRangePlot::setYmax ( int xmax)
inlineslot

◆ setYmin [1/2]

void JKQTFPYRangePlot::setYmin ( double xmin)
inlineslot

◆ setYmin [2/2]

void JKQTFPYRangePlot::setYmin ( int xmin)
inlineslot

Member Data Documentation

◆ centerline

double JKQTFPYRangePlot::centerline
protected

◆ color

QColor JKQTFPYRangePlot::color
protected

color of the graph

◆ fillColor

QColor JKQTFPYRangePlot::fillColor
protected

fill color of the graph

◆ fillStyle

Qt::BrushStyle JKQTFPYRangePlot::fillStyle
protected

fill style of the graph

◆ showCenterline

bool JKQTFPYRangePlot::showCenterline
protected

◆ style

Qt::PenStyle JKQTFPYRangePlot::style
protected

style of the graph

◆ width

double JKQTFPYRangePlot::width
protected

width of the graph (in pt)

◆ ymax

double JKQTFPYRangePlot::ymax
protected

end of x range

◆ ymin

double JKQTFPYRangePlot::ymin
protected

start of x range


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