#include <genericnode.h>

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

Signals

void headerChanged (RoundedRectangle *h)
 
void contentChanged (RoundedRectangle *c)
 

Public Member Functions

 GenericNode (QQuickItem *parent=nullptr)
 
void createLink (models::gui::IoLink *link, GenericNode *n2)
 
void createFlowLink (models::gui::FlowLink *link, GenericNode *n2)
 
void unlinkFlow (quint32 pin)
 
void unlinkIo (quint32 in)
 
virtual QSGNode * updatePaintNode (QSGNode *, UpdatePaintNodeData *) override
 Override updatePaintNode and draw a beautifull Node. More...
 
virtual void componentComplete () override
 
void resetBorderColor () const
 
void move (const QPointF &vec)
 
const QPointF & startPos () const
 
FocusManagerIoinputs ()
 
FocusManagerIooutputs ()
 
FocusManagerIoflowsIn ()
 
FocusManagerIoflowsOut ()
 
RoundedRectangleheader () const
 
RoundedRectanglecontent () const
 
bool selected () const
 
Q_INVOKABLE void clear ()
 
void setHeader (RoundedRectangle *h)
 
void setContent (RoundedRectangle *c)
 

Static Public Member Functions

static void resetSelected ()
 

Protected Member Functions

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...
 

Properties

dnai::views::RoundedRectangle header
 
dnai::views::RoundedRectangle content
 
bool selected
 

Private Member Functions

void updateInputs ()
 
void updateOutputs ()
 
void updateFlowsIn ()
 
void updateFlowsOut ()
 

Private Attributes

RoundedRectanglem_header
 
RoundedRectanglem_content
 
FocusManagerIo m_inputs
 
FocusManagerIo m_outputs
 
FocusManagerIo m_flowsOut
 
FocusManagerIo m_flowsIn
 
QPointF m_offset
 
bool m_holdClik
 
QPointF m_startPos
 
CanvasNodem_canvas
 

Static Private Attributes

static GenericNodem_selected = nullptr
 

Constructor & Destructor Documentation

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

Member Function Documentation

void dnai::views::GenericNode::clear ( )
void dnai::views::GenericNode::componentComplete ( )
overridevirtual
RoundedRectangle* dnai::views::GenericNode::content ( ) const
inline
void dnai::views::GenericNode::contentChanged ( RoundedRectangle c)
signal
void dnai::views::GenericNode::createFlowLink ( models::gui::FlowLink link,
GenericNode n2 
)
void dnai::views::GenericNode::createLink ( models::gui::IoLink link,
GenericNode n2 
)
FocusManagerIo& dnai::views::GenericNode::flowsIn ( )
inline
FocusManagerIo& dnai::views::GenericNode::flowsOut ( )
inline
RoundedRectangle* dnai::views::GenericNode::header ( ) const
inline
void dnai::views::GenericNode::headerChanged ( RoundedRectangle h)
signal
FocusManagerIo& dnai::views::GenericNode::inputs ( )
inline
void dnai::views::GenericNode::mouseMoveEvent ( QMouseEvent *  event)
overrideprotectedvirtual

Override mouseMoveEvent.

Parameters
event
void dnai::views::GenericNode::mousePressEvent ( QMouseEvent *  event)
overrideprotectedvirtual

Override mousePressEvent.

Parameters
event
void dnai::views::GenericNode::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotectedvirtual

Override mouseReleaseEvent.

Parameters
event
void dnai::views::GenericNode::move ( const QPointF &  vec)
FocusManagerIo& dnai::views::GenericNode::outputs ( )
inline
void dnai::views::GenericNode::resetBorderColor ( ) const
void dnai::views::GenericNode::resetSelected ( )
static
bool dnai::views::GenericNode::selected ( ) const
void dnai::views::GenericNode::setContent ( RoundedRectangle c)
void dnai::views::GenericNode::setHeader ( RoundedRectangle h)
const QPointF& dnai::views::GenericNode::startPos ( ) const
inline
void dnai::views::GenericNode::unlinkFlow ( quint32  pin)
void dnai::views::GenericNode::unlinkIo ( quint32  in)
void dnai::views::GenericNode::updateFlowsIn ( )
private
void dnai::views::GenericNode::updateFlowsOut ( )
private
void dnai::views::GenericNode::updateInputs ( )
private
void dnai::views::GenericNode::updateOutputs ( )
private
QSGNode * dnai::views::GenericNode::updatePaintNode ( QSGNode *  oldNode,
UpdatePaintNodeData *   
)
overridevirtual

Override updatePaintNode and draw a beautifull Node.

Returns
QSGNode *

Member Data Documentation

CanvasNode* dnai::views::GenericNode::m_canvas
private
RoundedRectangle* dnai::views::GenericNode::m_content
private
FocusManagerIo dnai::views::GenericNode::m_flowsIn
private
FocusManagerIo dnai::views::GenericNode::m_flowsOut
private
RoundedRectangle* dnai::views::GenericNode::m_header
private
bool dnai::views::GenericNode::m_holdClik
private
FocusManagerIo dnai::views::GenericNode::m_inputs
private
QPointF dnai::views::GenericNode::m_offset
private
FocusManagerIo dnai::views::GenericNode::m_outputs
private
GenericNode * dnai::views::GenericNode::m_selected = nullptr
staticprivate
QPointF dnai::views::GenericNode::m_startPos
private

Property Documentation

dnai::views::RoundedRectangle dnai::views::GenericNode::content
readwrite
dnai::views::RoundedRectangle dnai::views::GenericNode::header
readwrite
bool dnai::views::GenericNode::selected
read

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