[vtk-developers] vtkBorderRepresentation - virtual overrides not called - VTK5
Mathieu Malaterre
mathieu.malaterre at kitware.com
Tue Jun 6 11:49:16 EDT 2006
John,
Can you add that as a bug:
http://vtk.org/Bug
Thanks
Mathieu
John Platt wrote:
> 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.
>
>
>
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtk-developers
More information about the vtk-developers
mailing list