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
EllipseParameters::operator=
EllipseParameters & operator=(const EllipseParameters &other)
Assignment constructor.
Definition: EllipseParameters.cpp:28
EllipseParameters::posCenter
QPointF posCenter() const
Get method for center.
Definition: EllipseParameters.cpp:64
EllipseParameters::b
double b() const
Get method for b.
Definition: EllipseParameters.cpp:59
EllipseParameters::~EllipseParameters
virtual ~EllipseParameters()
Definition: EllipseParameters.cpp:45
EllipseParameters::a
double a() const
Get method for a.
Definition: EllipseParameters.cpp:49
EllipseParameters::EllipseParameters
EllipseParameters()
Constructor when this class is expected to be never used.
Definition: EllipseParameters.cpp:9
EllipseParameters
Parameters that define an ellipse about the specified center, at the specified angle from alignment w...
Definition: EllipseParameters.h:14
EllipseParameters::angleRadians
double angleRadians() const
Get method for angle in radians.
Definition: EllipseParameters.cpp:54