Implementation of the base abstract operation for image composing.
#include <ImageComposer_Operator.h>

Public Member Functions | |
| ImageComposer_Operator () | |
| Constructor.  More... | |
| virtual | ~ImageComposer_Operator () | 
| Destructor.  More... | |
| void | getArgs (QColor &theBackground) const | 
| Get operator arguments.  More... | |
| void | setArgs (const QColor &theBackground) | 
| Set operator arguments.  More... | |
| QByteArray | getBinArgs () const | 
| Get the operator's arguments in the form of a binary array.  More... | |
| void | setBinArgs (const QByteArray &) | 
| Set the operator's arguments in the form of a binary array.  More... | |
| QStringList | dumpArgsToPython (QString &theArrayName) const | 
| Dumps arguments of operator to python script representation.  More... | |
| virtual QString | name () const =0 | 
| Return name of the operator.  More... | |
| virtual ImageComposer_Image | process (const QVariant &theObj1, const QVariant &theObj2) const | 
| Perform the composing of images.  More... | |
Protected Member Functions | |
| virtual QRectF | calcResultBoundingRect (const QVariant &theObj1, const QVariant &theObj2) const =0 | 
| Calculate bounding rectangle for the result image.  More... | |
| virtual void | drawResult (QPainter &thePainter, const QVariant &theObj1, const QVariant &theObj2) const =0 | 
| Draw result image using the given painter.  More... | |
| virtual void | storeArgs (QDataStream &theStream) const | 
| Store the operator's arguments to the stream.  More... | |
| virtual void | restoreArgs (QDataStream &theStream) | 
| Restore the operator's arguments from the stream.  More... | |
Private Attributes | |
| QColor | myBackground | 
| the background color for result image  More... | |
Friends | |
| class | ImageComposerTests_TestOperators | 
| ImageComposer_Operator::ImageComposer_Operator | ( | ) | 
      
  | 
  virtual | 
      
  | 
  protectedpure virtual | 
| theObj1 | first object to calculate | 
| theObj2 | second object to calculate | 
Implemented in ImageComposer_ColorMaskOperator, ImageComposer_CropOperator, ImageComposer_CutOperator, and ImageComposer_FuseOperator.
      
  | 
  protectedpure virtual | 
| thePainter | the painter on the result image | 
| theObj1 | the first object to compose | 
| theObj2 | the second object to compose | 
Implemented in ImageComposer_ColorMaskOperator, ImageComposer_CropOperator, ImageComposer_CutOperator, and ImageComposer_FuseOperator.
| QStringList ImageComposer_Operator::dumpArgsToPython | ( | QString & | theArrayName | ) | const | 
| theArrayName | name of result QByteArray array variable  | 
References myBackground.
| void ImageComposer_Operator::getArgs | ( | QColor & | theBackground | ) | const | 
| theBackground | the background color for result image | 
References myBackground.
| QByteArray ImageComposer_Operator::getBinArgs | ( | ) | const | 
References storeArgs().
      
  | 
  pure virtual | 
Implemented in ImageComposer_ColorMaskOperator, ImageComposer_CropOperator, ImageComposer_CutOperator, and ImageComposer_FuseOperator.
      
  | 
  virtual | 
| theObj1 | the first object to compose | 
| theObj2 | the second object to compose | 
Reimplemented in ImageComposer_CropOperator.
References calcResultBoundingRect(), drawResult(), myBackground, ImageComposer_Image::setTransform(), and ImageComposer_Image::transform().
      
  | 
  protectedvirtual | 
| theStream | the stream for restoring | 
Reimplemented in ImageComposer_ColorMaskOperator.
References myBackground.
| void ImageComposer_Operator::setArgs | ( | const QColor & | theBackground | ) | 
| theBackground | the background color for result image | 
References myBackground.
| void ImageComposer_Operator::setBinArgs | ( | const QByteArray & | theData | ) | 
| theData | the binary array with arguments | 
References restoreArgs().
      
  | 
  protectedvirtual | 
| theStream | the stream for storing | 
Reimplemented in ImageComposer_ColorMaskOperator.
References myBackground.
      
  | 
  friend | 
      
  | 
  private |