ddt 1.2.1
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
DdtImageGraphicsItem Class Referenceabstract

#include <ddtImageGraphicsItem.hpp>

Inheritance diagram for DdtImageGraphicsItem:
DdtCPLImageGraphicsItem DdtCPLInversGraphicsItem

Public Types

enum  { ITEM_TYPE = 66036 }
 

Public Member Functions

QRectF boundingRect () const =0
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)=0
 
virtual QImage * GetImage ()=0
 
virtual int type () const =0
 
 DdtImageGraphicsItem ()
 
virtual ~DdtImageGraphicsItem ()
 

Detailed Description

Class derived from QGraphicsItems used to display DDT Images

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Graphics item type. This is calculated from the QGraphicsItem::UserType value (65536) and adding a specific value (500)

Enumerator
ITEM_TYPE 

Type of graphics item.

Constructor & Destructor Documentation

◆ DdtImageGraphicsItem()

DdtImageGraphicsItem::DdtImageGraphicsItem ( )

Constructor

◆ ~DdtImageGraphicsItem()

DdtImageGraphicsItem::~DdtImageGraphicsItem ( )
virtualdefault

Destructor

Member Function Documentation

◆ boundingRect()

QRectF DdtImageGraphicsItem::boundingRect ( ) const
pure virtual

Function returning the bounding box of the graphics item

Returns
Rectangle with the bounding box

Implemented in DdtCPLImageGraphicsItem, and DdtCPLInversGraphicsItem.

◆ GetImage()

virtual QImage * DdtImageGraphicsItem::GetImage ( )
pure virtual

Method to retrieve the current rendered image as QImage

Returns
QImage Pointer to the image

Implemented in DdtCPLImageGraphicsItem, and DdtCPLInversGraphicsItem.

◆ paint()

void DdtImageGraphicsItem::paint ( QPainter * painter,
const QStyleOptionGraphicsItem * option,
QWidget * widget )
pure virtual

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

Implemented in DdtCPLImageGraphicsItem, and DdtCPLInversGraphicsItem.

◆ type()

virtual int DdtImageGraphicsItem::type ( ) const
pure virtual

Check type of graphics item

Returns
type

Implemented in DdtCPLImageGraphicsItem, and DdtCPLInversGraphicsItem.


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