summaryrefslogtreecommitdiffstats
path: root/Project/Exponential.h
blob: d1744f5e87ca2c4fbcc7086ec84b66ba1a21f289 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef EXPONENTIAL_H
#define EXPONENTIAL_H

#include "ControlElement.h"

class ExponentialForm;

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();
    
    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;

};

#endif // EXPONENTIAL_H