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

#include <ddtGraphicalElementCompass.hpp>

Inheritance diagram for DdtGraphicalElementCompass:
DdtGraphicalElement

Public Member Functions

 DdtGraphicalElementCompass (const DdtGraphicalElementProperties element_properties, const double x, const double y, const double w, const double h)
 
virtual ~DdtGraphicalElementCompass ()
 
virtual void DrawElement (QPainter *painter)
 
QRectF boundingRect () const
 
int type () const
 
void SetFirstAxisLabel (const QString label)
 
void SetSecondAxisLabel (const QString label)
 
- 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
 
QString first_axis_label = "N"
 
QString second_axis_label = "E"
 
- Protected Attributes inherited from DdtGraphicalElement
DdtGraphicalElementProperties element_properties
 
DdtOverlayType element_type
 

Detailed Description

Class for the graphical elements drawing rectangles

Constructor & Destructor Documentation

◆ DdtGraphicalElementCompass()

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

Constructor

◆ ~DdtGraphicalElementCompass()

DdtGraphicalElementCompass::~DdtGraphicalElementCompass ( )
virtualdefault

Destructor

Member Function Documentation

◆ boundingRect()

QRectF DdtGraphicalElementCompass::boundingRect ( ) const
virtual

Function returning the bounding box of the graphics item

Returns
Rectangle with the bounding box

Reimplemented from DdtGraphicalElement.

◆ DrawElement()

void DdtGraphicalElementCompass::DrawElement ( QPainter *  painter)
virtual

Virtual function for rendering the graphical element

Implements DdtGraphicalElement.

◆ SetFirstAxisLabel()

void DdtGraphicalElementCompass::SetFirstAxisLabel ( const QString  label)

Set the label for the first axis (is initialized to "N")

◆ SetSecondAxisLabel()

void DdtGraphicalElementCompass::SetSecondAxisLabel ( const QString  label)

Set the label for the second axis (is initialized to "E")

◆ type()

int DdtGraphicalElementCompass::type ( ) const

Check type of graphics item

Returns
type

Member Data Documentation

◆ first_axis_label

QString DdtGraphicalElementCompass::first_axis_label = "N"
protected

Label for the first axis

◆ height

double DdtGraphicalElementCompass::height
protected

Height of rectangle

◆ second_axis_label

QString DdtGraphicalElementCompass::second_axis_label = "E"
protected

Label for the second axis

◆ width

double DdtGraphicalElementCompass::width
protected

Width of rectangle

◆ x

double DdtGraphicalElementCompass::x
protected

x position of rectangle

◆ y

double DdtGraphicalElementCompass::y
protected

y position of rectangle


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