[vtkusers] Show units in tooltip

Eric E. Monson emonson at cs.duke.edu
Fri Oct 14 08:34:30 EDT 2011


Hey Martin,

It depends on which version of VTK you're using. If you're using 5.8 or the development head then look at vtkPlot:: SetTooltipLabelFormat(). I haven't tried it yet, but it should let you customize the tooltip text with a printf-style string.

http://www.vtk.org/doc/nightly/html/classvtkPlot.html

-Eric

· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·
Eric E Monson
Duke Visualization Technology Group


On Oct 14, 2011, at 6:48 AM, Martin Puttke wrote:

> Hello there,
> 
> I have a vtkChartXY and want the tooltip to print the units of the axes.
> Something like "[Annotation]: 10.2 V, 193.000 Hz". I don't think that
> this can be done easily, without subclassing vtkChartXY and vtkPlot.
> Any ideas to realize this?
> 
> greetings
> Martin
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list