10#include <QtGui/QPixmap>
35 virtual void Draw(QPainter& drawContext)
const;
58 mutable QImage m_coloredImage;
59 QList<QRgb> m_colorTable;
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).
View visualization of floating point images.
virtual void CalcColorTable()
virtual void DrawImage(QPainter &painter, const QImage &image, const i2d::CRect &bitmapArea, const i2d::CAffine2d &destTransform) const
virtual bool OnModelAttached(imod::IModel *modelPtr, istd::IChangeable::ChangeSet &changeMask)
This call back function will be called, if an observable object is about to be attached.
virtual QString GetShapeDescriptionAt(istd::CIndex2d position) const
Get description to shape at specified position.
virtual bool CalcColoredImage() const
virtual i2d::CRect CalcBoundingBox() const
Calculate bounding box.
virtual void AfterModelChange(imod::IModel *modelPtr, const istd::IChangeable::ChangeSet &changeSet)
This function will be called after update of the observer contents occures.
void SetValueRange(const istd::CRange &valueRange)
virtual TouchState IsTouched(istd::CIndex2d position) const
Check, if any shape is touched.
virtual void Draw(QPainter &drawContext) const
Draw this shape using draw context.
Base class of standard shape implementation.
TouchState
Enumeration for possible shape touch states.
In this library is defined 2D view concept and standard visualisation objects.