1 #ifndef uigraphicsitemimpl_h 2 #define uigraphicsitemimpl_h 15 #include "uibasemod.h" 29 class QGraphicsEllipseItem;
30 class QGraphicsLineItem;
31 class QGraphicsPathItem;
32 class QGraphicsPixmapItem;
33 class QGraphicsProxyWidget;
34 class QGraphicsRectItem;
65 virtual void setObjectSize(
int,
int);
66 const uiSize objectSize()
const;
72 QGraphicsItem* mkQtObj();
89 void setSize(
const uiSize&);
93 QGraphicsItem* mkQtObj();
115 uiLineItem(
float x1,
float y1,
float x2,
float y2);
122 void setPenColor(
const Color&,
bool withalpha=
false);
125 void setLine(
int x1,
int y1,
int x2,
int y2);
126 void setLine(
float x1,
float y1,
float x2,
float y2);
130 float dx1,
float dy1,
float dx2,
float dy2);
132 int dx1,
int dy1,
int dx2,
int dy2);
137 QGraphicsItem* mkQtObj();
153 void setImage(
bool dynamic,
const uiRGBArray&,
158 bool isSnapshot()
const;
164 uiSize wantedScreenSize()
const;
167 QGraphicsItem* mkQtObj();
181 void setOffset(
int left,
int top);
183 void setPaintInCenter(
bool);
187 QGraphicsItem* mkQtObj();
209 QGraphicsItem* mkQtObj();
227 QGraphicsItem* mkQtObj();
244 void setPenWidth(
int);
245 int getPenWidth()
const;
249 QGraphicsItem* mkQtObj();
264 void setRect(
int x,
int y,
int width,
int height);
268 QGraphicsItem* mkQtObj();
286 uiSize getTextSize()
const;
289 void setTextColor(
const Color&);
293 void translateText();
299 virtual void stPos(
float,
float);
310 bool centered=
false);
314 Color getDefaultTextColor()
const;
317 float getTextWidth()
const;
320 void setDefaultTextColor(
const Color&);
323 void setTextWidth(
float);
325 void setTextIteraction(
bool);
330 QGraphicsItem* mkQtObj();
333 virtual void stPos(
float,
float);
351 void setFillColor(
const Color&,
bool withalpha=
false);
356 QGraphicsItem* mkQtObj();
372 QGraphicsItem* mkQtObj();
387 void setHeadPos(
const uiPoint&);
388 void setTailPos(
const uiPoint&);
389 void setTailHeadPos(
const uiPoint& tail,
392 void setArrowSize(
int);
398 QGraphicsItem* mkQtObj();
420 : center_((float)c.x,(float)c.y), radius_(r)
421 , angles_(angs), yratio_(1.0f) {}
424 : center_(c), radius_(r)
425 , angles_(angs), yratio_(1.0f) {}
437 : end_((float)endp.x,(float)endp.y)
438 , cp1_((float)cp.x,(float)cp.y)
442 : end_(endp), cp1_(cp), cubic_(false) {}
445 : end_((float)endp.x,(float)endp.y)
446 , cp1_((float)p1.x,(float)p1.y)
447 , cp2_((float)p2.x,(float)p2.y), cubic_(true) {}
451 : end_(endp), cp1_(p1), cp2_(p2), cubic_(true) {}
471 QGraphicsItem* mkQtObj();
uiPoint headpos_
Definition: uigraphicsitemimpl.h:402
#define mExpClass(module)
Definition: commondefs.h:160
ArcSpec(const uiPoint &c, float r, const Interval< float > &angs)
Definition: uigraphicsitemimpl.h:418
ODGraphicsArrowItem * qArrowItem()
Definition: uigraphicsitemimpl.h:394
uiPoint tailpos_
Definition: uigraphicsitemimpl.h:401
Definition: odgraphicsitem.h:39
uiObject * obj_
Definition: uigraphicsitemimpl.h:74
QGraphicsPathItem * qpathitem_
Definition: uigraphicsitemimpl.h:472
Definition: odgraphicsitem.h:118
SplineSpec(const uiPoint &endp, const uiPoint &cp)
Definition: uigraphicsitemimpl.h:436
Definition: odgraphicsitem.h:241
QGraphicsPathItem * qGraphicsPathItem()
Definition: uigraphicsitemimpl.h:466
Definition: odgraphicsitem.h:96
QGraphicsRectItem * qRectItem()
Definition: uigraphicsitemimpl.h:263
Interface class for Notifier. See comments there.
Definition: callback.h:161
uiString text_
Definition: uigraphicsitemimpl.h:297
Definition: uigraphicsitemimpl.h:377
Definition: uigraphicsitemimpl.h:408
Definition: i_layout.h:28
QGraphicsRectItem * qrectitem_
Definition: uigraphicsitemimpl.h:269
Definition: uigraphicsitemimpl.h:192
(Closed) sequence of connected 2-D coordinates.
Definition: polygon.h:27
Interval< float > angles_
Definition: uigraphicsitemimpl.h:429
ODGraphicsTextItem * qtextitem_
Definition: uigraphicsitemimpl.h:296
bool textiscentered_
Definition: uigraphicsitemimpl.h:329
Definition: uigraphicsitemimpl.h:303
Definition: uigraphicsitemimpl.h:232
ODGraphicsPointItem * qPointItem()
Definition: uigraphicsitemimpl.h:368
ArcSpec(const Geom::Point2D< float > &c, float r, const Interval< float > &angs)
Definition: uigraphicsitemimpl.h:422
The base class for most UI elements.
Definition: uiobj.h:38
Definition: uistring.h:89
Definition: uigraphicsitemimpl.h:415
ODGraphicsMarkerItem * qmarkeritem_
Definition: uigraphicsitemimpl.h:357
Definition: uigraphicsitemimpl.h:337
Geom::Point2D< float > center_
Definition: uigraphicsitemimpl.h:427
ODGraphicsMultiColorPolyLineItem * odmulticoloritem_
Definition: uigraphicsitemimpl.h:250
QPainterPath * qppath_
Definition: uigraphicsitemimpl.h:473
float yratio_
< 1 means: X size > Y size
Definition: uigraphicsitemimpl.h:430
Data needed to make an actual font.
Definition: fontdata.h:20
Definition: odgraphicsitem.h:65
Alignment al_
Definition: uigraphicsitemimpl.h:328
Definition: uigraphicsitemimpl.h:361
Definition: odgraphicsitem.h:177
void setLine(uiLineItem &, const LineParameters< float > &, const uiAxisHandler &xah, const uiAxisHandler &yah, const Interval< float > *xvalrg=0)
draws line not outside box defined by X and Y value ranges
ODGraphicsPixmapItem * qpixmapitem_
Definition: uigraphicsitemimpl.h:188
QGraphicsProxyWidget * qWidgetItem()
Definition: uigraphicsitemimpl.h:68
ODGraphicsDynamicImageItem * item_
Definition: uigraphicsitemimpl.h:168
ODGraphicsPolyLineItem * qpolygonitem_
Definition: uigraphicsitemimpl.h:210
bool cubic_
otherwise quadratic
Definition: uigraphicsitemimpl.h:456
QGraphicsLineItem * qlineitem_
Definition: uigraphicsitemimpl.h:138
SplineSpec(const Geom::Point2D< float > &endp, const Geom::Point2D< float > &cp)
Definition: uigraphicsitemimpl.h:440
Definition: uigraphicsitemimpl.h:52
Set of (small) copyable elements.
Definition: commontypes.h:30
QGraphicsLineItem * qLineItem()
Definition: uigraphicsitemimpl.h:120
Geom::Point2D< float > end_
Definition: uigraphicsitemimpl.h:453
Geom::Point2D< float > cp2_
only for cubic_
Definition: uigraphicsitemimpl.h:455
uiGroup * grp_
Definition: uigraphicsitemimpl.h:75
ODGraphicsPointItem * qpointitem_
Definition: uigraphicsitemimpl.h:373
SplineSpec(const Geom::Point2D< float > &endp, const Geom::Point2D< float > &p1, const Geom::Point2D< float > &p2)
Definition: uigraphicsitemimpl.h:448
int penwidth_
Definition: uigraphicsitemimpl.h:251
Definition: odgraphicsitem.h:148
Definition: uigraphicsitemimpl.h:255
Off-screen pixel-based paint device.
Definition: uipixmap.h:34
Definition: odgraphicsitem.h:207
Definition: uigraphicsitemimpl.h:433
QGraphicsEllipseItem * qEllipseItem()
Definition: uigraphicsitemimpl.h:88
Definition: uigraphicsitemimpl.h:98
SplineSpec(const uiPoint &endp, const uiPoint &p1, const uiPoint &p2)
Definition: uigraphicsitemimpl.h:443
float radius_
X radius. Yrad = radius_ * yratio_.
Definition: uigraphicsitemimpl.h:428
ODGraphicsArrowItem * qarrowitem_
Definition: uigraphicsitemimpl.h:399
Definition: uigraphicsitemimpl.h:214
ODGraphicsPathItem * odgraphicspath_
Definition: uigraphicsitemimpl.h:228
ODGraphicsPixmapItem * qPixmapItem()
Definition: uigraphicsitemimpl.h:180
virtual void setFont(const QFont &)
override Qt
Definition: i_uiobjqtbody.h:32
Definition: odgraphicsitem.h:303
Definition: uigraphicsitemimpl.h:79
Definition: odgraphicsitem.h:187
Definition: uigraphicsitemimpl.h:172
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
QPainterPath * qPainterPath()
Definition: uigraphicsitemimpl.h:467
Geom::Point2D< float > cp1_
Definition: uigraphicsitemimpl.h:454
Definition: uigraphicsitemimpl.h:273
QGraphicsProxyWidget * qwidgetitem_
Definition: uigraphicsitemimpl.h:73
QGraphicsEllipseItem * qellipseitem_
Definition: uigraphicsitemimpl.h:94
ODGraphicsMarkerItem * qMarkerItem()
Definition: uigraphicsitemimpl.h:348
Definition: uigraphicsitemimpl.h:110
ODGraphicsAdvancedTextItem * qtextitem_
Definition: uigraphicsitemimpl.h:331
Definition: uigraphicsitemimpl.h:147