<div class="gmail_quote">On Thu, Jan 21, 2010 at 8:05 AM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Most widgets have two have components. One component handles the<br>
events and the other contains the representation. Look at the<br>
vtkBoxRepresentation documentation:<br>
// Description:<br>
// Grab the polydata (including points) that define the box widget. The<br>
// polydata consists of 6 quadrilateral faces and 15 points. The first<br>
// eight points define the eight corner vertices; the next six define the<br>
// -x,+x, -y,+y, -z,+z face points; and the final point (the 15th out of 15<br>
// points) defines the center of the box. These point values are guaranteed<br>
// to be up-to-date when either the widget's corresponding InteractionEvent<br>
// or EndInteractionEvent events are invoked. The user provides the<br>
// vtkPolyData and the points and cells are added to it.<br>
void GetPolyData(vtkPolyData *pd);<br>
<div><div></div><div class="h5"><br>
<br>
On Thu, Jan 21, 2010 at 7:36 AM, David Doria <<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>> wrote:<br>
> On Thu, Jan 21, 2010 at 6:01 AM, Adeline Joliet <<a href="mailto:adeline_joli@hotmail.com">adeline_joli@hotmail.com</a>><br>
> wrote:<br>
>><br>
>> Hello,<br>
>><br>
>> I'm trying to do some stuff with vtkBoxWidget2 (box that I can move in a<br>
>> 3D space..).<br>
>> I'm able to create that box, and to move/translate/resize etc... but...<br>
>> How can I get the coordinate,size, corner coordinate etc.. ?<br>
>><br>
>> I havn't seen any "Get" method in the class reference... What can we do<br>
>> with that box except to only move it.. ?<br>
>><br>
>><br>
>> Regards,<br>
>> Adeline<br>
>><br>
><br>
> Haha, I had the same issue when trying to make the example:<br>
> <a href="http://www.vtk.org/Wiki/VTK/Examples/Widgets/BoxWidget2" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Widgets/BoxWidget2</a><br>
> Anyone know how to do it?<br>
> Thanks,<br>
><br>
> David<br>
></div><div class="h5"><br></div></div></blockquote><div><br></div><div>Got it, thanks Bill.</div><div><br></div><div>Adeline, here's a demo:</div><a href="http://www.vtk.org/Wiki/VTK/Examples/Widgets/BoxWidget2">http://www.vtk.org/Wiki/VTK/Examples/Widgets/BoxWidget2</a></div>
<div class="gmail_quote"><br clear="all">Thanks,<br><br><div>David </div></div>