Changeset 4087 in josm for trunk/test/functional


Ignore:
Timestamp:
2011-05-15T23:51:25+02:00 (8 years ago)
Author:
bastiK
Message:

PaintVisitor refactoring, includes hook for external MapRenderers (author: Gubaer)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/functional/mapcss/performance/PerformanceTest.groovy

    r4074 r4087  
    1212import org.openstreetmap.josm.data.Bounds
    1313import org.openstreetmap.josm.data.osm.DataSet
    14 import org.openstreetmap.josm.data.osm.visitor.paint.MapPaintVisitor
     14import org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer
    1515import org.openstreetmap.josm.gui.MainApplication
    1616import org.openstreetmap.josm.gui.layer.OsmDataLayer
     
    116116        Graphics2D g = img.createGraphics()
    117117        g.setClip(0,0, mv.getWidth(), mv.getHeight())
    118         def visitor = new MapPaintVisitor()
     118        def visitor = new StyledMapRenderer()
    119119        visitor.setNavigatableComponent(Main.map.mapView)
    120120        visitor.setGraphics(g)
     
    122122        print "Rendering ..."
    123123        long time = timed {
    124             visitor.visitAll(ds, false, new Bounds(-90,-180,90,180))
     124            visitor.render(ds, false, new Bounds(-90,-180,90,180))
    125125        }
    126126        println "DONE"
Note: See TracChangeset for help on using the changeset viewer.