@Test public void testAddGeometry() { System.out.println("addGeometry"); MasonGeometry g = new MasonGeometry(createPoint(1,1)); GeomVectorField instance = new GeomVectorField(); instance.addGeometry(g); Bag geometries = instance.getGeometries(); assertTrue(geometries.size() == 1); assertTrue(geometries.objs[0].equals(g)); }
public void addGeometry(final MasonGeometry g) { Envelope e = g.getGeometry().getEnvelopeInternal(); MBR.expandToInclude(e); spatialIndex.insert(e, g); geometries.add(g); }
GeomVectorField extends GeomField { public void addGeometry(final MasonGeometry g) { Envelope e = g.getGeometry().getEnvelopeInternal(); MBR.expandToInclude(e); spatialIndex.insert(e, g); geometries.add(g); } }
GeomVectorField extends GeomField { public void addGeometry(final MasonGeometry g) { Envelope e = g.getGeometry().getEnvelopeInternal(); MBR.expandToInclude(e); spatialIndex.insert(e, g); geometries.add(g); } GeomVectorField();  GeomVectorField(int w, int h); }
GeomVectorField extends GeomField { public void addGeometry(final MasonGeometry g) { Envelope e = g.getGeometry().getEnvelopeInternal(); MBR.expandToInclude(e); spatialIndex.insert(e, g); geometries.add(g); } GeomVectorField();  GeomVectorField(int w, int h); void addGeometry(final MasonGeometry g); void removeGeometry(final MasonGeometry g); @Override void clear(); void computeConvexHull(); boolean isInsideConvexHull(final Coordinate coord); void computeUnion(); boolean isInsideUnion(final Coordinate point); synchronized Bag queryField(Envelope e); Bag getGeometries(); Bag getObjectsWithinDistance(final Geometry g, final double dist); Bag getObjectsWithinDistance(final MasonGeometry mg, final double dist); final Bag getCoveringObjects(final Geometry g); final Bag getCoveringObjects(final MasonGeometry mg); final Bag getCoveredObjects(MasonGeometry g); final Bag getContainingObjects(final Geometry g); final Bag getContainingObjects(final MasonGeometry mg); final Bag getTouchingObjects(MasonGeometry mg); boolean isCovered(MasonGeometry g); boolean isCovered(final Coordinate point); Point getGeometryLocation(MasonGeometry g); void setGeometryLocation(MasonGeometry g, CoordinateSequenceFilter p); void updateSpatialIndex(); Steppable scheduleSpatialIndexUpdater(); synchronized MasonGeometry findGeometry(MasonGeometry g); MasonGeometry getGeometry(String name, Object value); void updateTransform(DrawInfo2D info); }
GeomVectorField extends GeomField { public void addGeometry(final MasonGeometry g) { Envelope e = g.getGeometry().getEnvelopeInternal(); MBR.expandToInclude(e); spatialIndex.insert(e, g); geometries.add(g); } GeomVectorField();  GeomVectorField(int w, int h); void addGeometry(final MasonGeometry g); void removeGeometry(final MasonGeometry g); @Override void clear(); void computeConvexHull(); boolean isInsideConvexHull(final Coordinate coord); void computeUnion(); boolean isInsideUnion(final Coordinate point); synchronized Bag queryField(Envelope e); Bag getGeometries(); Bag getObjectsWithinDistance(final Geometry g, final double dist); Bag getObjectsWithinDistance(final MasonGeometry mg, final double dist); final Bag getCoveringObjects(final Geometry g); final Bag getCoveringObjects(final MasonGeometry mg); final Bag getCoveredObjects(MasonGeometry g); final Bag getContainingObjects(final Geometry g); final Bag getContainingObjects(final MasonGeometry mg); final Bag getTouchingObjects(MasonGeometry mg); boolean isCovered(MasonGeometry g); boolean isCovered(final Coordinate point); Point getGeometryLocation(MasonGeometry g); void setGeometryLocation(MasonGeometry g, CoordinateSequenceFilter p); void updateSpatialIndex(); Steppable scheduleSpatialIndexUpdater(); synchronized MasonGeometry findGeometry(MasonGeometry g); MasonGeometry getGeometry(String name, Object value); void updateTransform(DrawInfo2D info); public Envelope clipEnvelope; public AffineTransform worldToScreen; public com.vividsolutions.jts.geom.util.AffineTransformation jtsTransform; }