20 #ifndef IMAGE_COMPOSER_CROP_OPERATOR_HEADER
21 #define IMAGE_COMPOSER_CROP_OPERATOR_HEADER
25 #include <QPainterPath>
37 static QString
Type() {
return "crop"; }
39 virtual QString
name()
const;
42 const QVariant& theObj2 )
const;
46 const QVariant& theObj2 )
const;
47 virtual void drawResult( QPainter& thePainter,
const QVariant& theObj1,
48 const QVariant& theObj2 )
const;
51 friend class ImageComposerTests_TestOperators;
#define IMAGE_COMPOSER_API
Definition: ImageComposer.h:27
Implementation of the cropping operator.
Definition: ImageComposer_CropOperator.h:32
static QString Type()
Definition: ImageComposer_CropOperator.h:37
Implementation of image in the global coordinate system.
Definition: ImageComposer_Image.h:35
Implementation of the base abstract operation for image composing.
Definition: ImageComposer_Operator.h:41
virtual QRectF calcResultBoundingRect(const QVariant &theObj1, const QVariant &theObj2) const =0
Calculate bounding rectangle for the result image.
virtual ImageComposer_Image process(const QVariant &theObj1, const QVariant &theObj2) const
Perform the composing of images.
Definition: ImageComposer_Operator.cxx:64
virtual QString name() const =0
Return name of the operator.
virtual void drawResult(QPainter &thePainter, const QVariant &theObj1, const QVariant &theObj2) const =0
Draw result image using the given painter.