Skip to content

Tooltip scalars to colors item

This adds support for showing a tooltip with the barplot of ScalarsToColorsItem

The ScalarsToColorsItem recently added support for showing a BarPlot (histogram) instead of the color texture, form a vtkTable data input. This MR adds support for showing a tooltip when hovered by the mouse. The value showed is the index and values of the bar currently hovered.

Main changes are:

  • Use ShiftScale for GetNearestPoint
  • Deprecate a limited version of GetNearestPoint
  • Correct vtkTooltipItem by dragging item back in YAxis as well
  • Actual support of tooltip in ScalarsToColors with GetNearestPoint, GetTooltipLabel and ShiftScale usage
Edited by Joachim Pouderoux

Merge request reports