MCPcopy Create free account
hub / github.com/DOI-USGS/ISIS3 / SetUp

Method SetUp

isis/tests/BundleControlPointTests.cpp:22–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 BundleSettingsQsp settings;
21
22 void SetUp() override {
23 settings = BundleSettingsQsp(new BundleSettings);
24 freePoint = std::make_unique<ControlPoint>("FreePoint");
25 ControlMeasure *cm1 = new ControlMeasure;
26 cm1->SetCubeSerialNumber("Ignored");
27 cm1->SetIgnored(true);
28 freePoint->Add(cm1);
29 ControlMeasure *cm2 = new ControlMeasure;
30 cm2->SetCubeSerialNumber("NotIgnored");
31 cm2->SetIgnored(false);
32 cm2->SetCoordinate(1.0, 2.0);
33 cm2->SetResidual(-3.0, 4.0);
34 freePoint->Add(cm2);
35
36 SurfacePoint aprioriPoint(
37 Latitude(45, Angle::Degrees),
38 Longitude(90, Angle::Degrees),
39 Distance(1000, Distance::Kilometers));
40 freePoint->SetAprioriSurfacePoint(aprioriPoint);
41
42 bundlePoint.reset(new BundleControlPoint(settings, freePoint.get()));
43 }
44};
45
46TEST_F(BundleControlPointPopulated, FreePoint) {

Callers

nothing calls this directly

Calls 11

SetCubeSerialNumberMethod · 0.80
SetResidualMethod · 0.80
LatitudeClass · 0.50
LongitudeClass · 0.50
DistanceClass · 0.50
SetIgnoredMethod · 0.45
AddMethod · 0.45
SetCoordinateMethod · 0.45
resetMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected