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

#include <ddtJPEGImageGraphicsItem.hpp>

Inheritance diagram for DdtJPEGImageGraphicsItem:
DdtImageGraphicsItem

Public Types

enum  { Type = UserType + 500 }
 
- Public Types inherited from DdtImageGraphicsItem
enum  { Type = UserType + 500 }
 

Public Member Functions

 DdtJPEGImageGraphicsItem ()
 
 DdtJPEGImageGraphicsItem (QImage image)
 
virtual ~DdtJPEGImageGraphicsItem ()
 
QRectF boundingRect () const
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
 
virtual QImage * GetImage ()
 
int type () const
 
- Public Member Functions inherited from DdtImageGraphicsItem
 DdtImageGraphicsItem ()
 
 DdtImageGraphicsItem (QImage image)
 
virtual ~DdtImageGraphicsItem ()
 

Protected Attributes

QImage image
 
- Protected Attributes inherited from DdtImageGraphicsItem
QImage image
 

Detailed Description

Class derived from QGraphicsItems used to display JPEG Images

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Type of graphics item

Enumerator
Type 

Constructor & Destructor Documentation

◆ DdtJPEGImageGraphicsItem() [1/2]

DdtJPEGImageGraphicsItem::DdtJPEGImageGraphicsItem ( )

Constructor

◆ DdtJPEGImageGraphicsItem() [2/2]

DdtJPEGImageGraphicsItem::DdtJPEGImageGraphicsItem ( QImage  image)

Constructor to construct the image object from

◆ ~DdtJPEGImageGraphicsItem()

DdtJPEGImageGraphicsItem::~DdtJPEGImageGraphicsItem ( )
virtualdefault

Destructor

Member Function Documentation

◆ boundingRect()

QRectF DdtJPEGImageGraphicsItem::boundingRect ( ) const
virtual

Function returning the bounding box of the graphics item

Returns
Rectangle with the bounding box

Implements DdtImageGraphicsItem.

◆ GetImage()

QImage * DdtJPEGImageGraphicsItem::GetImage ( )
virtual

Method to retrieve the current rendered image as QImage

Returns
QImage Pointer to the image

Implements DdtImageGraphicsItem.

◆ paint()

void DdtJPEGImageGraphicsItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
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

Implements DdtImageGraphicsItem.

◆ type()

int DdtJPEGImageGraphicsItem::type ( ) const
virtual

Check type of graphics item

Returns
type

Implements DdtImageGraphicsItem.

Member Data Documentation

◆ image

QImage DdtJPEGImageGraphicsItem::image
protected

Image represented as QImage


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