| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/image/imagecopyop.h>

Public Types | |
| enum | Operation { CopyImage, CopyLayer, CopyGreyScale, Exchange } |
Public Member Functions | |
| VRS_SERIALIZABLE_CLASS_ENUM (Operation) | |
| ImageCopyOp (int opType, int srcLayer=0, int dstLayer=0, bool scale=true, bool ignoreROIandLOI=false) | |
| void | setOperation (int opType) |
| int | getOperation () const |
| Sets/returns the operation type of the copy-operation object. | |
| void | setSourceLayer (int srcLayer) |
| void | setDestLayer (int dstLayer) |
| int | getSourceLayer () const |
| int | getDestLayer () const |
| virtual Image * | manipulate (Image *source, Image *target) |
| virtual bool | operatesInPlace () const |
| VRS_TYPEINFO (ImageCopyOp, ImageManipulator) | |
Static Public Member Functions | |
| static void | copyImage (Image *src, Image *dst, bool scale=true, bool ignoreROIandLOI=false) |
| static void | copyLayer (Image *src, Image *dst, int srcLayer, int dstLayer, bool scale=true, bool ignoreROIandLOI=false) |
| static void | copyGreyScale (Image *src, Image *dst, bool scale=true, bool ignoreROIandLOI=false) |
| static void | exchange (Image *src, Image *dst, bool scale=true, bool ignoreROIandLOI=false) |
| VRS::ImageCopyOp::ImageCopyOp | ( | int | opType, | |
| int | srcLayer = 0, |
|||
| int | dstLayer = 0, |
|||
| bool | scale = true, |
|||
| bool | ignoreROIandLOI = false | |||
| ) |
A copy-operation object encapsulates one copy operation applied to a source and a target image. The CopyLayer- operation requires the parameter 'srcLayer' and 'dstLayer' which must be one of the values of Image::Layers (e.g. Image::Red, Image::Luminance, ...). The other copy-operations ignore these values. If the source and destination regions have different sizes the source image will be
| VRS::ImageCopyOp::VRS_SERIALIZABLE_CLASS_ENUM | ( | Operation | ) |
| void VRS::ImageCopyOp::setOperation | ( | int | opType | ) |
| int VRS::ImageCopyOp::getOperation | ( | ) | const |
Sets/returns the operation type of the copy-operation object.
| void VRS::ImageCopyOp::setSourceLayer | ( | int | srcLayer | ) |
| void VRS::ImageCopyOp::setDestLayer | ( | int | dstLayer | ) |
| int VRS::ImageCopyOp::getSourceLayer | ( | ) | const |
| int VRS::ImageCopyOp::getDestLayer | ( | ) | const |
Sets/returns the corresponding layer. All but the CopyLayer- operation ignore these values.
The image operation is apply to the source image and the the resulting image is stored in the target image. The handle of the target image is returned.
Implements VRS::ImageManipulator.
| virtual bool VRS::ImageCopyOp::operatesInPlace | ( | ) | const [virtual] |
See `ImageManipulator'. This manipulator can operate in place.
Reimplemented from VRS::ImageManipulator.
| static void VRS::ImageCopyOp::copyImage | ( | Image * | src, | |
| Image * | dst, | |||
| bool | scale = true, |
|||
| bool | ignoreROIandLOI = false | |||
| ) | [static] |
| static void VRS::ImageCopyOp::copyLayer | ( | Image * | src, | |
| Image * | dst, | |||
| int | srcLayer, | |||
| int | dstLayer, | |||
| bool | scale = true, |
|||
| bool | ignoreROIandLOI = false | |||
| ) | [static] |
| static void VRS::ImageCopyOp::copyGreyScale | ( | Image * | src, | |
| Image * | dst, | |||
| bool | scale = true, |
|||
| bool | ignoreROIandLOI = false | |||
| ) | [static] |
| static void VRS::ImageCopyOp::exchange | ( | Image * | src, | |
| Image * | dst, | |||
| bool | scale = true, |
|||
| bool | ignoreROIandLOI = false | |||
| ) | [static] |
| VRS::ImageCopyOp::VRS_TYPEINFO | ( | ImageCopyOp | , | |
| ImageManipulator | ||||
| ) |