SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
openswmmvis::plot::ChartProperties Class Reference

#include <chartproperties.h>

Inheritance diagram for openswmmvis::plot::ChartProperties:
Collaboration diagram for openswmmvis::plot::ChartProperties:

Public Types

enum  LabelFormatMode {
  Decimals = 0 ,
  SignificantFigures = 1 ,
  Scientific = 2 ,
  Engineering = 3 ,
  Thousands = 4
}
 Axis label number mode; values mirror openswmmvis::plot::NumberFormatMode (0=Decimals, 1=SignificantFigures, 2=Scientific, 3=Engineering, 4=Thousands). More...
 
enum  AxisNumberFormat {
  Integer = 0 ,
  Decimals1 = 1 ,
  Decimals2 = 2 ,
  Decimals3 = 3 ,
  Decimals4 = 4 ,
  Decimals6 = 5 ,
  SigFigs3 = 6 ,
  SigFigs4 = 7 ,
  SigFigs6 = 8 ,
  Scientific2 = 9 ,
  Scientific3 = 10 ,
  Scientific4 = 11 ,
  Engineering2 = 12 ,
  Engineering3 = 13 ,
  ThousandsInteger = 14 ,
  Thousands1 = 15 ,
  Thousands2 = 16
}
 

Public Slots

void setTitleText (const QString &text)
 
void setTitleFont (const QFont &font)
 
void setYAutoRange (bool on)
 
void setYMin (qreal v)
 
void setYMax (qreal v)
 
void setYGridVisible (bool on)
 
void setXGridVisible (bool on)
 
void setAxisLabelFont (const QFont &font)
 
void setTickLabelFont (const QFont &font)
 
void setBackgroundColor (const QColor &c)
 
void setPlotAreaColor (const QColor &c)
 
void setGridColor (const QColor &c)
 
void setChartTheme (int theme)
 
void setXAxisNumberFormat (ChartProperties::AxisNumberFormat f)
 
void setYAxisNumberFormat (ChartProperties::AxisNumberFormat f)
 
void setStatisticsFormatPreset (ChartProperties::AxisNumberFormat f)
 
void setXLabelFormatMode (ChartProperties::LabelFormatMode mode)
 
void setXLabelPrecision (int count)
 
void setXLabelFormat (const QString &spec)
 
void setYLabelFormatMode (ChartProperties::LabelFormatMode mode)
 
void setYLabelPrecision (int count)
 
void setYLabelFormat (const QString &spec)
 
void setStatisticsFormatMode (ChartProperties::LabelFormatMode mode)
 
void setStatisticsPrecision (int count)
 
void setStatisticsFormat (const QString &spec)
 
void setStatisticsNumberFormat (const NumberFormat &format)
 

Signals

void displayLabelsChanged ()
 
void titleTextChanged (const QString &)
 
void titleFontChanged (const QFont &)
 
void yAutoRangeChanged (bool)
 
void yMinChanged (qreal)
 
void yMaxChanged (qreal)
 
void yGridVisibleChanged (bool)
 
void xGridVisibleChanged (bool)
 
void axisLabelFontChanged (const QFont &)
 
void tickLabelFontChanged (const QFont &)
 
void backgroundColorChanged (const QColor &)
 
void plotAreaColorChanged (const QColor &)
 
void gridColorChanged (const QColor &)
 
void chartThemeChanged (int)
 
void xLabelFormatModeChanged (ChartProperties::LabelFormatMode)
 
void xLabelPrecisionChanged (int)
 
void xLabelFormatChanged (const QString &)
 
void yLabelFormatModeChanged (ChartProperties::LabelFormatMode)
 
void yLabelPrecisionChanged (int)
 
void yLabelFormatChanged (const QString &)
 
void statisticsFormatModeChanged (ChartProperties::LabelFormatMode)
 
void statisticsPrecisionChanged (int)
 
void xAxisNumberFormatChanged (ChartProperties::AxisNumberFormat)
 
void yAxisNumberFormatChanged (ChartProperties::AxisNumberFormat)
 
void statisticsFormatPresetChanged (ChartProperties::AxisNumberFormat)
 
void statisticsFormatChanged (const QString &)
 

Public Member Functions

 ChartProperties (QChart *chart, QObject *parent=nullptr)
 
 ~ChartProperties () override=default
 
QChart * chart () const noexcept
 
Q_INVOKABLE QString displayLabelFor (const QString &propertyName) const
 AT.3 polish — QPropertyModel hook for human-friendly, group-prefixed display labels in the Chart Properties dialog. Returns labels like "Title — Text", "Y Axis — Min", etc.
 
