[vtkusers] vtkBoxWidget2 & Disabling Rotation [Patch and example attached]
Shashwath T.R.
trshash at gmail.com
Wed Jul 14 03:57:24 EDT 2010
Hi all,
I've just implemented a patch on vtkBoxRepresentation to add enable/disable
for Translation, Rotation and Scaling.
Basically, I just copied over the ivars from vtkBoxWidget, and included a
few checks in the appropriate places in the method
vtkBoxRepresentation::WidgetInteraction.
This is against git master, but I think it should work against 5.6.0 also.
Regards,
Shash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100714/9e3cc677/attachment.htm>
-------------- next part --------------
cmake_minimum_required(VERSION 2.6)
project(BoxWidgetExample)
find_package(VTK REQUIRED)
include( ${USE_VTK_FILE} )
add_executable( BoxWidgetExample main.cxx )
target_link_libraries( BoxWidgetExample vtkCommon vtkRendering vtkWidgets)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Implement-Translation-Rotation-and-Scaling-enable-di.patch
Type: application/octet-stream
Size: 3819 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100714/9e3cc677/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cxx
Type: application/octet-stream
Size: 829 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100714/9e3cc677/attachment-0001.obj>
More information about the vtkusers
mailing list