diff options
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); |