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

ECNode Class Reference

#include <ecnode.h>

Inheritance diagram for ECNode:


List of all members.

Detailed Description

Electrical node with voltage / current / etc properties.

David Saxton

Definition at line 32 of file ecnode.h.

Public Types

enum  node_dir { dir_up = 270, dir_right = 0, dir_down = 90, dir_left = 180 }
enum  node_type {
  ec_pin, ec_junction, fp_in, fp_out,

Public Slots

void checkForRemoval (Connector *connector)
void moveBy (double dx, double dy)
void removeNode ()
void removeNode (Item *)
void setNodeSelected (bool yes)


void moved (Node *node)
void numPinsChanged (unsigned newNum)
void removed (Node *node)

Public Member Functions

bool acceptInput () const
bool acceptOutput () const
void addInputConnector (Connector *const connector)
void addOutputConnector (Connector *const connector)
const QString childId () const
ConnectorcreateInputConnector (Node *startNode)
virtual void drawShape (QPainter &p)
 ECNode (ICNDocument *icnDocument, Node::node_type type, node_dir dir, const QPoint &pos, QString *id=0L)
const QString id () const
ConnectorList inputConnectorList () const
bool isChildNode () const
bool isConnected (Node *node, NodeList *checkedNodes=0L)
int level () const
NodeData nodeData () const
NodeGroupnodeGroup () const
int numCon (bool includeParentItem, bool includeHiddenConnectors) const
unsigned numPins () const
ConnectorList outputConnectorList () const
CNItemparentItem () const
Pinpin (unsigned num=0) const
PinVector pins () const
void removeConnector (Connector *connector)
void removeNullConnectors ()
virtual int rtti () const
void setChildId (const QString &id)
virtual void setLevel (const int level)
void setNodeChanged ()
void setNodeGroup (NodeGroup *ng)
void setNumPins (unsigned num)
void setOrientation (node_dir dir)
virtual void setParentItem (CNItem *parentItem)
void setShowVoltageBars (bool show)
virtual void setVisible (bool yes)
bool showVoltageBars () const
node_type type () const

Protected Slots

void removeElement (Element *e)
void removeSwitch (Switch *sw)

Protected Member Functions

QPoint findConnectorDivergePoint (bool *found)
bool handleNewConnector (Connector *newConnector)
void initPoints ()

Protected Attributes

bool m_bShowVoltageBars
QString m_childId
node_dir m_dir
QString m_id
ConnectorList m_inputConnectorList
int m_level
ConnectorList m_outputConnectorList
QCanvasRectangle * m_pinPoint
PinVector m_pins
double m_prevI
double m_prevV
QColor m_selectedColor
node_type m_type

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

Generated by  Doxygen 1.6.0   Back to index