Git Product home page Git Product logo

Comments (1)

cignoni avatar cignoni commented on August 21, 2024

The main idea is that at certain event the js part invokes a cpp function that perform the "hard" part of the task (like for example selecting or reporting the info about the clicked point).

For this task we need a consistent way to pass the viewing information between the js system and the cpp part. This is fundamental because the processing part is done with actions defined in screen space.

For example this is what happens when the info picking tools is started:

  • the icon of the tool is enhanced and in the tab below the option of the tools appears
  • the icon of the mouse is changed and the selected tools grab the mouse focus. Since the activation of the tools all the mouse events are intercepted are intercepted and managed by the tools. Pressing alt allow to bypass the tool and the mouse event are passed as usual (so mouse movements rotate the object)
  • when the user do a mouse down mouse up release, the framework call an 'apply' method of the tool plugin with the current camera parameters and the mouse position.
  • camera parameters are passed using a vcg::Shotf object

from meshlabjs.

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.