dnai::views::Input Class Reference
#include <input.h>
Inheritance diagram for dnai::views::Input:

Collaboration diagram for dnai::views::Input:

Public Member Functions | |
Input (QQuickItem *parent=nullptr) | |
virtual void | refreshBackendIo () override |
Refresh BackendIO for Input. More... | |
virtual void | componentComplete () override |
Override componentComplete, and init some values. More... | |
virtual LinkableBezierItem * | findLinkableBezierItem (GenericNode *n, const QPointF &p) override |
Override findIo, return the IO under the point p of the Node n. More... | |
virtual void | updateLink () override |
void | unlinkAll () override |
void | asyncUnlinkAll () override |
![]() | |
Io (QQuickItem *parent=nullptr) | |
~Io () | |
virtual QSGNode * | updatePaintNode (QSGNode *, UpdatePaintNodeData *) override |
return the current BaseIO More... | |
virtual QPointF | getCanvasPos () const override |
virtual GenericNode * | getNode () override |
virtual qreal | scaleFactor () const override |
Return the current scale factor. More... | |
virtual QPointF | scalePos () const override |
Return the position with scale aplyed. More... | |
virtual QPointF | realPos () const override |
Return the position without the scale applyed. More... | |
uint | nbSegments () const |
int | type () const |
void | setNbSegments (uint n) |
void | setType (int type) |
bool | isLink () const |
bool | isHover () const |
virtual const QColor & | curveColor () const override |
![]() | |
LinkableBezierItem (QQuickItem *parent=nullptr) | |
interfaces::ALinkable * | getLinkable () const |
void | connect (LinkableBezierItem *a) |
virtual void | setIsLink (bool isLink)=0 |
virtual void | setIsHover (bool isHover)=0 |
![]() | |
CustomShape (QQuickItem *parent=nullptr) | |
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 Member Functions | |
virtual void | afterRealease (Link *l) override |
![]() | |
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... | |
Additional Inherited Members | |
![]() | |
virtual void | setIsLink (bool isLink) override |
virtual void | setIsHover (bool isHover) override |
void | setCurveColor (const QColor &curveColor) |
void | redrawLinks (const QColor &color) |
![]() | |
void | nbSegmentsChanged (uint n) |
void | typeChanged (int type) |
void | linked (const QVariant &name, const QVariant &instructionModel) |
void | unlinked (const QVariant &name, const QVariant &instructionModel) |
void | isLinkChanged (bool isLink) |
void | isHoverChanged (bool isHover) |
void | curveColorChanged (const QColor &curveColor) |
![]() | |
void | radiusChanged (qreal radius) |
void | borderWidthChanged (qreal w) |
void | fillColorChanged (const QColor &color) |
void | borderColorChanged (const QColor &color) |
![]() | |
static BaseIo * | CurrentHover = nullptr |
![]() | |
enum | LinkStatus { Normal, Hover, Linked } |
![]() | |
uint | m_nbSegments |
enums::IoTypeRessouce::IoType | m_type |
GenericNode * | m_genericNode {} |
bool | m_holdClick {} |
![]() | |
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 |
![]() | |
uint | nbSegments |
int | type |
bool | isLink |
bool | isHover |
QColor | curveColor |
![]() | |
qreal | radius |
qreal | borderWidth |
QColor | fillColor |
QColor | borderColor |
Constructor & Destructor Documentation
|
explicit |
Member Function Documentation
|
overrideprotectedvirtual |
Reimplemented from dnai::views::LinkableBezierItem.
|
overridevirtual |
Reimplemented from dnai::views::LinkableBezierItem.
|
overridevirtual |
Override componentComplete, and init some values.
Implements dnai::views::LinkableBezierItem.
|
overridevirtual |
Override findIo, return the IO under the point p of the Node n.
- Parameters
-
n p
- Returns
- Io *
Implements dnai::views::LinkableBezierItem.
|
overridevirtual |
Refresh BackendIO for Input.
Reimplemented from dnai::views::Io.
|
overridevirtual |
Reimplemented from dnai::views::LinkableBezierItem.
|
overridevirtual |
Implements dnai::views::LinkableBezierItem.
The documentation for this class was generated from the following files: