Moving handle in vtkSphereWidget2 does not update HandleDirection
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
When using a vtkSphereWidget2, users can move a handle about the surface of a sphere. The user is given two interface methods to query the state of the handle: GetHandlePosition() and GetHandleDirection(). However, GetHandleDirection() does not return an up-to-date values because the underlying attribute, vtkSphereWidget2::HandleDirection, does not get updated when the handle is manipulated by the user.
This can be fixed by replacing this line [1] in vtkSphereRepresentation.cxx with:
this->SetHandlePosition(this->Sphere->GetPickPosition());
The above method appropriately updates both the handle's position and direction attributes.
[1] https://github.com/Kitware/VTK/blob/master/Interaction/Widgets/vtkSphereRepresentation.cxx#L328