<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi all,<div><br></div><div>The example works very well.</div><div>However, when I try to put the code relative to the axes in a different fonction the application crashes.</div><div><br></div><div><div>void displayAxes(vtkRenderWindowInteractor *renderWindowInteractor)</div><div>{ </div><div> vtkSmartPointer<vtkAxesActor> axes = </div><div> vtkSmartPointer<vtkAxesActor>::New();</div><div><br></div><div> vtkSmartPointer<vtkOrientationMarkerWidget> widget = </div><div> vtkSmartPointer<vtkOrientationMarkerWidget>::New();</div><div> widget->SetOutlineColor( 0.9300, 0.5700, 0.1300 );</div><div> widget->SetOrientationMarker( axes );</div><div> widget->SetInteractor( renderWindowInteractor );</div><div> widget->SetViewport( 0.0, 0.0, 0.4, 0.4 );</div><div> widget->SetEnabled( 1 );</div><div> widget->InteractiveOn();</div><div>}</div></div><div><br></div><div>So I guess there's something I did not understand with the vtkSmartPointer and/or the vtkWidget.</div><div><br></div><div>An idea ?</div><div>Thanks,</div><div><br></div><div>Benoist</div><div><br><div><br><div><div>Le 17 sept. 10 à 15:55, Nicolas Sarrasin a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"> <div bgcolor="#ffffff" text="#003333"> <font size="-1"><font face="Tahoma">Thanks very much! <br> It's exactly what I wanted.<br> </font></font><br> Le 16/09/2010 18:55, David Doria a écrit : <blockquote cite="mid:AANLkTi=pyP=R1sijAYXDJOjt7it3zSNvSn61B6=89o=+@mail.gmail.com" type="cite"> <div class="gmail_quote">On Thu, Sep 16, 2010 at 12:31 PM, Nicolas Sarrasin <span dir="ltr"><<a moz-do-not-send="true" href="mailto:nsarrasin@phenix-systems.com">nsarrasin@phenix-systems.com</a>></span> wrote:<br> <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> <div bgcolor="#ffffff" text="#003333"> Hi all,<br> <br> How can i display 3Daxes in the bottom-right corner of my window ? <br> I want to fix the position in the screen, not in the space.<br> <br> I can render those axes with vtkAxesActor but I don't know to to fix its position.<br> <br> Thanks by advance,<br> <br> N. Sarrasin<br> </div> <div bgcolor="#ffffff" text="#003333"><br> </div> </blockquote> <div><br> </div> <div>Try this: </div> <a moz-do-not-send="true" href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/DisplayCoordinateAxes">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/DisplayCoordinateAxes</a><br clear="all"> <br> <div>David </div> </div> </blockquote> <br> </div> _______________________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">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">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br></div></div></body></html>