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 virtual void GetValues(
double& aValue,
double& bValue);
48 virtual void SetValues(
double aValue,
double bValue);
58 virtual bool Solve(
double* input,
double timeStep);
60 virtual rapidxml::xml_node<>* SaveElement(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* elementListNode);
61 virtual bool OpenElement(rapidxml::xml_node<>* elementNode);
66 double m_aValue = 0.001;
67 double m_bValue = 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...
Generates an output following an exponential function.
virtual void Rotate(bool clockwise=true)
Rotate the element.
virtual bool Solve(double *input, double timeStep)
Calculates the exponential.
virtual bool Intersects(wxRect2DDouble rect) const
Check if the element's rect intersects other rect.
virtual bool Contains(wxPoint2DDouble position) const
Checks if the element contains a position.
virtual Element * GetCopy()
Get a the element copy.
virtual void DrawDC(wxPoint2DDouble translation, double scale, wxGraphicsContext *gc) const
Draw the element using GDI+.
virtual bool ShowForm(wxWindow *parent, Element *element)
Show element data form.