Logo Search packages:      
Sourcecode: ktechlab version File versions

Node Class Reference

#include <node.h>

Inheritance diagram for Node:

ECNode FPNode JunctionNode PinNode InputFlowNode JunctionFlowNode OutputFlowNode

List of all members.


Detailed Description

A standard node that can be associated with a Connector or a CNItem.

Author:
David Saxton

Definition at line 34 of file node.h.


Public Types

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

Public Slots

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

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
virtual void drawShape (QPainter &p)=0
virtual ConnectorgetAConnector () const =0
virtual ConnectorList getAllConnectors () const =0
void hide ()
const QString id () const
bool isChildNode () const
virtual bool isConnected (Node *node, NodeList *checkedNodes=0L)=0
bool isSelected () const
bool isVisible () const
int level () const
void move (double const x, double const y)
bool needRedraw () const
 Node (ICNDocument *icnDocument, Node::node_type type, int dir, const QPoint &pos, QString *id=0L)
NodeData nodeData () const
NodeGroupnodeGroup () const
virtual int numCon (bool includeParentItem, bool includeHiddenConnectors) const =0
CNItemparentItem () const
QPen pen () const
QPointArray points () const
virtual void removeConnector (Connector *connector)=0
virtual void removeNullConnectors ()=0
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)=0
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
int m_length
int m_level
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 )

Private Attributes

bool b_deleted
QString m_childId
QString m_id

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

Generated by  Doxygen 1.6.0   Back to index