ddt  0.1
Public Types | Public Member Functions | Protected Attributes | List of all members
DdtCPLImageGraphicsItem Class Reference

#include <ddtCPLImageGraphicsItem.hpp>

Inheritance diagram for DdtCPLImageGraphicsItem:

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
 

Detailed Description

Class derived from QGraphicsItems used to display CPL Images

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Type of graphics item

Enumerator
Type 

Constructor & Destructor Documentation

◆ DdtCPLImageGraphicsItem() [1/4]

DdtCPLImageGraphicsItem::DdtCPLImageGraphicsItem ( )

Constructor

◆ DdtCPLImageGraphicsItem() [2/4]

DdtCPLImageGraphicsItem::DdtCPLImageGraphicsItem ( cpl_image *  image)

Constructor

Parameters
imagecpl_image used to create the graphics item

◆ DdtCPLImageGraphicsItem() [3/4]

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.

Parameters
imagecpl_image used to create the graphics item
color_mapcolor map to be applied on the image
scaling_lutthe scaling LUT to be applied

◆ DdtCPLImageGraphicsItem() [4/4]

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.

Parameters
imagecpl_image used to create the graphics item
color_mapcolor map containing ARGB values to be applied on the image
scaling_lutthe scaling LUT to be applied

◆ ~DdtCPLImageGraphicsItem()

DdtCPLImageGraphicsItem::~DdtCPLImageGraphicsItem ( )
virtual

Destructor

Member Function Documentation

◆ boundingRect()

QRectF DdtCPLImageGraphicsItem::boundingRect ( ) const

Function returning the bounding box of the graphics item

Returns
Rectangle with the bounding box

◆ GetImage()

QImage * DdtCPLImageGraphicsItem::GetImage ( )
virtual

Method to retrieve the current rendered image as QImage

Returns
QImage Pointer to the image

◆ paint()

void DdtCPLImageGraphicsItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)

Method used to paint the graphics item

Parameters
painterPointer to the painter painting the graphics item
optionPointer to the style options
widgetPointer to the parent widget

◆ type()

int DdtCPLImageGraphicsItem::type ( ) const

Check type of graphics item

Returns
type

Member Data Documentation

◆ image

cpl_image* DdtCPLImageGraphicsItem::image
protected

Image representation as cpl_image

◆ qimage

QImage* DdtCPLImageGraphicsItem::qimage
protected

Image representation as QImage


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