MantisBT - VTK
View Issue Details
0010427VTK(No Category)public2010-03-17 07:102016-08-12 09:55
Yoyi 
Kitware Robot 
normalminoralways
closedmoved 
 
 
0010427: vtkPointWidget::TranslationModeOff does not work
Hello, if would like to disable translation mode in PointWidget, but TranslationModeOff seem to be not working, ie, even disabling the transaltion it continues doing when it is triggered by the MiddleButton.

I have check it in Examples/GUI/Tcl/ProbeWithPointWidget.tcl

Looking at the cxx code

  else if ( this->State == vtkPointWidget::Translating )
    {
    if ( !this->WaitingForMotion || this->WaitCount++ > 3 )
      {
      this->ConstraintAxis =
        this->DetermineConstraintAxis(this->ConstraintAxis,pickPoint);
      this->Translate(prevPickPoint, pickPoint);
      }
    else
      {
      return; //avoid the extra render
      }
    }

I can see that Translate is invoked regardless it is enabled or not.

I think that a check to this->Cursor3D->GetTranslationMode() should be added to the condition:

  if ( this->State == vtkPointWidget::Translating && this->Cursor3D->GetTranslationMode() )

is correct?

best regards,

Jorge
No tags attached.
Issue History
2010-03-17 07:10YoyiNew Issue
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:55Kitware RobotNote Added: 0037154
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotResolutionopen => moved
2016-08-12 09:55Kitware RobotAssigned To => Kitware Robot

Notes
(0037154)
Kitware Robot   
2016-08-12 09:55   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.