Update of /cvsroot/pyxida/Pyxida/src/edu/harvard/syrah/pyxida/api
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21519/src/edu/harvard/syrah/pyxida/api
Modified Files:
ExternalAPI.java
Log Message:
problem with external interface
Index: ExternalAPI.java
===================================================================
RCS file: /cvsroot/pyxida/Pyxida/src/edu/harvard/syrah/pyxida/api/ExternalAPI.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ExternalAPI.java 30 Nov 2006 18:47:17 -0000 1.1
--- ExternalAPI.java 1 Dec 2006 15:31:28 -0000 1.2
***************
*** 3,6 ****
--- 3,7 ----
import java.util.List;
import java.util.Map;
+ import java.util.ArrayList;
import edu.harvard.syrah.prp.Log;
***************
*** 53,58 ****
public List<Double> getLocalCoord() {
Coordinate coord = ncManager.getLocalCoord();
! List<Double> listCoord = null;
! //TODO convert coord to double list
return listCoord;
}
--- 54,62 ----
public List<Double> getLocalCoord() {
Coordinate coord = ncManager.getLocalCoord();
! List<Double> listCoord = new ArrayList<Double>();
! double c[] = coord.asVectorFromZero(false).getComponents();
! for (int i = 0; i < c.length; i++) {
! listCoord.add(c[i]);
! }
return listCoord;
}
|