ddt 1.2.1
|
#include <ddtGraphicalElementEllipse.hpp>
Protected Attributes | |
double | x_coord |
double | y_coord |
double | r1 |
double | r2 |
![]() | |
DdtGraphicalElementProperties | element_properties |
DdtOverlayType | element_type |
QPointF | location |
QPointF | drag_start |
qreal | corner_size |
bool | is_hovering |
QString | object_name |
QString | element_name |
DdtGraphicalElementEllipse (DdtGraphicalElementProperties const &element_properties, const double x, const double y, const double radius_1, const double radius_2, const QString obj_name="", const QString elem_name="") | |
virtual | ~DdtGraphicalElementEllipse () |
virtual void | DrawElement (QPainter *painter) override |
QRectF | boundingRect () const override |
int | type () const override |
Additional Inherited Members | |
![]() | |
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 () |
![]() | |
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 ellipses
|
explicit |
Constructor
element_properties | DDT graphical element properties object. |
x | x coordinate of the center of the graphical element. |
y | y coordinate of the center of the graphical element. |
radius_1 | First radius of the graphical element. |
radius_2 | Second radius of the graphical element. |
obj_name | The name of the overlay object this element belongs to |
elem_name | The name of this element |
|
virtualdefault |
Destructor
|
overridevirtual |
Function returning the bounding box of the graphics item
Reimplemented from DdtGraphicalElement.
|
overridevirtual |
Virtual function for rendering the graphical element
Implements DdtGraphicalElement.
|
override |
Check type of graphics item
|
protected |
first radius
|
protected |
second radius
|
protected |
x position of center
|
protected |
y position of center