Package rinde.sim.ui.renderers

Examples of rinde.sim.ui.renderers.RoadUserRenderer


    uis.add(TaxiBase.class, "/graphics/perspective/tall-building-64.png");
    uis.add(Taxi.class, "/graphics/flat/taxi-32.png");
    uis.add(Customer.class, "/graphics/flat/person-red-32.png");
    final View.Builder view = View.create(simulator)
        .with(new GraphRoadModelRenderer())
        .with(new RoadUserRenderer(uis, false))
        .with(new TaxiRenderer(Language.ENGLISH))
        .setTitleAppendix("Taxi Demo");

    if (testing) {
      System.out.println("TESTING");
View Full Code Here


        schema.add(DefaultDepot.class, "/graphics/flat/warehouse-32.png");
        schema.add(GFParcel.class, "/graphics/flat/hailing-cab-32.png");
        final View.Builder viewBuilder = View.create(sim)
            .with(
                new PlaneRoadModelRenderer(),
                new RoadUserRenderer(schema, false),
                new RouteRenderer(),
                new GradientFieldRenderer(),
                new PDPModelRenderer(false)
            );
        if (testing) {
View Full Code Here

    // initialize the GUI. We use separate renderers for the road model and
    // for the drivers. By default the road model is rendererd as a square
    // (indicating its boundaries), and the drivers are rendererd as red
    // dots.
    final View.Builder viewBuilder = View.create(sim).with(
        new PlaneRoadModelRenderer(), new RoadUserRenderer());

    if (testing) {
      viewBuilder.setSpeedUp(16)
          .enableAutoClose()
          .enableAutoPlay()
View Full Code Here

    schema2.add(RandomWalkAgent.C_YELLOW, new RGB(0xff, 0, 0));
    schema2.add(RandomWalkAgent.C_GREEN, new RGB(0x0, 0x80, 0));

    final View.Builder viewBuilder = View.create(simulator)
        .with(new GraphRoadModelRenderer())
        .with(new RoadUserRenderer(schema, false))
        .with(new MessagingLayerRenderer(roadModel, schema2))
        .setSpeedUp(4);

    if (testing) {
      viewBuilder.enableAutoPlay()
View Full Code Here

    uis.add(AGV.class, "/graphics/flat/forklift2.png");

    final View.Builder view = View
        .create(simulator)
        .with(new GraphRoadModelRenderer(CANVAS_MARGIN, false, false, false),
            new BoxRenderer(), new RoadUserRenderer(uis, false))
        .setTitleAppendix("Factory Demo")
        .enableAutoPlay()
        .enableAutoClose()
        .setSpeedUp(4);
View Full Code Here

    final UiSchema uis = new UiSchema();
    uis.add(TestDepot.class, "/graphics/perspective/tall-building-64.png");
    View.create(sim)
        .setTitleAppendix("ViewTest")
        .with(new PlaneRoadModelRenderer())
        .with(new RoadUserRenderer(uis, false))
        .show();
  }
View Full Code Here

        Measure.valueOf(1000L, SI.MILLI(SI.SECOND)));
    sim.register(new PlaneRoadModel(new Point(0, 0), new Point(10, 10), 10));
    sim.configure();

    View.create(sim)
        .with(new RoadUserRenderer(), new PlaneRoadModelRenderer(),
            new TestPanelRenderer("LEFT", SWT.LEFT, 200),
            new TestPanelRenderer("RIHGT BOEEE YEAH", SWT.RIGHT, 300),
            new TestPanelRenderer("RIHGT BOEEE YEAH", SWT.TOP, 100),
            new TestPanelRenderer("TOP2", SWT.TOP, 100),
            new TestPanelRenderer("LEFT2", SWT.LEFT, 100),
View Full Code Here

    protected Renderer roadUserRenderer() {
      final UiSchema schema = new UiSchema(false);
      schema.add(Vehicle.class, SWT.COLOR_RED);
      schema.add(Depot.class, SWT.COLOR_CYAN);
      schema.add(Parcel.class, SWT.COLOR_BLUE);
      return new RoadUserRenderer(schema, false);
    }
View Full Code Here

TOP

Related Classes of rinde.sim.ui.renderers.RoadUserRenderer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.