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 style of lines with decorators (i.e. arrows) at their ends. It extends JKQTPGraphLineStyleMixin. More...

#include <jkqtpgraphsbasestylingmixins.h>

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

Public Member Functions

 JKQTPGraphDecoratedLineStyleMixin ()
 class constructor
 
virtual ~JKQTPGraphDecoratedLineStyleMixin ()
 
double calcHeadDecoratorSize (double line_width) const
 calculates the tail decorator size from the line width line_width, using m_headDecoratorSizeFactor and a non-linear scaling function
 
double calcTailDecoratorSize (double line_width) const
 calculates the tail decorator size from the line width line_width, using m_tailDecoratorSizeFactor and a non-linear scaling function
 
double getHeadDecoratorSizeFactor () const
 head decorator size-factor, used to calculate the size of the arrow from the line width
 
JKQTPLineDecoratorStyle getHeadDecoratorStyle () const
 get the head decorator style
 
double getTailDecoratorSizeFactor () const
 tail decorator size-factor, used to calculate the size of the arrow from the line width
 
JKQTPLineDecoratorStyle getTailDecoratorStyle () const
 get the tail decorator style
 
void initDecoratedLineStyle (JKQTBasePlotter *parent, int &parentPlotStyle, JKQTPPlotStyleType styletype=JKQTPPlotStyleType::Default)
 initiaize the line style (from the parent plotter)
 
void setHeadDecoratorSizeFactor (const double &__value)
 head decorator size-factor, used to calculate the size of the arrow from the line width
 
void setHeadDecoratorStyle (const JKQTPLineDecoratorStyle &__value)
 set the head decorator style
 
void setTailDecoratorSizeFactor (const double &__value)
 tail decorator size-factor, used to calculate the size of the arrow from the line width
 
void setTailDecoratorStyle (const JKQTPLineDecoratorStyle &__value)
 set the tail decorator style
 
- 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

double headDecoratorSizeFactor
 
JKQTPLineDecoratorStyle headDecoratorStyle
 
double tailDecoratorSizeFactor
 
JKQTPLineDecoratorStyle tailDecoratorStyle
 
- Properties inherited from JKQTPGraphLineStyleMixin
QColor highlightingLineColor
 
QColor lineColor
 
Qt::PenStyle lineStyle
 
double lineWidth
 

Private Attributes

double m_headDecoratorSizeFactor
 head decorator size-factor, used to calculate the size of the arrow from the line width
 
JKQTPLineDecoratorStyle m_headDecoratorStyle
 head decorator style
 
double m_tailDecoratorSizeFactor
 tail decorator size-factor, used to calculate the size of the arrow from the line width
 
JKQTPLineDecoratorStyle m_tailDecoratorStyle
 tail decorator style
 

Detailed Description

This Mix-In class provides setter/getter methods, storage and other facilities for the graph line style of lines with decorators (i.e. arrows) at their ends. It extends JKQTPGraphLineStyleMixin.

supported properties:

  • head/tail arrow style
See also
JKQTPGraphDecoratedHeadLineStyleMixin for a Mix-In for one end (head) only

Constructor & Destructor Documentation

◆ JKQTPGraphDecoratedLineStyleMixin()

JKQTPGraphDecoratedLineStyleMixin::JKQTPGraphDecoratedLineStyleMixin ( )

class constructor

◆ ~JKQTPGraphDecoratedLineStyleMixin()

virtual JKQTPGraphDecoratedLineStyleMixin::~JKQTPGraphDecoratedLineStyleMixin ( )
virtual

Member Function Documentation

◆ calcHeadDecoratorSize()

double JKQTPGraphDecoratedLineStyleMixin::calcHeadDecoratorSize ( double  line_width) const

calculates the tail decorator size from the line width line_width, using m_headDecoratorSizeFactor and a non-linear scaling function

See also
JKQTPLineDecoratorStyleCalcDecoratorSize()

