blob: 682effb7eb142d5a1648a4432c42063e3247c1a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef SUM_H
#define SUM_H
#include "ControlElement.h"
class SumForm;
class Sum : public ControlElement
{
public:
enum Signal { SIGNAL_POSITIVE = 0, SIGNAL_NEGATIVE };
Sum();
~Sum();
virtual void Draw(wxPoint2DDouble translation, double scale) const;
virtual bool Contains(wxPoint2DDouble position) const { return m_rect.Contains(position); }
virtual bool Intersects(wxRect2DDouble rect) const { return m_rect.Intersects(rect); }
virtual bool ShowForm(wxWindow* parent, Element* element);
protected:
std::vector<Signal> m_signalList;
};
#endif // SUM_H
|