<div dir="ltr">Skimming the code in vtkLogoWidget's parent class vtkBorderRepresentation, it looks like there is no way to disable dragging at the moment.<div><br></div><div>One could change the code in vtkBorderRepresentation::WidgetInteraction(double eventPos[2]) in the switch statement case for vtkBorderRepresentation::Inside to also check if dragable is set to off, e.g.<div><br></div> <font face="monospace, monospace"> case vtkBorderRepresentation::Inside: <br><br> if ( this->Moving<b> && this->Dragable</b>)<br> {<br> par1[0] = par1[0] + delX;</font><div><font face="monospace, monospace"> par1[1] = par1[1] + delY;<br> par2[0] = par2[0] + delX; <br> par2[1] = par2[1] + delY; <br> }<br> break;</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="arial, helvetica, sans-serif">Note the change in bold. Would you want to give this a try and see if that works?</font></div></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Thanks,</font></div><div><font face="arial, helvetica, sans-serif">Cory</font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 21, 2015 at 10:44 AM, vincentrivola <span dir="ltr"><<a href="mailto:vincentrivola@hotmail.com" target="_blank">vincentrivola@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">To give you more information, here is part of the code:<br>
<br>
<br>
vincentrivola wrote<br>
> File logoFile = new File(getClass().getResource(fileName).toURI());<br>
> vtkPNGReader pngReader = new vtkPNGReader();<br>
> pngReader.SetFileName(logoFile.getPath());<br>
> pngReader.Update();<br>
><br>
> vtkLogoRepresentation logoRepresentation = new vtkLogoRepresentation();<br>
> logoRepresentation.SetImage(pngReader.GetOutput());<br>
> logoRepresentation.SetPosition(posX,0.85);<br>
> logoRepresentation.SetPosition2(0.15, 0.15);<br>
> logoRepresentation.GetImageProperty().SetOpacity(1.0);<br>
> logoRepresentation.SetDragable(0);<br>
> logoRepresentation.SetPickable(0);<br>
> logoRepresentation.SetProportionalResize(1);<br>
> logoRepresentation.SetPickingManaged(false);<br>
><br>
> vtkLogoWidget logoWidget = new vtkLogoWidget();<br>
> logoWidget.SetRepresentation(logoRepresentation);<br>
> logoWidget.SetInteractor(panel3d.getRenderWindowInteractor());<br>
> logoWidget.On();<br>
<br>
As you can see I also tried to disable selection, picking and draggability<br>
on the vtkLogoRepresentation element, but it does not change anything.<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/How-to-make-vtkLogoWidget-undraggable-tp5735607p5735611.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/How-to-make-vtkLogoWidget-undraggable-tp5735607p5735611.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>