vtkBorderRepresentation - virtuals not called
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
The virtual overrides
virtual void vtkBorderRepresentation::StartWidgetInteraction(double eventPos[2]);
virtual void vtkBorderRepresentation::WidgetInteraction(double eventPos[2]);
are not called in preference to the superclass versions
virtual void vtkWidgetRepresentation::StartWidgetInteraction(double* vtkNotUsed(eventPos[2])) {}
virtual void vtkWidgetRepresentation::WidgetInteraction(double* vtkNotUsed(eventPos[2])) {}
because the argument specifications are slightly different
( double* )
( double* const )
Consequently, the border representation does no respond to mouse events.
Changing the derived class versions to
virtual void vtkBorderRepresentation::StartWidgetInteraction(double* eventPos);
virtual void vtkBorderRepresentation::WidgetInteraction(double* eventPos);
appears to fix the problem.
Maybe this is a peculiarity of the MS VC6 compiler?