Hi, I'm trying to have access to the current mode of a PCLVisualizer viewer.
When I press "x", it enters into an edit mode where I can select points with the mouse, and when I press "x" again, it returns to the normal visualization mode.
I want to add a text on the window to show the user that he is in one mode or the other, this text will be updated when a keyboard key is pressed, but despite the mode change happens, I can't find a way to obtain, from the viewer, the current state in which it is.
I want to have something like a "viewer.getState()" (that doesnt exists), and it returns to me that it is in edit mode or visualization mode, so I can update the text on the viewer window properly, but I had not figured out how to do this simple check.
When I press "x", it enters into an edit mode where I can select points with the mouse, and when I press "x" again, it returns to the normal visualization mode.
I want to add a text on the window to show the user that he is in one mode or the other, this text will be updated when a keyboard key is pressed, but despite the mode change happens, I can't find a way to obtain, from the viewer, the current state in which it is.
I want to have something like a "viewer.getState()" (that doesnt exists), and it returns to me that it is in edit mode or visualization mode, so I can update the text on the viewer window properly, but I had not figured out how to do this simple check.