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 a decorator (i.e. an arrow) at their head. It extends JKQTPGraphLineStyleMixin. More...

#include <jkqtpgraphsbasestylingmixins.h>

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

Public Member Functions

 JKQTPGraphDecoratedHeadLineStyleMixin ()
 class constructor
 
virtual ~JKQTPGraphDecoratedHeadLineStyleMixin ()
 
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 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
 
void initDecoratedHeadLineStyle (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
 
- 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
 
- 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
 

Detailed Description

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

supported properties:

  • head/ arrow style
See also
JKQTPGraphDecoratedLineStyleMixin for a Mix-In for both ends

Constructor & Destructor Documentation

◆ JKQTPGraphDecoratedHeadLineStyleMixin()

JKQTPGraphDecoratedHeadLineStyleMixin::JKQTPGraphDecoratedHeadLineStyleMixin ( )

class constructor

◆ ~JKQTPGraphDecoratedHeadLineStyleMixin()

virtual JKQTPGraphDecoratedHeadLineStyleMixin::~JKQTPGraphDecoratedHeadLineStyleMixin ( )
virtual

Member Function Documentation

◆ calcHeadDecoratorSize()

double JKQTPGraphDecoratedHeadLineStyleMixin::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()

◆ getHeadDecoratorSizeFactor()

double JKQTPGraphDecoratedHeadLineStyleMixin::getHeadDecoratorSizeFactor ( ) const

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

◆ getHeadDecoratorStyle()

JKQTPLineDecoratorStyle JKQTPGraphDecoratedHeadLineStyleMixin::getHeadDecoratorStyle ( ) const

get the head decorator style

◆ initDecoratedHeadLineStyle()

void JKQTPGraphDecoratedHeadLineStyleMixin::initDecoratedHeadLineStyle ( JKQTBasePlotter parent,
int &  parentPlotStyle,
JKQTPPlotStyleType  styletype = JKQTPPlotStyleType::Default 
)

initiaize the line style (from the parent plotter)

◆ setHeadDecoratorSizeFactor()

void JKQTPGraphDecoratedHeadLineStyleMixin::setHeadDecoratorSizeFactor ( const double &  __value)

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

◆ setHeadDecoratorStyle()

void JKQTPGraphDecoratedHeadLineStyleMixin::setHeadDecoratorStyle ( const JKQTPLineDecoratorStyle __value)

set the head decorator style

Member Data Documentation

◆ m_headDecoratorSizeFactor

double JKQTPGraphDecoratedHeadLineStyleMixin::m_headDecoratorSizeFactor
private

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

◆ m_headDecoratorStyle

JKQTPLineDecoratorStyle JKQTPGraphDecoratedHeadLineStyleMixin::m_headDecoratorStyle
private

head decorator style

Property Documentation

◆ headDecoratorSizeFactor

double JKQTPGraphDecoratedHeadLineStyleMixin::headDecoratorSizeFactor
readwrite

◆ headDecoratorStyle

JKQTPLineDecoratorStyle JKQTPGraphDecoratedHeadLineStyleMixin::headDecoratorStyle
readwrite

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