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

This Mix-In class provides setter/getter methods, storage and other facilities for the graph line and fill style. More...

#include <jkqtpgraphsbasestylingmixins.h>

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

Public Member Functions

 JKQTPGraphLineAndFillStyleMixin ()
 class constructor
 
bool doDrawLine () const
 indicates whether to draw a line on the circumference of the described area (i.e. along the data points from xColumn and yColumn as well as xColumn and yColumn2 or not
 
bool doFillCurve () const
 indicates whether to fill the space between the curve and the x-axis
 
bool getDrawLine () const
 indicates whether to draw a line on the circumference of the described area (i.e. along the data points from xColumn and yColumn as well as xColumn and yColumn2 or not
 
bool getFillCurve () const
 indicates whether to fill the space between the curve and the x-axis
 
void setDrawLine (bool __value)
 indicates whether to draw a line on the circumference of the described area (i.e. along the data points from xColumn and yColumn as well as xColumn and yColumn2 or not
 
void setFillCurve (bool __value)
 indicates whether to fill the space between the curve and the x-axis
 
- Public Member Functions inherited from JKQTPGraphFillStyleMixin
 JKQTPGraphFillStyleMixin ()
 class constructor
 
virtual ~JKQTPGraphFillStyleMixin ()
 
QBrush getFillBrush (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const
 constructs a QBrush from the graph fill styling properties
 
QColor getFillColor () const
 set the color of the graph filling
 
const QGradient * getFillGradient () const
 get the gradient object of the graph filling
 
Qt::BrushStyle getFillStyle () const
 get the fill style of the graph
 
QPixmap getFillTexture () const
 set the color of the graph filling
 
QImage getFillTextureImage () const
 set the color of the graph filling
 
void initFillStyle (JKQTBasePlotter *parent, int &parentPlotStyle, JKQTPPlotStyleType styletype=JKQTPPlotStyleType::Default)
 initiaize the fill style (from the parent plotter)
 
void initFillStyleInvertedColor (JKQTPGraphFillStyleMixin *other)
 initiaize the fill style from another JKQTPGraphFillStyleMixin other by inverting its fill color
 
void setFillBrush (const QBrush &b)
 sets a fill brush (overwrites all internal properties!)
 
void setFillColor (const QColor &__value)
 set the color of the graph filling
 
void setFillColor (const QColor &__value, double alpha)
 set the color of the graph filling
 
void setFillGradient (const QGradient &__value)
 set the filling of the graph to a gradient and sets fill style to a gradient setting
 
void setFillStyle (Qt::BrushStyle __value)
 set the fill style of the graph
 
void setFillTexture (const QImage &__value)
 set the color of the graph filling and sets fill style to Qt::TexturePattern
 
void setFillTexture (const QPixmap &__value)
 set the color of the graph filling and sets fill style to Qt::TexturePattern
 
void setFillTransform (const QTransform &b)
 sets a fill transformation
 
- Public Member Functions inherited from JKQTPGraphLineStyleMixin
 JKQTPGraphLineStyleMixin ()
 class constructor
 
virtual ~JKQTPGraphLineStyleMixin ()
 
QColor getHighlightingLineColor () const
 get the color of the graph line when highlighted
 
QPen getHighlightingLinePen (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const
 constructs a QPen from the line styling properties
 
QPen getHighlightingLinePenForRects (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const
 constructs a QPen from the line styling properties, suitable for drawing rectangle with sharp corners
 
QPen getKeyLinePen (JKQTPEnhancedPainter &painter, const QRectF &rect, JKQTBasePlotter *parent) const
 constructs a QPen from the line styling properties, but uses getKeyLineWidthPx() for the width, i.e. constructs a pen for drawing lines in key-symbols
 
double getKeyLineWidthPx (JKQTPEnhancedPainter &painter, const QRectF &keyRect, const JKQTBasePlotter *parent) const
 returns the linewidth for drawing lines in a key entry with keyRect for the symbol, using painter and parent .
 
QBrush getLineBrush () const
 gets the brush used to fill the line area
 
Qt::PenCapStyle getLineCapStyle () const
 gets the cap style
 
QColor getLineColor () const
 get the color of the graph line
 
qreal getLineDashOffset () const
 returns the dash offset for a custom dash style
 
QVector< qreal > getLineDashPattern () const
 gets the dash pattern for a custom dash style
 
Qt::PenJoinStyle getLineJoinStyle () const
 returns the join style
 
QPen getLinePen (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const
 constructs a QPen from the line styling properties
 
QPen getLinePenForRects (JKQTPEnhancedPainter &painter, JKQTBasePlotter *parent) const
 constructs a QPen from the line styling properties, suitable for drawing rectangles with sharp edges
 
Qt::PenStyle getLineStyle () const
 get the style of the graph line
 
double getLineWidth () const
 get the line width of the graph line (in pt)
 
void initLineStyle (JKQTBasePlotter *parent, int &parentPlotStyle, JKQTPPlotStyleType styletype=JKQTPPlotStyleType::Default)
 initiaize the line style (from the parent plotter)
 
void setHighlightingLineColor (const QColor &__value)
 set the color of the graph line when highlighted
 
void setHighlightingLineColor (const QColor &__value, double alpha)
 set the color of the graph line when highlighted
 
void setLineBrush (const QBrush &style)
 sets the brush used to fill the line area
 
void setLineCapStyle (Qt::PenCapStyle style)
 sets the cap style
 
void setLineColor (const QColor &__value)
 set the color of the graph line
 
void setLineColor (const QColor &__value, double alpha)
 set the color of the graph line
 
void setLineColorInvertedFrom (QColor __noninvertedColor)
 sets the line-color as an inverted version of the given color
 
void setLineDashOffset (qreal offset)
 sets the dash offset for a custom dash style
 
void setLineDashPattern (const QVector< qreal > &pattern)
 sets the dash pattern for a custom dash style
 
void setLineJoinStyle (Qt::PenJoinStyle style)
 sets the join style
 
void setLineStyle (Qt::PenStyle __value)
 set the style of the graph line
 
void setLineWidth (double __value)
 set the line width of the graph line (in pt)
 

Properties

bool drawLine
 
bool fillCurve
 
- Properties inherited from JKQTPGraphFillStyleMixin
QColor fillColor
 
Qt::BrushStyle fillStyle
 
- Properties inherited from JKQTPGraphLineStyleMixin
QColor highlightingLineColor
 
QColor lineColor
 
Qt::PenStyle lineStyle
 
double lineWidth
 

Private Attributes

bool m_drawLine
 indicates whether to draw a line on the circumference of the described area (i.e. along the data points from xColumn and yColumn as well as xColumn and yColumn2 or not
 
bool m_fillCurve
 indicates whether to fill the space between the curve and the x-axis
 

Detailed Description

This Mix-In class provides setter/getter methods, storage and other facilities for the graph line and fill style.

Constructor & Destructor Documentation

◆ JKQTPGraphLineAndFillStyleMixin()

JKQTPGraphLineAndFillStyleMixin::JKQTPGraphLineAndFillStyleMixin ( )

class constructor

Member Function Documentation

◆ doDrawLine()

bool JKQTPGraphLineAndFillStyleMixin::doDrawLine ( ) const

indicates whether to draw a line on the circumference of the described area (i.e. along the data points from xColumn and yColumn as well as xColumn and yColumn2 or not

◆ doFillCurve()

bool JKQTPGraphLineAndFillStyleMixin::doFillCurve ( ) const

indicates whether to fill the space between the curve and the x-axis

◆ getDrawLine()

bool JKQTPGraphLineAndFillStyleMixin::getDrawLine ( ) const

indicates whether to draw a line on the circumference of the described area (i.e. along the data points from xColumn and yColumn as well as xColumn and yColumn2 or not

◆ getFillCurve()

bool JKQTPGraphLineAndFillStyleMixin::getFillCurve ( ) const

indicates whether to fill the space between the curve and the x-axis

◆ setDrawLine()

void JKQTPGraphLineAndFillStyleMixin::setDrawLine ( bool  __value)

indicates whether to draw a line on the circumference of the described area (i.e. along the data points from xColumn and yColumn as well as xColumn and yColumn2 or not

◆ setFillCurve()

void JKQTPGraphLineAndFillStyleMixin::setFillCurve ( bool  __value)

indicates whether to fill the space between the curve and the x-axis

Member Data Documentation

◆ m_drawLine

bool JKQTPGraphLineAndFillStyleMixin::m_drawLine
private

indicates whether to draw a line on the circumference of the described area (i.e. along the data points from xColumn and yColumn as well as xColumn and yColumn2 or not

◆ m_fillCurve

bool JKQTPGraphLineAndFillStyleMixin::m_fillCurve
private

indicates whether to fill the space between the curve and the x-axis

Property Documentation

◆ drawLine

bool JKQTPGraphLineAndFillStyleMixin::drawLine
readwrite

◆ fillCurve

bool JKQTPGraphLineAndFillStyleMixin::fillCurve
readwrite

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