ddt
0.1
datavisualisation
rendering
src
include
ddt
ddtImageGraphicsItem.hpp
Go to the documentation of this file.
1
// @copyright
2
// (c) Copyright ESO 2020
3
// All Rights Reserved
4
// ESO (eso.org) is an Intergovernmental Organization, and therefore special
5
// legal conditions apply.
6
//
7
// @file ddtImageGraphicsItem.hpp
8
// @brief DDT Widgets. Class for CPL Image Graphics Items.
9
//
10
// Class derived from QGraphicsItem. Base class for all types of DDT Images.
11
//
12
// @author Carsten Mannel, CGI
13
// @since 2020/03/11
14
//
15
16
#ifndef DDT_DATAVISUALISATION_DDTWIDGETS_DDT_IMAGE_GRAPHICSITEM_HPP
17
#define DDT_DATAVISUALISATION_DDTWIDGETS_DDT_IMAGE_GRAPHICSITEM_HPP
18
19
#include <QGraphicsItem>
20
#include <QPainter>
21
25
class
DdtImageGraphicsItem
:
public
QGraphicsItem {
26
public
:
30
DdtImageGraphicsItem
();
31
35
virtual
~DdtImageGraphicsItem
();
36
41
QRectF
boundingRect
()
const
= 0;
48
void
paint
(QPainter* painter,
const
QStyleOptionGraphicsItem* option,
49
QWidget* widget) = 0;
50
55
virtual
QImage*
GetImage
() = 0;
56
62
enum
{
ITEM_TYPE
= 66036 };
63
68
virtual
int
type
()
const
= 0;
69
70
protected
:
71
private
:
75
void
Init();
76
};
77
78
#endif // DDT_DATAVISUALISATION_DDTWIDGETS_DDT_IMAGE_GRAPHICSITEM_HPP
DdtImageGraphicsItem::type
virtual int type() const =0
DdtImageGraphicsItem
Definition:
ddtImageGraphicsItem.hpp:25
DdtImageGraphicsItem::~DdtImageGraphicsItem
virtual ~DdtImageGraphicsItem()
DdtImageGraphicsItem::paint
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)=0
DdtImageGraphicsItem::ITEM_TYPE
@ ITEM_TYPE
Definition:
ddtImageGraphicsItem.hpp:62
DdtImageGraphicsItem::DdtImageGraphicsItem
DdtImageGraphicsItem()
Definition:
ddtImageGraphicsItem.cpp:18
DdtImageGraphicsItem::GetImage
virtual QImage * GetImage()=0
DdtImageGraphicsItem::boundingRect
QRectF boundingRect() const =0
Generated by
1.8.20