#include <fpnode.h>
Inheritance diagram for FPNode:


Public Member Functions | |
| FPNode (ICNDocument *_icnView, Node::node_type type, node_dir dir, const QPoint &pos, QString *id=0) | |
| ~FPNode () | |
| FlowPart * | outputFlowPart () const |
| FlowPartList | inputFlowParts () const |
Protected Member Functions | |
| virtual void | drawShape (QPainter &p) |
You should use this node for all FlowParts. It ensures that connections between FlowParts are always valid (eg not more than two outputs from one node, which makes no sense)
Definition at line 26 of file fpnode.h.
| FlowPart * FPNode::outputFlowPart | ( | ) | const |
Returns a pointer to the FlowPart attached to this node if this node isInput, or to the other end of the connector (if one exists) if it isOutput()
Definition at line 31 of file fpnode.cpp.
References Node::m_outputConnectorList, Node::parentItem(), and Node::type().
Referenced by FlowPart::outputPart().
| FlowPartList FPNode::inputFlowParts | ( | ) | const |
Returns a list of FlowParts attached to the node - either a single-item list containing the FlowPart attached to this node if isOutput, or a list of FlowParts connected to the input (?) connectors
Definition at line 52 of file fpnode.cpp.
References Node::m_inputConnectorList, Node::parentItem(), and Node::type().
| void FPNode::drawShape | ( | QPainter & | p | ) | [protected, virtual] |
Draw shape. Note that this has to remain public.
Implements Node.
Definition at line 106 of file fpnode.cpp.
References Node::m_dir, Node::m_inputConnectorList, Node::m_selectedColor, and Node::type().
1.5.1