File indexing completed on 2024-06-16 08:27:18

0001 //
0002 // C++ Interface: junctionnode
0003 //
0004 // Description:
0005 //
0006 //
0007 //
0008 // Copyright: See COPYING file that comes with this distribution
0009 //
0010 //
0011 #ifndef JUNCTIONNODE_H
0012 #define JUNCTIONNODE_H
0013 
0014 #include <ecnode.h>
0015 
0016 /**
0017  An ECNode class with type() == ec_junction
0018 */
0019 class JunctionNode : public ECNode
0020 {
0021 public:
0022     JunctionNode(ICNDocument *icnDocument, int dir, const QPoint &pos, QString *id = nullptr);
0023 
0024     ~JunctionNode() override;
0025 
0026     /** Returns the node's type. This member will be removed one day */
0027     virtual node_type type() const
0028     {
0029         return Node::ec_junction;
0030     }
0031 
0032     /**
0033      *  draws the JunctionNode
0034      */
0035     void drawShape(QPainter &p) override;
0036 
0037 protected:
0038     void initPoints() override;
0039 };
0040 
0041 #endif