[vtkusers] vtkImplicitPlaneWidget2

Eric E. Monson emonson at cs.duke.edu
Wed Mar 10 17:01:09 EST 2010


Hey Sebastian,

There's not a way to do this as the class is written right now. You'd either have to write a new class modeled after vtkImplicitPlaneRepresentation or subclass it and override some of the methods to change how it handles interactions.

-Eric


On Mar 10, 2010, at 5:38 AM, Sebastian Gatzka wrote:

> Dear Eric.
> 
> This worked just great! Is there even a possibility to suppress the interaction with the normal?
> I just want to be able to translate the plane representation, but not to rotate it around the center point.
> 
> Sebastian
> 
> Am 05.03.2010 15:14, schrieb Eric E. Monson:
>> 
>> Hey Sebastian,
>> 
>> I think if you explicitly create the vtkImplicitPlaneRepresentation that the plane widget will use, you can use the representation's SetOutlineTranslation() method to disable plane translation.
>> 
>> This test code shows how to set up the representation explicitly and feed it into the widget (in case you are currently using the widget's default representation):
>> 
>> http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Widgets/Testing/Cxx/TestImplicitPlaneWidget2.cxx?root=VTK&content-type=text/plain
>> 
>> Let us know if you have trouble,
>> -Eric
>> 
>> ------------------------------------------------------
>> Eric E Monson
>> Duke Visualization Technology Group
>> 
>> 
>> On Mar 5, 2010, at 5:37 AM, Sebastian Gatzka wrote:
>> 
>>> Hello vtkusers.
>>> 
>>> Can I suppress the translation of the bounding box the vtkImplicitPlaneWidget2 is forming?
>>> I don't want the user to be able to translate it.
>>> 
>>> Sebastian
>>> _______________________________________________
>>> Powered by www.kitware.com
>>> 
>>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>> 
>>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>>> 
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.vtk.org/mailman/listinfo/vtkusers
>> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100310/e708db2e/attachment.htm>


More information about the vtkusers mailing list