15#include <QtGui/qimage.h>
47 virtual void mousePressEvent(QGraphicsSceneMouseEvent* _event)
override;
48 virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* _event)
override;
50 virtual void drawBackground(QPainter* _painter,
const QRectF& _rect)
override;
53 void constrainItemToScene(QGraphicsItem* _item);
#define OT_DECL_NODEFAULT(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:22
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
Definition GraphicsItemDesignerImageExportConfig.h:12
Definition GraphicsItemDesignerScene.h:19
const QSizeF & getItemSize(void) const
Definition GraphicsItemDesignerScene.h:39
void setItemSize(const QSizeF &_size)
Definition GraphicsItemDesignerScene.cpp:47
void disablePickingMode(void)
Definition GraphicsItemDesignerScene.cpp:41
virtual ~GraphicsItemDesignerScene()
Definition GraphicsItemDesignerScene.cpp:27
QImage exportAsImage(const GraphicsItemDesignerImageExportConfig &_exportConfig)
Definition GraphicsItemDesignerScene.cpp:52
void enablePickingMode(void)
Definition GraphicsItemDesignerScene.cpp:35
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *_event) override
Definition GraphicsItemDesignerScene.cpp:111
virtual void mousePressEvent(QGraphicsSceneMouseEvent *_event) override
Definition GraphicsItemDesignerScene.cpp:90
virtual void drawBackground(QPainter *_painter, const QRectF &_rect) override
Definition GraphicsItemDesignerScene.cpp:122
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *_event) override
Definition GraphicsItemDesignerScene.cpp:98
GraphicsItemDesignerScene(GraphicsItemDesignerView *_view)
Definition GraphicsItemDesignerScene.cpp:20
Mode
Definition GraphicsItemDesignerScene.h:23
@ PointPickingMode
Definition GraphicsItemDesignerScene.h:25
@ NoMode
Definition GraphicsItemDesignerScene.h:24
Definition GraphicsItemDesignerView.h:17
Graphics Scene for ot::GraphicsItem Adding QGraphicsItems to the scene that do not inherit ot::Graphi...
Definition GraphicsScene.h:31