[vtkusers] How to make vtkChartXY non-interactive?

Elvis Stansvik elvis.stansvik at orexplore.com
Tue Jun 13 09:16:20 EDT 2017


2017-06-13 15:10 GMT+02:00 Elvis Stansvik <elvis.stansvik at orexplore.com>:

> I'm using a
>
>    vtkChartXY
>    vtkColorTransferControlPointsItem
>    vtkColorTransferFunctionItem
>
> trio for editing a vtkColorTransferFunction.
>
> I'm now trying to make it non-editable (I want this for system "built-in"
> color functions). I've tried calling SetInteractive(false) on all three of
> them. I even tried hiding the control points item, but still I can interact
> with the points using the mouse.
>
> How can I make it non-interactive?
>
> I'm using VTK 8.0.0.rc1.
>

I know I could always override and swallow mouse events, but that seems
like the wrong approach?

I'm only interested in disabling interaction with the control points item.
Even hiding it as well would be OK.

Elvis


>
> Thanks in advance,
> Elvis
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170613/76059700/attachment.html>


More information about the vtkusers mailing list