|
ddt
0.1
|
#include <ddtCPLImageGraphicsItem.hpp>
Public Types | |
| enum | { Type = UserType + 500 } |
Public Member Functions | |
| DdtCPLImageGraphicsItem () | |
| DdtCPLImageGraphicsItem (cpl_image *image) | |
| DdtCPLImageGraphicsItem (cpl_image *image, ddt::colorMap_t *color_map, ddt::scalingLut_t *scaling_lut) | |
| DdtCPLImageGraphicsItem (cpl_image *image, ddt::colorMapARGB_t *color_map, ddt::scalingLut_t *scaling_lut) | |
| virtual | ~DdtCPLImageGraphicsItem () |
| QRectF | boundingRect () const |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
| virtual QImage * | GetImage () |
| int | type () const |
Protected Attributes | |
| cpl_image * | image |
| QImage * | qimage |
Class derived from QGraphicsItems used to display CPL Images
| DdtCPLImageGraphicsItem::DdtCPLImageGraphicsItem | ( | ) |
Constructor
| DdtCPLImageGraphicsItem::DdtCPLImageGraphicsItem | ( | cpl_image * | image | ) |
Constructor
| image | cpl_image used to create the graphics item |
| DdtCPLImageGraphicsItem::DdtCPLImageGraphicsItem | ( | cpl_image * | image, |
| ddt::colorMap_t * | color_map, | ||
| ddt::scalingLut_t * | scaling_lut | ||
| ) |
Constructor. It takes a CPL image and a color map as arguments.
| image | cpl_image used to create the graphics item |
| color_map | color map to be applied on the image |
| scaling_lut | the scaling LUT to be applied |
| DdtCPLImageGraphicsItem::DdtCPLImageGraphicsItem | ( | cpl_image * | image, |
| ddt::colorMapARGB_t * | color_map, | ||
| ddt::scalingLut_t * | scaling_lut | ||
| ) |
Constructor. It takes a CPL image and a color map as arguments.
| image | cpl_image used to create the graphics item |
| color_map | color map containing ARGB values to be applied on the image |
| scaling_lut | the scaling LUT to be applied |
|
virtual |
Destructor
| QRectF DdtCPLImageGraphicsItem::boundingRect | ( | ) | const |
Function returning the bounding box of the graphics item
|
virtual |
Method to retrieve the current rendered image as QImage
| void DdtCPLImageGraphicsItem::paint | ( | QPainter * | painter, |
| const QStyleOptionGraphicsItem * | option, | ||
| QWidget * | widget | ||
| ) |
Method used to paint the graphics item
| painter | Pointer to the painter painting the graphics item |
| option | Pointer to the style options |
| widget | Pointer to the parent widget |
| int DdtCPLImageGraphicsItem::type | ( | ) | const |
Check type of graphics item
|
protected |
Image representation as cpl_image
|
protected |
Image representation as QImage