|
| | ParFunItem (const QUrl &urlX=QUrl(), const QString &nameX=QString(), const QUrl &urlY=QUrl(), const QString &nameY=QString(), unsigned color=0, Symbol symbol=SolidLine, double fx=1, double fy=1, QGraphicsItem *parent=nullptr, double tMin=0, double tMax=0, double deltaT=0, bool visible=true, FillStyle fillStyle=NoBrush, double xOffset=0, double yOffset=0, double relSize=1) |
| | Constructor.
|
| |
| | ParFunItem (const ParFunItem &a) |
| | Copy constructor.
|
| |
| | ParFunItem (const KConfigGroup *plo, const QUrl &urlPlo, unsigned color=0, Symbol symbol=SolidLine, QGraphicsItem *parent=nullptr) |
| | Constructor.
|
| |
|
virtual | ~ParFunItem () |
| | Destructor.
|
| |
| virtual QRectF | boundingRect () const override |
| | Calculates bounding rectangle.
|
| |
| int | calcTable () const |
| | Calculates function value table.
|
| |
| void | exponent (int &expX, int &expY, double &fx, double &fy) const |
| | Calculates normalization factors.
|
| |
| void | exportTable (QTextStream &stream, char separator, char format, int precision) const |
| | Exports function value table to file.
|
| |
|
const QLibrary * | libX () const |
| | Returns pointer to library for x function.
|
| |
| void | limits (double &xMin, double &xMax, double &yMin, double &yMax) const |
| | Calculates minimum and maximum values.
|
| |
|
QString | nameX () const |
| | Returns x function name.
|
| |
| virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override |
| | Paints item.
|
| |
|
double * | parX () |
| | Returns x function parameter array pointer.
|
| |
|
void | setDashOffset () |
| | Sets offset for dashed lines.
|
| |
| bool | setFuncX (const QUrl &url, const QString &name) |
| | Resolves x function address.
|
| |
| virtual void | setPar (int i, double value, bool yFun) override |
| | Sets parameter.
|
| |
| virtual int | type () const override |
| | Returns specific QGraphicsItem type number.
|
| |
|
const QUrl & | urlX () const |
| | Returns URL of x function library.
|
| |
| void | writePlo (KConfigGroup *plo, const QUrl &urlPlo, bool absolute, char format, int precision) const |
| | Writes into plot file.
|
| |
|
double * | xValues () const |
| | Returns pointer to x function value array.
|
| |
|
| FunItem () |
| | Constructor.
|
| |
| | FunItem (const FunItem &a) |
| | Copy constructor.
|
| |
| | FunItem (const KConfigGroup *plo, const QUrl &urlPlo, unsigned color=0, Symbol symbol=SolidLine, QGraphicsItem *parent=nullptr) |
| | Constructor.
|
| |
| | FunItem (const QUrl &url, const QString &name, unsigned color=0, Symbol symbol=SolidLine, double fx=1, double fy=1, QGraphicsItem *parent=nullptr, double xMin=0, double xMax=0, double deltaX=0, bool visible=true, FillStyle fillStyle=NoBrush, double xOffset=0, double yOffset=0, double relSize=1) |
| | Constructor.
|
| |
|
virtual | ~FunItem () |
| | Destructor.
|
| |
| int | calcTable () const |
| | Calculates function value table.
|
| |
| int | calcTable (bool logX) const |
| | Calculates function value table.
|
| |
|
double | deltaT () const |
| | Returns argument step size.
|
| |
| void | exponent (int &expX, int &expY, double &fx, double &fy, bool logX) const |
| | Calculates normalization factors.
|
| |
| void | exportTable (QTextStream &stream, char separator, char format, int precision) const |
| | Exports function value table to file.
|
| |
|
const QLibrary * | libY () const |
| | Returns pointer to library for y function.
|
| |
| void | limits (double &xMin, double &xMax, double &yMin, double &yMax, bool logX) const |
| | Calculates minimum and maximum values.
|
| |
|
QString | nameY () const |
| | Returns y function name.
|
| |
|
double * | parY () |
| | Returns y function parameter array pointer.
|
| |
|
void | setDashOffset () |
| | Sets offset for dashed lines.
|
| |
| void | setDeltaT (double deltaT) |
| | Sets argument step size.
|
| |
| bool | setFuncY (const QUrl &url, const QString &name) |
| | Resolves y function address.
|
| |
| void | setTMax (double xMax) |
| | Sets maximum argument value.
|
| |
| void | setTMin (double xMin) |
| | Sets minimum argument value.
|
| |
|
virtual QPainterPath | shape () const override |
| | Returns the shape of the plot item.
|
| |
|
double | tMax () const |
| | Returns maximum argument value.
|
| |
|
double | tMin () const |
| | Returns minimum argument value.
|
| |
|
const double * | tValues () const |
| | Returns pointer to argument value array.
|
| |
|
const QUrl & | urlY () const |
| | Returns URL of y function library.
|
| |
| void | writePlo (KConfigGroup *plo, const QUrl &urlPlo, bool absolute, char format, int precision) const |
| | Writes into plot file.
|
| |
|
double * | yValues () const |
| | Returns pointer to y function value array.
|
| |
|
| ScaledItem () |
| | Constructor.
|
| |
| | ScaledItem (const ScaledItem &a) |
| | Copy constructor.
|
| |
| | ScaledItem (const KConfigGroup *plo, Symbol symbol, unsigned color, QGraphicsItem *parent) |
| | Constructor.
|
| |
| | ScaledItem (FillStyle fillStyle, Symbol symbol, unsigned color, double fx, double fy, double xOffset, double yOffset, double relSize, QGraphicsItem *parent) |
| | Constructor.
|
| |
|
virtual | ~ScaledItem () |
| | Destructor.
|
| |
|
unsigned | color () const |
| | Returns color.
|
| |
|
FillStyle | fillStyle () const |
| | Returns fill style.
|
| |
| bool | isNormalized (double fx, double fy) const |
| | Checks if both normalization factors are equal to given values.
|
| |
| void | normalize (double fx, double fy) |
| | Sets normalization factors.
|
| |
|
double | normX () const |
| | Returns normalization factor for x values.
|
| |
|
double | normY () const |
| | Returns normalization factor for y values.
|
| |
|
QPixmap | pixmap () const |
| | Returns decoration pixmap for item list.
|
| |
| void | readPlo (const KConfigGroup *plo, Symbol symbol, unsigned color) |
| | Initializes corresponding to plot file.
|
| |
| void | setColor (unsigned color) |
| | Sets color.
|
| |
| void | setFillStyle (FillStyle style) |
| | Sets fill style.
|
| |
| void | setNormX (double fx) |
| | Sets normalization factor for x values.
|
| |
| void | setNormY (double fy) |
| | Sets normalization factor for y values.
|
| |
| void | setProperties (const QTransform &m) |
| | Sets properties according to transformation matrix.
|
| |
|
void | setSize () |
| | Sets size according to transformation matrix.
|
| |
| void | setSymbol (Symbol symbol) |
| | Sets symbol type.
|
| |
| void | setXOffset (double xOffset) |
| | Sets offset for x values.
|
| |
| void | setYOffset (double yOffset) |
| | Sets offset for y values.
|
| |
|
Symbol | symbol () const |
| | Returns symbol type.
|
| |
|
void | update () |
| | Applies changes and forces redrawing.
|
| |
|
void | updateGeometry () |
| | Updates geometry.
|
| |
| void | writePlo (KConfigGroup *plo, bool visible) const |
| | Writes into plot file.
|
| |
|
double | xOffset () const |
| | Returns offset for x values.
|
| |
|
double | yOffset () const |
| | Returns offset for y values.
|
| |
| | KplItem (double relSize=1) |
| | Constructor.
|
| |
| | KplItem (const KplItem &a) |
| | Copy constructor.
|
| |
| | KplItem (const KConfigGroup *plo) |
| | Constructor.
|
| |
|
virtual | ~KplItem () |
| | Destructor.
|
| |
| void | readPlo (const KConfigGroup *plo) |
| | Initializes corresponding to plot file.
|
| |
|
double | relSize () const |
| | Returns relative size of item.
|
| |
| void | setRelSize (double relSize) |
| | Sets relative size of item.
|
| |
| void | writePlo (KConfigGroup *plo, bool visible=true) const |
| | Writes into plot file.
|
| |
|
| static void | calcTable (const double *x, double *values, double(*func)(double, const double *), const double *par, int n) |
| | Calculates function value table.
|
| |
| static bool | errorStructChanged (const DataErrorStruct &e1, const DataErrorStruct &e2) |
| | Checks data error structures for differences.
|
| |
| static int | fit (const QList< const ArrayItem * > *aList, QList< FunItem * > *fList, const bool *bFit, double *par, QVector< double > *resVector=nullptr, QVector< double > *sigma=nullptr, FunItem::DataErrorStruct *err=nullptr, bool nonLin=true, double tol=1e-14, int itMax=100, LMFit *lm=nullptr, double *chiSquare=nullptr, double *corr=nullptr, double *parErr=nullptr, double *avgErr=nullptr, QObject *parent=nullptr) |
| | Performs fit of parameters of a set of functions to a set of arrays.
|
| |
| static bool | parChanged (const double *p1, const double *p2) |
| | Checks parameter arrays for differences.
|
| |
| static QString | parToString (const double *par, char format, int precision) |
| | Converts parameter array to string.
|
| |
| static void | stringToPar (const QString &s, double *par) |
| | Converts string to parameter array values.
|
| |
| static void | exponent (double a, int &iExp, double &f) |
| | Calculates normalization factor.
|
| |
| static bool | limits (double &xMin, double &xMax, const double *values, int n) |
| | Calculates minimum and maximum values of an array.
|
| |
| static QUrl | absoluteUrl (const QString &path, const QUrl &urlPlo) |
| | Constructs absolute file URL.
|
| |
| static QBrush | createBrush (unsigned color, FillStyle fillStyle=NoBrush) |
| | Creates brush.
|
| |
| static QPen | createPen (double width, unsigned color, PenType penType, Symbol symbol) |
| | Creates pen.
|
| |
| static void | paintSymbol (QPainter *painter, const QRectF &rect, Symbol symbol=OpenCircle) |
| | Paints symbol.
|
| |
| static QPixmap | pixmap (Symbol symbol) |
| | Returns black decoration pixmap of plot symbol for use in dialog GUI.
|
| |
| static QPixmap | pixmap (QPen pen, Symbol symbol=SolidLine) |
| | Returns decoration pixmap of plot symbol for use in item lists.
|
| |
| static QString | path (const QUrl &urlPlo, const QUrl &url, bool absolute=false) |
| | Constructs absolute or (if possible) relative file path.
|
| |
|
static void | resetDashOffset () |
| | Resets offset for dashed lines.
|
| |
| static unsigned | rgb (const QString &color) |
| | Converts rgb string to QRgb.
|
| |
| static unsigned | rgbQt1 (unsigned rgb) |
| | Converts QRgb to Qt1 QRgb.
|
| |
|
static const int | NumParMax = 20 |
| | Dimension of parameter arrays.
|
| |
| static double | parentWidth (const QGraphicsItem *item) |
| | Returns width of item's parent frame or width of scene if the item has no parent item.
|
| |
| static double | penWidthFactor (PenType penType) |
| | Returns factor to calculate pen width from frame width.
|
| |
|
static double | m_dashOffset |
| |
Parametric function item class.
Class for function items showing parametric functions by lines or markers.
- Author
- Werner Stille