Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get viewer state from PCLVisualizer

Status
Not open for further replies.

LucasLA

Programmer
Dec 17, 2020
1
BR
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top