*/
QString ImageComposer_ColorMaskOperator::name() const
{
- return "colormask";
+ return Type();
}
QStringList ImageComposer_ColorMaskOperator::dumpArgsToPython( QString& theArrayName ) const
int theRGBThreshold,
int theAlphaThreshold );
+ static QString Type() { return "colormask"; }
+
virtual QString name() const;
/**
*/
QString ImageComposer_CropOperator::name() const
{
- return "crop";
+ return Type();
}
/**
QPainterPath clipPath() const;
+ static QString Type() { return "crop"; }
+
virtual QString name() const;
+
virtual ImageComposer_Image process( const ImageComposer_Image& theImage1,
const ImageComposer_Image& theImage2 ) const;
*/
QString ImageComposer_CutOperator::name() const
{
- return "cut";
+ return Type();
}
/**
ImageComposer_CutOperator();
virtual ~ImageComposer_CutOperator();
+ static QString Type() { return "cut"; }
+
virtual QString name() const;
protected:
*/
QString ImageComposer_FuseOperator::name() const
{
- return "fuse";
+ return Type();
}
/**
ImageComposer_FuseOperator();
virtual ~ImageComposer_FuseOperator();
+ static QString Type() { return "fuse"; }
+
virtual QString name() const;
protected:
myBackground = theBackground;
}
-/**
- Return name of the operator
- @return name of the operator
-*/
-QString ImageComposer_Operator::name() const
-{
- return "";
-}
-
/**
Perform the composing of images
@param theImage1 the first image to compose
**/
QStringList dumpArgsToPython( QString& theArrayName ) const;
- virtual QString name() const;
+ /**
+ Return name of the operator.
+ @return name of the operator
+ */
+ virtual QString name() const = 0;
+
virtual ImageComposer_Image process( const ImageComposer_Image& theImage1,
const ImageComposer_Image& theImage2 ) const;