<div dir="ltr">Why my orientationWidget is show like the one shown in the attached picture?<br><br>Its a vtkAxesActor+vtkOrientationWidget with a cube rendered in QVTKWidget.<br><br><br>Thanks,<br><br>Jothy<br><br><br><div class="gmail_quote">
On Wed, Jun 23, 2010 at 3:07 PM, Jothy <span dir="ltr">&lt;<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>&gt;</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 dir="ltr">And it also appears cropped, I mean only the centre portion is visible.<br><br>How to get the camera of the orientation widget renderer? So that I can reset it.<br><br>Thanks,<br><font color="#888888"><br>Jothy</font><div>
<div></div><div class="h5"><br><br><div class="gmail_quote">
On Wed, Jun 23, 2010 at 2:23 PM, Jothy <span dir="ltr">&lt;<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>&gt;</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 dir="ltr">No Eric,<br><br>The problem is not with this code, with this script I can rotate without calling start().But, when I embed it into a QVTKWidget, it doesn&#39;t work as expected. Did you tried with QVTKWidget?<br>


<br>Thanks,<br><font color="#888888"><br>Jothy</font><div><div></div><div><br><br><div class="gmail_quote">On Wed, Jun 23, 2010 at 2:18 PM, Eric E. Monson <span dir="ltr">&lt;<a href="mailto:emonson@cs.duke.edu" target="_blank">emonson@cs.duke.edu</a>&gt;</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;">
Hey Jothy,<br>
<br>
If I add iren.Start() at the end of this code it works for me. The blue cube in the corner spins with the big white cube.<br>
<br>
-Eric<br>
<br>
------------------------------------------------------<br>
<font color="#888888">Eric E Monson<br>
Duke Visualization Technology Group<br>
</font><div><div></div><div><br>
<br>
On Jun 23, 2010, at 7:29 AM, Jothy wrote:<br>
<br>
&gt; Hi all,<br>
&gt;<br>
&gt; I am trying to add a vtkOrientationMarkerWidget to a QVTKWidget. The annotatedCube is displayed in the corner but it doesn&#39;t rotate along with the other actors.<br>
&gt;<br>
&gt; I checkd the code with vtkRenderWindow, it works well. What is the problem??<br>
&gt;<br>
&gt; Below is the code<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; from vtk import*<br>
&gt; cube=vtkCubeSource()<br>
&gt; cube.SetXLength(200)<br>
&gt; cube.SetYLength(200)<br>
&gt; cube.SetZLength(200)<br>
&gt; cube.Update()<br>
&gt; cm=vtkPolyDataMapper()<br>
&gt; cm.SetInputConnection(cube.GetOutputPort())<br>
&gt; ca=vtkActor()<br>
&gt; ca.SetMapper(cm)<br>
&gt;<br>
&gt; renWin = vtkRenderWindow()<br>
&gt; ren=vtkRenderer()<br>
&gt; ren.AddActor(ca)<br>
&gt; renWin.AddRenderer(ren)<br>
&gt; iren = vtkRenderWindowInteractor()<br>
&gt; iren.SetRenderWindow(renWin)<br>
&gt; ren.SetBackground(0,0,0)<br>
&gt; renWin.Render()<br>
&gt;<br>
&gt; axesActor = vtkAnnotatedCubeActor();<br>
&gt; axesActor.SetXPlusFaceText(&#39;R&#39;)<br>
&gt; axesActor.SetXMinusFaceText(&#39;L&#39;)<br>
&gt; axesActor.SetYMinusFaceText(&#39;H&#39;)<br>
&gt; axesActor.SetYPlusFaceText(&#39;F&#39;)<br>
&gt; axesActor.SetZMinusFaceText(&#39;P&#39;)<br>
&gt; axesActor.SetZPlusFaceText(&#39;A&#39;)<br>
&gt; axesActor.GetTextEdgesProperty().SetColor(1,1,0)<br>
&gt; axesActor.GetTextEdgesProperty().SetLineWidth(2)<br>
&gt; axesActor.GetCubeProperty().SetColor(0,0,1)<br>
&gt; axes = vtkOrientationMarkerWidget();<br>
&gt; axes.SetOrientationMarker(axesActor);<br>
&gt; axes.SetInteractor(iren);<br>
&gt; axes.EnabledOn();<br>
&gt; axes.InteractiveOn();<br>
&gt;<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Jothy<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div><div><div></div><div>&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>