ddt  0.1
Public Types | Public Member Functions | Protected Attributes | List of all members
DdtImageGraphicsItem Class Referenceabstract

#include <ddtImageGraphicsItem.hpp>

Inheritance diagram for DdtImageGraphicsItem:
DdtJPEGImageGraphicsItem

Public Types

enum  { Type = UserType + 500 }
 

Public Member Functions

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

Protected Attributes

QImage image
 

Detailed Description

Class derived from QGraphicsItems used to display DDT Images

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Type of graphics item

Enumerator
Type 

Constructor & Destructor Documentation

◆ DdtImageGraphicsItem() [1/2]

DdtImageGraphicsItem::DdtImageGraphicsItem ( )

Constructor

◆ DdtImageGraphicsItem() [2/2]

DdtImageGraphicsItem::DdtImageGraphicsItem ( QImage  image)

Constructor

Parameters
imageQImage used to create the graphics item

◆ ~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 DdtJPEGImageGraphicsItem.

◆ GetImage()

virtual QImage* DdtImageGraphicsItem::GetImage ( )
pure virtual

Method to retrieve the current rendered image as QImage

Returns
QImage Pointer to the image

Implemented in DdtJPEGImageGraphicsItem.

◆ 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 DdtJPEGImageGraphicsItem.

◆ type()

virtual int DdtImageGraphicsItem::type ( ) const
pure virtual

Check type of graphics item

Returns
type

Implemented in DdtJPEGImageGraphicsItem.

Member Data Documentation

◆ image

QImage DdtImageGraphicsItem::image
protected

Image represented as QImage


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