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

#include <ddtCPLInversGraphicsItem.hpp>

Inheritance diagram for DdtCPLInversGraphicsItem:
DdtImageGraphicsItem

Public Types

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

Protected Attributes

cpl_image * cimage
 
QImage * qimage
 
 DdtCPLInversGraphicsItem ()
 
 DdtCPLInversGraphicsItem (cpl_image *const in_image)
 
 DdtCPLInversGraphicsItem (cpl_image *const in_image, ddt::colorMap_t *const color_map, ddt::scalingLut_t *scaling_lut)
 
 DdtCPLInversGraphicsItem (cpl_image *const in_image, ddt::colorMapARGB_t *const color_map, ddt::scalingLut_t *scaling_lut)
 
 ~DdtCPLInversGraphicsItem () override
 
QRectF boundingRect () const override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 
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 inverted

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

◆ DdtCPLInversGraphicsItem() [1/4]

DdtCPLInversGraphicsItem::DdtCPLInversGraphicsItem ( )

Constructor

◆ DdtCPLInversGraphicsItem() [2/4]

DdtCPLInversGraphicsItem::DdtCPLInversGraphicsItem ( cpl_image *const in_image)
explicit

Constructor

Parameters
in_imagecpl_image used to create the graphics item

◆ DdtCPLInversGraphicsItem() [3/4]

DdtCPLInversGraphicsItem::DdtCPLInversGraphicsItem ( 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

◆ DdtCPLInversGraphicsItem() [4/4]

DdtCPLInversGraphicsItem::DdtCPLInversGraphicsItem ( 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

◆ ~DdtCPLInversGraphicsItem()

DdtCPLInversGraphicsItem::~DdtCPLInversGraphicsItem ( )
override

Destructor

Member Function Documentation

◆ boundingRect()

QRectF DdtCPLInversGraphicsItem::boundingRect ( ) const
overridevirtual

Function returning the bounding box of the graphics item

Returns
Rectangle with the bounding box

Implements DdtImageGraphicsItem.

◆ GetImage()

QImage * DdtCPLInversGraphicsItem::GetImage ( )
overridevirtual

Method to retrieve the current rendered image as QImage

Returns
QImage Pointer to the image

Implements DdtImageGraphicsItem.

◆ paint()

void DdtCPLInversGraphicsItem::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 DdtCPLInversGraphicsItem::type ( ) const
overridevirtual

Check type of graphics item

Returns
type

Implements DdtImageGraphicsItem.

Member Data Documentation

◆ cimage

cpl_image* DdtCPLInversGraphicsItem::cimage
protected

Image representation as cpl_image

◆ qimage

QImage* DdtCPLInversGraphicsItem::qimage
protected

Image representation as QImage


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