Engauge Digitizer 2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
EllipseParameters Class Reference

Parameters that define an ellipse about the specified center, at the specified angle from alignment with the axes. More...

#include <EllipseParameters.h>

Collaboration diagram for EllipseParameters:
Collaboration graph

Public Member Functions

 EllipseParameters ()
 Constructor when this class is expected to be never used.
 
 EllipseParameters (const QPointF &posCenter, double angleRadians, double a, double b)
 Standard constructor.
 
EllipseParametersoperator= (const EllipseParameters &other)
 Assignment constructor.
 
 EllipseParameters (const EllipseParameters &other)
 Copy constructor.
 
virtual ~EllipseParameters ()
 
double a () const
 Get method for a.
 
double angleRadians () const
 Get method for angle in radians.
 
double b () const
 Get method for b.
 
QPointF posCenter () const
 Get method for center.
 

Detailed Description

Parameters that define an ellipse about the specified center, at the specified angle from alignment with the axes.

Neglecting the rotation for simplicity, the ellipse is defined as (x - xCenter)^2 / a^2 + (y - yCenter)^2 / b^2 = 1

Definition at line 15 of file EllipseParameters.h.

Constructor & Destructor Documentation

◆ EllipseParameters() [1/3]

EllipseParameters::EllipseParameters ( )

Constructor when this class is expected to be never used.

Definition at line 9 of file EllipseParameters.cpp.

9 :
10 m_posCenter (QPointF (0, 0)),
11 m_angleRadians (0),
12 m_a (0),
13 m_b (0)
14{
15}
const int INNER_RADIUS_MIN

◆ EllipseParameters() [2/3]

EllipseParameters::EllipseParameters ( const QPointF & posCenter,
double angleRadians,
double a,
double b )

Standard constructor.

Definition at line 17 of file EllipseParameters.cpp.

20 :
21 m_posCenter (posCenter),
22 m_angleRadians (angleRadians),
23 m_a (a),
24 m_b (b)
25{
26}
double angleRadians() const
Get method for angle in radians.
double b() const
Get method for b.
QPointF posCenter() const
Get method for center.
double a() const
Get method for a.

◆ EllipseParameters() [3/3]

EllipseParameters::EllipseParameters ( const EllipseParameters & other)

Copy constructor.

Definition at line 38 of file EllipseParameters.cpp.

38 :
39 m_posCenter (other.posCenter()),
40 m_angleRadians (other.angleRadians()),
41 m_a (other.a ()),
42 m_b (other.b ())
43{
44}

◆ ~EllipseParameters()

EllipseParameters::~EllipseParameters ( )
virtual

Definition at line 45 of file EllipseParameters.cpp.

46{
47}

Member Function Documentation

◆ a()

double EllipseParameters::a ( ) const

Get method for a.

Definition at line 49 of file EllipseParameters.cpp.

50{
51 return m_a;
52}

◆ angleRadians()

double EllipseParameters::angleRadians ( ) const

Get method for angle in radians.

Definition at line 54 of file EllipseParameters.cpp.

55{
56 return m_angleRadians;
57}

◆ b()

double EllipseParameters::b ( ) const

Get method for b.

Definition at line 59 of file EllipseParameters.cpp.

60{
61 return m_b;
62}

◆ operator=()

EllipseParameters & EllipseParameters::operator= ( const EllipseParameters & other)

Assignment constructor.

Definition at line 28 of file EllipseParameters.cpp.

29{
30 m_posCenter = other.posCenter();
31 m_angleRadians = other.angleRadians();
32 m_a = other.a ();
33 m_b = other.b ();
34
35 return *this;
36}

◆ posCenter()

QPointF EllipseParameters::posCenter ( ) const

Get method for center.

Definition at line 64 of file EllipseParameters.cpp.

65{
66 return m_posCenter;
67}

The documentation for this class was generated from the following files: