|
libkpl
5.0
A Library for Graphical Presentation of Data Sets and Functions
|
126 KplItem(
const KConfigGroup* plo);
135 static QUrl absoluteUrl(
const QString& path,
const QUrl& urlPlo);
142 static QBrush createBrush(
unsigned color, FillStyle fillStyle = NoBrush);
151 static QPen createPen(
double width,
unsigned color, PenType penType,
159 static void paintSymbol(QPainter* painter,
const QRectF& rect,
160 Symbol symbol = OpenCircle);
166 static QPixmap pixmap(Symbol symbol);
173 static QPixmap pixmap(QPen pen, Symbol symbol = SolidLine);
178 void readPlo(
const KConfigGroup* plo);
186 static QString path(
const QUrl& urlPlo,
const QUrl& url,
187 bool absolute =
false);
189 inline double relSize()
const {
return m_relSize; };
191 static void resetDashOffset();
197 static unsigned rgb(
const QString& color);
203 static unsigned rgbQt1(
unsigned rgb);
208 inline void setRelSize(
double relSize) { m_relSize = relSize; };
214 void writePlo(KConfigGroup* plo,
bool visible =
true)
const;
223 QPen& changePenWidth(QPen& pen,
double width)
const;
232 QPen createPen(QGraphicsItem* item,
unsigned color = 0,
233 PenType penType = DataPen, Symbol symbol = SolidLine)
const;
240 static double parentWidth(
const QGraphicsItem* item);
247 double penWidth(
const QGraphicsItem* item, PenType penType = DataPen)
const;
253 static double penWidthFactor(PenType penType);
254 static double m_dashOffset;
@ 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
Kpl item class.
Definition: kplitem.h:41
@ 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
FillStyle
Fill styles.
Definition: kplitem.h:45
@ ParFunction
2D parametric function item.
Definition: kplitem.h:60
@ DashLine3
Line with wide dashes and short spaces.
Definition: kplitem.h:106
@ 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
@ 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
@ Image
Item with EPS image from external file.
Definition: kplitem.h:71
@ 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
@ FilledTriangle
Filled triangle.
Definition: kplitem.h:87
@ 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
@ NoBrush
No brush pattern.
Definition: kplitem.h:46
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
@ 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
@ 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