Logo Search packages:      
Sourcecode: ktechlab version File versions

FPNode Class Reference

#include <fpnode.h>

Inheritance diagram for FPNode:

Node InputFlowNode JunctionFlowNode OutputFlowNode

List of all members.

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)

David Saxton

Definition at line 31 of file fpnode.h.

Public Types

enum  node_type {
  ec_pin, ec_junction, fp_in, fp_out,

Public Slots

virtual void checkForRemoval (Connector *connector)
virtual void drawShape (QPainter &p)=0
void moveBy (double dx, double dy)
void removeNode ()
void removeNode (Item *)
void setNodeSelected (bool yes)


void moved (Node *node)
void removed (Node *node)

Public Member Functions

virtual bool acceptInput () const =0
virtual bool acceptOutput () const =0
virtual void addInputConnector (Connector *const connector)
virtual void addOutputConnector (Connector *const connector)
QPointArray areaPoints () const
QRect boundingRect () const
QBrush brush () const
QCanvas * canvas () const
const QString childId () const
bool collidesWith (const QCanvasItem *) const
QCanvasItemList collisions (const bool exact) const
ConnectorcreateInputConnector (Node *startNode)
 FPNode (ICNDocument *_icnView, Node::node_type type, int dir, const QPoint &pos, QString *id=0L)
virtual ConnectorgetAConnector () const
virtual ConnectorList getAllConnectors () const
void hide ()
const QString id () const
ConnectorList inputConnectorList () const
virtual FlowPartList inputFlowParts () const
bool isChildNode () const
bool isConnected (Node *node, NodeList *checkedNodes=0L)
bool isSelected () const
bool isVisible () const
int level () const
void move (double const x, double const y)
bool needRedraw () const
NodeData nodeData () const
NodeGroupnodeGroup () const
int numCon (bool includeParentItem, bool includeHiddenConnectors) const
ConnectorList outputConnectorList () const
virtual FlowPartoutputFlowPart () const
CNItemparentItem () const
QPen pen () const
QPointArray points () const
void removeConnector (Connector *connector)
void removeNullConnectors ()
virtual void setBrush (const QBrush &b)
virtual void setCanvas (QCanvas *)
void setChildId (const QString &id)
void setLength (int length)
virtual void setLevel (const int level)
void setNeedRedraw (const bool needRedraw)
void setNodeGroup (NodeGroup *ng)
void setOrientation (int dir)
virtual void setParentItem (CNItem *parentItem)
virtual void setPen (const QPen &p)
void setPoints (QPointArray)
virtual void setSelected (const bool yes)
virtual void setVisible (bool yes)
void setX (double a)
void setY (double a)
void setZ (double a)
void show ()
double x () const
double y () const
double z () const

Protected Member Functions

virtual void addToChunks ()
virtual void changeChunks ()
void deinitPainter (QPainter &p)
void draw (QPainter &)
virtual QPoint findConnectorDivergePoint (bool *found)
bool handleNewConnector (Connector *newConnector)
void initPainter (QPainter &p)
virtual void initPoints ()
void invalidate ()
bool isValid () const
virtual void removeFromChunks ()
void setWinding (bool)
void update ()
bool winding () const

Protected Attributes

int m_dir
FlowConnectorList m_inFlowConnList
int m_length
int m_level
QGuardedPtr< FlowConnectorm_outputConnector
node_type m_type
double myx
double myy
double myz
QPointArray poly
bool val

Static Protected Attributes

static QColor m_selectedColor = QColor( 101, 134, 192 )

Private Attributes

bool m_isInput

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

Generated by  Doxygen 1.6.0   Back to index