[vtkusers] Add text to vtkPoint
Chris Marsh
chris.marsh at usask.ca
Fri Apr 28 13:17:21 EDT 2017
Hi,
Shortly after my email I found that example! It got me in the right
direction, thanks.
I've figured it out and the answer is not obvious:
Use this example for writting points to a file
http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/WriteVTP
Use the example you linked for building the vtkStringArray to hold the
labels and adding it to the polydata in the above example
via
http://www.vtk.org/Wiki/VTK/Tutorials/DataStorage
Then in Paraview, choose your point data, go to spreadsheet mode, select
the points you want, then View->Selection Display Inspector. Choose the
dataarray under point labels and it will show the text next to the point.
Thanks again!
On 28 April 2017 at 10:46, Rakesh Patil <rakesh.p at tataelxsi.co.in> wrote:
> Hi,
>
>
> Not sure how far it can be done using paraview. But using VTK this example
> might help you. [image: 😊]
>
>
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/LabeledDataMapper
> VTK/Examples/Cxx/Visualization/LabeledDataMapper ...
> <http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/LabeledDataMapper>
> www.vtk.org
> Download and Build LabeledDataMapper. Click here to download
> LabeledDataMapper. and its CMakeLists.txt file. Once the tarball
> LabeledDataMapper.tar has been ...
>
>
>
> Good luck
>
>
> Thanks & Regards
>
> Rakesh Patil
>
>
> TATA ELXSI
> Tel (D) +91 80 2297 9621 <+91%2080%202297%209621>
> Cell +91 9890258407 <+91%2098902%2058407>
>
> ------------------------------
> *From:* vtkusers <vtkusers-bounces at vtk.org> on behalf of Chris Marsh <
> chris.marsh at usask.ca>
> *Sent:* Friday, April 28, 2017 9:38:58 PM
> *To:* VTK Users
> *Subject:* [vtkusers] Add text to vtkPoint
>
> Hi,
>
> I'm currently writing out vtkPoint data to a vtp file for visualization in
> Paraview. I would like to attach text data to this (the name of the point)
> to view in Paraview.
>
> My end goal would be analogous to this
> http://desktop.arcgis.com/en/arcmap/latest/extensions/3d-
> analyst/GUID-B948937F-22C1-4688-8849-29CFF3C86BF6-web.png
>
> How should I do this? The VTK examples seem to be limited to using VTK
> directly to visualize v. Paraview.
>
>
>
> Cheers
> Chris
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170428/0874ef9c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OutlookEmoji-?.png
Type: image/png
Size: 488 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170428/0874ef9c/attachment.png>
More information about the vtkusers
mailing list