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

#include <ddtGraphicalElementSlit.hpp>

Inheritance diagram for DdtGraphicalElementSlit:
DdtGraphicalElement

Public Member Functions

 DdtGraphicalElementSlit (const DdtGraphicalElementProperties element_properties, const double x, const double y, const double w, const double h)
 
virtual ~DdtGraphicalElementSlit ()
 
virtual void DrawElement (QPainter *painter)
 
QRectF boundingRect () const
 
int type () const
 
- 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

double x
 
double y
 
double width
 
double height
 
- Protected Attributes inherited from DdtGraphicalElement
DdtGraphicalElementProperties element_properties
 
DdtOverlayType element_type
 

Detailed Description

Class for the graphical elements drawing rectangles

Constructor & Destructor Documentation

◆ DdtGraphicalElementSlit()

DdtGraphicalElementSlit::DdtGraphicalElementSlit ( const DdtGraphicalElementProperties  element_properties,
const double  x,
const double  y,
const double  w,
const double  h 
)
explicit

Constructor

◆ ~DdtGraphicalElementSlit()

DdtGraphicalElementSlit::~DdtGraphicalElementSlit ( )
virtualdefault

Destructor

Member Function Documentation

◆ boundingRect()

QRectF DdtGraphicalElementSlit::boundingRect ( ) const
virtual

Function returning the bounding box of the graphics item

Returns
Rectangle with the bounding box

Reimplemented from DdtGraphicalElement.

◆ DrawElement()

void DdtGraphicalElementSlit::DrawElement ( QPainter *  painter)
virtual

Virtual function for rendering the graphical element

Implements DdtGraphicalElement.

◆ type()

int DdtGraphicalElementSlit::type ( ) const

Check type of graphics item

Returns
type

Member Data Documentation

◆ height

double DdtGraphicalElementSlit::height
protected

Height of rectangle

◆ width

double DdtGraphicalElementSlit::width
protected

Width of rectangle

◆ x

double DdtGraphicalElementSlit::x
protected

x position of rectangle

◆ y

double DdtGraphicalElementSlit::y
protected

y position of rectangle


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