<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jun 13, 2017 at 9:16 AM, Elvis Stansvik <span dir="ltr"><<a href="mailto:elvis.stansvik@orexplore.com" target="_blank">elvis.stansvik@orexplore.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="gmail-">2017-06-13 15:10 GMT+02:00 Elvis Stansvik <span dir="ltr"><<a href="mailto:elvis.stansvik@orexplore.com" target="_blank">elvis.stansvik@orexplore.com</a>></span><wbr>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div>I'm using a<br><br>   vtkChartXY<br>   vtkColorTransferControlPointsI<wbr>tem<br>   vtkColorTransferFunctionItem<br><br></div>trio for editing a vtkColorTransferFunction.<br><br></div>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.<br><br></div><div>How can I make it non-interactive?<br><br></div><div>I'm using VTK 8.0.0.rc1.<br></div></div></div></blockquote><div><br></div></span><div>I know I could always override and swallow mouse events, but that seems like the wrong approach?<br><br></div><div>I'm only interested in disabling interaction with the control points item. Even hiding it as well would be OK.<br><br></div></div></div></div></blockquote><div>So I would use the SetActionToButton method in vtkChart, and set each action to -1 (no button). Looking at the vtkControlPointsItem the press event is not configurable, and so you would really have to derive from it, and override it that way as far as I can see. It could be modified, but that ability doesn't appear to be present. I am trying to remember how we propagate mouse events from the containing chart, but am a little rusty on that logic.</div><div><br></div><div>We don't have the equivalent of an event filter as far as I am aware, but in the Qt world I would use that to intercept events before they get to the chart.</div></div></div></div>