23#include <wx/dcscreen.h>
43 virtual void DrawDC(wxPoint2DDouble translation,
double scale, wxGraphicsContext* gc)
const;
44 virtual bool Contains(wxPoint2DDouble position)
const {
return m_rect.Contains(position); }
45 virtual bool Intersects(wxRect2DDouble rect)
const {
return m_rect.Intersects(rect); }
47 virtual void Rotate(
bool clockwise =
true);
48 virtual void Move(wxPoint2DDouble position);
50 virtual void SetValue(
double value);
51 virtual double GetValue()
const {
return m_value; }
52 virtual void UpdatePoints();
61 virtual bool Solve(
double* input,
double timeStep);
63 virtual rapidxml::xml_node<>* SaveElement(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* elementListNode);
64 virtual bool OpenElement(rapidxml::xml_node<>* elementNode);
72 GCText* m_gcText =
nullptr;
74 std::vector<wxPoint2DDouble> m_triPts;
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...
Class to draw text on Graphics Context using wxWidgets.
Provide an output multiplying the input by a constant.
virtual Element * GetCopy()
Get a the element copy.
virtual bool UpdateText()
Update the OpenGL text in the element (if present).
virtual bool ShowForm(wxWindow *parent, Element *element)
Show element data form.
virtual bool Solve(double *input, double timeStep)
Multiply the input by a constant.
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+.
virtual bool Contains(wxPoint2DDouble position) const
Checks if the element contains a position.
virtual void Move(wxPoint2DDouble position)
Move the element other position.
virtual void Rotate(bool clockwise=true)
Rotate the element.