Giter Club home page Giter Club logo

Comments (1)

brun0 avatar brun0 commented on May 27, 2024
  • Good news: Interaction of the user with Roassal elements seems very nice and easy.
  • I created a new class in cormas-ui called CMDraggableSpatialEntity. I understand it as a feature that you can add to all graphical elements representing cormas SpatialEntities.
  • You can test in CMFiremanModel example9: Now, when you select a point representing a fireman and drag and drop it to a location (I only tested inside the space) and the fireman will move to the new spot.
  • I add the feature at the moment when agent views are created in the CMSimulationGrid (at the initialisation and during the simu), so all your models should benefit this (i created example 5 in ECEC for instance that only go slower so that you can catch the agents..)
    -Note that once you have defined the feature, it is very easy to add it to ellements. i only added one line in the functions were entity views are created: (
    "newSituatedEntitiesViews do: [:nse | nse @ CMDraggableSituatedEntity ]"
    ).

And if you look at the class "CMDraggableSituatedEntity" you can see that it is very simple (only one method) because it inheritates from a roassal class doing most of the job.

from cormas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.