<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Use vtkLabeledDataMapper if you want the numbers to be a label of some
3D points. The numbers will be always reprojected so that they face the
window. I find this function slow though for larger number of points
(&gt;500) .<br>Example (ids is a vtkIdFilter in this example, you will have to alter to your needs):<br><br>
<div class="ExternalClass" id="MsgContainer"><style>
.ExternalClass p, .ExternalClass li
{white-space:pre-wrap;}
</style>

<p style="text-indent: 0px;">vtkLabeledDataMapper *ldm = vtkLabeledDataMapper::New();</p><p style="text-indent: 0px;">        ldm-&gt;SetLabelModeToLabelIds();</p>
<p style="text-indent: 0px;">        ldm-&gt;SetInput( ids-&gt;GetOutput() );</p>

<p style="text-indent: 0px;">    vtkActor2D *pointLabels = vtkActor2D::New();</p>

<p style="text-indent: 0px;">        pointLabels-&gt;SetMapper(ldm);</p><br>If you want to plot as a static text on the window try&nbsp;<style>
.ExternalClass p, .ExternalClass li
{white-space:pre-wrap;}
</style>
<p style="text-indent: 0px;">vtkTextActor. There maybe a better way though for data that is modified often.</p></div><br><br>&gt; Date: Fri, 19 Jun 2009 04:53:42 -0700<br>&gt; From: claude.gangolf@gmail.com<br>&gt; To: vtkusers@vtk.org<br>&gt; Subject: [vtkusers]  Display numerical values<br>&gt; <br>&gt; <br>&gt; Hi to you all<br>&gt; <br>&gt; I'm new in VTK Programming and i want to display some numerical value on the<br>&gt; window where all the other stuff is shown but i don't know how to get a<br>&gt; number in this window!<br>&gt; <br>&gt; How can one use FloatArray to show this values on the screen<br>&gt; <br>&gt; thx<br>&gt; -- <br>&gt; View this message in context: http://www.nabble.com/Display-numerical-values-tp24110044p24110044.html<br>&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>&gt; <br>&gt; _______________________________________________<br>&gt; Powered by www.kitware.com<br>&gt; <br>&gt; Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br>&gt; <br>&gt; Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<br>&gt; <br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; http://www.vtk.org/mailman/listinfo/vtkusers<br><br /><hr />Insert movie times and more without leaving HotmailŪ. <a href='http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009' target='_new'>See how.</a></body>
</html>