Attached Files | fix3dpointplacewidget.diff [^] (1,065 bytes) 2007-10-18 10:11 [Show Content] [Hide Content]Index: vtkPointHandleRepresentation3D.h
===================================================================
RCS file: /cvsroot/VTK/VTK/Widgets/vtkPointHandleRepresentation3D.h,v
retrieving revision 1.11
diff -u -r1.11 vtkPointHandleRepresentation3D.h
--- vtkPointHandleRepresentation3D.h 16 Apr 2007 20:20:23 -0000 1.11
+++ vtkPointHandleRepresentation3D.h 18 Oct 2007 13:59:37 -0000
@@ -109,7 +109,17 @@
// the bounds of the point representation. (Note that the bounds can be
// scaled up using the right mouse button, and the bounds can be manually
// set with the SetBounds() method.)
- vtkSetMacro(TranslationMode,int);
+ void SetTranslationMode(int mode)
+ {
+ if (this->TranslationMode != mode)
+ {
+ this->TranslationMode = mode;
+ // Pass new setting to Cursor3D, otherwise PlaceWidget will not work
+ // as it should when TranslationMode is off.
+ this->Cursor3D->SetTranslationMode(mode);
+ this->Modified();
+ }
+ };
vtkGetMacro(TranslationMode,int);
vtkBooleanMacro(TranslationMode,int);
|