Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

JunctionFlowNode Class Reference

#include <junctionflownode.h>

Inheritance diagram for JunctionFlowNode:

FPNode Node

List of all members.


Detailed Description

A FlowNode which serves as a junction between connectors

Definition at line 18 of file junctionflownode.h.


Public Types

enum  node_type {
  ec_pin, ec_junction, fp_in, fp_out,
  fp_junction
}

Public Slots

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

Signals

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

Public Member Functions

bool acceptInput () const
bool acceptOutput () const
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)
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
 JunctionFlowNode (ICNDocument *_icnView, int dir, const QPoint &pos, QString *id=0L)
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
ICNDocumentp_icnDocument
NodeGroupp_nodeGroup
CNItemp_parentItem
QPointArray poly
bool val

Static Protected Attributes

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

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

Generated by  Doxygen 1.6.0   Back to index