Hi,<div><br></div><div>I think I was the one who did the vtkBoxRepresentation implementation that came up earlier. I put it there because it was more convenient for me to implement at that point. You're right, I think the widget is a more logical place for it to be in. I like this better than what I had done.</div>
<div><br></div><div>Regards,</div><div>Shash</div><div><br><div class="gmail_quote">On Tue, Mar 15, 2011 at 9:52 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;">Grrr...<br>
<br>
<a href="http://review.source.kitware.com/#change,1206" target="_blank">http://review.source.kitware.com/#change,1206</a><br>
<div><div></div><div class="h5"><br>
<br>
On Mar 15, 2011, at 12:18 PM, Eric E. Monson wrote:<br>
<br>
> Hey all,<br>
><br>
> I just put a patch up on Gerrit for this "Missing BoxWidget2 functionality" issue. Could someone take a look?<br>
><br>
> (Sorry, it looks like I missed a few terminal spaces before submitting. Ugh.. I might have to actually learn how to make changes in uploaded patches... :)<br>
><br>
> If it looks okay I can send out an email to some of the people who have posted questions about this missing functionality on the mailing list in the past 6 months or so.<br>
><br>
> There was a patch for vtkBoxRepresentation submitted on the mailing list a while back, but since the Widget is the one that handles event routing, I thought maybe it would be better to just implement it there.<br>
><br>
> Thanks,<br>
> -Eric<br>
><br>
> · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·<br>
> Eric E Monson<br>
> Duke Visualization Technology Group<br>
><br>
><br>
> On Feb 3, 2011, at 4:25 AM, Mantis Bug Tracker wrote:<br>
><br>
>><br>
>> The following issue has been SUBMITTED.<br>
>> ======================================================================<br>
>> <a href="http://www.vtk.org/Bug/view.php?id=11790" target="_blank">http://www.vtk.org/Bug/view.php?id=11790</a><br>
>> ======================================================================<br>
>> Reported By: John Stark<br>
>> Assigned To:<br>
>> ======================================================================<br>
>> Project: VTK<br>
>> Issue ID: 11790<br>
>> Category: (No Category)<br>
>> Reproducibility: always<br>
>> Severity: minor<br>
>> Priority: normal<br>
>> Status: new<br>
>> ======================================================================<br>
>> Date Submitted: 2011-02-03 04:25 EST<br>
>> Last Modified: 2011-02-03 04:25 EST<br>
>> ======================================================================<br>
>> Summary: vtkBoxWidget2 does not respect interaction filters.<br>
>> Description:<br>
>> vtkBoxWidget2 has several attributes that would appear from the documentation to<br>
>> control the interaction, namely : TranslationEnabled, ScalingEnabled and<br>
>> RotationEnabled. However, when I set some these to false, I see no change in the<br>
>> available interactions.<br>
>><br>
>><br>
>> Steps to Reproduce:<br>
>> // Requires this input :<br>
>> // vtkImageData * image;<br>
>> // And these to display :<br>
>> // vtkRenderWindowInteractor * iren;<br>
>> // vtkRenderer * ren;<br>
>><br>
>> typedef vtkSmartPointer<vtkBoxWidget2> vtkBoxWidget2Pointer;<br>
>> typedef vtkSmartPointer<vtkBoxRepresentation> vtkBoxRepresentationPointer;<br>
>><br>
>> vtkBoxRepresentationPointer boxRep (vtkBoxRepresentationPointer::New());<br>
>> boxRep->PlaceWidget( image->GetBounds() );<br>
>> boxRep->HandlesOn();<br>
>><br>
>> vtkBoxWidget2Pointer boxWidget = vtkBoxWidget2Pointer::New();<br>
>> boxWidget->SetInteractor( iren );<br>
>> boxWidget->SetRepresentation( boxRep );<br>
>> boxWidget->On();<br>
>> boxWidget->TranslationEnabledOff();<br>
>> boxWidget->ScalingEnabledOff();<br>
>> boxWidget->RotationEnabledOn();<br>
>><br>
>> ren->AddViewProp( boxRep );<br>
>><br>
>> ======================================================================<br>
>><br>
>> Issue History<br>
>> Date Modified Username Field Change<br>
>> ======================================================================<br>
>> 2011-02-03 04:25 John Stark New Issue<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>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</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>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</div></div></blockquote></div><br></div>