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

Support Class for JKQTBasePlotter, which summarizes all properties that define the visual styling of a JKQTBasePlotter. More...

#include <jkqtpgraphsbasestyle.h>

Collaboration diagram for JKQTGraphsBaseStyle:
[legend]

Public Member Functions

 JKQTGraphsBaseStyle (const JKQTBasePlotterStyle &parent)
 
const JKQTGraphsSpecificStylePropertiesgetGraphStyleByType (JKQTPPlotStyleType type) const
 returns defaultGraphStyle, barchartStyle, ..., depending on the value of type
 
void loadSettings (const QSettings &settings, const QString &group, const JKQTGraphsBaseStyle &defaultStyle, const JKQTBasePlotterStyle &parent)
 loads the plot properties from a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object
 
void saveSettings (QSettings &settings, const QString &group=QString("graphs_styling/")) const
 saves the plot properties into a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object.
 

Static Public Member Functions

static QVector< QColor > getDefaultGraphColors ()
 standard color palette for the default style
 
static QVector< JKQTFillStyleSummmarygetDefaultGraphFillStyles ()
 list of Qt::BrushStyle used to automatically style different graphs differently in the default style
 
static QVector< Qt::PenStyle > getDefaultGraphPenStyles ()
 a list of Qt::PenStyles used to automatically style different graphs differently in the default style
 
static QVector< JKQTPGraphSymbolsgetDefaultGraphSymbols ()
 list of JKQTPGraphSymbols used to automatically assign to different graphs in the default style
 

Public Attributes

JKQTAnnotationsSpecificStyleProperties annotationStyle
 styling options for annotation elements
 
JKQTBarchartSpecificStyleProperties barchartStyle
 styling options for bargraph graphs
 
JKQTGraphsSpecificStyleProperties boxplotStyle
 styling options for boxplots graphs
 
QVector< QColor > defaultGraphColors
 colors used to automatically collor different graphs differently
 
QVector< JKQTFillStyleSummmarydefaultGraphFillStyles
 Qt::BrushStyle used to automatically style different graphs differently.
 
QVector< Qt::PenStyle > defaultGraphPenStyles
 Qt::PenStyle used to automatically style different graphs differently.
 
JKQTGraphsSpecificStyleProperties defaultGraphStyle
 styling options for standard graphs
 
QVector< JKQTPGraphSymbolsdefaultGraphSymbols
 JKQTPGraphSymbols used to automatically assign to different graphs.
 
JKQTPMathImageColorPalette defaultPalette
 color palette used by default for new graphs
 
JKQTGraphsSpecificStyleProperties filledStyle
 styling options for filled graphs
 
JKQTFinancialSpecificStyleProperties financialStyle
 styling options for financial elements
 
JKQTGeometricSpecificStyleProperties geometricStyle
 styling options for geometric elements
 
JKQTImpulseSpecificStyleProperties impulseStyle
 styling options for impulses graphs
 
bool useAntiAliasingForGraphs
 specifies whether to use antialiasing for plotting the graphs
 

Detailed Description

Support Class for JKQTBasePlotter, which summarizes all properties that define the visual styling of a JKQTBasePlotter.

See also
JKQTBasePlotter, Styling System

Constructor & Destructor Documentation

◆ JKQTGraphsBaseStyle()

JKQTGraphsBaseStyle::JKQTGraphsBaseStyle ( const JKQTBasePlotterStyle parent)
explicit

Member Function Documentation

◆ getDefaultGraphColors()

static QVector< QColor > JKQTGraphsBaseStyle::getDefaultGraphColors ( )
static

standard color palette for the default style

◆ getDefaultGraphFillStyles()

static QVector< JKQTFillStyleSummmary > JKQTGraphsBaseStyle::getDefaultGraphFillStyles ( )
static

list of Qt::BrushStyle used to automatically style different graphs differently in the default style

◆ getDefaultGraphPenStyles()

static QVector< Qt::PenStyle > JKQTGraphsBaseStyle::getDefaultGraphPenStyles ( )
static

