<div dir="ltr">Dear Eric,<div>Unfortunately Managed VTK for .nET don&#39;t contain vtkboxrepresentation as in the example,</div><div><br></div><div>is there any work around, to fix that  </div><div><br></div><div>Best regards <br>
<br><div class="gmail_quote">On Mon, Jun 28, 2010 at 4:25 PM, Eric E. Monson <span dir="ltr">&lt;<a href="mailto:emonson@cs.duke.edu">emonson@cs.duke.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hey Ali,<br>
<br>
You need to uncomment the line:<br>
<br>
  renderer-&gt;AddActor(actor);<br>
<br>
and then add a line after the vtkBoxRepresentation is created:<br>
<br>
  boxRepresentation-&gt;PlaceWidget(sphereSource-&gt;GetOutput()-&gt;GetBounds());<br>
<br>
Take a look at the BoxWidget2 test code (linked from the vtkBoxWidget2 doxygen page: <a href="http://www.vtk.org/doc/nightly/html/classvtkBoxRepresentation.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkBoxRepresentation.html</a>) to see how to link the box to a transform of the sphere:<br>

<br>
<a href="http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Widgets/Testing/Cxx/BoxWidget2.cxx?root=VTK&amp;content-type=text/plain" target="_blank">http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Widgets/Testing/Cxx/BoxWidget2.cxx?root=VTK&amp;content-type=text/plain</a><br>

<br>
-Eric<br>
<br>
------------------------------------------------------<br>
<font color="#888888">Eric E Monson<br>
Duke Visualization Technology Group<br>
</font><div><div></div><div class="h5"><br>
<br>
On Jun 27, 2010, at 5:17 PM, Sebastien Jourdain wrote:<br>
<br>
&gt; Maybe the sphere is there, but it can be to small to see it ?<br>
&gt; Did you Place/setBounds of the widget so both the sphere and the<br>
&gt; widget share the same scale ?<br>
&gt;<br>
&gt; Seb<br>
&gt;<br>
&gt; On Fri, Jun 25, 2010 at 6:15 PM, Ali Habib &lt;<a href="mailto:ali.mahmoud.habib@gmail.com">ali.mahmoud.habib@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Hi<br>
&gt;&gt; I tried to apply the example on the following link<br>
&gt;&gt; <a href="http://www.cmake.org/Wiki/VTK/Examples/Widgets/BoxWidget2" target="_blank">http://www.cmake.org/Wiki/VTK/Examples/Widgets/BoxWidget2</a><br>
&gt;&gt; But the result is just the vtkboxwidgwet, how to modify it to display both<br>
&gt;&gt; the sphere and the vtkboxwidget<br>
&gt;&gt; BEst regards<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;<br>
&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt;&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&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>