summaryrefslogtreecommitdiffstats
path: root/Project/Transformer.h
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2016-08-30 17:30:54 -0300
committerThales1330 <thaleslima.ufu@gmail.com>2016-08-30 17:30:54 -0300
commitc478afa9fbef4b21ea85dbc266169b9eebf369a9 (patch)
treefde5344bf80f54324e9f3673e3c37eca4bb4ac3a /Project/Transformer.h
parent06e57f5c75772dcba902e3032c756f79090f3424 (diff)
downloadPSP.git-c478afa9fbef4b21ea85dbc266169b9eebf369a9.tar.gz
PSP.git-c478afa9fbef4b21ea85dbc266169b9eebf369a9.tar.xz
PSP.git-c478afa9fbef4b21ea85dbc266169b9eebf369a9.zip
Transformer
Diffstat (limited to 'Project/Transformer.h')
-rw-r--r--Project/Transformer.h25
1 files changed, 25 insertions, 0 deletions
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<wxPoint2DDouble> m_pointList;
+ bool m_inserted = false;
+ std::vector<wxPoint2DDouble> m_movePts;
+};
+
+#endif // TRANSFORMER_H