◆ calcTailDecoratorSize()

double JKQTPGraphDecoratedLineStyleMixin::calcTailDecoratorSize ( double  line_width) const

calculates the tail decorator size from the line width line_width, using m_tailDecoratorSizeFactor and a non-linear scaling function

See also
JKQTPLineDecoratorStyleCalcDecoratorSize()

◆ getHeadDecoratorSizeFactor()

double JKQTPGraphDecoratedLineStyleMixin::getHeadDecoratorSizeFactor ( ) const

head decorator size-factor, used to calculate the size of the arrow from the line width

◆ getHeadDecoratorStyle()

JKQTPLineDecoratorStyle JKQTPGraphDecoratedLineStyleMixin::getHeadDecoratorStyle ( ) const

get the head decorator style

◆ getTailDecoratorSizeFactor()

double JKQTPGraphDecoratedLineStyleMixin::getTailDecoratorSizeFactor ( ) const

tail decorator size-factor, used to calculate the size of the arrow from the line width

◆ getTailDecoratorStyle()

JKQTPLineDecoratorStyle JKQTPGraphDecoratedLineStyleMixin::getTailDecoratorStyle ( ) const

get the tail decorator style

◆ initDecoratedLineStyle()

void JKQTPGraphDecoratedLineStyleMixin::initDecoratedLineStyle ( JKQTBasePlotter parent,
int &  parentPlotStyle,
JKQTPPlotStyleType  styletype = JKQTPPlotStyleType::Default 
)

initiaize the line style (from the parent plotter)

◆ setHeadDecoratorSizeFactor()

void JKQTPGraphDecoratedLineStyleMixin::setHeadDecoratorSizeFactor ( const double &  __value)

head decorator size-factor, used to calculate the size of the arrow from the line width

◆ setHeadDecoratorStyle()

void JKQTPGraphDecoratedLineStyleMixin::setHeadDecoratorStyle ( const JKQTPLineDecoratorStyle __value)

set the head decorator style

◆ setTailDecoratorSizeFactor()

void JKQTPGraphDecoratedLineStyleMixin::setTailDecoratorSizeFactor ( const double &  __value)

tail decorator size-factor, used to calculate the size of the arrow from the line width

◆ setTailDecoratorStyle()

void JKQTPGraphDecoratedLineStyleMixin::setTailDecoratorStyle ( const JKQTPLineDecoratorStyle __value)

set the tail decorator style

Member Data Documentation

◆ m_headDecoratorSizeFactor

double JKQTPGraphDecoratedLineStyleMixin::m_headDecoratorSizeFactor
private

head decorator size-factor, used to calculate the size of the arrow from the line width

◆ m_headDecoratorStyle

JKQTPLineDecoratorStyle JKQTPGraphDecoratedLineStyleMixin::m_headDecoratorStyle
private

head decorator style

◆ m_tailDecoratorSizeFactor

double JKQTPGraphDecoratedLineStyleMixin::m_tailDecoratorSizeFactor
private

tail decorator size-factor, used to calculate the size of the arrow from the line width

◆ m_tailDecoratorStyle

JKQTPLineDecoratorStyle JKQTPGraphDecoratedLineStyleMixin::m_tailDecoratorStyle
private

tail decorator style

Property Documentation

◆ headDecoratorSizeFactor

double JKQTPGraphDecoratedLineStyleMixin::headDecoratorSizeFactor
readwrite

◆ headDecoratorStyle

JKQTPLineDecoratorStyle JKQTPGraphDecoratedLineStyleMixin::headDecoratorStyle
readwrite

◆ tailDecoratorSizeFactor

double JKQTPGraphDecoratedLineStyleMixin::tailDecoratorSizeFactor
readwrite

◆ tailDecoratorStyle

JKQTPLineDecoratorStyle JKQTPGraphDecoratedLineStyleMixin::tailDecoratorStyle
readwrite

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