QString titleText () const
 
QFont titleFont () const
 
bool yAutoRange () const noexcept
 
qreal yMin () const
 
qreal yMax () const
 
bool yGridVisible () const
 
bool xGridVisible () const
 
QFont axisLabelFont () const
 
QFont tickLabelFont () const
 
QColor backgroundColor () const
 
QColor plotAreaColor () const
 
QColor gridColor () const noexcept
 
int chartTheme () const
 
AxisNumberFormat xAxisNumberFormat () const
 
AxisNumberFormat yAxisNumberFormat () const
 
AxisNumberFormat statisticsFormatPreset () const
 
LabelFormatMode xLabelFormatMode () const noexcept
 
int xLabelPrecision () const noexcept
 
QString xLabelFormat () const
 
LabelFormatMode yLabelFormatMode () const noexcept
 
int yLabelPrecision () const noexcept
 
QString yLabelFormat () const
 
LabelFormatMode statisticsFormatMode () const noexcept
 
int statisticsPrecision () const noexcept
 
QString statisticsFormat () const
 
NumberFormat xFormat () const noexcept
 Current X/Y/statistics number format as the shared value type.
 
NumberFormat yFormat () const noexcept
 
NumberFormat statisticsNumberFormat () const noexcept
 

Properties

QString titleText
 
QFont titleFont
 
bool yAutoRange
 
qreal yMin
 
qreal yMax
 
bool yGridVisible
 
bool xGridVisible
 
QFont axisLabelFont
 
QFont tickLabelFont
 
QColor backgroundColor
 
QColor plotAreaColor
 
QColor gridColor
 
int chartTheme
 
ChartProperties::AxisNumberFormat xAxisNumberFormat
 
QString xLabelFormat
 
ChartProperties::AxisNumberFormat yAxisNumberFormat
 
QString yLabelFormat
 
ChartProperties::AxisNumberFormat statisticsFormatPreset
 
QString statisticsFormat
 

Member Enumeration Documentation

◆ AxisNumberFormat

Combined number format offered as ONE dropdown, replacing a mode enum plus a free integer count. Mirrors openswmmvis::plot:: AxisNumberFormatPreset value-for-value; QPropertyModel needs the enumerator list on the declaring class and labels each row with the enumerator name. numberformat.h owns the mapping to mode + digits.

Enumerator
Integer 
Decimals1 
Decimals2 
Decimals3 
Decimals4 
Decimals6 
SigFigs3 
SigFigs4 
SigFigs6 
Scientific2 
Scientific3 
Scientific4 
Engineering2 
Engineering3 
ThousandsInteger 
Thousands1 
Thousands2 

◆ LabelFormatMode

Axis label number mode; values mirror openswmmvis::plot::NumberFormatMode (0=Decimals, 1=SignificantFigures, 2=Scientific, 3=Engineering, 4=Thousands).

Enumerator
Decimals 
SignificantFigures 
Scientific 
Engineering 
Thousands 

Constructor & Destructor Documentation

◆ ChartProperties()

openswmmvis::plot::ChartProperties::ChartProperties ( QChart *  chart,
QObject *  parent = nullptr 
)
explicit
Here is the call graph for this function:

◆ ~ChartProperties()

openswmmvis::plot::ChartProperties::~ChartProperties ( )
overridedefault

Member Function Documentation

◆ axisLabelFont()

QFont openswmmvis::plot::ChartProperties::axisLabelFont ( ) const

◆ axisLabelFontChanged

void openswmmvis::plot::ChartProperties::axisLabelFontChanged ( const QFont &  )
signal
Here is the caller graph for this function:

◆ backgroundColor()

QColor openswmmvis::plot::ChartProperties::backgroundColor ( ) const

◆ backgroundColorChanged

void openswmmvis::plot::ChartProperties::backgroundColorChanged ( const QColor &  )
signal
Here is the caller graph for this function:

◆ chart()

QChart * openswmmvis::plot::ChartProperties::chart ( ) const
inlinenoexcept

◆ chartTheme()

int openswmmvis::plot::ChartProperties::chartTheme ( ) const

◆ chartThemeChanged

void openswmmvis::plot::ChartProperties::chartThemeChanged ( int  )
signal
Here is the caller graph for this function:

◆ displayLabelFor()

QString openswmmvis::plot::ChartProperties::displayLabelFor ( const QString &  propertyName) const

