static PointPropertyType TopointPropertyType(double x, double y, double z) { PointPropertyType ppt = PointPropertyType.Factory.newInstance(); PointType pnt = ppt.addNewPoint(); DirectPositionType pos = pnt.addNewPos(); pos.setStringValue(posListString(x, y, z)); return ppt; }
public static void exampleFiducial(FiducialType fiducial, int identifier) { fiducial.setCode("Reference Number for fiducial"); fiducial.setName("Fiducial Name 1"); fiducial.setFiducialType("anatomic"); fiducial.setCertaintyLevel("optional value"); fiducial.setDerivedFrom("optional value"); AuthorType author = fiducial.addNewAuthor(); author.setAuthorCode("aCode"); // author.setDateSubmitted(Calendar.getInstance()); author.setDateSubmitted(new XmlCalendar("2004-07-04")); author.setStringValue("Author Name"); Incfdescription desc = fiducial.addNewDescription(); desc.setStringValue("Deescription"); PointType pnt = fiducial.addNewPoint(); pnt.addNewPos().setStringValue("0 0 0"); pnt.setSrsName("Mouse_ABAReference_1.0"); pnt.setId("a35"); }