summaryrefslogtreecommitdiffstats
path: root/Project/Capacitor.h
blob: 47eff587b854ec597fb29b8c0754dba2eef0ed5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef CAPACITOR_H
#define CAPACITOR_H

#include "Shunt.h"

class Capacitor : public Shunt
{
public:
	Capacitor();
	~Capacitor();
	
	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(bool clockwise = true);
    virtual bool GetContextMenu(wxMenu& menu);

};

#endif // CAPACITOR_H