37 virtual void paintCustomItem(QPainter* _painter,
const QStyleOptionGraphicsItem* _opt, QWidget* _widget,
const QRectF& _rect)
override;
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
Definition CustomGraphicsItem.h:17
Definition GraphicsInvisibleItem.h:16
virtual void paintCustomItem(QPainter *_painter, const QStyleOptionGraphicsItem *_opt, QWidget *_widget, const QRectF &_rect) override
Paint the item inside the provided rect.
Definition GraphicsInvisibleItem.cpp:58
void setItemSize(double _width, double _height)
Definition GraphicsInvisibleItem.h:41
virtual ~GraphicsInvisibleItem()
Definition GraphicsInvisibleItem.cpp:26
virtual bool setupFromConfig(const GraphicsItemCfg *_cfg) override
Will setup the item from the provided configuration and store a copy. The previously stored configura...
Definition GraphicsInvisibleItem.cpp:34
const Size2DD & getItemSize(void) const
Definition GraphicsInvisibleItem.cpp:90
void setItemSize(const QSizeF &_size)
Definition GraphicsInvisibleItem.h:42
virtual QSizeF getPreferredGraphicsItemSize(void) const override
Definition GraphicsInvisibleItem.cpp:50
GraphicsInvisibleItem()
Definition GraphicsInvisibleItem.cpp:20
The GraphicsItemCfg is the base class for all graphics item configurations.
Definition GraphicsItemCfg.h:33
2D Size with double values
Definition Size2D.h:115