[vtkusers] Show units in tooltip

Martin Puttke puttke at langer-emv.de
Fri Oct 21 05:30:01 EDT 2011


Hi Eric,

oh thanks, until now i am working with 5.7. this function is exactly
what i was looking for. so i am going to update to 5.8.
Thanks a lot
Martin

On Fri, 2011-10-14 at 08:34 -0400, Eric E. Monson wrote:
> 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