<div dir="ltr">Dear Eric,<div>Unfortunately Managed VTK for .nET don'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"><<a href="mailto:emonson@cs.duke.edu">emonson@cs.duke.edu</a>></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->AddActor(actor);<br>
<br>
and then add a line after the vtkBoxRepresentation is created:<br>
<br>
boxRepresentation->PlaceWidget(sphereSource->GetOutput()->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&content-type=text/plain" target="_blank">http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Widgets/Testing/Cxx/BoxWidget2.cxx?root=VTK&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>
> Maybe the sphere is there, but it can be to small to see it ?<br>
> Did you Place/setBounds of the widget so both the sphere and the<br>
> widget share the same scale ?<br>
><br>
> Seb<br>
><br>
> On Fri, Jun 25, 2010 at 6:15 PM, Ali Habib <<a href="mailto:ali.mahmoud.habib@gmail.com">ali.mahmoud.habib@gmail.com</a>> wrote:<br>
>> Hi<br>
>> I tried to apply the example on the following link<br>
>> <a href="http://www.cmake.org/Wiki/VTK/Examples/Widgets/BoxWidget2" target="_blank">http://www.cmake.org/Wiki/VTK/Examples/Widgets/BoxWidget2</a><br>
>> But the result is just the vtkboxwidgwet, how to modify it to display both<br>
>> the sphere and the vtkboxwidget<br>
>> BEst regards<br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Please keep messages on-topic and check the VTK FAQ at:<br>
>> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">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" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>><br>
>><br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> 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>
><br>
> 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>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <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>