<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#003333">
<big><font size="-1" face="Tahoma"><big>I encounter the same problem
as you, indeed.</big></font></big><font face="Tahoma"><br>
I opened a new post (take a look at<big> </big></font><font
face="Tahoma"><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0);
font-family: 'Times New Roman'; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: normal; orphans: 2; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; font-size: medium;"><big>"</big></span></font><font
face="Tahoma"><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0);
font-family: 'Times New Roman'; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: normal; orphans: 2; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; font-size: medium;"><big>integrate a
vtkOrientationMarkerWidget into a QVtkWidget" if the answer
come first here</big> </span>).<br>
<br>
I think it doesn't come from vtkSmartPointer but more with the
relation between the renderer and the interactor but I can't find
what it is exactly...</font><br>
<br>
Hope we'll find a solution...<br>
<br>
Nicolas S.<br>
<br>
<br>
Le 17/09/2010 16:57, Benoist Laurent a écrit :
<blockquote cite="mid:8BA60F0E-EF10-4A37-A6CF-7F8137981F1A@ibpc.fr"
type="cite">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 moz-do-not-send="true"
href="http://www.kitware.com">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
moz-do-not-send="true"
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
moz-do-not-send="true"
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 moz-do-not-send="true"
href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<hr style="width: 100%; height: 2px;">
<table style="text-align: left; font-family: Verdana; width:
500px; height: 110px;" border="0" cellpadding="2"
cellspacing="0">
<tbody>
<tr>
<td style="text-align: center; width: 80px; font-family:
Verdana;"><a><img style="border: 0px solid; width: 75px;
height: 66px;" alt="Logo Phenix Systems"
src="cid:part1.03050105.03090307@phenix-systems.com"></a></td>
<td style="width: 506px; font-family: Verdana;"><small
style="color: rgb(51, 102, 102);"><span
style="font-weight: bold;">Nicolas Sarrasin -
Ingénieur Developpement 3D CFAO</span><br
style="background-color: transparent;">
<a style="background-color: transparent;
text-decoration: underline;">Phenix systems</a><br
style="background-color: transparent; font-style:
italic;">
<small><span style="background-color: transparent;
font-style: italic;"> Parc Européen d'Entreprises </span><br
style="background-color: transparent; font-style:
italic;">
<span style="background-color: transparent;
font-style: italic;">
rue Richard Wagner - 63200 Riom FRANCE </span><br
style="font-style: italic;">
<span style="font-style: italic;">
tel : +33 (0)4 73 33 45 85 | fax : +33 (0)4 73 33 45
86 </span></small></small></td>
</tr>
<tr style="font-family: Verdana;">
<td colspan="2" rowspan="1" style="width: 80px;"><font
size="2" color="#36a629">Pensez environnement !</font><br>
<font size="1" color="#36a629">N'imprimez ce mail que si
c'est vraiment nécessaire</font></td>
</tr>
</tbody>
</table>
<br style="font-family: Verdana;">
</div>
</body>
</html>