Hi,
I can just guess.
Typicall errors:
typo in function name?
forgot to declare it as “slot”? private/public?
forgot to inherited from the corresponding interface?
The Move Plugin for example uses this Slot, maybe you can compare it with your plugin.
Greets,
Matthias Moeller
Von: Juliette Pera
Gesendet: Donnerstag, 16. April 2015 15:24
An: Matthias Möller
Hi Matthias,
Thank you for your answer!
The thing is I already tried to use this slot and modify it in my code ( right now only display "cleared" ) but when I actually click on the "clear all" action, it doesn't seems to be executed.
Do you know where it might comes from?
Thanks again,
Juliette
2015-04-16 15:10 GMT+02:00 Möller, Matthias <matthias.moeller(a)rwth-aachen.de>:
Hi,
you can use the slot from BaseInterface "slotAllCleared()"( http://openflipper.org/Daily-Builds/Doc/Free/Developer/a00314.html#aa00a311… )
for reciving the signal.
The slot can be defined in your plugin and will be executed whenever a "clear all" action was performed via GUI or via script or in a plugin.
Greets,
Matthias M.
Von: openflipper-bounces(a)lists.rwth-aachen.de [openflipper-bounces(a)lists.rwth-aachen.de]" im Auftrag von "Juliette Pera [juliette.pera(a)gmail.com]
Gesendet: Donnerstag, 16. April 2015 12:44
An: openflipper(a)lists.rwth-aachen.de
Betreff: [Openflipper] re-initialize plugin when user click on Clear all
Hi,
I would like to integrate in my plugin a function that will reinitialize my plugin whenever the user click on "Clear all".
Should I connect directly a function that I create to this action button?
If anyone already did it, I would really appreciate some help!
Thank you,
Juliette
--
Juliette Pera
forget CC
________________________________
Von: Möller, Matthias
Gesendet: Donnerstag, 16. April 2015 15:16
An: Juliette Pera
Betreff: AW: [Openflipper] conversion from screen coordinates to mesh coordinates
Hi Juliette,
if you just want the position on your mesh which is on the scenegraph,
I would recommend to use the function "PluginFunctions::scenegraphPick(...)" (http://openflipper.org/Daily-Builds/Doc/Free/Developer/a03293.html#a0ae515c…)
The last parameter "_hitPointPtr" gives you the hit point in world space.
Hopefully I could help.
Greets,
Matthias M.
________________________________
Von: openflipper-bounces(a)lists.rwth-aachen.de [openflipper-bounces(a)lists.rwth-aachen.de]" im Auftrag von "Juliette Pera [juliette.pera(a)gmail.com]
Gesendet: Donnerstag, 16. April 2015 12:03
An: openflipper(a)lists.rwth-aachen.de
Betreff: [Openflipper] conversion from screen coordinates to mesh coordinates
Hi all,
I am trying to drag a vertex of a mesh from its position to a new one using the two events: mouse button press and mouse button release.
Do you know an easy way to convert the position of the mouse from the screen coordinate to my mesh coordinate?
Thank you in advance,
Juliette
Hi,
I would like to integrate in my plugin a function that will reinitialize my
plugin whenever the user click on "Clear all".
Should I connect directly a function that I create to this action button?
If anyone already did it, I would really appreciate some help!
Thank you,
Juliette
Hi all,
I am trying to drag a vertex of a mesh from its position to a new one using
the two events: mouse button press and mouse button release.
Do you know an easy way to convert the position of the mouse from the
screen coordinate to my mesh coordinate?
Thank you in advance,
Juliette
Hi all,
I am trying to drag a vertex of a mesh from its position to a new one using
the two events: mouse button press and mouse button release.
I can detect those two events and the positions of my mouse in the screen
at both times.
When I click the button close to a vertex, I use the following function in
order to get the corresponding point in the coordinate system of my mesh:
PluginFunctions::scenegraphPick(ACG::SceneGraph::PICK_ANYTHING,_event->pos
(), node_idx, target_idx, &hitPoint);
But once I move my mouse and release it, I can only get the position of my
mouse in the screen.
Do you know an easy way to convert the position of the mouse from the
screen coordinate to my mesh coordinate?
Thank you in advance,
Juliette