|
libkpl
5.0
A Library for Graphical Presentation of Data Sets and Functions
|
160 Symbol symbol = OpenCircle);
186 static QString
path(
const QUrl& urlPlo,
const QUrl& url,
187 bool absolute =
false);
189 inline double relSize()
const {
return m_relSize; };
197 static unsigned rgb(
const QString& color);
208 inline void setRelSize(
double relSize) { m_relSize = relSize; };
214 void writePlo(KConfigGroup* plo,
bool visible =
true)
const;
254 static double m_dashOffset;
void readPlo(const KConfigGroup *plo)
Initializes corresponding to plot file.
@ FilledDiamond
Filled diamond.
Definition: kplitem.h:89
ItemType
Item types.
Definition: kplitem.h:56
PenType
Pen types.
Definition: kplitem.h:77
@ FilledHourglass
Filled hourglass.
Definition: kplitem.h:86
@ Arrow
Item with single or double-headed arrow.
Definition: kplitem.h:67
@ OpenTriangle
Open triangle.
Definition: kplitem.h:97
@ OpenDiamond
Open Diamond.
Definition: kplitem.h:99
static QUrl absoluteUrl(const QString &path, const QUrl &urlPlo)
Constructs absolute file URL.
void writePlo(KConfigGroup *plo, bool visible=true) const
Writes into plot file.
KplItem(const KConfigGroup *plo)
Constructor.
Kpl item class.
Definition: kplitem.h:42
static unsigned rgbQt1(unsigned rgb)
Converts QRgb to Qt1 QRgb.
@ Function3D
3D function item.
Definition: kplitem.h:63
@ Function
2D function item.
Definition: kplitem.h:59
double relSize() const
Returns relative size of item.
Definition: kplitem.h:189
@ Array
Item with array of 2D data points.
Definition: kplitem.h:58
@ Umbrella
Umbrella-like shape.
Definition: kplitem.h:91
@ Plus
Plus sign cross.
Definition: kplitem.h:93
double penWidth(const QGraphicsItem *item, PenType penType=DataPen) const
Calculates pen width for plot item.
FillStyle
Fill styles.
Definition: kplitem.h:45
static double penWidthFactor(PenType penType)
Returns factor to calculate pen width from frame width.
KplItem(const KplItem &a)
Copy constructor.
@ ParFunction
2D parametric function item.
Definition: kplitem.h:60
@ DashLine3
Line with wide dashes and short spaces.
Definition: kplitem.h:106
KplItem(double relSize=1)
Constructor.
@ Cross
Diagonal cross.
Definition: kplitem.h:94
@ FilledCircle
Filled circle.
Definition: kplitem.h:90
@ DashLine4
Line with wide and short dashes.
Definition: kplitem.h:108
static QPixmap pixmap(QPen pen, Symbol symbol=SolidLine)
Returns decoration pixmap of plot symbol for use in item lists.
@ SolidLine
Solid line.
Definition: kplitem.h:102
@ Text
Text item.
Definition: kplitem.h:65
@ DashLine1
Line with wide dashes and spaces.
Definition: kplitem.h:103
@ Rectangle
Item with rectangle or square.
Definition: kplitem.h:69
@ OpenSquare
Open square.
Definition: kplitem.h:98
static void resetDashOffset()
Resets offset for dashed lines.
@ Image
Item with EPS image from external file.
Definition: kplitem.h:71
static QPixmap pixmap(Symbol symbol)
Returns black decoration pixmap of plot symbol for use in dialog GUI.
@ DashLine2
Line with short dashes and wide spaces.
Definition: kplitem.h:104
@ Dot
Dot-like filled circle.
Definition: kplitem.h:100
@ GridPen
For grids and tics.
Definition: kplitem.h:79
@ OpenHourglass
Open hourglass.
Definition: kplitem.h:96
QPen createPen(QGraphicsItem *item, unsigned color=0, PenType penType=DataPen, Symbol symbol=SolidLine) const
Creates pen for plot item.
static QBrush createBrush(unsigned color, FillStyle fillStyle=NoBrush)
Creates brush.
@ FilledTriangle
Filled triangle.
Definition: kplitem.h:87
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 QPen createPen(double width, unsigned color, PenType penType, Symbol symbol)
Creates pen.
@ DashLine5
Line with short dashes and short spaces.
Definition: kplitem.h:109
@ FilledOctagon
Filled octagon.
Definition: kplitem.h:85
@ Ellipse
Item with ellipse or circle.
Definition: kplitem.h:70
@ DashDotLine
Dash-dotted line.
Definition: kplitem.h:107
static void paintSymbol(QPainter *painter, const QRectF &rect, Symbol symbol=OpenCircle)
Paints symbol.
@ NoBrush
No brush pattern.
Definition: kplitem.h:46
virtual ~KplItem()
Destructor.
void setRelSize(double relSize)
Sets relative size of item.
Definition: kplitem.h:208
@ Ypsilon
Ypsilon-like shape.
Definition: kplitem.h:92
@ Arc
Item with circular or elliptical arc.
Definition: kplitem.h:68
@ VerPattern
Vertical lines.
Definition: kplitem.h:49
QPen & changePenWidth(QPen &pen, double width) const
Changes pen width.
@ FramePen
For rectangular frame.
Definition: kplitem.h:78
@ Legend
Legend item for explaining of symbols or lines.
Definition: kplitem.h:64
@ OpenCircle
Open circle.
Definition: kplitem.h:101
Symbol
Symbol types.
Definition: kplitem.h:83
@ FDiagPattern
Forward diagonal lines.
Definition: kplitem.h:52
static unsigned rgb(const QString &color)
Converts rgb string to QRgb.
static QString path(const QUrl &urlPlo, const QUrl &url, bool absolute=false)
Constructs absolute or (if possible) relative file path.
@ SolidPattern
Uniform color.
Definition: kplitem.h:47
@ FilledSquare
Filled square.
Definition: kplitem.h:88
@ BDiagPattern
Backward diagonal lines.
Definition: kplitem.h:51
@ Spline
2D spline interpolation item.
Definition: kplitem.h:61
@ Line
Item with straight line.
Definition: kplitem.h:66
@ DotLine1
Dotted line with wide spaces.
Definition: kplitem.h:105
@ OpenOctagon
Open octagon.
Definition: kplitem.h:95
@ Array3D
Item with array of 3D data points.
Definition: kplitem.h:62
@ HorPattern
Horizontal lines.
Definition: kplitem.h:48
@ CrossPattern
Crossing horizontal and vertical lines.
Definition: kplitem.h:50