<!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">
<font size="-1"><font face="Tahoma">Hi Jim,<br>
<br>
When I try to set my interactor according to your steps</font></font>
<small>i get the following warnings and my AxesActors aren't
displayed :<br>
<br>
Generic Warning: In </small><small>(vktdir)</small><small>\Widgets\vtkOrientationMarkerWidget.cxx,
line 533<br>
Set interactor and Enabled before changing interaction.<br>
<br>
ERROR: In (vktdir)\GUISupport\Qt\QVTKWidget.cxx, line 968<br>
QVTKInteractor (028ABC68): QVTKInteractor cannot control the event
loop.<br>
<br>
Any idea ?<br>
<br>
</small><br>
Le 17/09/2010 17:22, Jim Peterson a écrit :
<blockquote cite="mid:4C9387A2.4060500@cox.net" type="cite">I Am not
sure if this is a factor based on the information provided, but it
appears the vtkOrientationMarkerWidget expects the
renderWindowInteractor to be connected to the RenderWindow before
widget is connected to the RenderWindowInteractor. At least that
appears to be the controlling factor from my Java implementations.
<br>
<br>
in other words, Widget.SetInteractor() prior to
RenderWindow.SetInteractor() or
RenderWindowInteractor.SetRenderWindow() fails.
Widget.SetInteractor() after either of the other functions works.
<br>
<br>
HTH,
<br>
Jim
<br>
<br>
Benoist Laurent wrote:
<br>
<blockquote type="cite">Hi all,
<br>
<br>
The example works very well.
<br>
However, when I try to put the code relative to the axes in a
different fonction the application crashes.
<br>
<br>
void displayAxes(vtkRenderWindowInteractor
*renderWindowInteractor)
<br>
{ vtkSmartPointer<vtkAxesActor> axes =
vtkSmartPointer<vtkAxesActor>::New();
<br>
<br>
vtkSmartPointer<vtkOrientationMarkerWidget> widget =
vtkSmartPointer<vtkOrientationMarkerWidget>::New();
<br>
widget->SetOutlineColor( 0.9300, 0.5700, 0.1300 );
<br>
widget->SetOrientationMarker( axes );
<br>
widget->SetInteractor( renderWindowInteractor );
<br>
widget->SetViewport( 0.0, 0.0, 0.4, 0.4 );
<br>
widget->SetEnabled( 1 );
<br>
widget->InteractiveOn();
<br>
}
<br>
<br>
So I guess there's something I did not understand with the
vtkSmartPointer and/or the vtkWidget.
<br>
<br>
An idea ?
<br>
Thanks,
<br>
<br>
Benoist
<br>
<br>
<br>
Le 17 sept. 10 à 15:55, Nicolas Sarrasin a écrit :
<br>
<br>
<blockquote type="cite">Thanks very much!
<br>
It's exactly what I wanted.
<br>
<br>
Le 16/09/2010 18:55, David Doria a écrit :
<br>
<blockquote type="cite">On Thu, Sep 16, 2010 at 12:31 PM,
Nicolas Sarrasin <<a class="moz-txt-link-abbreviated" href="mailto:nsarrasin@phenix-systems.com">nsarrasin@phenix-systems.com</a>
<a class="moz-txt-link-rfc2396E" href="mailto:nsarrasin@phenix-systems.com"><mailto:nsarrasin@phenix-systems.com></a>> wrote:
<br>
<br>
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
<br>
fix its position.
<br>
<br>
Thanks by advance,
<br>
<br>
N. Sarrasin
<br>
<br>
<br>
Try this:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/DisplayCoordinateAxes">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/DisplayCoordinateAxes</a><br>
<br>
David </blockquote>
<br>
_______________________________________________
<br>
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a> <a class="moz-txt-link-rfc2396E" href="http://www.kitware.com"><http://www.kitware.com></a>
<br>
<br>
Visit other Kitware open-source projects at
<a class="moz-txt-link-freetext" 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 class="moz-txt-link-freetext" 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 class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
<br>
</blockquote>
<br>
------------------------------------------------------------------------
<br>
<br>
_______________________________________________
<br>
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
<br>
<br>
Visit other Kitware open-source projects at
<a class="moz-txt-link-freetext" 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 class="moz-txt-link-freetext" 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 class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
<br>
</blockquote>
<br>
<br>
</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.00060806.00040503@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>