#include <flow.h>

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

Public Slots

virtual void setIsLink (bool isLink) override
 
virtual void setIsHover (bool isHover) override
 
void setCurveColor (const QColor &colorCurve)
 

Signals

void typeFlowChanged (enums::FlowTypeRessouce::FlowType t)
 
void linked (int outindex, const QVariant &instructionModel)
 
void unlinked (int outindex, const QVariant &instructionModel)
 
void isLinkChanged (bool isLink)
 
void isHoverChanged (bool isHover)
 
void curveColorChanged (const QColor &colorCurve)
 
- Signals inherited from dnai::views::CustomShape
void radiusChanged (qreal radius)
 
void borderWidthChanged (qreal w)
 
void fillColorChanged (const QColor &color)
 
void borderColorChanged (const QColor &color)
 

Public Member Functions

 Flow (QQuickItem *parent=nullptr)
 
virtual QSGNode * updatePaintNode (QSGNode *oldNode, UpdatePaintNodeData *) override
 
enums::FlowTypeRessouce::FlowType typeFlow () const
 
void setTypeFlow (enums::FlowTypeRessouce::FlowType t)
 
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
 
virtual GenericNodegetNode () override
 
QPointF getCanvasPos () const override
 
void unlinkAll () override
 
void asyncUnlinkAll () override
 
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 ()
 

Protected Member Functions

void mousePressEvent (QMouseEvent *event) override
 Override mousePressEvent. More...
 
virtual void afterRealease (Link *l) override
 
- Protected Member Functions inherited from dnai::views::LinkableBezierItem
virtual void mouseMoveEvent (QMouseEvent *event) override
 Override mouseMoveEvent. More...
 
virtual void mouseReleaseEvent (QMouseEvent *event) override
 Override mouseReleaseEvent. More...
 

Properties

dnai::enums::FlowTypeRessouce::FlowType typeFlow
 
bool isLink
 
bool isHover
 
QColor curveColor
 
- Properties inherited from dnai::views::CustomShape
qreal radius
 
qreal borderWidth
 
QColor fillColor
 
QColor borderColor
 

Private Attributes

enums::FlowTypeRessouce::FlowType m_typeFlow
 
GenericNodem_genericNode
 
bool m_isLink
 
bool m_isHover
 
QColor m_colorCurve
 

Additional Inherited Members

- Protected Types inherited from dnai::views::LinkableBezierItem
enum  LinkStatus { Normal, Hover, Linked }
 
- 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
 

Constructor & Destructor Documentation

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

Member Function Documentation

void dnai::views::Flow::afterRealease ( Link l)
overrideprotectedvirtual

Reimplemented from dnai::views::LinkableBezierItem.

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

Reimplemented from dnai::views::LinkableBezierItem.

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

Override componentComplete, and init some values.

Implements dnai::views::LinkableBezierItem.

virtual const QColor& dnai::views::Flow::curveColor ( ) const
overridevirtual
void dnai::views::Flow::curveColorChanged ( const QColor &  colorCurve)
signal
LinkableBezierItem * dnai::views::Flow::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.

QPointF dnai::views::Flow::getCanvasPos ( ) const
overridevirtual
GenericNode * dnai::views::Flow::getNode ( )
overridevirtual
bool dnai::views::Flow::isHover ( ) const
void dnai::views::Flow::isHoverChanged ( bool  isHover)
signal
bool dnai::views::Flow::isLink ( ) const
void dnai::views::Flow::isLinkChanged ( bool  isLink)
signal
void dnai::views::Flow::linked ( int  outindex,
const QVariant &  instructionModel 
)
signal
void dnai::views::Flow::mousePressEvent ( QMouseEvent *  event)
overrideprotectedvirtual

Override mousePressEvent.

Parameters
event

Reimplemented from dnai::views::LinkableBezierItem.

void dnai::views::Flow::setCurveColor ( const QColor &  colorCurve)
slot
void dnai::views::Flow::setIsHover ( bool  isHover)
overridevirtualslot
void dnai::views::Flow::setIsLink ( bool  isLink)
overridevirtualslot
void dnai::views::Flow::setTypeFlow ( enums::FlowTypeRessouce::FlowType  t)
enums::FlowTypeRessouce::FlowType dnai::views::Flow::typeFlow ( ) const
inline
void dnai::views::Flow::typeFlowChanged ( enums::FlowTypeRessouce::FlowType  t)
signal
void dnai::views::Flow::unlinkAll ( )
overridevirtual

Reimplemented from dnai::views::LinkableBezierItem.

void dnai::views::Flow::unlinked ( int  outindex,
const QVariant &  instructionModel 
)
signal
void dnai::views::Flow::updateLink ( )
overridevirtual
QSGNode * dnai::views::Flow::updatePaintNode ( QSGNode *  oldNode,
UpdatePaintNodeData *  data 
)
overridevirtual

Reimplemented from dnai::views::CustomShape.

Member Data Documentation

QColor dnai::views::Flow::m_colorCurve
private
GenericNode* dnai::views::Flow::m_genericNode
private
bool dnai::views::Flow::m_isHover
private
bool dnai::views::Flow::m_isLink
private
enums::FlowTypeRessouce::FlowType dnai::views::Flow::m_typeFlow
private

Property Documentation

const QColor & dnai::views::Flow::curveColor
readwrite
bool dnai::views::Flow::isHover
readwrite
bool dnai::views::Flow::isLink
readwrite
dnai::enums::FlowTypeRessouce::FlowType dnai::views::Flow::typeFlow
readwrite

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