AT.3 polish — QPropertyModel hook for human-friendly, group-prefixed display labels in the Chart Properties dialog. Returns labels like "Title — Text", "Y Axis — Min", etc.

◆ displayLabelsChanged

void openswmmvis::plot::ChartProperties::displayLabelsChanged ( )
signal

◆ gridColor()

QColor openswmmvis::plot::ChartProperties::gridColor ( ) const
inlinenoexcept

◆ gridColorChanged

void openswmmvis::plot::ChartProperties::gridColorChanged ( const QColor &  )
signal
Here is the caller graph for this function:

◆ plotAreaColor()

QColor openswmmvis::plot::ChartProperties::plotAreaColor ( ) const

◆ plotAreaColorChanged

void openswmmvis::plot::ChartProperties::plotAreaColorChanged ( const QColor &  )
signal
Here is the caller graph for this function:

◆ setAxisLabelFont

void openswmmvis::plot::ChartProperties::setAxisLabelFont ( const QFont &  font)
slot
Here is the call graph for this function:

◆ setBackgroundColor

void openswmmvis::plot::ChartProperties::setBackgroundColor ( const QColor &  c)
slot
Here is the call graph for this function:

◆ setChartTheme

void openswmmvis::plot::ChartProperties::setChartTheme ( int  theme)
slot
Here is the call graph for this function:

◆ setGridColor

void openswmmvis::plot::ChartProperties::setGridColor ( const QColor &  c)
slot
Here is the call graph for this function:

◆ setPlotAreaColor

void openswmmvis::plot::ChartProperties::setPlotAreaColor ( const QColor &  c)
slot
Here is the call graph for this function:

◆ setStatisticsFormat

void openswmmvis::plot::ChartProperties::setStatisticsFormat ( const QString &  spec)
slot
Here is the call graph for this function:

◆ setStatisticsFormatMode

void openswmmvis::plot::ChartProperties::setStatisticsFormatMode ( ChartProperties::LabelFormatMode  mode)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setStatisticsFormatPreset

void openswmmvis::plot::ChartProperties::setStatisticsFormatPreset ( ChartProperties::AxisNumberFormat  f)
slot
Here is the call graph for this function:

◆ setStatisticsNumberFormat

void openswmmvis::plot::ChartProperties::setStatisticsNumberFormat ( const NumberFormat format)
slot
Here is the call graph for this function:

◆ setStatisticsPrecision

void openswmmvis::plot::ChartProperties::setStatisticsPrecision ( int  count)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setTickLabelFont

void openswmmvis::plot::ChartProperties::setTickLabelFont ( const QFont &  font)
slot
Here is the call graph for this function:

◆ setTitleFont

void openswmmvis::plot::ChartProperties::setTitleFont ( const QFont &  font)
slot
Here is the call graph for this function:

◆ setTitleText

void openswmmvis::plot::ChartProperties::setTitleText ( const QString &  text)
slot
Here is the call graph for this function:

◆ setXAxisNumberFormat

void openswmmvis::plot::ChartProperties::setXAxisNumberFormat ( ChartProperties::AxisNumberFormat  f)
slot
Here is the call graph for this function:

◆ setXGridVisible

void openswmmvis::plot::ChartProperties::setXGridVisible ( bool  on)
slot
Here is the call graph for this function:

◆ setXLabelFormat

void openswmmvis::plot::ChartProperties::setXLabelFormat ( const QString &  spec)
slot
Here is the call graph for this function:

◆ setXLabelFormatMode

void openswmmvis::plot::ChartProperties::setXLabelFormatMode ( ChartProperties::LabelFormatMode  mode)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setXLabelPrecision

void openswmmvis::plot::ChartProperties::setXLabelPrecision ( int  count)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setYAutoRange

void openswmmvis::plot::ChartProperties::setYAutoRange ( bool  on)
slot
Here is the call graph for this function:

◆ setYAxisNumberFormat

void openswmmvis::plot::ChartProperties::setYAxisNumberFormat ( ChartProperties::AxisNumberFormat  f)
slot
Here is the call graph for this function:

◆ setYGridVisible

void openswmmvis::plot::ChartProperties::setYGridVisible ( bool  on)
slot
Here is the call graph for this function:

◆ setYLabelFormat

void openswmmvis::plot::ChartProperties::setYLabelFormat ( const QString &  spec)
slot
Here is the call graph for this function:

◆ setYLabelFormatMode

void openswmmvis::plot::ChartProperties::setYLabelFormatMode ( ChartProperties::LabelFormatMode  mode)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setYLabelPrecision

