24
24
25
25
namespace
26
26
{
27
- double getCenterTime (const six::sidd::DerivedData* derived)
27
+ double getCenterTime (const six::sidd::DerivedData& derived)
28
28
{
29
29
double centerTime;
30
- if (derived-> measurement ->projection ->isMeasurable ())
30
+ if (derived. measurement ->projection ->isMeasurable ())
31
31
{
32
32
const six::sidd::MeasurableProjection* const projection =
33
33
reinterpret_cast <const six::sidd::MeasurableProjection*>(
34
- derived-> measurement ->projection .get ());
34
+ derived. measurement ->projection .get ());
35
35
36
- centerTime = projection->timeCOAPoly (
37
- projection->referencePoint .rowCol .row ,
38
- projection->referencePoint .rowCol .col );
36
+ centerTime = projection->timeCOAPoly (0 , 0 );
39
37
}
40
38
else
41
39
{
42
40
// we estimate...
43
- centerTime
44
- = derived-> exploitationFeatures ->collections [0 ]->information ->collectionDuration
41
+ centerTime =
42
+ derived. exploitationFeatures ->collections [0 ]->information ->collectionDuration
45
43
/ 2 ;
46
44
}
47
45
@@ -77,7 +75,7 @@ namespace sidd
77
75
scene::SideOfTrack
78
76
Utilities::getSideOfTrack (const DerivedData* derived)
79
77
{
80
- const double centerTime = getCenterTime (derived);
78
+ const double centerTime = getCenterTime (* derived);
81
79
82
80
// compute arpPos and arpVel
83
81
const six::Vector3 arpPos = derived->measurement ->arpPoly (centerTime);
@@ -92,7 +90,7 @@ Utilities::getSideOfTrack(const DerivedData* derived)
92
90
std::auto_ptr<scene::SceneGeometry>
93
91
Utilities::getSceneGeometry (const DerivedData* derived)
94
92
{
95
- const double centerTime = getCenterTime (derived);
93
+ const double centerTime = getCenterTime (* derived);
96
94
97
95
// compute arpPos and arpVel
98
96
six::Vector3 arpPos = derived->measurement ->arpPoly (centerTime);
@@ -298,7 +296,7 @@ void Utilities::setProductValues(Poly2D timeCOAPoly,
298
296
PolyXYZ arpPoly, ReferencePoint ref, const Vector3* row,
299
297
const Vector3* col, types::RgAz<double >res, Product* product)
300
298
{
301
- double scpTime = timeCOAPoly (ref. rowCol . row , ref. rowCol . col );
299
+ const double scpTime = timeCOAPoly (0 , 0 );
302
300
303
301
Vector3 arpPos = arpPoly (scpTime);
304
302
PolyXYZ arpVelPoly = arpPoly.derivative ();
@@ -330,7 +328,7 @@ void Utilities::setCollectionValues(Poly2D timeCOAPoly,
330
328
PolyXYZ arpPoly, ReferencePoint ref, const Vector3* row,
331
329
const Vector3* col, Collection* collection)
332
330
{
333
- double scpTime = timeCOAPoly (ref. rowCol . row , ref. rowCol . col );
331
+ const double scpTime = timeCOAPoly (0 , 0 );
334
332
335
333
Vector3 arpPos = arpPoly (scpTime);
336
334
PolyXYZ arpVelPoly = arpPoly.derivative ();
0 commit comments