ddt 1.2.1
Loading...
Searching...
No Matches
Protected Attributes | List of all members
DdtGraphicalElementPickMarker Class Reference

#include <ddtGraphicalElementPickMarker.hpp>

Inheritance diagram for DdtGraphicalElementPickMarker:
DdtGraphicalElement

Public Member Functions

 DdtGraphicalElementPickMarker (const DdtGraphicalElementProperties element_properties, const double px, const double py, const double size_px, const double size_py)
 
 ~DdtGraphicalElementPickMarker ()
 
void DrawElement (QPainter *painter) final
 
QRectF boundingRect () const final
 
int type () const final
 
- Public Member Functions inherited from DdtGraphicalElement
 DdtGraphicalElement (DdtGraphicalElementProperties const &element_properties, const QString obj_name="", const QString elem_name="")
 
virtual ~DdtGraphicalElement ()
 
virtual QRectF RotateBoundingBox (QRectF const &original_bounding_box) const
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 
void DrawBoundingBox (QPainter *painter) const
 
void EditElementProperties (const DdtGraphicalElementProperties &properties)
 
virtual void HighlightSelectedElement (QPainter *painter) const
 
virtual bool IsHidden ()
 
virtual float ScaleThreshold ()
 
virtual void SetShowFlag (bool show)
 
virtual DdtOverlayType GetType ()
 
virtual QString GetTypeString ()
 
virtual QString GetTag ()
 
virtual void SetTransform (QTransform const &transform)
 
void SetIsEditable (const bool editable)
 
void SetItemIsSelected (const bool is_selected)
 
void SetIsHovering (const bool item_is_hovering)
 
bool GetIsEditable () const
 
bool GetItemIsSelected () const
 
QString GetObjectName () const
 
QString GetElementName () const
 
bool GetIsHovering () const
 
const DdtGraphicalElementPropertiesGetElementProperties ()
 

Protected Attributes

double x
 
double y
 
double size_x
 
double size_y
 
- Protected Attributes inherited from DdtGraphicalElement
DdtGraphicalElementProperties element_properties
 
DdtOverlayType element_type
 
QPointF location
 
QPointF drag_start
 
qreal corner_size
 
bool is_hovering
 
QString object_name
 
QString element_name
 

Additional Inherited Members

- Public Attributes inherited from DdtGraphicalElement
const int LIGHTER_FACTOR = 200
 
const int SCALE_DIFFERENCE_FACTOR = 20
 
- Protected Member Functions inherited from DdtGraphicalElement
void mouseMoveEvent (QGraphicsSceneMouseEvent *const event) override
 
void mousePressEvent (QGraphicsSceneMouseEvent *const event) override
 
bool HandleEvent (PointGrabber *const corner, QEvent *const event) const
 

Detailed Description

Class for the graphical elements drawing the pick marker

Constructor & Destructor Documentation

◆ DdtGraphicalElementPickMarker()

DdtGraphicalElementPickMarker::DdtGraphicalElementPickMarker ( const DdtGraphicalElementProperties element_properties,
const double px,
const double py,
const double size_px,
const double size_py )
explicit

Constructor used for drawing a pick marker

Parameters
element_propertiesDDT graphical element properties object.
pxx coordinate of the graphical element.
pyy coordinate of the graphical element.
size_pxSize x of the graphical element.
size_pySize y of the graphical element.

◆ ~DdtGraphicalElementPickMarker()

DdtGraphicalElementPickMarker::~DdtGraphicalElementPickMarker ( )
default

Destructor

Member Function Documentation

◆ boundingRect()

QRectF DdtGraphicalElementPickMarker::boundingRect ( ) const
finalvirtual

Function returning the bounding box of the graphics item

Returns
Rectangle with the bounding box

Reimplemented from DdtGraphicalElement.

◆ DrawElement()

void DdtGraphicalElementPickMarker::DrawElement ( QPainter * painter)
finalvirtual

Virtual function for rendering the graphical element

Implements DdtGraphicalElement.

◆ type()

int DdtGraphicalElementPickMarker::type ( ) const
final

Check type of graphics item

Returns
type

Member Data Documentation

◆ size_x

double DdtGraphicalElementPickMarker::size_x
protected

x size of the cross

◆ size_y

double DdtGraphicalElementPickMarker::size_y
protected

y size of the cross

◆ x

double DdtGraphicalElementPickMarker::x
protected

x position of center

◆ y

double DdtGraphicalElementPickMarker::y
protected

y position of center


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