Logo Search packages:      
Sourcecode: ktechlab version File versions

Connector Class Reference

#include <connector.h>

Inheritance diagram for Connector:

ElectronicConnector FlowConnector

List of all members.


Detailed Description

Represents a connection between two Nodes on a ICNDocument.

Author:
David Saxton

Definition at line 39 of file connector.h.


Public Slots

void removeConnector (Node *=0)

Signals

void numWiresChanged (unsigned newNum)
void removed (Connector *connector)
void selected (bool yes)

Public Member Functions

QPointArray areaPoints () const
QRect boundingRect () const
QBrush brush () const
QCanvas * canvas () const
bool collidesWith (const QCanvasItem *) const
QCanvasItemList collisions (const bool exact) const
 Connector (Node *startNode, Node *endNode, ICNDocument *_ICNDocument, QString *id=0L)
ConnectorData connectorData () const
QPointList connectorPoints (bool reverse=false) const
double currentAnimationOffset () const
virtual NodeendNode () const =0
void hide ()
ICNDocumenticnDocument () const
QString id () const
void incrementCurrentAnimation (double deltaTime)
bool isSelected () const
bool isVisible () const
void move (double const x, double const y)
void moveBy (double dx, double dy)
bool needRedraw () const
NodeGroupnodeGroup () const
unsigned numWires () const
CNItemparentContainer () const
QPen pen () const
QPointArray points () const
bool pointsAreReverse (const QPointList &pointList) const
void rerouteConnector ()
void restoreFromConnectorData (const ConnectorData &connectorData)
virtual void setBrush (const QBrush &b)
virtual void setCanvas (QCanvas *)
void setNeedRedraw (const bool needRedraw)
void setNodeGroup (NodeGroup *nodeGroup)
void setParentContainer (const QString &cnItemId)
virtual void setPen (const QPen &p)
void setPoints (QPointArray)
void setRoutePoints (QPointList pointList, bool setManual, bool checkEndPoints=false)
virtual void setSelected (bool yes)
void setSemiHidden (bool semiHidden)
virtual void setVisible (bool yes)
void setX (double a)
void setY (double a)
void setZ (double a)
void show ()
QValueList< QPointList > splitConnectorPoints (const QPoint &pos) const
virtual NodestartNode () const =0
void translateRoute (int dx, int dy)
void updateConnectorLines (bool forceRedraw=false)
void updateConnectorPoints (bool add)
void updateDrawList ()
bool usesManualPoints () const
Wirewire (unsigned num=0) const
WireVector wires () const
double x () const
double y () const
double z () const

Protected Member Functions

virtual void addToChunks ()
virtual void changeChunks ()
void draw (QPainter &)
void drawShape (QPainter &)
void invalidate ()
bool isValid () const
virtual void removeFromChunks ()
void setWinding (bool)
void update ()
bool winding () const

Protected Attributes

WireVector m_wires
double myx
double myy
double myz
QPointArray poly
bool val

Private Attributes

bool b_deleted
bool b_manualPoints
bool b_pointsAdded
bool b_semiHidden
ConnectorLineList m_connectorLineList
ConRouterm_conRouter
double m_currentAnimationOffset
QString m_id
QRect m_oldBoundRect
ICNDocumentp_icnDocument
NodeGroupp_nodeGroup
CNItemp_parentContainer

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

Generated by  Doxygen 1.6.0   Back to index