Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ImageComposer_Image Class Reference

Implementation of image in the global coordinate system.

#include <ImageComposer_Image.h>

Inheritance diagram for ImageComposer_Image:
Inheritance graph

Public Member Functions

 ImageComposer_Image ()
 Constructor. More...
 
 ImageComposer_Image (const ImageComposer_Image &theImage)
 Copy constructor. More...
 
 ImageComposer_Image (const QImage &theImage)
 Copy constructor. More...
 
 ~ImageComposer_Image ()
 Destructor. More...
 
void draw (QPainter &thePainter) const
 Draw the image using the given painter. More...
 
QTransform transform () const
 Get current image transformation. More...
 
void setTransform (const QTransform &)
 Change current image transformation. More...
 
void setLocalTransform (qreal theDx, qreal theDy, qreal theRotationDeg)
 Change current image transformation. More...
 
QRectF boundingRect () const
 Get image's bounding rectangle in the global CS. More...
 
const ImageComposer_Imageoperator= (const ImageComposer_Image &theImage)
 Operator of another image assignment. More...
 
const QImage & operator= (const QImage &theImage)
 Operator of another image assignment. More...
 
ImageComposer_Image apply (const ImageComposer_Operator &theOperator, const QVariant &theOtherObj) const
 Apply the given operator to the image. More...
 
ImageComposer_Image operator& (const QRect &) const
 Operator of image cropping by a rectangle. More...
 
ImageComposer_Image operator& (const QPainterPath &) const
 Operator of image cropping by a path. More...
 
ImageComposer_Image operator& (const ImageComposer_Image &) const
 Operator of image cutting by another image. More...
 
ImageComposer_Image operator| (const ImageComposer_Image &) const
 Operator of image fusing with another image. More...
 

Static Public Member Functions

static QColor defaultBackground ()
 Get default background color used for image operators. More...
 
static void setDefaultBackground (const QColor &)
 Change default background color used for image operators. More...
 

Private Attributes

QTransform myTransform
 the image transformation in the global CS More...
 

Static Private Attributes

static QColor myDefaultBackground = TRANSPARENT
 the default background color to be used in operators More...
 

Constructor & Destructor Documentation

ImageComposer_Image::ImageComposer_Image ( )
ImageComposer_Image::ImageComposer_Image ( const ImageComposer_Image theImage)
ImageComposer_Image::ImageComposer_Image ( const QImage &  theImage)
ImageComposer_Image::~ImageComposer_Image ( )

Member Function Documentation

ImageComposer_Image ImageComposer_Image::apply ( const ImageComposer_Operator theOperator,
const QVariant &  theOtherObj 
) const
Parameters
theOperatorthe operator to be applied
theImagethe additional image to compose (optional)
Returns
the result image

References ImageComposer_Operator::process().

QRectF ImageComposer_Image::boundingRect ( ) const
Returns
image's bounding rectangle in the global CS

References myTransform.

QColor ImageComposer_Image::defaultBackground ( )
static
Returns
default background color

References myDefaultBackground.

void ImageComposer_Image::draw ( QPainter &  thePainter) const
Parameters
thePainterthe painter for image drawing

References myTransform.

ImageComposer_Image ImageComposer_Image::operator& ( const QRect &  theRect) const
Parameters
theRectthe rectangle for cropping
Returns
cropped image
ImageComposer_Image ImageComposer_Image::operator& ( const QPainterPath &  thePath) const
Parameters
thePaththe path for cropping
Returns
cropped image

References apply(), myDefaultBackground, and ImageComposer_Operator::setArgs().

ImageComposer_Image ImageComposer_Image::operator& ( const ImageComposer_Image theImage) const
Parameters
theImagethe image for cutting
Returns
cut image

References apply(), myDefaultBackground, and ImageComposer_Operator::setArgs().

const ImageComposer_Image & ImageComposer_Image::operator= ( const ImageComposer_Image theImage)
Parameters
theImagethe image to assign
Returns
the assigned image

References myTransform, and operator=().

const QImage & ImageComposer_Image::operator= ( const QImage &  theImage)
Parameters
theImagethe image to assign
Returns
the assigned image

References operator=().

ImageComposer_Image ImageComposer_Image::operator| ( const ImageComposer_Image theImage) const
Parameters
theImagethe image for fusing
Returns
fused image

References apply(), myDefaultBackground, and ImageComposer_Operator::setArgs().

void ImageComposer_Image::setDefaultBackground ( const QColor &  theDefaultBackground)
static
Parameters
theDefaultBackgrounda new default background color

References myDefaultBackground.

void ImageComposer_Image::setLocalTransform ( qreal  theDx,
qreal  theDy,
qreal  theRotationDeg 
)
Parameters
theDxthe image translation along X axis of the global CS
theDythe image translation along Y axis of the global CS
theRotationDegthe image rotation in degrees around the image center

References myTransform.

void ImageComposer_Image::setTransform ( const QTransform &  theTransform)
Parameters
theTransforma new image transformation

References myTransform.

QTransform ImageComposer_Image::transform ( ) const
Returns
current image transformation

References myTransform.

Member Data Documentation

QColor ImageComposer_Image::myDefaultBackground = TRANSPARENT
staticprivate
QTransform ImageComposer_Image::myTransform
private

The documentation for this class was generated from the following files: