diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2016-09-05 18:43:50 -0300 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2016-09-05 18:43:50 -0300 |
commit | d93ef357da510f2515556ff2cb51688a4e068805 (patch) | |
tree | da24ff514d5d507252681365d7cda6b08576af23 /Project/Capacitor.h | |
parent | 47cebfc84d4ae315f4bf8ffb3d074b2b75781a1b (diff) | |
download | PSP.git-d93ef357da510f2515556ff2cb51688a4e068805.tar.gz PSP.git-d93ef357da510f2515556ff2cb51688a4e068805.tar.xz PSP.git-d93ef357da510f2515556ff2cb51688a4e068805.zip |
All elements implemented, switches implemented
Diffstat (limited to 'Project/Capacitor.h')
-rw-r--r-- | Project/Capacitor.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Project/Capacitor.h b/Project/Capacitor.h index fe7c267..e407ba8 100644 --- a/Project/Capacitor.h +++ b/Project/Capacitor.h @@ -3,7 +3,7 @@ #include "Shunt.h" -class Capacitor : Shunt +class Capacitor : public Shunt { public: Capacitor(); @@ -11,6 +11,8 @@ public: virtual bool AddParent(Element* parent, wxPoint2DDouble position); virtual void Draw(wxPoint2DDouble translation, double scale) const; + virtual bool Contains(wxPoint2DDouble position) const; + virtual bool Intersects(wxRect2DDouble rect) const; virtual void Rotate(); virtual bool GetContextMenu(wxMenu& menu); |