Package rinde.sim.ui.renderers

Examples of rinde.sim.ui.renderers.GraphRoadModelRenderer


    final UiSchema uis = new UiSchema();
    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) {
View Full Code Here


    schema2.add(RandomWalkAgent.C_BLACK, new RGB(0, 0, 0));
    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) {
View Full Code Here

    final UiSchema uis = new UiSchema(false);
    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

TOP

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

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.