| 27 | QString diffsFile; |
| 28 | |
| 29 | void SetUp() override { |
| 30 | TempTestingFiles::SetUp(); |
| 31 | |
| 32 | cnetFile1 = tempDir.path() + "/cnet1.net"; |
| 33 | cnetFile2 = tempDir.path() + "/cnet2.net"; |
| 34 | |
| 35 | diffsFile = tempDir.path() + "/diffs.txt"; |
| 36 | |
| 37 | // setup net1 |
| 38 | ControlNet net1; |
| 39 | |
| 40 | net1.SetNetworkId("Test"); |
| 41 | net1.SetTarget("Mars"); |
| 42 | net1.SetUserName("TSucharski"); |
| 43 | net1.SetCreatedDate("2010-07-10T12:50:15"); |
| 44 | net1.SetModifiedDate("2010-07-10T12:50:55"); |
| 45 | net1.SetDescription("UnitTest of ControlNetwork"); |
| 46 | |
| 47 | ControlPoint *cp1a = new ControlPoint("T0000"); |
| 48 | cp1a->SetType(ControlPoint::Fixed); |
| 49 | cp1a->SetChooserName("autoseed"); |
| 50 | cp1a->SetAprioriSurfacePointSource(ControlPoint::SurfacePointSource::Basemap); |
| 51 | cp1a->SetAprioriSurfacePointSourceFile("/work1/tsucharski/basemap.cub"); |
| 52 | cp1a->SetAprioriRadiusSource(ControlPoint::RadiusSource::DEM); |
| 53 | cp1a->SetAprioriRadiusSourceFile("$base/dems/molaMarsPlanetaryRadius0003.cub"); |
| 54 | |
| 55 | SurfacePoint surfacePt1(Displacement(-424.024048, Displacement::Meters), |
| 56 | Displacement(734.4311949, Displacement::Meters), |
| 57 | Displacement(529.919264, Displacement::Meters), |
| 58 | Distance(10, Distance::Meters), |
| 59 | Distance(50, Distance::Meters), |
| 60 | Distance(20, Distance::Meters)); |
| 61 | |
| 62 | // set apriori and adjusted surface points to the same values here |
| 63 | cp1a->SetAprioriSurfacePoint(surfacePt1); |
| 64 | cp1a->SetAdjustedSurfacePoint(surfacePt1); |
| 65 | |
| 66 | ControlMeasure *measure1aid0 = new ControlMeasure(); |
| 67 | measure1aid0->SetCubeSerialNumber("id0"); |
| 68 | measure1aid0->SetCoordinate(0.0, 0.0); |
| 69 | measure1aid0->SetType(ControlMeasure::Candidate); |
| 70 | measure1aid0->SetChooserName("cnetref"); |
| 71 | measure1aid0->SetDateTime("2010-08-27T17:10:06"); |
| 72 | measure1aid0->SetEditLock(true); |
| 73 | |
| 74 | ControlMeasure *measure1aid1 = new ControlMeasure(); |
| 75 | measure1aid1->SetCubeSerialNumber("id1"); |
| 76 | measure1aid1->SetCoordinate(1.0, 2.0); |
| 77 | measure1aid1->SetDiameter(15.0); |
| 78 | measure1aid1->SetType(ControlMeasure::Candidate); |
| 79 | measure1aid1->SetIgnored(true); |
| 80 | measure1aid1->SetAprioriSample(2.0); |
| 81 | measure1aid1->SetAprioriLine(5.0); |
| 82 | measure1aid1->SetSampleSigma(0.01); |
| 83 | measure1aid1->SetLineSigma(0.21); |
| 84 | measure1aid1->SetResidual(-3.0, 4.0); |
| 85 | measure1aid1->SetChooserName("autoseed"); |
| 86 | measure1aid1->SetDateTime("2010-08-27T17:10:06"); |
nothing calls this directly
no test coverage detected