7#include <QtGui/QPixmap>
8#include <QtCore/QPoint>
28 const QPixmap&
GetPixmap()
const {
return m_pixmap; }
31 virtual void Draw(QPainter& drawContext)
const override;
47 const QPixmap& pixmap,
55 QPoint m_pixmapOffset;
56 bool m_ignoreTransformation =
false;
This class defines an affine 2D-transformation.
Simple rectangle with integer bounds.
Common interface for model objects, that supports Model/Observer design pattern.
Index implementation for addressing elements in 2D-space.
Set of change flags (its IDs).
virtual void DrawPixmap(QPainter &painter, const QPixmap &pixmap, const i2d::CRect &bitmapArea, const i2d::CAffine2d &destTransform) const
const QPixmap & GetPixmap() const
virtual i2d::CRect CalcBoundingBox() const override
Calculate bounding box.
CImageShape(const icmm::IColorTransformation *colorTransformationPtr=NULL)
virtual void AfterUpdate(imod::IModel *modelPtr, const istd::IChangeable::ChangeSet &changeSet) override
Callback invoked after an update of the observer's content occurs.
virtual void Draw(QPainter &drawContext) const override
Draw this shape using draw context.
virtual TouchState IsTouched(istd::CIndex2d position) const override
Check, if any shape is touched.
virtual bool OnModelAttached(imod::IModel *modelPtr, istd::IChangeable::ChangeSet &changeMask) override
Callback invoked when an observable model is about to be attached to this observer.
virtual QString GetShapeDescriptionAt(istd::CIndex2d position) const override
Get description to shape at specified position.
TouchState
Enumeration for possible shape touch states.
In this library is defined 2D view concept and standard visualisation objects.