FPNode Class Reference

FlowPart node. More...

#include <fpnode.h>

Inheritance diagram for FPNode:

Inheritance graph
[legend]
Collaboration diagram for FPNode:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FPNode (ICNDocument *_icnView, Node::node_type type, node_dir dir, const QPoint &pos, QString *id=0)
 ~FPNode ()
FlowPartoutputFlowPart () const
FlowPartList inputFlowParts () const

Protected Member Functions

virtual void drawShape (QPainter &p)

Detailed Description

FlowPart node.

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)

Author:
David Saxton

Definition at line 26 of file fpnode.h.


Member Function Documentation

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


The documentation for this class was generated from the following files:
Generated on Tue May 8 17:05:43 2007 for KTechLab by  doxygen 1.5.1