[vtkusers] vtkInteractorStyleImage.js and center mouse down

Rick Frank rickfrank at me.com
Thu Sep 13 14:17:37 EDT 2018


That'll do it!

Thanks!

Rick


On 09/13/2018 02:12 PM, Sebastien Jourdain wrote:
> I think it is named MiddleButton. You can find the full list here:
> https://github.com/Kitware/vtk-js/blob/master/Sources/Rendering/Core/RenderWindowInteractor/index.js#L28-L56
>
> On Thu, Sep 13, 2018 at 11:00 AM Rick Frank <rickfrank at me.com 
> <mailto:rickfrank at me.com>> wrote:
>
>     For the time being I have a subclass of
>     vtkInteractorStyleTrackballCamera which is a crib of
>     vtkInteractorStyleSlice for handing slice views....
>
>
>     I can get:
>
>      publicAPI.handleRightButtonPress = (callData) => {
>             const pos = callData.position;
>             model.previousPosition = pos;
>             publicAPI.startDolly();
>         };
>
>     to override RightButton
>
>     but there doesn't seem to be a
>
>      publicAPI.handleCenterButtonPress = (callData) => {
>          ....
>         };
>
>
>     ....
>
>     Am I missing something on how to get the center button? I can get
>     the wheel....
>
>
>     Thanks
>
>     Rick
>
>
>     On 09/13/2018 01:21 PM, Sebastien Jourdain wrote:
>>     The manipulator infrastructure come from ParaView and has never
>>     been pushed to VTK on the c++ side.
>>     Anyhow, we have a ManipulatorStyle on which we register a bunch
>>     of manipulators to custom build our style binding (pan on
>>     left-button, rotate on left-button+Alt, ...).
>>     That's the high level concept.
>>
>>     So either you provide a XXXXStyle that should handle everything
>>     or use a ManipulatorStyle on which you register manipulators...
>>
>>
>>
>>     On Thu, Sep 13, 2018 at 10:02 AM Rick Frank via vtkusers
>>     <vtkusers at public.kitware.com
>>     <mailto:vtkusers at public.kitware.com>> wrote:
>>
>>         Hi,
>>
>>         I'm using vtkInteractorStyleImage and notice that I don't
>>         have access to
>>         a center mouse down (for Pan)...
>>
>>
>>         but the Manipulators have center mouse down...
>>
>>
>>         Manipulators seems to be a new thing in the vtk.js
>>
>>
>>         How do they relate to the interactors? Is there a way to get
>>         a center
>>         mouse down in my interactorStyleImage subclass
>>
>>
>>         Rick
>>
>>
>>
>>         _______________________________________________
>>         Powered by www.kitware.com <http://www.kitware.com>
>>
>>         Visit other Kitware open-source projects at
>>         http://www.kitware.com/opensource/opensource.html
>>
>>         Please keep messages on-topic and check the VTK FAQ at:
>>         http://www.vtk.org/Wiki/VTK_FAQ
>>
>>         Search the list archives at:
>>         http://markmail.org/search/?q=vtkusers
>>
>>         Follow this link to subscribe/unsubscribe:
>>         https://public.kitware.com/mailman/listinfo/vtkusers
>>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180913/0c58c6e5/attachment.html>


More information about the vtkusers mailing list