From c478afa9fbef4b21ea85dbc266169b9eebf369a9 Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Tue, 30 Aug 2016 17:30:54 -0300 Subject: Transformer --- Project/Transformer.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Project/Transformer.h (limited to 'Project/Transformer.h') diff --git a/Project/Transformer.h b/Project/Transformer.h new file mode 100644 index 0000000..02ad59c --- /dev/null +++ b/Project/Transformer.h @@ -0,0 +1,25 @@ +#ifndef TRANSFORMER_H +#define TRANSFORMER_H + +#include "Element.h" + +class Transformer : public Element +{ +public: + Transformer(); + virtual ~Transformer(); + + virtual bool AddParent(Element* parent, wxPoint2DDouble position); + virtual bool Contains(wxPoint2DDouble position) const; + virtual void Draw(wxPoint2DDouble translation, double scale) const; + virtual bool Intersects(wxRect2DDouble rect) const; + virtual void Rotate(); + + protected: + void UpdateSwitchesPosition(); + std::vector m_pointList; + bool m_inserted = false; + std::vector m_movePts; +}; + +#endif // TRANSFORMER_H -- cgit