39 virtual void DrawDC(wxPoint2DDouble translation,
double scale, wxGraphicsContext* gc)
const;
40 virtual bool Contains(wxPoint2DDouble position)
const {
return m_rect.Contains(position); }
41 virtual bool Intersects(wxRect2DDouble rect)
const {
return m_rect.Intersects(rect); }
43 virtual void Rotate(
bool clockwise =
true);
44 virtual bool Solve(
double* input,
double timeStep);
46 virtual void UpdatePoints();
48 double GetUpLimit()
const {
return m_upLimit; }
49 double GetLowLimit()
const {
return m_lowLimit; }
50 void SetUpLimit(
double upLimit) { m_upLimit = upLimit; }
51 void SetLowLimit(
double lowLimit) { m_lowLimit = lowLimit; }
53 virtual rapidxml::xml_node<>* SaveElement(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* elementListNode);
54 virtual bool OpenElement(rapidxml::xml_node<>* elementNode);
59 double m_upLimit = 5.0;
60 double m_lowLimit = -5.0;
Base class of a control element. Provide general methods to other control classes.
Base class of all elements of the program. This class is responsible for manage graphical and his dat...
Limits the input value by superior and inferior values.
virtual bool ShowForm(wxWindow *parent, Element *element)
Show element data form.
virtual Element * GetCopy()
Get a the element copy.
virtual void Rotate(bool clockwise=true)
Rotate the element.
virtual bool Contains(wxPoint2DDouble position) const
Checks if the element contains a position.
virtual bool Intersects(wxRect2DDouble rect) const
Check if the element's rect intersects other rect.
virtual void DrawDC(wxPoint2DDouble translation, double scale, wxGraphicsContext *gc) const
Draw the element using GDI+.