public static ArrayList<DBInfluenceAreaBoundary> GetInfluenceAreaBoundaries(RoFParser.Mission mission)
{
ArrayList<DBInfluenceAreaBoundary> iabPoints = new ArrayList<DBInfluenceAreaBoundary>();
ArrayList<InfluenceAreaBoundary> iabs = mission.getInfluenceAreaBoundaries();
InfluenceAreaBoundary iab;
float tmpX, tmpY, tmpZ;
Iterator<InfluenceAreaBoundary> it = iabs.iterator();
while (it.hasNext())
{
iab = it.next();
String[] tmpBP = iab.getBoundaryPoints();
for (int i = 0; i < tmpBP.length; i++)
{
tmpX = Float.parseFloat(tmpBP[i].split(",")[0].trim());
tmpY = Float.parseFloat(tmpBP[i].split(",")[1].trim());
tmpZ = Float.parseFloat(tmpBP[i].split(",")[2].trim());
//add boundary point
DBInfluenceAreaBoundary tmpIAB = new DBInfluenceAreaBoundary(
(i + 1), iab.getAreaID(), mission.getMissionID(), tmpX, tmpY, tmpZ);
iabPoints.add(tmpIAB);
}
}
return iabPoints;