ddt 1.2.1
Loading...
Searching...
No Matches
Public Types | Protected Attributes | List of all members
DdtCPLImageGraphicsItem Class Reference

#include <ddtCPLImageGraphicsItem.hpp>

Inheritance diagram for DdtCPLImageGraphicsItem:
DdtImageGraphicsItem

Public Types

enum  { ITEM_TYPE = 66036 }
 
- Public Types inherited from DdtImageGraphicsItem
enum  { ITEM_TYPE = 66036 }
 

Protected Attributes

cpl_image * cimage
 
QImage * qimage
 
 DdtCPLImageGraphicsItem ()
 
 DdtCPLImageGraphicsItem (cpl_image *const in_image)
 
 DdtCPLImageGraphicsItem (cpl_image *const in_image, ddt::colorMap_t *const color_map, ddt::scalingLut_t *scaling_lut)
 
 DdtCPLImageGraphicsItem (cpl_image *const in_image, ddt::colorMapARGB_t *const color_map, ddt::scalingLut_t *scaling_lut)
 
virtual ~DdtCPLImageGraphicsItem ()
 
QRectF boundingRect () const override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 
virtual QImage * GetImage () override
 
int type () const override
 

Additional Inherited Members

- Public Member Functions inherited from DdtImageGraphicsItem
 DdtImageGraphicsItem ()
 
virtual ~DdtImageGraphicsItem ()
 

Detailed Description

Class derived from QGraphicsItems used to display CPL Images

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Type of graphics item This is calculated from the QGraphicsItem::UserType value (65536) and adding a specific value (500)

Enumerator
ITEM_TYPE 

Constructor & Destructor Documentation

◆ DdtCPLImageGraphicsItem() [1/4]

DdtCPLImageGraphicsItem::DdtCPLImageGraphicsItem ( )

Constructor

◆ DdtCPLImageGraphicsItem() [2/4]

DdtCPLImageGraphicsItem::DdtCPLImageGraphicsItem ( cpl_image *const in_image)
explicit

Constructor

Parameters
in_imagecpl_image used to create the graphics item

◆ DdtCPLImageGraphicsItem() [3/4]

DdtCPLImageGraphicsItem::DdtCPLImageGraphicsItem ( cpl_image *const in_image,
ddt::colorMap_t *const color_map,
ddt::scalingLut_t * scaling_lut )

Constructor. It takes a CPL image and a color map as arguments.

Parameters
in_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 *const in_image,
ddt::colorMapARGB_t *const color_map,
ddt::scalingLut_t * scaling_lut )

Constructor. It takes a CPL image and a color map as arguments.

Parameters
in_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
overridevirtual

Function returning the bounding box of the graphics item

Returns
Rectangle with the bounding box

Implements DdtImageGraphicsItem.

◆ GetImage()

QImage * DdtCPLImageGraphicsItem::GetImage ( )
overridevirtual

Method to retrieve the current rendered image as QImage

Returns
QImage Pointer to the image

Implements DdtImageGraphicsItem.

◆ paint()

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

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

Implements DdtImageGraphicsItem.

◆ type()

int DdtCPLImageGraphicsItem::type ( ) const
overridevirtual

Check type of graphics item

Returns
type

Implements DdtImageGraphicsItem.

Member Data Documentation

◆ cimage

cpl_image* DdtCPLImageGraphicsItem::cimage
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: