use of org.hwyl.sexytopo.model.survey.Survey in project sexytopo by richsmith.
the class BasicTestSurveyCreator method createStraightNorthWithTrip.
@SuppressWarnings("ArraysAsListWithZeroOrOneArgument")
public static Survey createStraightNorthWithTrip() {
Survey survey = new Survey("Test Straight Survey North");
List<Trip.TeamEntry> team = new ArrayList<>();
team.add(new Trip.TeamEntry("Alice", Arrays.asList(Trip.Role.BOOK)));
team.add(new Trip.TeamEntry("Bob", Arrays.asList(Trip.Role.INSTRUMENTS, Trip.Role.DOG)));
Trip trip = new Trip();
trip.setTeam(team);
survey.setTrip(trip);
Leg leg0 = new Leg(5, 0, 0);
SurveyUpdater.updateWithNewStation(survey, leg0);
Leg leg1 = new Leg(5, 0, 0);
SurveyUpdater.updateWithNewStation(survey, leg1);
Leg leg2 = new Leg(5, 0, 0);
SurveyUpdater.updateWithNewStation(survey, leg2);
return survey;
}
use of org.hwyl.sexytopo.model.survey.Survey in project sexytopo by richsmith.
the class BasicTestSurveyCreator method create5MDown.
public static Survey create5MDown() {
Survey survey = new Survey("Test Survey 1m Down");
Leg leg0 = new Leg(5, 0, -90);
SurveyUpdater.updateWithNewStation(survey, leg0);
return survey;
}
use of org.hwyl.sexytopo.model.survey.Survey in project sexytopo by richsmith.
the class BasicTestSurveyCreator method create5MEast.
public static Survey create5MEast() {
Survey survey = new Survey("Test Survey 5m east");
Leg leg0 = new Leg(5, 90, 0);
SurveyUpdater.updateWithNewStation(survey, leg0);
Leg splay0Left = new Leg(1, 0, 0);
SurveyUpdater.update(survey, splay0Left);
Leg splay0Right = new Leg(1, 180, 0);
SurveyUpdater.update(survey, splay0Right);
return survey;
}
use of org.hwyl.sexytopo.model.survey.Survey in project sexytopo by richsmith.
the class BasicTestSurveyCreator method createStraightNorthWith2EBranchFromS2.
public static Survey createStraightNorthWith2EBranchFromS2() {
Survey survey = new Survey("Test Straight Survey North With 2E Branch");
Leg leg0 = new Leg(5, 0, 0);
SurveyUpdater.updateWithNewStation(survey, leg0);
Leg leg1 = new Leg(5, 0, 0);
SurveyUpdater.updateWithNewStation(survey, leg1);
Leg leg2 = new Leg(5, 0, 0);
SurveyUpdater.updateWithNewStation(survey, leg2);
survey.setActiveStation(survey.getStationByName("2"));
Leg legBranch = new Leg(5, 90, 0);
SurveyUpdater.updateWithNewStation(survey, legBranch);
Leg legBranch2 = new Leg(5, 90, 0);
SurveyUpdater.updateWithNewStation(survey, legBranch2);
return survey;
}
use of org.hwyl.sexytopo.model.survey.Survey in project sexytopo by richsmith.
the class XviExporterTest method testLineIsPassedThroughToXvi.
@Test
public void testLineIsPassedThroughToXvi() {
Survey testSurvey = BasicTestSurveyCreator.createStraightNorth();
BasicTestSketchCreator.drawOneHorizontalLine(testSurvey.getPlanSketch());
String xvi = XviExporter.getContent(testSurvey.getPlanSketch(), Projection2D.PLAN.project(testSurvey), 1.0f);
Assert.assertTrue(xvi.contains("{BLACK 5.00 0.00 10.00 0.00}"));
}
Aggregations