ddt  0.1
Public Member Functions | Protected Attributes | List of all members
DdtGraphicalElement Class Referenceabstract

#include <ddtGraphicalElement.hpp>

Inheritance diagram for DdtGraphicalElement:
DdtGraphicalElementCompass DdtGraphicalElementCross DdtGraphicalElementEllipse DdtGraphicalElementImage DdtGraphicalElementLine DdtGraphicalElementRectangle DdtGraphicalElementRefLine DdtGraphicalElementSlit DdtGraphicalElementStatRectangle DdtGraphicalElementText

Public Member Functions

 DdtGraphicalElement (DdtGraphicalElementProperties element_properties)
 
virtual ~DdtGraphicalElement ()
 
virtual void DrawElement (QPainter *painter)=0
 
virtual QRectF boundingRect () const
 
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

DdtGraphicalElementProperties element_properties
 
DdtOverlayType element_type
 

Detailed Description

Base class for the graphical elements

Constructor & Destructor Documentation

◆ DdtGraphicalElement()

DdtGraphicalElement::DdtGraphicalElement ( DdtGraphicalElementProperties  element_properties)
explicit

Constructor

◆ ~DdtGraphicalElement()

DdtGraphicalElement::~DdtGraphicalElement ( )
virtualdefault

Destructor

Member Function Documentation

◆ boundingRect()

QRectF DdtGraphicalElement::boundingRect ( ) const
virtual

◆ DrawElement()

virtual void DdtGraphicalElement::DrawElement ( QPainter *  painter)
pure virtual

◆ GetTag()

QString DdtGraphicalElement::GetTag ( )
virtual

Getter for tags

◆ GetType()

DdtOverlayType DdtGraphicalElement::GetType ( )
virtual

Getter of element type

◆ GetTypeString()

QString DdtGraphicalElement::GetTypeString ( )
virtual

Getter of element type string representation

◆ IsHidden()

bool DdtGraphicalElement::IsHidden ( )
virtual

Checks if the graphical element shall be hidden

◆ paint()

void DdtGraphicalElement::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)

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

◆ ScaleThreshold()

float DdtGraphicalElement::ScaleThreshold ( )
virtual

Check the threshold scale value for this graphical element

◆ SetShowFlag()

void DdtGraphicalElement::SetShowFlag ( bool  show)
virtual

Set show flag

Member Data Documentation

◆ element_properties

DdtGraphicalElementProperties DdtGraphicalElement::element_properties
protected

Element properties

◆ element_type

DdtOverlayType DdtGraphicalElement::element_type
protected

Type of overlay element


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