vtkPointWidget::TranslationModeOff does not work
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
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