a list of Qt::PenStyles used to automatically style different graphs differently in the default style

◆ getDefaultGraphSymbols()

static QVector< JKQTPGraphSymbols > JKQTGraphsBaseStyle::getDefaultGraphSymbols ( )
static

list of JKQTPGraphSymbols used to automatically assign to different graphs in the default style

◆ getGraphStyleByType()

const JKQTGraphsSpecificStyleProperties & JKQTGraphsBaseStyle::getGraphStyleByType ( JKQTPPlotStyleType  type) const

returns defaultGraphStyle, barchartStyle, ..., depending on the value of type

◆ loadSettings()

void JKQTGraphsBaseStyle::loadSettings ( const QSettings &  settings,
const QString &  group,
const JKQTGraphsBaseStyle defaultStyle,
const JKQTBasePlotterStyle parent 
)

loads the plot properties from a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object

Parameters
settingsQSettings-object to read from
groupGroup in the QSettings-object to read from
defaultStyleIf a setting cannot be found in settings, default values are taken from this object By default, this is a default-constructed object
parentparent JKQTBasePlotterStyle instance for inital values

◆ saveSettings()

void JKQTGraphsBaseStyle::saveSettings ( QSettings &  settings,
const QString &  group = QString("graphs_styling/") 
) const

saves the plot properties into a <a href="http://doc.qt.io/qt-5/qsettings.html")">QSettings object.

Parameters
settingsQSettings-object to save to
groupGroup in the QSettings-object to save to

Member Data Documentation

◆ annotationStyle

JKQTAnnotationsSpecificStyleProperties JKQTGraphsBaseStyle::annotationStyle

styling options for annotation elements

◆ barchartStyle

JKQTBarchartSpecificStyleProperties JKQTGraphsBaseStyle::barchartStyle

styling options for bargraph graphs

◆ boxplotStyle

JKQTGraphsSpecificStyleProperties JKQTGraphsBaseStyle::boxplotStyle

styling options for boxplots graphs

◆ defaultGraphColors

QVector<QColor> JKQTGraphsBaseStyle::defaultGraphColors

colors used to automatically collor different graphs differently

◆ defaultGraphFillStyles

QVector<JKQTFillStyleSummmary> JKQTGraphsBaseStyle::defaultGraphFillStyles

Qt::BrushStyle used to automatically style different graphs differently.

◆ defaultGraphPenStyles

QVector<Qt::PenStyle> JKQTGraphsBaseStyle::defaultGraphPenStyles

Qt::PenStyle used to automatically style different graphs differently.

◆ defaultGraphStyle

JKQTGraphsSpecificStyleProperties JKQTGraphsBaseStyle::defaultGraphStyle

styling options for standard graphs

◆ defaultGraphSymbols

QVector<JKQTPGraphSymbols> JKQTGraphsBaseStyle::defaultGraphSymbols

JKQTPGraphSymbols used to automatically assign to different graphs.

◆ defaultPalette

JKQTPMathImageColorPalette JKQTGraphsBaseStyle::defaultPalette

color palette used by default for new graphs

◆ filledStyle

JKQTGraphsSpecificStyleProperties JKQTGraphsBaseStyle::filledStyle

styling options for filled graphs

◆ financialStyle

JKQTFinancialSpecificStyleProperties JKQTGraphsBaseStyle::financialStyle

styling options for financial elements

◆ geometricStyle

JKQTGeometricSpecificStyleProperties JKQTGraphsBaseStyle::geometricStyle

styling options for geometric elements

◆ impulseStyle

JKQTImpulseSpecificStyleProperties JKQTGraphsBaseStyle::impulseStyle

styling options for impulses graphs

◆ useAntiAliasingForGraphs

bool JKQTGraphsBaseStyle::useAntiAliasingForGraphs

specifies whether to use antialiasing for plotting the graphs

Note
You can set this property false to increase plotting speed of complex plots (with many graphs inside). You can reach a roughly three-fold speed improvement!

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