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

#include <ddtGraphicalElementLine.hpp>

Inheritance diagram for DdtGraphicalElementLine:
DdtGraphicalElement

Public Member Functions

 DdtGraphicalElementLine (DdtGraphicalElementProperties element_properties, int x1, int y1, int x2, int y2)
 
virtual ~DdtGraphicalElementLine ()
 
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

int x1
 
int y1
 
int x2
 
int y2
 
- Protected Attributes inherited from DdtGraphicalElement
DdtGraphicalElementProperties element_properties
 
DdtOverlayType element_type
 

Detailed Description

Class for the graphical elements drawing lines

Constructor & Destructor Documentation

◆ DdtGraphicalElementLine()

DdtGraphicalElementLine::DdtGraphicalElementLine ( DdtGraphicalElementProperties  element_properties,
int  x1,
int  y1,
int  x2,
int  y2 
)
explicit

Constructor

◆ ~DdtGraphicalElementLine()

DdtGraphicalElementLine::~DdtGraphicalElementLine ( )
virtualdefault

Destructor

Member Function Documentation

◆ boundingRect()

QRectF DdtGraphicalElementLine::boundingRect ( ) const
virtual

Function returning the bounding box of the graphics item

Returns
Rectangle with the bounding box

Reimplemented from DdtGraphicalElement.

◆ DrawElement()

void DdtGraphicalElementLine::DrawElement ( QPainter *  painter)
virtual

Virtual function for rendering the graphical element

Implements DdtGraphicalElement.

◆ type()

int DdtGraphicalElementLine::type ( ) const

Check type of graphics item

Returns
type

Member Data Documentation

◆ x1

int DdtGraphicalElementLine::x1
protected

x position of first point

◆ x2

int DdtGraphicalElementLine::x2
protected

x position of second point

◆ y1

int DdtGraphicalElementLine::y1
protected

y position of first point

◆ y2

int DdtGraphicalElementLine::y2
protected

y position of second point


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