nodeeditor_doxy
src/Core/NodeConnectionBase.h
Go to the documentation of this file.
00001 #ifndef NODE_CONNECTION_BASE_H
00002 #define NODE_CONNECTION_BASE_H
00003 
00004 
00005 class NodeConnectorBase;
00006 
00008 class NodeConnectionBase : public QObject
00009 {
00010         Q_OBJECT
00011 
00012 public:
00013 
00014 
00015         virtual ~NodeConnectionBase();
00016     NodeConnectionBase(NodeConnectorBase *startConnector, NodeConnectorBase *endConnector,
00017       QGraphicsItem *parent = 0, QGraphicsScene *scene = 0, bool bidirectional = true);
00018 
00019 /*
00020     void setColor(const QColor &color)
00021         { mColor = color; }
00022                 */
00023 
00024     NodeConnectorBase *startConnector() const
00025         { return mStartConnector; }
00026     NodeConnectorBase *endConnector() const
00027         { return mEndConnector; }
00028 
00029         void updatePosition();
00030 
00031         bool bidirectional();
00032         bool setBidirectional(bool bidirectional);
00033 
00034 protected:
00035 
00036     NodeConnector *mStartConnector;
00037     NodeConnector *mEndConnector;
00038     //QColor mColor;
00039     
00040         //qreal arrowSize;
00041         //bool mBidirectional;
00042 
00043         //void debugPaint(QPainter *painter, QPointF& controlPoint1, QPointF& controlPoint2);
00044 
00045 
00046 };
00048 
00049 #endif