From 045037ce8f2b106acbe5425245746a2dbed65c26 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Thu, 30 Mar 2017 11:10:06 -0300 Subject: Exponencial under implementation --- Project/Exponential.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Project/Exponential.h (limited to 'Project/Exponential.h') diff --git a/Project/Exponential.h b/Project/Exponential.h new file mode 100644 index 0000000..f22299a --- /dev/null +++ b/Project/Exponential.h @@ -0,0 +1,14 @@ +#ifndef EXPONENTIAL_H +#define EXPONENTIAL_H + +#include "ControlElement.h" + +class Exponential : ControlElement +{ +public: + Exponential(); + ~Exponential(); + +}; + +#endif // EXPONENTIAL_H -- cgit From a684d5c9c9dd131060b5a36d7c7844ae197fcfd1 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Fri, 31 Mar 2017 18:16:05 -0300 Subject: Exponencial implemented --- Project/Exponential.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Project/Exponential.h') diff --git a/Project/Exponential.h b/Project/Exponential.h index f22299a..c8117c0 100644 --- a/Project/Exponential.h +++ b/Project/Exponential.h @@ -3,11 +3,19 @@ #include "ControlElement.h" -class Exponential : ControlElement +class Exponential : public ControlElement { public: Exponential(); ~Exponential(); + + virtual void Draw(wxPoint2DDouble translation, double scale) const; + virtual bool Contains(wxPoint2DDouble position) const { return m_rect.Contains(position); } + virtual bool Intersects(wxRect2DDouble rect) const { return m_rect.Intersects(rect); } + virtual bool ShowForm(wxWindow* parent, Element* element); + virtual void Rotate(bool clockwise = true); + + virtual void UpdatePoints(); }; -- cgit From afb0e6e08d3911b7387799f5c465fd59ca26a484 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Sat, 1 Apr 2017 17:43:54 -0300 Subject: Constant implemented Missing: gain and io --- Project/Exponential.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Project/Exponential.h') diff --git a/Project/Exponential.h b/Project/Exponential.h index c8117c0..d1744f5 100644 --- a/Project/Exponential.h +++ b/Project/Exponential.h @@ -3,6 +3,8 @@ #include "ControlElement.h" +class ExponentialForm; + class Exponential : public ControlElement { public: @@ -16,6 +18,13 @@ public: virtual void Rotate(bool clockwise = true); virtual void UpdatePoints(); + + virtual double GetValues(double& aValue, double &bValue); + virtual void SetValues(double aValue, double bValue); + +protected: + double m_aValue = 0.001; + double m_bValue = 5.0; }; -- cgit From 38b3e2decff95f5e29ffb6025ee899d108d22f04 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Tue, 4 Apr 2017 18:10:12 -0300 Subject: Gain implemented Implement io: https://ideone.com/0HDBVd --- Project/Exponential.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Project/Exponential.h') diff --git a/Project/Exponential.h b/Project/Exponential.h index d1744f5..ab86ebb 100644 --- a/Project/Exponential.h +++ b/Project/Exponential.h @@ -19,7 +19,7 @@ public: virtual void UpdatePoints(); - virtual double GetValues(double& aValue, double &bValue); + virtual void GetValues(double& aValue, double &bValue); virtual void SetValues(double aValue, double bValue); protected: -- cgit From f19803bc64885bcfaef15cfd7a8139c28d3dd506 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Sat, 8 Apr 2017 16:31:25 -0300 Subject: Control editor export under implementation File handling --- Project/Exponential.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Project/Exponential.h') diff --git a/Project/Exponential.h b/Project/Exponential.h index ab86ebb..8260d66 100644 --- a/Project/Exponential.h +++ b/Project/Exponential.h @@ -8,7 +8,7 @@ class ExponentialForm; class Exponential : public ControlElement { public: - Exponential(); + Exponential(int id); ~Exponential(); virtual void Draw(wxPoint2DDouble translation, double scale) const; -- cgit