Search in sources :

Example 1 with GraphToListTranslator

use of org.hwyl.sexytopo.control.util.GraphToListTranslator in project sexytopo by richsmith.

the class ThExporter method getCentreline.

private static String getCentreline(Survey survey) {
    GraphToListTranslator graphToListTranslator = new GraphToListTranslator();
    StringBuilder builder = new StringBuilder();
    Trip trip = survey.getTrip();
    if (trip != null) {
        builder.append(formatTrip(trip));
    }
    builder.append("data normal from to length compass clino\n\n");
    List<GraphToListTranslator.SurveyListEntry> list = graphToListTranslator.toChronoListOfSurveyListEntries(survey);
    for (GraphToListTranslator.SurveyListEntry entry : list) {
        SurvexTherionUtil.formatEntry(builder, entry, COMMENT_CHAR);
        builder.append("\n");
    }
    return builder.toString();
}
Also used : Trip(org.hwyl.sexytopo.model.survey.Trip) GraphToListTranslator(org.hwyl.sexytopo.control.util.GraphToListTranslator)

Aggregations

GraphToListTranslator (org.hwyl.sexytopo.control.util.GraphToListTranslator)1 Trip (org.hwyl.sexytopo.model.survey.Trip)1