Public Slots |
Signals |
Public Member Functions |
Static Public Attributes |
Protected Attributes |
Properties |
Private Attributes |
List of all members
dnai::views::Io Class Reference
#include <io.h>
Inheritance diagram for dnai::views::Io:

Collaboration diagram for dnai::views::Io:

Public Slots | |
virtual void | setIsLink (bool isLink) override |
virtual void | setIsHover (bool isHover) override |
void | setCurveColor (const QColor &curveColor) |
void | redrawLinks (const QColor &color) |
Signals | |
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) |
Public Member Functions | |
Io (QQuickItem *parent=nullptr) | |
~Io () | |
virtual void | refreshBackendIo () |
Refresh BackendIo. More... | |
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 |
virtual void | updateLink ()=0 |
virtual void | componentComplete () override=0 |
Make componentComplete Abstract. More... | |
virtual void | unlinkAll () |
virtual void | asyncUnlinkAll () |
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 () |
Static Public Attributes | |
static BaseIo * | CurrentHover = nullptr |
Protected Attributes | |
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 |
Properties | |
uint | nbSegments |
int | type |
bool | isLink |
bool | isHover |
QColor | curveColor |
![]() | |
qreal | radius |
qreal | borderWidth |
QColor | fillColor |
QColor | borderColor |
Private Attributes | |
bool | m_isLink |
bool | m_isHover |
QColor | m_curveColor |
Additional Inherited Members | |
![]() | |
enum | LinkStatus { Normal, Hover, Linked } |
![]() | |
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) |
Constructor & Destructor Documentation
|
explicit |
dnai::views::Io::~Io | ( | ) |
Member Function Documentation
|
overridevirtual |
Implements dnai::views::LinkableBezierItem.
|
signal |
|
overridevirtual |
Implements dnai::views::LinkableBezierItem.
|
overridevirtual |
Implements dnai::views::LinkableBezierItem.
bool dnai::views::Io::isHover | ( | ) | const |
|
signal |
bool dnai::views::Io::isLink | ( | ) | const |
|
signal |
|
signal |
|
inline |
|
signal |
|
overridevirtual |
|
slot |
|
virtual |
Refresh BackendIo.
Reimplemented in dnai::views::Input, and dnai::views::Output.
|
overridevirtual |
|
overridevirtual |
|
slot |
|
overridevirtualslot |
|
overridevirtualslot |
void dnai::views::Io::setNbSegments | ( | uint | n | ) |
void dnai::views::Io::setType | ( | int | type | ) |
|
inline |
|
signal |
|
signal |
|
overridevirtual |
return the current BaseIO
- Returns
- BaseIO* Override updatePaintNode and draw a beautifull IO
Reimplemented from dnai::views::CustomShape.
Member Data Documentation
|
static |
|
private |
|
protected |
|
protected |
|
private |
|
private |
|
protected |
|
protected |
Property Documentation
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
The documentation for this class was generated from the following files:
- Gui/app/include/dnai/views/io.h
- Gui/app/GeneratedFiles/Debug/moc_io.cpp
- Gui/app/src/dnai/views/io.cpp