Public Member Functions |
Protected Types |
Protected Member Functions |
Protected Attributes |
List of all members
dnai::LinkableBezierItem Class Referenceabstract
#include <linkablebezieritem.h>
Inheritance diagram for dnai::LinkableBezierItem:

Collaboration diagram for dnai::LinkableBezierItem:

Public Member Functions | |
virtual | ~LinkableBezierItem ()=default |
LinkableBezierItem (QQuickItem *parent=nullptr) | |
ALinkable * | getLinkable () const |
virtual QPointF | getCanvasPos () const =0 |
virtual void | updateLink ()=0 |
virtual void | componentComplete () override=0 |
Make componentComplete Abstract. More... | |
virtual GenericNode * | getNode () const =0 |
virtual const QColor & | colorLink () const |
void | unlinkAll () |
![]() | |
CustomShape (QQuickItem *parent=nullptr) | |
virtual QSGNode * | updatePaintNode (QSGNode *, UpdatePaintNodeData *) override |
qreal | radius () const |
qreal | borderWidth () const |
const QColor & | fillColor () const |
const QColor & | borderColor () const |
void | setRadius (qreal radius) |
virtual void | setBorderWidth (qreal w) |
virtual void | setFillColor (const QColor &color) |
virtual void | setBorderColor (const QColor &color) |
void | resetRadius () |
void | resetBorderWidth () |
void | resetBorderColor () |
void | resetFillColor () |
void | resetPos () |
void | resetShape () |
Protected Types | |
enum | LinkStatus { Normal, Hover, Linked } |
Protected Member Functions | |
virtual LinkableBezierItem * | findLinkableBezierItem (GenericNode *n, const QPointF &p)=0 |
return the IO under the point p of the Node n More... | |
virtual void | mouseMoveEvent (QMouseEvent *event) override |
Override mouseMoveEvent. More... | |
virtual void | mousePressEvent (QMouseEvent *event) override |
Override mousePressEvent. More... | |
virtual void | mouseReleaseEvent (QMouseEvent *event) override |
Override mouseReleaseEvent. More... | |
virtual void | afterRealease (Link *l) |
virtual void | setHover () |
virtual void | setNormal () |
virtual void | setLink (Link *) |
Protected Attributes | |
views::BezierCurve * | m_currentCurve |
ALinkable * | m_linkable |
LinkableBezierItem * | m_currentHover |
LinkStatus | m_status |
![]() | |
qreal | m_radius |
qreal | m_borderWidth |
QColor | m_fillColor |
QColor | m_borderColor |
qreal | m_saveRadius |
qreal | m_saveBorderWidth |
QColor | m_saveFillColor |
QColor | m_saveBorderColor |
QPointF | m_savePos |
Additional Inherited Members | |
![]() | |
void | radiusChanged (qreal radius) |
void | borderWidthChanged (qreal w) |
void | fillColorChanged (const QColor &color) |
void | borderColorChanged (const QColor &color) |
![]() | |
qreal | radius |
qreal | borderWidth |
QColor | fillColor |
QColor | borderColor |
Member Enumeration Documentation
|
protected |
Constructor & Destructor Documentation
|
virtualdefault |
dnai::LinkableBezierItem::LinkableBezierItem | ( | QQuickItem * | parent = nullptr | ) |
Member Function Documentation
|
protectedvirtual |
|
virtual |
|
overridepure virtual |
Make componentComplete Abstract.
|
protectedpure virtual |
return the IO under the point p of the Node n
- Parameters
-
n p
- Returns
- Io *
|
pure virtual |
|
inline |
|
pure virtual |
|
overrideprotectedvirtual |
Override mouseMoveEvent.
- Parameters
-
event
|
overrideprotectedvirtual |
Override mousePressEvent.
- Parameters
-
event
|
overrideprotectedvirtual |
Override mouseReleaseEvent.
- Parameters
-
event
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
void dnai::LinkableBezierItem::unlinkAll | ( | ) |
|
pure virtual |
Member Data Documentation
|
protected |
|
protected |
|
protected |
|
protected |
The documentation for this class was generated from the following file:
- Gui/app/include/dnai/linkablebezieritem.h