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

#include <ddtGraphicalElementImage.hpp>

Inheritance diagram for DdtGraphicalElementImage:
DdtGraphicalElement

Public Member Functions

 DdtGraphicalElementImage (const DdtGraphicalElementProperties &element_properties, const int x, const int y, const int width, const int height, const QString file_name)
 
 ~DdtGraphicalElementImage () override
 
void DrawElement (QPainter *painter) override
 
QRectF boundingRect () const override
 
int type () const override
 
- Public Member Functions inherited from DdtGraphicalElement
 DdtGraphicalElement (DdtGraphicalElementProperties element_properties)
 
virtual ~DdtGraphicalElement ()
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
 
virtual bool IsHidden ()
 
virtual float ScaleThreshold ()
 
virtual void SetShowFlag (bool show)
 
virtual DdtOverlayType GetType ()
 
virtual QString GetTypeString ()
 
virtual QString GetTag ()
 

Protected Attributes

int x
 
int y
 
int width
 
int height
 
QString filename
 
- Protected Attributes inherited from DdtGraphicalElement
DdtGraphicalElementProperties element_properties
 
DdtOverlayType element_type
 

Detailed Description

Class for the graphical elements drawing images (with transparent background)

Constructor & Destructor Documentation

◆ DdtGraphicalElementImage()

DdtGraphicalElementImage::DdtGraphicalElementImage ( const DdtGraphicalElementProperties element_properties,
const int  x,
const int  y,
const int  width,
const int  height,
const QString  file_name 
)
explicit

Constructor

◆ ~DdtGraphicalElementImage()

DdtGraphicalElementImage::~DdtGraphicalElementImage ( )
overridedefault

Destructor

Member Function Documentation

◆ boundingRect()

QRectF DdtGraphicalElementImage::boundingRect ( ) const
overridevirtual

Function returning the bounding box of the graphics item

Returns
Rectangle with the bounding box

Reimplemented from DdtGraphicalElement.

◆ DrawElement()

void DdtGraphicalElementImage::DrawElement ( QPainter *  painter)
overridevirtual

Virtual function for rendering the graphical element

Implements DdtGraphicalElement.

◆ type()

int DdtGraphicalElementImage::type ( ) const
override

Check type of graphics item

Returns
type

Member Data Documentation

◆ filename

QString DdtGraphicalElementImage::filename
protected

filename the filename of the image

◆ height

int DdtGraphicalElementImage::height
protected

height of rectangle to draw image into

◆ width

int DdtGraphicalElementImage::width
protected

width of rectangle to draw image into

◆ x

int DdtGraphicalElementImage::x
protected

x position of first point

◆ y

int DdtGraphicalElementImage::y
protected

y position of first point


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