[Opencadtools-commits] r157 - branches/extCAD_sprint/src/com/iver/cit/gvsig/gui/cad/tools

psanxiao at osor.eu psanxiao at osor.eu
Mon Aug 15 21:35:04 CEST 2011


Author: psanxiao
Date: 2011-08-15 21:35:04 +0200 (Mon, 15 Aug 2011)
New Revision: 157

Modified:
   branches/extCAD_sprint/src/com/iver/cit/gvsig/gui/cad/tools/JoinCADTool.java
Log:
Added method getJoinedGeometry()

Modified: branches/extCAD_sprint/src/com/iver/cit/gvsig/gui/cad/tools/JoinCADTool.java
===================================================================
--- branches/extCAD_sprint/src/com/iver/cit/gvsig/gui/cad/tools/JoinCADTool.java	2011-08-13 16:54:24 UTC (rev 156)
+++ branches/extCAD_sprint/src/com/iver/cit/gvsig/gui/cad/tools/JoinCADTool.java	2011-08-15 19:35:04 UTC (rev 157)
@@ -74,6 +74,7 @@
  * @author Vicente Caballero Navarro
  */
 public class JoinCADTool extends DefaultCADTool {
+    private IGeometry joinedGeometry;
     public static final String JOIN_ACTION_COMMAND = "_join";
     protected JoinCADToolContext _fsm;
     private TreeSet<DefaultRowEdited> shorted = new TreeSet<DefaultRowEdited>(new Comparator<DefaultRowEdited>(){
@@ -95,6 +96,10 @@
         _fsm = new JoinCADToolContext(this);
     }
 
+    public IGeometry getJoinedGeometry () {
+	return joinedGeometry;
+    }
+    
     /* (non-Javadoc)
      * @see com.iver.cit.gvsig.gui.cad.CADTool#transition(com.iver.cit.gvsig.fmap.layers.FBitSet, double, double)
      */
@@ -190,6 +195,7 @@
         	shorted.clear();
     		String newFID = vea.getNewFID();
     		IGeometry geom = FConverter.jts_to_igeometry(geomTotal);
+    		joinedGeometry = geom;
     		DefaultFeature df1 = new DefaultFeature(geom, values, newFID);
     		int index1 = vea.addRow(df1, PluginServices.getText(this, "join"),
     				EditionEvent.GRAPHIC);




More information about the Opencadtools-commits mailing list