<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
(>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->SetLabelModeToLabelIds();</p>
<p style="text-indent: 0px;"> ldm->SetInput( ids->GetOutput() );</p>
<p style="text-indent: 0px;"> vtkActor2D *pointLabels = vtkActor2D::New();</p>
<p style="text-indent: 0px;"> pointLabels->SetMapper(ldm);</p><br>If you want to plot as a static text on the window try <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>> Date: Fri, 19 Jun 2009 04:53:42 -0700<br>> From: claude.gangolf@gmail.com<br>> To: vtkusers@vtk.org<br>> Subject: [vtkusers] Display numerical values<br>> <br>> <br>> Hi to you all<br>> <br>> I'm new in VTK Programming and i want to display some numerical value on the<br>> window where all the other stuff is shown but i don't know how to get a<br>> number in this window!<br>> <br>> How can one use FloatArray to show this values on the screen<br>> <br>> thx<br>> -- <br>> View this message in context: http://www.nabble.com/Display-numerical-values-tp24110044p24110044.html<br>> Sent from the VTK - Users mailing list archive at Nabble.com.<br>> <br>> _______________________________________________<br>> Powered by www.kitware.com<br>> <br>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br>> <br>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<br>> <br>> Follow this link to subscribe/unsubscribe:<br>> 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>