|
|
| ArrayItem () |
| | Constructor.
|
| | ArrayItem (unsigned color, int colX=0, int colY=0, int colErr=0, bool errorBars=false, Symbol symbol=OpenCircle, DecimalCharacter decimalChar=Point, const QUrl &url=QUrl(), double fx=1, double fy=1, QGraphicsItem *parent=nullptr, int n=0, int rowStart=0, FillStyle fillStyle=NoBrush, double xOffset=0, double yOffset=0, bool visible=true, bool internal=false, double relSize=1) |
| | Constructor.
|
| | ArrayItem (const ArrayItem &a) |
| | Copy constructor.
|
| | ArrayItem (const KConfigGroup *plo, const QUrl &urlPlo, unsigned color=0, int colX=0, int colY=0, int colErr=0, bool errorBars=false, Symbol symbol=OpenCircle, QGraphicsItem *parent=nullptr) |
| | Constructor.
|
|
virtual | ~ArrayItem () |
| | Destructor.
|
| void | adjustCols (int colX, int colY, int colErr) |
| | Sets and limits the column indices.
|
|
void | adjustCols () |
| | Limits the column indices.
|
|
virtual QRectF | boundingRect () const override |
| | Calculates bounding rectangle.
|
|
int | colErr () const |
| | Returns y error column index.
|
|
int | colX () const |
| | Returns x column index.
|
|
int | colY () const |
| | Returns y column index.
|
|
int | count () const |
| | Returns number of data points to be plotted.
|
| double ** | data () const |
| | Returns pointer to internal array.
|
|
DecimalCharacter | decimalCharacter () const |
| | Returns decimal symbol of floating point numbers.
|
|
bool | errorBars () const |
| | Returns true for plotting error bars.
|
| void | exponent (int &expX, int &expY, double &fx, double &fy) const |
| | Calculates normalization factors.
|
|
bool | internal () const |
| | Returns true for internal stored array data.
|
| void | limits (double &xMin, double &xMax, double &yMin, double &yMax) const |
| | Calculates minimum and maximum values.
|
|
int | numCols () const |
| | Returns number of columns.
|
|
int | numRows () const |
| | Returns number of rows.
|
|
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override |
| | Paints item.
|
| virtual int | readFile () |
| | Reads double values from the URL.
|
| int | readFile (QString *text) |
| | Reads double values from a string.
|
|
int | rowStart () const |
| | Returns start row index.
|
| void | setColErr (int colErr) |
| | Sets error column index.
|
| void | setColX (int colX) |
| | Sets x column index.
|
| void | setColY (int colY) |
| | Sets y column index.
|
| void | setCount (int n) |
| | Sets number of data points.
|
|
void | setDashOffset () |
| | Sets offset for dashed lines.
|
| void | setData (double **data) |
| | Sets array pointer.
|
| void | setDecimalCharacter (DecimalCharacter decimalChar) |
| | Sets decimal character.
|
| void | setErrorBars (bool errorBars) |
| | Sets error bars plotting.
|
| void | setInternal (bool internal) |
| | Sets storage mode.
|
| void | setNumCols (int nCols) |
| | Sets number of columns.
|
| void | setNumRows (int nRows) |
| | Sets number of rows.
|
| void | setRange (int rowStart, int n) |
| | Sets and limits the start row index and the number of points to be plotted.
|
| void | setRowStart (int rowStart) |
| | Sets start row index.
|
| void | setUrl (const QUrl &url) |
| | Sets URL.
|
|
virtual QPainterPath | shape () const override |
| | Returns the shape of the plot item.
|
|
virtual int | type () const override |
| | Returns specific QGraphicsItem type number.
|
|
const QUrl & | url () const |
| | Returns URL of data file.
|
| void | writePlo (KConfigGroup *plo, const QUrl &urlPlo, bool absolute) const |
| | Writes into plot file.
|
|
| 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 double ** | copyArray (double **data, int nCols, int nRows) |
| | Copies array storage.
|
| static void | freeArray (double ***data) |
| | Deallocates array storage.
|
| static int | readFile (const QUrl &url, int &nCols, double ***data, DecimalCharacter decimalChar=Point) |
| | Reads double values from a file into an array.
|
| static int | readFile (QIODevice *device, int &nCols, double ***data, DecimalCharacter decimalChar=Point) |
| | Reads double values from an I/O device into an array.
|
| static int | readFile (QString *text, int &nCols, double ***data, DecimalCharacter decimalChar=Point) |
| | Reads double values from a string into an array.
|
| static int | readLines (QTextStream &t, int nCols, double ***data, DecimalCharacter decimalChar=Point) |
| | Reads double values from a text stream into an array.
|
| static void | translate (QString &line, DecimalCharacter decimalChar) |
| | Translates exponent and decimal symbols.
|
| 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.
|
Array item class.
Class for array items showing data arrays by lines or markers.
- Author
- Werner Stille