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

Collaboration diagram for dnai::views::GenericNode:

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 |
FocusManagerIo & | inputs () |
FocusManagerIo & | outputs () |
FocusManagerIo & | flowsIn () |
FocusManagerIo & | flowsOut () |
RoundedRectangle * | header () const |
RoundedRectangle * | content () 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 | |
RoundedRectangle * | m_header |
RoundedRectangle * | m_content |
FocusManagerIo | m_inputs |
FocusManagerIo | m_outputs |
FocusManagerIo | m_flowsOut |
FocusManagerIo | m_flowsIn |
QPointF | m_offset |
bool | m_holdClik |
QPointF | m_startPos |
CanvasNode * | m_canvas |
Static Private Attributes | |
static GenericNode * | m_selected = nullptr |
Constructor & Destructor Documentation
|
explicit |
Member Function Documentation
void dnai::views::GenericNode::clear | ( | ) |
|
overridevirtual |
|
inline |
|
signal |
void dnai::views::GenericNode::createFlowLink | ( | models::gui::FlowLink * | link, |
GenericNode * | n2 | ||
) |
void dnai::views::GenericNode::createLink | ( | models::gui::IoLink * | link, |
GenericNode * | n2 | ||
) |
|
inline |
|
inline |
|
inline |
|
signal |
|
inline |
|
overrideprotectedvirtual |
Override mouseMoveEvent.
- Parameters
-
event
|
overrideprotectedvirtual |
Override mousePressEvent.
- Parameters
-
event
|
overrideprotectedvirtual |
Override mouseReleaseEvent.
- Parameters
-
event
void dnai::views::GenericNode::move | ( | const QPointF & | vec | ) |
|
inline |
void dnai::views::GenericNode::resetBorderColor | ( | ) | const |
|
static |
bool dnai::views::GenericNode::selected | ( | ) | const |
void dnai::views::GenericNode::setContent | ( | RoundedRectangle * | c | ) |
void dnai::views::GenericNode::setHeader | ( | RoundedRectangle * | h | ) |
|
inline |
void dnai::views::GenericNode::unlinkFlow | ( | quint32 | pin | ) |
void dnai::views::GenericNode::unlinkIo | ( | quint32 | in | ) |
|
private |
|
private |
|
private |
|
private |
|
overridevirtual |
Override updatePaintNode and draw a beautifull Node.
- Returns
- QSGNode *
Member Data Documentation
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
Property Documentation
|
readwrite |
|
readwrite |
|
read |
The documentation for this class was generated from the following files:
- Gui/app/include/dnai/views/genericnode.h
- Gui/app/GeneratedFiles/Debug/moc_genericnode.cpp
- Gui/app/src/dnai/views/genericnode.cpp