20 #ifndef IMAGE_COMPOSER_OPERATOR_HEADER
21 #define IMAGE_COMPOSER_OPERATOR_HEADER
46 void getArgs( QColor& theBackground )
const;
47 void setArgs(
const QColor& theBackground );
49 QByteArray getBinArgs()
const;
50 void setBinArgs(
const QByteArray& );
57 QStringList dumpArgsToPython( QString& theArrayName )
const;
63 virtual QString
name()
const = 0;
66 const QVariant& theObj2 )
const;
76 const QVariant& theObj2 )
const = 0;
84 virtual void drawResult( QPainter& thePainter,
const QVariant& theObj1,
85 const QVariant& theObj2 )
const = 0;
87 virtual void storeArgs( QDataStream& theStream )
const;
88 virtual void restoreArgs( QDataStream& theStream );
91 friend class ImageComposerTests_TestOperators;
#define IMAGE_COMPOSER_API
Definition: ImageComposer.h:27
const QColor TRANSPARENT(255, 255, 255, 0)
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.
QColor myBackground
the background color for result image
Definition: ImageComposer_Operator.h:93
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.