<div dir="ltr">I tried to access the mouse events of vtkOrientationMarkerWidget by adding observers, however this does not seem to work.<div><br></div><div><div>class CustomOrientationMarkerWidget(vtk.vtkOrientationMarkerWidget):</div><div><br></div><div>    def __init__(self, parent=None):</div><div>        self.AddObserver("LeftButtonPressEvent", self.left_button_press_event)</div><div>    </div><div>    def left_button_press_event(self, obj, event):</div><div>        print('pressed')</div></div><div><br></div><div>any ideas?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 22, 2016 at 12:29 PM, Thales Luis Rodrigues Sabino <span dir="ltr"><<a href="mailto:tluisrs@gmail.com" target="_blank">tluisrs@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I was thinking about some widget similar to this a while ago.<div>If you know of anyone who has already implemented this please let us know.</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Tue, Mar 22, 2016 at 12:53 PM, Justin Weber <span dir="ltr"><<a href="mailto:onlyjus@gmail.com" target="_blank">onlyjus@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Has anyone already implemented a similar interface to Autodesk's ViewCube in vtk?<div><img src="cid:ii_1539f00e2eae7292" alt="Inline image 1" width="311" height="109"><br></div><div><a href="https://knowledge.autodesk.com/support/inventor-products/learn-explore/caas/CloudHelp/cloudhelp/2014/ENU/Inventor/files/GUID-39793B52-120D-491B-B1A0-A93ECE9AF13E-htm.html" target="_blank">https://knowledge.autodesk.com/support/inventor-products/learn-explore/caas/CloudHelp/cloudhelp/2014/ENU/Inventor/files/GUID-39793B52-120D-491B-B1A0-A93ECE9AF13E-htm.html</a><br></div><div><br></div><div>if not, <b>vtkAnnotatedCubeActor</b> and the <b>vtkOrientationMarkerWidget</b> provide most of the functionality. How would I detect mouse clicks on the faces of the cube? Over-ride the OnLeftButtonDown()<span style="white-space:pre-wrap"> and </span>OnLeftButtonUp() functions of <b>vtkOrientationMarkerWidget</b> and detect the face that was clicked?</div><div><br></div><div>Thanks!</div><span><font color="#888888"><div>Justin</div></font></span></div>
<br></div></div>_______________________________________________<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>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div>Thales Luis Rodrigues Sabino</div><div><br></div><div>PhD Student at <a href="http://www.ufjf.br/pgmc/" target="_blank">PGMC-UFJF</a></div><div><a href="http://lattes.cnpq.br/0601030410417146" target="_blank">Lattes</a> | <a href="https://br.linkedin.com/in/tluisrs" target="_blank">LinkedIn</a> | <a href="https://www.researchgate.net/profile/Thales_Luis_Sabino" target="_blank">ResearchGate</a></div></div></div></div></div>
</font></span></div>
</blockquote></div><br></div>