ddt 1.2.1
|
#include <ddtGraphicalElementPickMarker.hpp>
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 |
![]() | |
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 DdtGraphicalElementProperties & | GetElementProperties () |
Protected Attributes | |
double | x |
double | y |
double | size_x |
double | size_y |
![]() | |
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 | |
![]() | |
const int | LIGHTER_FACTOR = 200 |
const int | SCALE_DIFFERENCE_FACTOR = 20 |
![]() | |
void | mouseMoveEvent (QGraphicsSceneMouseEvent *const event) override |
void | mousePressEvent (QGraphicsSceneMouseEvent *const event) override |
bool | HandleEvent (PointGrabber *const corner, QEvent *const event) const |
Class for the graphical elements drawing the pick marker
|
explicit |
Constructor used for drawing a pick marker
element_properties | DDT graphical element properties object. |
px | x coordinate of the graphical element. |
py | y coordinate of the graphical element. |
size_px | Size x of the graphical element. |
size_py | Size y of the graphical element. |
|
default |
Destructor
|
finalvirtual |
Function returning the bounding box of the graphics item
Reimplemented from DdtGraphicalElement.
|
finalvirtual |
Virtual function for rendering the graphical element
Implements DdtGraphicalElement.
|
final |
Check type of graphics item
|
protected |
x size of the cross
|
protected |
y size of the cross
|
protected |
x position of center
|
protected |
y position of center