[vtk-developers] vtkBorderRepresentation - virtual overrides not called - VTK5
John Platt
jcplatt at dsl.pipex.com
Tue Jun 6 07:38:24 EDT 2006
Hi all,
The virtual overrides
virtual void vtkBorderRepresentation::StartWidgetInteraction(double
eventPos[2]);
virtual void vtkBorderRepresentation::WidgetInteraction(double
eventPos[2]);
are not called in preferences 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?
John.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20060606/245b1c3f/attachment.html>
More information about the vtk-developers
mailing list