[vtkusers] Show units in tooltip

Marcus D. Hanwell marcus.hanwell at kitware.com
Fri Oct 21 07:35:18 EDT 2011


That feature was added before the 5.8.0 release, and so upgrading to
that should give you much finer grained control over the tooltips.

On Fri, Oct 21, 2011 at 5:30 AM, Martin Puttke <puttke at langer-emv.de> wrote:
> 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
>>
>
>
> _______________________________________________
> 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