18#ifndef MATHOPERATION_H
19#define MATHOPERATION_H
39 virtual void DrawDC(wxPoint2DDouble translation,
double scale, wxGraphicsContext* gc)
const;
40 virtual void DrawSymbol()
const {}
41 virtual void DrawDCSymbol(wxGraphicsContext* gc)
const {}
42 virtual bool Contains(wxPoint2DDouble position)
const {
return m_rect.Contains(position); }
43 virtual bool Intersects(wxRect2DDouble rect)
const {
return m_rect.Intersects(rect); }
45 virtual void Rotate(
bool clockwise =
true);
47 virtual void UpdatePoints();
Base class of a control element. Provide general methods to other control classes.
Connection between two control elements or other connection line and an element.
Base class of all elements of the program. This class is responsible for manage graphical and his dat...
Abstract class that define the general behavior of math operation control block.
virtual bool Intersects(wxRect2DDouble rect) const
Check if the element's rect intersects other rect.
virtual void Rotate(bool clockwise=true)
Rotate the element.
virtual bool ShowForm(wxWindow *parent, Element *element)
Show element data form.
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.