1 #ifndef odgraphicsitem_h 2 #define odgraphicsitem_h 15 #include <QGraphicsItem> 18 #include <QTextOption> 20 #include <QWaitCondition> 44 QRectF boundingRect()
const;
45 void paint(QPainter*,
const QStyleOptionGraphicsItem*,
48 void drawPoint(QPainter*);
57 virtual void mouseMoveEvent(QGraphicsSceneMouseEvent*);
71 QRectF boundingRect()
const;
72 void paint(QPainter*,
const QStyleOptionGraphicsItem*,
78 void setFill(
bool fill ) { fill_ = fill; }
87 virtual void mouseMoveEvent(QGraphicsSceneMouseEvent*);
102 void paint(QPainter*,
const QStyleOptionGraphicsItem*,
106 void setPaintInCenter(
bool);
109 virtual void mouseMoveEvent(QGraphicsSceneMouseEvent*);
110 virtual void hoverEnterEvent(QGraphicsSceneHoverEvent*);
111 virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent*);
123 QRectF boundingRect()
const;
124 void paint(QPainter*,
const QStyleOptionGraphicsItem*,
127 void drawArrow(QPainter&);
128 double getAddedAngle(
double,
float);
129 QPoint getEndPoint(
const QPoint&,
double,
double);
130 void drawArrowHead(QPainter&,
const QPoint&,
133 { arrowstyle_ = arrowstyle ; }
135 { arrowsz_ = arrowsz ; }
141 virtual void mouseMoveEvent(QGraphicsSceneMouseEvent*);
153 QRectF boundingRect()
const;
154 void paint(QPainter*,
const QStyleOptionGraphicsItem*,
157 void setText(
const QString&);
159 QFont getFont()
const;
161 void setVAlignment(
const Qt::Alignment&);
162 void setHAlignment(
const Qt::Alignment&);
167 virtual void mouseMoveEvent(QGraphicsSceneMouseEvent*);
168 QPointF getAlignment()
const;
183 virtual void mouseMoveEvent(QGraphicsSceneMouseEvent*);
194 void set(
const QPainterPath&);
195 QPainterPath shape()
const;
214 QRectF boundingRect()
const;
215 void paint(QPainter*,
const QStyleOptionGraphicsItem*,
217 QPainterPath shape()
const;
219 void setPolyLine(
const QPolygonF&,
bool closed);
220 void setFillRule(Qt::FillRule);
231 virtual void mouseMoveEvent(QGraphicsSceneMouseEvent*);
248 QRectF boundingRect()
const;
249 void paint(QPainter*,
250 const QStyleOptionGraphicsItem*,
252 QPainterPath shape()
const;
254 void setPolyLine(
const QPolygonF&);
255 void setQPens(
const QVector<QPen>&);
256 void setPenWidth(
int);
272 void add(
const QPointF&,
277 virtual void mouseMoveEvent(QGraphicsSceneMouseEvent*);
278 void cleanupPolygon();
294 QRectF boundingRect()
const;
295 void paint(QPainter*,
const QStyleOptionGraphicsItem*,
298 virtual void mouseMoveEvent(QGraphicsSceneMouseEvent*);
309 void paint(QPainter*,
const QStyleOptionGraphicsItem*,
312 void setImage(
bool isdynamic,
const QImage&,
314 bool updateResolution(
const QPainter*);
315 const QRectF& wantedWorldRect()
const;
316 const QSize& wantedScreenSize()
const;
321 bool isSnapshot()
const;
328 virtual void mouseMoveEvent(QGraphicsSceneMouseEvent*);
PtrMan< QPixmap > dynamicpixmap_
Definition: odgraphicsitem.h:346
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
virtual int type() const
Definition: odgraphicsitem.h:318
QPainterPath path_
Definition: odgraphicsitem.h:285
Color pencolor_
Definition: odgraphicsitem.h:60
int side_
Definition: odgraphicsitem.h:92
void setArrowStyle(const ArrowStyle &arrowstyle)
Definition: odgraphicsitem.h:132
Definition: odgraphicsitem.h:39
const MarkerStyle2D * getMarkerStyle()
Definition: odgraphicsitem.h:84
Definition: odgraphicsitem.h:118
QFont font_
Definition: odgraphicsitem.h:170
Definition: odgraphicsitem.h:241
void setFillColor(const Color &col)
Definition: odgraphicsitem.h:79
void setFill(bool fill)
Definition: odgraphicsitem.h:78
PtrMan< QPixmap > basepixmap_
Definition: odgraphicsitem.h:345
Definition: odgraphicsitem.h:96
QVector< QPen > qpens_
Definition: odgraphicsitem.h:269
bool paintincenter_
Definition: odgraphicsitem.h:113
QPen & mypen_
Definition: odgraphicsitem.h:237
Qt::Alignment val_
Definition: odgraphicsitem.h:173
Color fillcolor_
Definition: odgraphicsitem.h:90
QImage dynamicimage_
Definition: odgraphicsitem.h:336
QPolygonF inputqpolygon_
Definition: odgraphicsitem.h:281
void highlight()
Definition: odgraphicsitem.h:258
QRectF wantedwr_
Definition: odgraphicsitem.h:330
Notifier< ODGraphicsDynamicImageItem > wantsData
Definition: odgraphicsitem.h:320
void setSideLength(int side)
Definition: odgraphicsitem.h:81
QWaitCondition imagecond_
Definition: odgraphicsitem.h:334
Definition: odgraphicsitem.h:65
int penwidth_
Definition: odgraphicsitem.h:59
Definition: odgraphicsitem.h:177
QRectF boundingRect() const
Definition: odgraphicsitem.h:308
virtual void unHighlight()
Definition: odgraphicsitem.h:33
Definition: odgraphicsitem.h:265
QVector< QPen > inputqpens_
Definition: odgraphicsitem.h:282
void unHighlight()
Definition: odgraphicsitem.h:259
QPolygonF qpolygon_
Definition: odgraphicsitem.h:234
QRectF boundingrect_
Definition: odgraphicsitem.h:88
Definition: odgraphicsitem.h:289
void setArrowSize(const int arrowsz)
Definition: odgraphicsitem.h:134
virtual int type() const
Definition: odgraphicsitem.h:105
QPen & mypen_
Definition: odgraphicsitem.h:203
Qt::Alignment hal_
Definition: odgraphicsitem.h:172
virtual int type() const
Definition: odgraphicsitem.h:54
void setColor(const Color &col)
Definition: odgraphicsitem.h:51
virtual int type() const
Definition: odgraphicsitem.h:83
Definition: odgraphicsitem.h:148
bool updatebasepixmap_
Definition: odgraphicsitem.h:339
QSize wantedscreensz_
Definition: odgraphicsitem.h:331
QPainterPath path_
Definition: odgraphicsitem.h:202
Off-screen pixel-based paint device.
Definition: uipixmap.h:34
QImage baseimage_
Definition: odgraphicsitem.h:340
QRectF dynamicimagebbox_
Definition: odgraphicsitem.h:337
QPolygonF qpolygon_
Definition: odgraphicsitem.h:268
Definition: odgraphicsitem.h:207
int arrowsz_
Definition: odgraphicsitem.h:144
bool fill_
Definition: odgraphicsitem.h:91
QString text_
Definition: odgraphicsitem.h:171
Type
Definition: draw.h:64
QRectF dynamicpixmapbbox_
Definition: odgraphicsitem.h:347
void setHighLight(bool hl)
Definition: odgraphicsitem.h:49
virtual void setFont(const QFont &)
override Qt
Definition: i_uiobjqtbody.h:32
Definition: odgraphicsitem.h:303
virtual int type() const
Definition: odgraphicsitem.h:164
Definition: odgraphicsitem.h:187
Definition: odgraphicsitem.h:29
virtual void highlight()
Definition: odgraphicsitem.h:32
static int ODGraphicsType
Definition: odgraphicsitem.h:27
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
bool closed_
Definition: odgraphicsitem.h:233
bool updatedynpixmap_
Definition: odgraphicsitem.h:335
bool issnapshot_
Definition: odgraphicsitem.h:343
virtual int type() const
Definition: odgraphicsitem.h:261
bool highlight_
Definition: odgraphicsitem.h:280
QVector< ODLineSegment > odlinesegments_
Definition: odgraphicsitem.h:283
bool isEmpty(const NLAModel *mdl)
bool highlight_
Definition: odgraphicsitem.h:58
QRectF bbox_
Definition: odgraphicsitem.h:341
virtual void setQPen(const QPen &)
Definition: odgraphicsitem.h:35
QMutex imagelock_
Definition: odgraphicsitem.h:333
QPainterPath path_
Definition: odgraphicsitem.h:236
QRectF brect_
Definition: odgraphicsitem.h:284
Qt::FillRule fillrule_
Definition: odgraphicsitem.h:235
virtual int type() const
Definition: odgraphicsitem.h:228
ArrowStyle arrowstyle_
Definition: odgraphicsitem.h:143
MarkerStyle2D * mstyle_
Definition: odgraphicsitem.h:89
virtual int type() const
Definition: odgraphicsitem.h:138