Engauge Digitizer  2
EllipseParameters.h
Go to the documentation of this file.
1 /******************************************************************************************************
2  * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3  * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4  * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5  ******************************************************************************************************/
6 
7 #ifndef ELLIPSE_PARAMETERS_H
8 #define ELLIPSE_PARAMETERS_H
9 
10 #include <QPointF>
11 
16 {
17 public:
21  EllipseParameters (const QPointF &posCenter,
22  double angleRadians,
23  double a,
24  double b);
28  EllipseParameters (const EllipseParameters &other);
29  virtual ~EllipseParameters();
30 
32  double a () const;
33 
35  double angleRadians () const;
36 
38  double b () const;
39 
41  QPointF posCenter () const;
42 
43 private:
44 
45  QPointF m_posCenter;
46  double m_angleRadians;
47  double m_a;
48  double m_b;
49 };
50 
51 #endif // ELLIPSE_PARAMETERS_H
QPointF posCenter() const
Get method for center.
double a() const
Get method for a.
double b() const
Get method for b.
Parameters that define an ellipse about the specified center, at the specified angle from alignment w...
EllipseParameters & operator=(const EllipseParameters &other)
Assignment constructor.
EllipseParameters()
Constructor when this class is expected to be never used.
double angleRadians() const
Get method for angle in radians.