void openswmmvis::plot::ChartProperties::setYLabelPrecision ( int  count)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setYMax

void openswmmvis::plot::ChartProperties::setYMax ( qreal  v)
slot
Here is the call graph for this function:

◆ setYMin

void openswmmvis::plot::ChartProperties::setYMin ( qreal  v)
slot
Here is the call graph for this function:

◆ statisticsFormat()

QString openswmmvis::plot::ChartProperties::statisticsFormat ( ) const
inline

◆ statisticsFormatChanged

void openswmmvis::plot::ChartProperties::statisticsFormatChanged ( const QString &  )
signal
Here is the caller graph for this function:

◆ statisticsFormatMode()

LabelFormatMode openswmmvis::plot::ChartProperties::statisticsFormatMode ( ) const
inlinenoexcept

◆ statisticsFormatModeChanged

void openswmmvis::plot::ChartProperties::statisticsFormatModeChanged ( ChartProperties::LabelFormatMode  )
signal
Here is the caller graph for this function:

◆ statisticsFormatPreset()

ChartProperties::AxisNumberFormat openswmmvis::plot::ChartProperties::statisticsFormatPreset ( ) const

◆ statisticsFormatPresetChanged

void openswmmvis::plot::ChartProperties::statisticsFormatPresetChanged ( ChartProperties::AxisNumberFormat  )
signal
Here is the caller graph for this function:

◆ statisticsNumberFormat()

NumberFormat openswmmvis::plot::ChartProperties::statisticsNumberFormat ( ) const
noexcept

◆ statisticsPrecision()

int openswmmvis::plot::ChartProperties::statisticsPrecision ( ) const
inlinenoexcept

◆ statisticsPrecisionChanged

void openswmmvis::plot::ChartProperties::statisticsPrecisionChanged ( int  )
signal
Here is the caller graph for this function:

◆ tickLabelFont()

QFont openswmmvis::plot::ChartProperties::tickLabelFont ( ) const

◆ tickLabelFontChanged

void openswmmvis::plot::ChartProperties::tickLabelFontChanged ( const QFont &  )
signal
Here is the caller graph for this function:

◆ titleFont()

QFont openswmmvis::plot::ChartProperties::titleFont ( ) const

◆ titleFontChanged

void openswmmvis::plot::ChartProperties::titleFontChanged ( const QFont &  )
signal
Here is the caller graph for this function:

◆ titleText()

QString openswmmvis::plot::ChartProperties::titleText ( ) const

◆ titleTextChanged

void openswmmvis::plot::ChartProperties::titleTextChanged ( const QString &  )
signal
Here is the caller graph for this function:

◆ xAxisNumberFormat()

ChartProperties::AxisNumberFormat openswmmvis::plot::ChartProperties::xAxisNumberFormat ( ) const

Combined format per axis, derived from the mode + digit count that remain the internal representation.

◆ xAxisNumberFormatChanged

void openswmmvis::plot::ChartProperties::xAxisNumberFormatChanged ( ChartProperties::AxisNumberFormat  )
signal
Here is the caller graph for this function:

◆ xFormat()

NumberFormat openswmmvis::plot::ChartProperties::xFormat ( ) const
noexcept

Current X/Y/statistics number format as the shared value type.

◆ xGridVisible()

bool openswmmvis::plot::ChartProperties::xGridVisible ( ) const

◆ xGridVisibleChanged

void openswmmvis::plot::ChartProperties::xGridVisibleChanged ( bool  )
signal
Here is the caller graph for this function:

◆ xLabelFormat()

QString openswmmvis::plot::ChartProperties::xLabelFormat ( ) const
inline

◆ xLabelFormatChanged

void openswmmvis::plot::ChartProperties::xLabelFormatChanged ( const QString &  )
signal
Here is the caller graph for this function:

◆ xLabelFormatMode()

LabelFormatMode openswmmvis::plot::ChartProperties::xLabelFormatMode ( ) const
inlinenoexcept

◆ xLabelFormatModeChanged

void openswmmvis::plot::ChartProperties::xLabelFormatModeChanged ( ChartProperties::LabelFormatMode  )
signal
Here is the caller graph for this function:

◆ xLabelPrecision()

int openswmmvis::plot::ChartProperties::xLabelPrecision ( ) const
inlinenoexcept

◆ xLabelPrecisionChanged

void openswmmvis::plot::ChartProperties::xLabelPrecisionChanged ( int  )
signal
Here is the caller graph for this function:

◆ yAutoRange()

bool openswmmvis::plot::ChartProperties::yAutoRange ( ) const
inlinenoexcept

