|
| enum | { Type = UserType + Image
} |
| | Specific QGraphicsItem type number for function type() More...
|
| |
| enum | FillStyle {
NoBrush
, SolidPattern
, HorPattern
, VerPattern
,
CrossPattern
, BDiagPattern
, FDiagPattern
, DiagCrossPattern
} |
| | Fill styles. More...
|
| |
| enum | ItemType {
Frame = 1
, Array
, Function
, ParFunction
,
Spline
, Array3D
, Function3D
, Legend
,
Text
, Line
, Arrow
, Arc
,
Rectangle
, Ellipse
, Image
, ScaleBar
} |
| | Item types. More...
|
| |
| enum | PenType { FramePen
, GridPen
, DataPen
} |
| | Pen types. More...
|
| |
| enum | Symbol {
Invisible = -17
, FilledOctagon
, FilledHourglass
, FilledTriangle
,
FilledSquare
, FilledDiamond
, FilledCircle
, Umbrella
,
Ypsilon
, Plus
, Cross
, OpenOctagon
,
OpenHourglass
, OpenTriangle
, OpenSquare
, OpenDiamond
,
Dot
, OpenCircle
, SolidLine
, DashLine1
,
DashLine2
, DotLine1
, DashLine3
, DashDotLine
,
DashLine4
, DashLine5
, DotLine2
} |
| | Symbol types. More...
|
| |
|
| | ImageItem (double x0=1, double y0=1, QGraphicsItem *parent=nullptr, const QUrl &url=QUrl(), bool visible=true, double scaleX=1, double scaleY=1, double dir=0) |
| | Constructor.
|
| |
| | ImageItem (const ImageItem &a) |
| | Copy constructor.
|
| |
| | ImageItem (const KConfigGroup *plo, const QUrl &urlPlo, QGraphicsItem *parent=nullptr) |
| | Constructor.
|
| |
|
virtual | ~ImageItem () |
| | Destructor.
|
| |
|
double | dir () const |
| | Returns rotation angle in deg.
|
| |
|
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override |
| | Paints item.
|
| |
| void | renderPS (QPixmap *pixmap, int dpiX, int dpiY) |
| | Renders PostScript code to pixmap by use of ghostscript.
|
| |
|
double | scaleX () const |
| | Returns horizontal scaling factor.
|
| |
|
double | scaleY () const |
| | Returns vertical scaling factor.
|
| |
| void | setDir (double dir) |
| | Sets rotation angle.
|
| |
| void | setProperties (const QTransform &m) |
| | Sets properties according to transformation matrix.
|
| |
| void | setScaleX (double f) |
| | Sets horizontal scaling factor.
|
| |
| void | setScaleY (double f) |
| | Sets vertical scaling factor.
|
| |
| void | setUrl (const QUrl &url) |
| | Sets URL.
|
| |
|
virtual int | type () const override |
| | Returns specific QGraphicsItem type number.
|
| |
|
const QUrl & | url () const |
| | Returns URL of PostScript file.
|
| |
|
void | update () |
| | Applies changes and forces redrawing.
|
| |
| void | writePlo (KConfigGroup *plo, const QUrl &urlPlo, bool absolute) const |
| | Writes into plot file.
|
| |
| | DecoItem (unsigned color=0, double x0=0, double y0=0, double relSize=1) |
| | Constructor.
|
| |
| | DecoItem (const KConfigGroup *plo, unsigned color=0) |
| | Constructor.
|
| |
|
virtual | ~DecoItem () |
| | Destructor.
|
| |
|
unsigned | color () const |
| | Returns color.
|
| |
| void | setColor (unsigned color) |
| | Sets color.
|
| |
| void | setX0 (double x0) |
| | Sets x position.
|
| |
| void | setY0 (double y0) |
| | Sets y position.
|
| |
| void | updatePos (const QPointF &p, bool absolute=true) |
| | Updates position.
|
| |
| void | writePlo (KConfigGroup *plo, bool visible) const |
| | Writes into plot file.
|
| |
|
double | x0 () const |
| | Returns x position in cm.
|
| |
|
double | y0 () const |
| | Returns y position in cm.
|
| |
| | 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 bool | boundingBox (const QUrl &url, QString &filename, double *x1, double *y1, double *x2, double *y2) |
| | Reads bounding box coordinates from an EPS file.
|
| |
| static bool | checkBoundingBox (const QUrl &url) |
| | Reads bounding box coordinates from an EPS file.
|
| |
| static void | renderPS (const QString &psFile, const QString &imageFile, int width, int height, double x0=0, double y0=0, double scaleX=1, double scaleY=1, const char format[]="pbmraw") |
| | Renders PostScript code to image file by use of ghostscript.
|
| |
| 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.
|
| |
Image item class.
Class for EPS image items.
- Author
- Werner Stille