[vtkusers] Display numerical values
Nasos Iliopoulos
nasos_i at hotmail.com
Fri Jun 19 09:46:32 EDT 2009
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) .
Example (ids is a vtkIdFilter in this example, you will have to alter to your needs):
vtkLabeledDataMapper *ldm = vtkLabeledDataMapper::New(); ldm->SetLabelModeToLabelIds();
ldm->SetInput( ids->GetOutput() );
vtkActor2D *pointLabels = vtkActor2D::New();
pointLabels->SetMapper(ldm);
If you want to plot as a static text on the window try
vtkTextActor. There maybe a better way though for data that is modified often.
> Date: Fri, 19 Jun 2009 04:53:42 -0700
> From: claude.gangolf at gmail.com
> To: vtkusers at vtk.org
> Subject: [vtkusers] Display numerical values
>
>
> Hi to you all
>
> I'm new in VTK Programming and i want to display some numerical value on the
> window where all the other stuff is shown but i don't know how to get a
> number in this window!
>
> How can one use FloatArray to show this values on the screen
>
> thx
> --
> View this message in context: http://www.nabble.com/Display-numerical-values-tp24110044p24110044.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> 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
_________________________________________________________________
Insert movie times and more without leaving Hotmail®.
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090619/6e1429d1/attachment.htm>
More information about the vtkusers
mailing list