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
|
properties of the symbol, extends SymbolProps with font... More...
#include <jkqtmathtextsymbolnode.h>
Public Member Functions | |
SymbolFullProps () | |
default constructor | |
SymbolFullProps (const QString &font, const QString &symbol, const QString &_html=QString(), SymbolFlags _htmlflags=AsOutside, double _htmlfontScalingFactor=1.0, double _htmlyShiftFactor=0.0) | |
typesets the symbol from the specified font, props is stored with encoding MTFEStandard, an optional HTML-string _html can be given | |
SymbolFullProps (const QString &font, const SymbolProps &props, const QString &_html=QString(), SymbolFlags _htmlflags=AsOutside, double _htmlfontScalingFactor=1.0, double _htmlyShiftFactor=0.0) | |
typesets the symbol (described in props ) from the specified font, props is stored with encoding MTFEStandard, an optional HTML-string _html can be given | |
SymbolFullProps (const SymbolFullProps &other)=default | |
SymbolFullProps (const SymbolProps &props, const QString &_html=QString(), SymbolFlags _htmlflags=AsOutside, double _htmlfontScalingFactor=1.0, double _htmlyShiftFactor=0.0) | |
props is stored with encoding MTFEStandard, an optional HTML-string _html can be given | |
SymbolFullProps (JKQTMathTextEnvironmentFont _fontType, const QString &symbol, const QString &_html=QString(), SymbolFlags _htmlflags=AsOutside, double _htmlfontScalingFactor=1.0, double _htmlyShiftFactor=0.0) | |
takes a symbol from the specified _fontType assuming MTFEStandard encoding, an optional HTML-string _html can be given | |
SymbolFullProps (JKQTMathTextEnvironmentFont _fontType, const SymbolProps &props, const QString &_html=QString(), SymbolFlags _htmlflags=AsOutside, double _htmlfontScalingFactor=1.0, double _htmlyShiftFactor=0.0) | |
props is stored with encoding MTFEStandard, uses the specified _fontType for drawing, an optional HTML-string _html can be given | |
SymbolFullProps (JKQTMathTextEnvironmentFont _fontType, JKQTMathTextFontEncoding enc0, const SymbolProps &props0, const QString &_html=QString(), SymbolFlags _htmlflags=AsOutside, double _htmlfontScalingFactor=1.0, double _htmlyShiftFactor=0.0) | |
single-alternative symbol for encoding enc0 and using symbol description props0 for it, uses the specified _fontType for drawing. An optional HTML-string _html can be provided | |
SymbolFullProps (JKQTMathTextEnvironmentFont _fontType, JKQTMathTextFontEncoding enc0, const SymbolProps &props0, JKQTMathTextFontEncoding enc1, const SymbolProps &props1, const QString &_html=QString(), SymbolFlags _htmlflags=AsOutside, double _htmlfontScalingFactor=1.0, double _htmlyShiftFactor=0.0) | |
double-alternative symbol for encoding enc0 + enc1 and using symbol descriptions props0 + props1 for it, uses the specified _fontType for drawing. An optional HTML-string _html can be provided | |
SymbolFullProps (JKQTMathTextEnvironmentFont _fontType, JKQTMathTextFontEncoding enc0, const SymbolProps &props0, JKQTMathTextFontEncoding enc1, const SymbolProps &props1, JKQTMathTextFontEncoding enc2, const SymbolProps &props2, const QString &_html=QString(), SymbolFlags _htmlflags=AsOutside, double _htmlfontScalingFactor=1.0, double _htmlyShiftFactor=0.0) | |
triple-alternative symbol for encoding enc0 + enc1 + enc2 and using symbol descriptions props0 + props1 + props2 for it, uses the specified _fontType for drawing. An optional HTML-string _html can be provided | |
SymbolFullProps (JKQTMathTextFontEncoding enc0, const SymbolProps &props0, const QString &_html=QString(), SymbolFlags _htmlflags=AsOutside, double _htmlfontScalingFactor=1.0, double _htmlyShiftFactor=0.0) | |
single-alternative symbol for encoding enc0 and using symbol description props0 for it. An optional HTML-string _html can be provided | |
SymbolFullProps (JKQTMathTextFontEncoding enc0, const SymbolProps &props0, JKQTMathTextFontEncoding enc1, const SymbolProps &props1, const QString &_html=QString(), SymbolFlags _htmlflags=AsOutside, double _htmlfontScalingFactor=1.0, double _htmlyShiftFactor=0.0) | |
double-alternative symbol for encoding enc0 + enc1 and using symbol descriptions props0 + props1 for it. An optional HTML-string _html can be provided | |
SymbolFullProps (JKQTMathTextFontEncoding enc0, const SymbolProps &props0, JKQTMathTextFontEncoding enc1, const SymbolProps &props1, JKQTMathTextFontEncoding enc2, const SymbolProps &props2, const QString &_html=QString(), SymbolFlags _htmlflags=AsOutside, double _htmlfontScalingFactor=1.0, double _htmlyShiftFactor=0.0) | |
triple-alternative symbol for encoding enc0 + enc1 + enc2 and using symbol descriptions props0 + props1 + props2 for it. An optional HTML-string _html can be provided | |
SymbolFullProps (SymbolFullProps &&other)=default | |
SymbolFullProps & | add (JKQTMathTextFontEncoding enc, const SymbolProps &props) |
SymbolFullProps & | addGlobalFlags (GlobalSymbolFlags addglobalFlags) |
SymbolFullProps & | addHtml (const QString &_symbol, SymbolFlags _flags=AsOutside, double _fontScalingFactor=1.0, double _yShiftFactor=0.0) |
SymbolFullProps & | addMathOperatorHtml (const QString &_symbol, double _fontScalingFactor=1.0, double _yShiftFactor=0.0) |
SymbolFullProps & | addMathOperatorStd (const QString &_symbol, double _fontScalingFactor=1.0, double _yShiftFactor=0.0) |
SymbolFullProps & | addMathOperatorUnicode (const QString &_symbol, double _fontScalingFactor=1.0, double _yShiftFactor=0.0) |
SymbolFullProps & | addMathOperatorWinSymbol (const QString &_symbol, double _fontScalingFactor=1.0, double _yShiftFactor=0.0) |
SymbolFullProps & | addStd (const QString &_symbol, SymbolFlags _flags=AsOutside, double _fontScalingFactor=1.0, double _yShiftFactor=0.0) |
SymbolFullProps & | addUnicode (const QString &_symbol, SymbolFlags _flags=AsOutside, double _fontScalingFactor=1.0, double _yShiftFactor=0.0) |
SymbolFullProps & | addUprightHtml (const QString &_symbol, double _fontScalingFactor=1.0, double _yShiftFactor=0.0) |
SymbolFullProps & | addUprightStd (const QString &_symbol, double _fontScalingFactor=1.0, double _yShiftFactor=0.0) |
SymbolFullProps & | addUprightUnicode (const QString &_symbol, double _fontScalingFactor=1.0, double _yShiftFactor=0.0) |
SymbolFullProps & | addUprightWinSymbol (const QString &_symbol, double _fontScalingFactor=1.0, double _yShiftFactor=0.0) |
SymbolFullProps & | addWinSymbol (const QString &_symbol, SymbolFlags _flags=AsOutside, double _fontScalingFactor=1.0, double _yShiftFactor=0.0) |
QPair< QFont, SymbolProps > | getDrawingData (JKQTMathTextEnvironment currentEv, JKQTMathText *parent, QPainter &painter) const |
returns the QFont to use for drawing and the QString to draw with it | |
SymbolProps | getProps (JKQTMathTextFontEncoding key, const SymbolProps &defaultValue=SymbolProps(), JKQTMathTextFontEncoding *foundEncodingOut=nullptr) const |
accesses entries in props for a given key. This also looks for fallback options (e.g. MTFEStandard when MTFEUnicode is not available). Returns defaultValue when nothing is found | |
SymbolFullProps & | operator= (const SymbolFullProps &other)=default |
SymbolFullProps & | operator= (SymbolFullProps &&other)=default |
SymbolFullProps & | setGlobalFlags (GlobalSymbolFlags addglobalFlags) |
Public Attributes | |
QString | customFontFamily |
font to use for output when fontType==MTcustomFont | |
JKQTMathTextEnvironmentFont | fontType |
font type to use for typesetting the symbol (default is MTcurrentFont, which just takes the font set in the surrounding environment) | |
GlobalSymbolFlags | globalFlags |
specifies global symbol flags | |
SymbolProps | html |
HTML entity/text to represent the symbol (empty html.symbol not available) | |
QHash< JKQTMathTextFontEncoding, SymbolProps > | props |
here the actual symbol properties for each JKQTMathTextFontEncoding are stored | |
properties of the symbol, extends SymbolProps with font...
JKQTMathTextSymbolNode::SymbolFullProps::SymbolFullProps | ( | ) |
default constructor
|
default |
|
default |
JKQTMathTextSymbolNode::SymbolFullProps::SymbolFullProps | ( | const QString & | font, |
const SymbolProps & | props, | ||
const QString & | _html = QString() , |
||
SymbolFlags | _htmlflags = AsOutside , |
||
double | _htmlfontScalingFactor = 1.0 , |
||
double | _htmlyShiftFactor = 0.0 |
||
) |
typesets the symbol (described in props ) from the specified font, props is stored with encoding MTFEStandard, an optional HTML-string _html can be given
JKQTMathTextSymbolNode::SymbolFullProps::SymbolFullProps | ( | const QString & | font, |
const QString & | symbol, | ||
const QString & | _html = QString() , |
||
SymbolFlags | _htmlflags = AsOutside , |
||
double | _htmlfontScalingFactor = 1.0 , |
||
double | _htmlyShiftFactor = 0.0 |
||
) |
typesets the symbol from the specified font, props is stored with encoding MTFEStandard, an optional HTML-string _html can be given
JKQTMathTextSymbolNode::SymbolFullProps::SymbolFullProps | ( | const SymbolProps & | props, |
const QString & | _html = QString() , |
||
SymbolFlags | _htmlflags = AsOutside , |
||
double | _htmlfontScalingFactor = 1.0 , |
||
double | _htmlyShiftFactor = 0.0 |
||
) |
props is stored with encoding MTFEStandard, an optional HTML-string _html can be given
JKQTMathTextSymbolNode::SymbolFullProps::SymbolFullProps | ( | JKQTMathTextEnvironmentFont | _fontType, |
const SymbolProps & | props, | ||
const QString & | _html = QString() , |
||
SymbolFlags | _htmlflags = AsOutside , |
||
double | _htmlfontScalingFactor = 1.0 , |
||
double | _htmlyShiftFactor = 0.0 |
||
) |
props is stored with encoding MTFEStandard, uses the specified _fontType for drawing, an optional HTML-string _html can be given
JKQTMathTextSymbolNode::SymbolFullProps::SymbolFullProps | ( | JKQTMathTextEnvironmentFont | _fontType, |
const QString & | symbol, | ||
const QString & | _html = QString() , |
||
SymbolFlags | _htmlflags = AsOutside , |
||
double | _htmlfontScalingFactor = 1.0 , |
||
double | _htmlyShiftFactor = 0.0 |
||
) |
takes a symbol from the specified _fontType assuming MTFEStandard encoding, an optional HTML-string _html can be given
JKQTMathTextSymbolNode::SymbolFullProps::SymbolFullProps | ( | JKQTMathTextFontEncoding | enc0, |
const SymbolProps & | props0, | ||
const QString & | _html = QString() , |
||
SymbolFlags | _htmlflags = AsOutside , |
||
double | _htmlfontScalingFactor = 1.0 , |
||
double | _htmlyShiftFactor = 0.0 |
||
) |
single-alternative symbol for encoding enc0 and using symbol description props0 for it. An optional HTML-string _html can be provided
JKQTMathTextSymbolNode::SymbolFullProps::SymbolFullProps | ( | JKQTMathTextEnvironmentFont | _fontType, |
JKQTMathTextFontEncoding | enc0, | ||
const SymbolProps & | props0, | ||
const QString & | _html = QString() , |
||
SymbolFlags | _htmlflags = AsOutside , |
||
double | _htmlfontScalingFactor = 1.0 , |
||
double | _htmlyShiftFactor = 0.0 |
||
) |
single-alternative symbol for encoding enc0 and using symbol description props0 for it, uses the specified _fontType for drawing. An optional HTML-string _html can be provided
JKQTMathTextSymbolNode::SymbolFullProps::SymbolFullProps | ( | JKQTMathTextFontEncoding | enc0, |
const SymbolProps & | props0, | ||
JKQTMathTextFontEncoding | enc1, | ||
const SymbolProps & | props1, | ||
const QString & | _html = QString() , |
||
SymbolFlags | _htmlflags = AsOutside , |
||
double | _htmlfontScalingFactor = 1.0 , |
||
double | _htmlyShiftFactor = 0.0 |
||
) |
double-alternative symbol for encoding enc0 + enc1 and using symbol descriptions props0 + props1 for it. An optional HTML-string _html can be provided
JKQTMathTextSymbolNode::SymbolFullProps::SymbolFullProps | ( | JKQTMathTextEnvironmentFont | _fontType, |
JKQTMathTextFontEncoding | enc0, | ||
const SymbolProps & | props0, | ||
JKQTMathTextFontEncoding | enc1, | ||
const SymbolProps & | props1, | ||
const QString & | _html = QString() , |
||
SymbolFlags | _htmlflags = AsOutside , |
||
double | _htmlfontScalingFactor = 1.0 , |
||
double | _htmlyShiftFactor = 0.0 |
||
) |
double-alternative symbol for encoding enc0 + enc1 and using symbol descriptions props0 + props1 for it, uses the specified _fontType for drawing. An optional HTML-string _html can be provided
JKQTMathTextSymbolNode::SymbolFullProps::SymbolFullProps | ( | JKQTMathTextFontEncoding | enc0, |
const SymbolProps & | props0, | ||
JKQTMathTextFontEncoding | enc1, | ||
const SymbolProps & | props1, | ||
JKQTMathTextFontEncoding | enc2, | ||
const SymbolProps & | props2, | ||
const QString & | _html = QString() , |
||
SymbolFlags | _htmlflags = AsOutside , |
||
double | _htmlfontScalingFactor = 1.0 , |
||
double | _htmlyShiftFactor = 0.0 |
||
) |
triple-alternative symbol for encoding enc0 + enc1 + enc2 and using symbol descriptions props0 + props1 + props2 for it. An optional HTML-string _html can be provided
JKQTMathTextSymbolNode::SymbolFullProps::SymbolFullProps | ( | JKQTMathTextEnvironmentFont | _fontType, |
JKQTMathTextFontEncoding | enc0, | ||
const SymbolProps & | props0, | ||
JKQTMathTextFontEncoding | enc1, | ||
const SymbolProps & | props1, | ||
JKQTMathTextFontEncoding | enc2, | ||
const SymbolProps & | props2, | ||
const QString & | _html = QString() , |
||
SymbolFlags | _htmlflags = AsOutside , |
||
double | _htmlfontScalingFactor = 1.0 , |
||
double | _htmlyShiftFactor = 0.0 |
||
) |
triple-alternative symbol for encoding enc0 + enc1 + enc2 and using symbol descriptions props0 + props1 + props2 for it, uses the specified _fontType for drawing. An optional HTML-string _html can be provided
SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::add | ( | JKQTMathTextFontEncoding | enc, |
const SymbolProps & | props | ||
) |
SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::addGlobalFlags | ( | GlobalSymbolFlags | addglobalFlags | ) |
SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::addHtml | ( | const QString & | _symbol, |
SymbolFlags | _flags = AsOutside , |
||
double | _fontScalingFactor = 1.0 , |
||
double | _yShiftFactor = 0.0 |
||
) |
SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::addMathOperatorHtml | ( | const QString & | _symbol, |
double | _fontScalingFactor = 1.0 , |
||
double | _yShiftFactor = 0.0 |
||
) |
SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::addMathOperatorStd | ( | const QString & | _symbol, |
double | _fontScalingFactor = 1.0 , |
||
double | _yShiftFactor = 0.0 |
||
) |
SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::addMathOperatorUnicode | ( | const QString & | _symbol, |
double | _fontScalingFactor = 1.0 , |
||
double | _yShiftFactor = 0.0 |
||
) |
SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::addMathOperatorWinSymbol | ( | const QString & | _symbol, |
double | _fontScalingFactor = 1.0 , |
||
double | _yShiftFactor = 0.0 |
||
) |
SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::addStd | ( | const QString & | _symbol, |
SymbolFlags | _flags = AsOutside , |
||
double | _fontScalingFactor = 1.0 , |
||
double | _yShiftFactor = 0.0 |
||
) |
SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::addUnicode | ( | const QString & | _symbol, |
SymbolFlags | _flags = AsOutside , |
||
double | _fontScalingFactor = 1.0 , |
||
double | _yShiftFactor = 0.0 |
||
) |
SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::addUprightHtml | ( | const QString & | _symbol, |
double | _fontScalingFactor = 1.0 , |
||
double | _yShiftFactor = 0.0 |
||
) |
SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::addUprightStd | ( | const QString & | _symbol, |
double | _fontScalingFactor = 1.0 , |
||
double | _yShiftFactor = 0.0 |
||
) |
SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::addUprightUnicode | ( | const QString & | _symbol, |
double | _fontScalingFactor = 1.0 , |
||
double | _yShiftFactor = 0.0 |
||
) |
SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::addUprightWinSymbol | ( | const QString & | _symbol, |
double | _fontScalingFactor = 1.0 , |
||
double | _yShiftFactor = 0.0 |
||
) |
SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::addWinSymbol | ( | const QString & | _symbol, |
SymbolFlags | _flags = AsOutside , |
||
double | _fontScalingFactor = 1.0 , |
||
double | _yShiftFactor = 0.0 |
||
) |
QPair< QFont, SymbolProps > JKQTMathTextSymbolNode::SymbolFullProps::getDrawingData | ( | JKQTMathTextEnvironment | currentEv, |
JKQTMathText * | parent, | ||
QPainter & | painter | ||
) | const |
returns the QFont to use for drawing and the QString to draw with it
SymbolProps JKQTMathTextSymbolNode::SymbolFullProps::getProps | ( | JKQTMathTextFontEncoding | key, |
const SymbolProps & | defaultValue = SymbolProps() , |
||
JKQTMathTextFontEncoding * | foundEncodingOut = nullptr |
||
) | const |
accesses entries in props for a given key. This also looks for fallback options (e.g. MTFEStandard when MTFEUnicode is not available). Returns defaultValue when nothing is found
|
default |
|
default |
SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::setGlobalFlags | ( | GlobalSymbolFlags | addglobalFlags | ) |
QString JKQTMathTextSymbolNode::SymbolFullProps::customFontFamily |
font to use for output when fontType==MTcustomFont
JKQTMathTextEnvironmentFont JKQTMathTextSymbolNode::SymbolFullProps::fontType |
font type to use for typesetting the symbol (default is MTcurrentFont, which just takes the font set in the surrounding environment)
GlobalSymbolFlags JKQTMathTextSymbolNode::SymbolFullProps::globalFlags |
specifies global symbol flags
SymbolProps JKQTMathTextSymbolNode::SymbolFullProps::html |
HTML entity/text to represent the symbol (empty html.symbol not available)
QHash<JKQTMathTextFontEncoding, SymbolProps> JKQTMathTextSymbolNode::SymbolFullProps::props |
here the actual symbol properties for each JKQTMathTextFontEncoding are stored