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 filling (NOT the symbol filling though!) More...

#include <jkqtpgraphsbasestylingmixins.h>

Inheritance diagram for JKQTPGraphFillStyleMixin:
[legend]

Public Member Functions

 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

Properties

QColor fillColor
Qt::BrushStyle fillStyle

Private Attributes

QBrush m_fillBrush
 fill style of the graph
QColor m_fillColor
 last fill color of the graph

Detailed Description

This Mix-In class provides setter/getter methods, storage and other facilities for the graph filling (NOT the symbol filling though!)

supported properties:

  • fill style
  • fill color
  • fill texture/gradient/matrix (if required by fill style)

Constructor & Destructor Documentation

◆ JKQTPGraphFillStyleMixin()

JKQTPGraphFillStyleMixin::JKQTPGraphFillStyleMixin ( )

class constructor

◆ ~JKQTPGraphFillStyleMixin()

virtual JKQTPGraphFillStyleMixin::~JKQTPGraphFillStyleMixin ( )
virtual

Member Function Documentation

◆ getFillBrush()

QBrush JKQTPGraphFillStyleMixin::getFillBrush ( JKQTPEnhancedPainter & painter,
JKQTBasePlotter * parent ) const

constructs a QBrush from the graph fill styling properties

◆ getFillColor()

QColor JKQTPGraphFillStyleMixin::getFillColor ( ) const

set the color of the graph filling

◆ getFillGradient()

const QGradient * JKQTPGraphFillStyleMixin::getFillGradient ( ) const

get the gradient object of the graph filling

◆ getFillStyle()

Qt::BrushStyle JKQTPGraphFillStyleMixin::getFillStyle ( ) const

get the fill style of the graph

◆ getFillTexture()

QPixmap JKQTPGraphFillStyleMixin::getFillTexture ( ) const

set the color of the graph filling

◆ getFillTextureImage()

QImage JKQTPGraphFillStyleMixin::getFillTextureImage ( ) const

set the color of the graph filling

◆ initFillStyle()

void JKQTPGraphFillStyleMixin::initFillStyle ( JKQTBasePlotter * parent,
int & parentPlotStyle,
JKQTPPlotStyleType styletype = JKQTPPlotStyleType::Default )

initiaize the fill style (from the parent plotter)

◆ initFillStyleInvertedColor()

void JKQTPGraphFillStyleMixin::initFillStyleInvertedColor ( JKQTPGraphFillStyleMixin * other)

initiaize the fill style from another JKQTPGraphFillStyleMixin other by inverting its fill color

◆ setFillBrush()

void JKQTPGraphFillStyleMixin::setFillBrush ( const QBrush & b)

sets a fill brush (overwrites all internal properties!)

◆ setFillColor() [1/2]

void JKQTPGraphFillStyleMixin::setFillColor ( const QColor & __value)

set the color of the graph filling

◆ setFillColor() [2/2]

void JKQTPGraphFillStyleMixin::setFillColor ( const QColor & __value,
double alpha )

set the color of the graph filling

◆ setFillGradient()

void JKQTPGraphFillStyleMixin::setFillGradient ( const QGradient & __value)

set the filling of the graph to a gradient and sets fill style to a gradient setting

◆ setFillStyle()

void JKQTPGraphFillStyleMixin::setFillStyle ( Qt::BrushStyle __value)

set the fill style of the graph

◆ setFillTexture() [1/2]

void JKQTPGraphFillStyleMixin::setFillTexture ( const QImage & __value)

set the color of the graph filling and sets fill style to Qt::TexturePattern

◆ setFillTexture() [2/2]

void JKQTPGraphFillStyleMixin::setFillTexture ( const QPixmap & __value)

set the color of the graph filling and sets fill style to Qt::TexturePattern

◆ setFillTransform()

void JKQTPGraphFillStyleMixin::setFillTransform ( const QTransform & b)

sets a fill transformation

Member Data Documentation

◆ m_fillBrush

QBrush JKQTPGraphFillStyleMixin::m_fillBrush
private

fill style of the graph

◆ m_fillColor

QColor JKQTPGraphFillStyleMixin::m_fillColor
private

last fill color of the graph

Property Documentation

◆ fillColor

QColor JKQTPGraphFillStyleMixin::fillColor
readwrite

◆ fillStyle

Qt::BrushStyle JKQTPGraphFillStyleMixin::fillStyle
readwrite

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