JBotSim icon indicating copy to clipboard operation
JBotSim copied to clipboard

Ability to retrieve a `Node` from a `JNode`

Open acasteigts opened this issue 5 years ago • 3 comments

It might be useful to be able to retrieve the Node corresponding to a given JNode. For instance, this happened in an attempt to detect where a node was dropped after being dragged. To this effect, I suggest to add a method getNode() in class JNode.

acasteigts avatar Feb 29 '20 16:02 acasteigts

What's been done in branch feature/99-node-from-jnode:

  • Added a getNode() method in class JNode

Merged into develop.

acasteigts avatar Oct 11 '21 19:10 acasteigts

(Will be closed when released.)

acasteigts avatar Oct 16 '21 11:10 acasteigts

Looks good to me. Ready to be shipped in next release.

Rmq: I don't think this new piece of code is used anywhere in the production/test/example code of the project. This is not vital, but we should try and add something in that direction, should the occasion arise.

remikey avatar Nov 04 '21 17:11 remikey