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

#include <ddtGraphicalElementCross.hpp>

Inheritance diagram for DdtGraphicalElementCross:
DdtGraphicalElement

Public Member Functions

 DdtGraphicalElementCross (DdtGraphicalElementProperties element_properties, int x, int y, int size)
 
virtual ~DdtGraphicalElementCross ()
 
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 x
 
int y
 
int size
 
- Protected Attributes inherited from DdtGraphicalElement
DdtGraphicalElementProperties element_properties
 
DdtOverlayType element_type
 

Detailed Description

Class for the graphical elements drawing crosses

Constructor & Destructor Documentation

◆ DdtGraphicalElementCross()

DdtGraphicalElementCross::DdtGraphicalElementCross ( DdtGraphicalElementProperties  element_properties,
int  x,
int  y,
int  size 
)
explicit

Constructor

◆ ~DdtGraphicalElementCross()

DdtGraphicalElementCross::~DdtGraphicalElementCross ( )
virtualdefault

Destructor

Member Function Documentation

◆ boundingRect()

QRectF DdtGraphicalElementCross::boundingRect ( ) const
virtual

Function returning the bounding box of the graphics item

Returns
Rectangle with the bounding box

Reimplemented from DdtGraphicalElement.

◆ DrawElement()

void DdtGraphicalElementCross::DrawElement ( QPainter *  painter)
virtual

Virtual function for rendering the graphical element

Implements DdtGraphicalElement.

◆ type()

int DdtGraphicalElementCross::type ( ) const

Check type of graphics item

Returns
type

Member Data Documentation

◆ size

int DdtGraphicalElementCross::size
protected

size of the cross

◆ x

int DdtGraphicalElementCross::x
protected

x position of center

◆ y

int DdtGraphicalElementCross::y
protected

y position of center


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