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