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);
45 virtual void UpdatePoints();
47 double GetUpLimit()
const {
return m_upLimit; }
48 double GetLowLimit()
const {
return m_lowLimit; }
49 void SetUpLimit(
double upLimit) { m_upLimit = upLimit; }
50 void SetLowLimit(
double lowLimit) { m_lowLimit = lowLimit; }
67 virtual bool Solve(
double* input,
double timeStep);
69 virtual rapidxml::xml_node<>* SaveElement(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* elementListNode);
70 virtual bool OpenElement(rapidxml::xml_node<>* elementNode);
75 double m_upLimit = 5.0;
76 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 rising and/or falling rate.
virtual void Rotate(bool clockwise=true)
Rotate the element.
virtual void DrawDC(wxPoint2DDouble translation, double scale, wxGraphicsContext *gc) const
Draw the element using GDI+.
virtual Element * GetCopy()
Get a the element copy.
virtual bool Solve(double *input, double timeStep)
Calculate the rate and limits it if exceeds.
virtual bool Intersects(wxRect2DDouble rect) const
Check if the element's rect intersects other rect.
virtual bool ShowForm(wxWindow *parent, Element *element)
Show element data form.
virtual bool Contains(wxPoint2DDouble position) const
Checks if the element contains a position.