dnai::views::Output Class Reference

#include <output.h>

Inheritance diagram for dnai::views::Output:
Inheritance graph
Collaboration diagram for dnai::views::Output:
Collaboration graph

Public Member Functions

 Output (QQuickItem *parent=nullptr)
 
virtual void refreshBackendIo () override
 Refresh BackendIO for Output. More...
 
virtual void componentComplete () override
 Override componentComplete, and init some values. More...
 
virtual LinkableBezierItemfindLinkableBezierItem (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
 
- Public Member Functions inherited from dnai::views::Io
 Io (QQuickItem *parent=nullptr)
 
 ~Io ()
 
virtual QSGNode * updatePaintNode (QSGNode *, UpdatePaintNodeData *) override
 return the current BaseIO More...
 
virtual QPointF getCanvasPos () const override
 
virtual GenericNodegetNode () 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
 
- Public Member Functions inherited from dnai::views::LinkableBezierItem
 LinkableBezierItem (QQuickItem *parent=nullptr)
 
interfaces::ALinkablegetLinkable () const
 
void connect (LinkableBezierItem *a)
 
virtual void setIsLink (bool isLink)=0
 
virtual void setIsHover (bool isHover)=0
 
- Public Member Functions inherited from dnai::views::CustomShape
 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 ()
 

Additional Inherited Members

- Public Slots inherited from dnai::views::Io
virtual void setIsLink (bool isLink) override
 
virtual void setIsHover (bool isHover) override
 
void setCurveColor (const QColor &curveColor)
 
void redrawLinks (const QColor &color)
 
- Signals inherited from dnai::views::Io
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)
 
- Signals inherited from dnai::views::CustomShape
void radiusChanged (qreal radius)
 
void borderWidthChanged (qreal w)
 
void fillColorChanged (const QColor &color)
 
void borderColorChanged (const QColor &color)
 
- Static Public Attributes inherited from dnai::views::Io
static BaseIoCurrentHover = nullptr
 
- Protected Types inherited from dnai::views::LinkableBezierItem
enum  LinkStatus { Normal, Hover, Linked }
 
- Protected Member Functions inherited from dnai::views::LinkableBezierItem
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 inherited from dnai::views::Io
uint m_nbSegments
 
enums::IoTypeRessouce::IoType m_type
 
GenericNodem_genericNode {}
 
bool m_holdClick {}
 
- Protected Attributes inherited from dnai::views::LinkableBezierItem
BezierCurvem_currentCurve
 
CanvasNodem_canvas
 
interfaces::ALinkablem_linkable
 
LinkStatus m_status
 
- Protected Attributes inherited from dnai::views::CustomShape
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 inherited from dnai::views::Io
uint nbSegments
 
int type
 
bool isLink
 
bool isHover
 
QColor curveColor
 
- Properties inherited from dnai::views::CustomShape
qreal radius
 
qreal borderWidth
 
QColor fillColor
 
QColor borderColor
 

Constructor & Destructor Documentation

dnai::views::Output::Output ( QQuickItem *  parent = nullptr)
explicit

Member Function Documentation

void dnai::views::Output::asyncUnlinkAll ( )
overridevirtual

Reimplemented from dnai::views::LinkableBezierItem.

void dnai::views::Output::componentComplete ( )
overridevirtual

Override componentComplete, and init some values.

Implements dnai::views::LinkableBezierItem.

LinkableBezierItem * dnai::views::Output::findLinkableBezierItem ( GenericNode n,
const QPointF &  p 
)
overridevirtual

Override findIo, return the IO under the point p of the Node n.

Parameters
n
p
Returns
Io *

Implements dnai::views::LinkableBezierItem.

void dnai::views::Output::refreshBackendIo ( )
overridevirtual

Refresh BackendIO for Output.

Reimplemented from dnai::views::Io.

void dnai::views::Output::unlinkAll ( )
overridevirtual

Reimplemented from dnai::views::LinkableBezierItem.

void dnai::views::Output::updateLink ( )
overridevirtual

The documentation for this class was generated from the following files: