I am using the SwSimpleViewer and my intention is to replace having to use PICK_MODE and VIEW_MODE separately so I have set up Mouse Events and I need them to do specific events.
What I want to be able to do is replicate camera movement in PICK_MODE, so I have the scroll wheel zooming the camera properly but now I need to do the rest.
I need clicking and holding the scroll wheel to pan, and clicking and holding the right mouse button to rotate around. I am looking in the source code and cannot find exactly how it works in VIEW_MODE.
I am using Java btw, I notice a lot of examples use C++ and it is pretty difficult to convert it in this particular case.
If you have the process already written that I can use that would be wonderful.
This also brings another issue up. I want to remove the right click popup from coming up on mouse down so I can make my own. When I use viewer.getPopup.setEnabled(false) all it does is make the options in the right click menu unusable. If there is a way to remove that in SwSimpleViewer that would be very useful as well.
Thanks.
What I want to be able to do is replicate camera movement in PICK_MODE, so I have the scroll wheel zooming the camera properly but now I need to do the rest.
I need clicking and holding the scroll wheel to pan, and clicking and holding the right mouse button to rotate around. I am looking in the source code and cannot find exactly how it works in VIEW_MODE.
I am using Java btw, I notice a lot of examples use C++ and it is pretty difficult to convert it in this particular case.
If you have the process already written that I can use that would be wonderful.
This also brings another issue up. I want to remove the right click popup from coming up on mouse down so I can make my own. When I use viewer.getPopup.setEnabled(false) all it does is make the options in the right click menu unusable. If there is a way to remove that in SwSimpleViewer that would be very useful as well.
Thanks.
Comment