SourceXtractorPlusPlus
0.11
Please provide a description of the project.
SEImplementation
SEImplementation
Plugin
ShapeParameters
ShapeParameters.h
Go to the documentation of this file.
1
17
/*
18
* ShapeParameters.h
19
*
20
* Created on: Jan 27, 2017
21
* Author: mschefer
22
*/
23
24
#ifndef _SEIMPLEMENTATION_PLUGIN_SHAPEPARAMETERS_SHAPEPARAMETERS_H_
25
#define _SEIMPLEMENTATION_PLUGIN_SHAPEPARAMETERS_SHAPEPARAMETERS_H_
26
27
#include "
SEUtils/Types.h
"
28
#include "
SEFramework/Property/Property.h
"
29
30
namespace
SourceXtractor
{
31
32
class
ShapeParameters
:
public
Property
{
33
public
:
34
35
ShapeParameters
(
SeFloat
a,
SeFloat
b,
SeFloat
theta,
SeFloat
abcor,
SeFloat
cxx,
SeFloat
cyy,
SeFloat
cxy,
SeFloat
area)
36
:
m_a
(a),
m_b
(b),
m_theta
(theta),
m_abcor
(abcor),
m_cxx
(cxx),
m_cyy
(cyy),
m_cxy
(cxy),
m_area
(area) {}
37
38
virtual
~ShapeParameters
() =
default
;
39
43
SeFloat
getEllipseA
()
const
{
44
return
m_a
;
45
}
46
50
SeFloat
getEllipseB
()
const
{
51
return
m_b
;
52
}
53
57
SeFloat
getEllipseTheta
()
const
{
58
return
m_theta
;
59
}
60
67
SeFloat
getEllipseCxx
()
const
{
68
return
m_cxx
;
69
}
70
77
SeFloat
getEllipseCyy
()
const
{
78
return
m_cyy
;
79
}
80
87
SeFloat
getEllipseCxy
()
const
{
88
return
m_cxy
;
89
}
90
91
SeFloat
getAbcor
()
const
{
92
return
m_abcor
;
93
}
94
95
SeFloat
getArea
()
const
{
96
return
m_area
;
97
}
98
99
SeFloat
getElongation
()
const
{
100
return
m_a
/
m_b
;
101
}
102
103
SeFloat
getEllipticity
()
const
{
104
return
1 -
m_b
/
m_a
;
105
}
106
107
private
:
108
SeFloat
m_a
,
m_b
,
m_theta
;
// Ellipse semi-major axis, semi-minor axis, and angle
109
SeFloat
m_abcor
;
110
SeFloat
m_cxx
,
m_cyy
,
m_cxy
;
111
SeFloat
m_area
;
112
113
};
114
115
}
116
117
118
119
#endif
/* _SEIMPLEMENTATION_PLUGIN_SHAPEPARAMETERS_SHAPEPARAMETERS_H_ */
SourceXtractor::ShapeParameters::getArea
SeFloat getArea() const
Definition:
ShapeParameters.h:95
SourceXtractor::ShapeParameters::~ShapeParameters
virtual ~ShapeParameters()=default
SourceXtractor::ShapeParameters::m_theta
SeFloat m_theta
Definition:
ShapeParameters.h:108
SourceXtractor::ShapeParameters::ShapeParameters
ShapeParameters(SeFloat a, SeFloat b, SeFloat theta, SeFloat abcor, SeFloat cxx, SeFloat cyy, SeFloat cxy, SeFloat area)
Definition:
ShapeParameters.h:35
SourceXtractor::Property
Base class for all Properties. (has no actual content)
Definition:
Property.h:33
Types.h
SourceXtractor::SeFloat
SeFloat32 SeFloat
Definition:
Types.h:32
SourceXtractor::ShapeParameters::getElongation
SeFloat getElongation() const
Definition:
ShapeParameters.h:99
SourceXtractor::ShapeParameters::getEllipseCyy
SeFloat getEllipseCyy() const
Definition:
ShapeParameters.h:77
SourceXtractor::ShapeParameters::m_cxy
SeFloat m_cxy
Definition:
ShapeParameters.h:110
SourceXtractor::ShapeParameters::getEllipseB
SeFloat getEllipseB() const
Definition:
ShapeParameters.h:50
SourceXtractor::ShapeParameters::m_cxx
SeFloat m_cxx
Definition:
ShapeParameters.h:110
SourceXtractor
Definition:
Aperture.h:30
Property.h
SourceXtractor::ShapeParameters::getEllipseCxx
SeFloat getEllipseCxx() const
Definition:
ShapeParameters.h:67
SourceXtractor::ShapeParameters::m_area
SeFloat m_area
Definition:
ShapeParameters.h:111
SourceXtractor::ShapeParameters::getEllipseCxy
SeFloat getEllipseCxy() const
Definition:
ShapeParameters.h:87
SourceXtractor::ShapeParameters::m_abcor
SeFloat m_abcor
Definition:
ShapeParameters.h:109
SourceXtractor::ShapeParameters::m_cyy
SeFloat m_cyy
Definition:
ShapeParameters.h:110
SourceXtractor::ShapeParameters::m_a
SeFloat m_a
Definition:
ShapeParameters.h:108
SourceXtractor::ShapeParameters::getEllipseA
SeFloat getEllipseA() const
Definition:
ShapeParameters.h:43
SourceXtractor::ShapeParameters::m_b
SeFloat m_b
Definition:
ShapeParameters.h:108
SourceXtractor::ShapeParameters::getEllipticity
SeFloat getEllipticity() const
Definition:
ShapeParameters.h:103
SourceXtractor::ShapeParameters::getAbcor
SeFloat getAbcor() const
Definition:
ShapeParameters.h:91
SourceXtractor::ShapeParameters
Definition:
ShapeParameters.h:32
SourceXtractor::ShapeParameters::getEllipseTheta
SeFloat getEllipseTheta() const
Definition:
ShapeParameters.h:57
Generated by
1.8.18