#include <linkablebezieritem.h>


Public Member Functions | |
LinkableBezierItem (QQuickItem *parent=nullptr) | |
interfaces::ALinkable * getLinkable () const | |
virtual QPointF getCanvasPos () const =0 | |
virtual void updateLink ()=0 | |
virtual void componentComplete () override=0 | |
Make componentComplete Abstract. More... | |
virtual GenericNode * getNode ()=0 | |
virtual void unlinkAll () | |
virtual void asyncUnlinkAll () | |
void connect (LinkableBezierItem *a) | |
virtual void setIsLink (bool isLink)=0 | |
virtual void setIsHover (bool isHover)=0 | |
virtual const QColor & curveColor () const =0 | |
![]() | |
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) | |
Protected Attributes | |
BezierCurve * m_currentCurve | |
CanvasNode * m_canvas | |
interfaces::ALinkable * m_linkable | |
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
|
explicit |
Member Function Documentation
|
protectedvirtual |
Reimplemented in dnai::views::Flow, and dnai::views::Input.
|
virtual |
Reimplemented in dnai::views::Flow, dnai::views::Output, and dnai::views::Input.
|
overridepure virtual |
Make componentComplete Abstract.
Implemented in dnai::views::Flow, dnai::views::Input, and dnai::views::Output.
void dnai::views::LinkableBezierItem::connect | ( | LinkableBezierItem * | a | ) |
|
pure virtual |
Implemented in dnai::views::Io, and dnai::views::Flow.
|
protectedpure virtual |
return the IO under the point p of the Node n
- Parameters
-
n p
- Returns
- Io *
Implemented in dnai::views::Flow, dnai::views::Input, and dnai::views::Output.
|
pure virtual |
Implemented in dnai::views::Flow, and dnai::views::Io.
|
inline |
|
pure virtual |
Implemented in dnai::views::Flow, and dnai::views::Io.
|
overrideprotectedvirtual |
Override mouseMoveEvent.
- Parameters
-
event
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Override mouseReleaseEvent.
- Parameters
-
event
|
pure virtual |
|
pure virtual |
|
virtual |
Reimplemented in dnai::views::Flow, dnai::views::Output, and dnai::views::Input.
|
pure virtual |
Implemented in dnai::views::Flow, dnai::views::Output, and dnai::views::Input.
Member Data Documentation
|
protected |
|
protected |
|
protected |
|
protected |
The documentation for this class was generated from the following files:
- Gui/app/include/dnai/views/linkablebezieritem.h
- Gui/app/src/dnai/views/linkablebezieritem.cpp