◆ yAutoRangeChanged

void openswmmvis::plot::ChartProperties::yAutoRangeChanged ( bool  )
signal
Here is the caller graph for this function:

◆ yAxisNumberFormat()

ChartProperties::AxisNumberFormat openswmmvis::plot::ChartProperties::yAxisNumberFormat ( ) const

◆ yAxisNumberFormatChanged

void openswmmvis::plot::ChartProperties::yAxisNumberFormatChanged ( ChartProperties::AxisNumberFormat  )
signal
Here is the caller graph for this function:

◆ yFormat()

NumberFormat openswmmvis::plot::ChartProperties::yFormat ( ) const
noexcept

◆ yGridVisible()

bool openswmmvis::plot::ChartProperties::yGridVisible ( ) const

◆ yGridVisibleChanged

void openswmmvis::plot::ChartProperties::yGridVisibleChanged ( bool  )
signal
Here is the caller graph for this function:

◆ yLabelFormat()

QString openswmmvis::plot::ChartProperties::yLabelFormat ( ) const
inline

◆ yLabelFormatChanged

void openswmmvis::plot::ChartProperties::yLabelFormatChanged ( const QString &  )
signal
Here is the caller graph for this function:

◆ yLabelFormatMode()

LabelFormatMode openswmmvis::plot::ChartProperties::yLabelFormatMode ( ) const
inlinenoexcept

◆ yLabelFormatModeChanged

void openswmmvis::plot::ChartProperties::yLabelFormatModeChanged ( ChartProperties::LabelFormatMode  )
signal
Here is the caller graph for this function:

◆ yLabelPrecision()

int openswmmvis::plot::ChartProperties::yLabelPrecision ( ) const
inlinenoexcept

◆ yLabelPrecisionChanged

void openswmmvis::plot::ChartProperties::yLabelPrecisionChanged ( int  )
signal
Here is the caller graph for this function:

◆ yMax()

qreal openswmmvis::plot::ChartProperties::yMax ( ) const

◆ yMaxChanged

void openswmmvis::plot::ChartProperties::yMaxChanged ( qreal  )
signal
Here is the caller graph for this function:

◆ yMin()

qreal openswmmvis::plot::ChartProperties::yMin ( ) const

◆ yMinChanged

void openswmmvis::plot::ChartProperties::yMinChanged ( qreal  )
signal
Here is the caller graph for this function:

Property Documentation

◆ axisLabelFont

QFont openswmmvis::plot::ChartProperties::axisLabelFont
readwrite

◆ backgroundColor

QColor openswmmvis::plot::ChartProperties::backgroundColor
readwrite

◆ chartTheme

int openswmmvis::plot::ChartProperties::chartTheme
readwrite

◆ gridColor

QColor openswmmvis::plot::ChartProperties::gridColor
readwrite

◆ plotAreaColor

QColor openswmmvis::plot::ChartProperties::plotAreaColor
readwrite

◆ statisticsFormat

QString openswmmvis::plot::ChartProperties::statisticsFormat
readwrite

◆ statisticsFormatPreset

ChartProperties::AxisNumberFormat openswmmvis::plot::ChartProperties::statisticsFormatPreset
readwrite

◆ tickLabelFont

QFont openswmmvis::plot::ChartProperties::tickLabelFont
readwrite

◆ titleFont

QFont openswmmvis::plot::ChartProperties::titleFont
readwrite

◆ titleText

QString openswmmvis::plot::ChartProperties::titleText
readwrite

◆ xAxisNumberFormat

ChartProperties::AxisNumberFormat openswmmvis::plot::ChartProperties::xAxisNumberFormat
readwrite

◆ xGridVisible

bool openswmmvis::plot::ChartProperties::xGridVisible
readwrite

◆ xLabelFormat

QString openswmmvis::plot::ChartProperties::xLabelFormat
readwrite

◆ yAutoRange

bool openswmmvis::plot::ChartProperties::yAutoRange
readwrite

◆ yAxisNumberFormat

ChartProperties::AxisNumberFormat openswmmvis::plot::ChartProperties::yAxisNumberFormat
readwrite

◆ yGridVisible

bool openswmmvis::plot::ChartProperties::yGridVisible
readwrite

◆ yLabelFormat

QString openswmmvis::plot::ChartProperties::yLabelFormat
readwrite

◆ yMax

qreal openswmmvis::plot::ChartProperties::yMax
readwrite

◆ yMin

qreal openswmmvis::plot::ChartProperties::yMin
readwrite

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