Re: [Paraview] Paraview Programmable Source 3D Text

2016-02-08 Thread Grothausmann, Roman Dr.
Hi Mark, Take a look at test/hkl.lst.fdatss.csv, load it in PV, apply TableToPoints and it will create point data of type string for hkl-label and hkl-latex. I guess a general way to create string arrays of other array types would be the PV python interface. Best would be to have a drop-down

Re: [Paraview] Paraview Programmable Source 3D Text

2016-02-02 Thread Grothausmann, Roman Dr.
Hi Anton, I just stumbled over Your post, which I had not noticed till now. Sorry, for that. I got a plugin working that draws 3D labels: https://github.com/romangrothausmann/TextGlyphs3D_PVp Tries (WIP) to make the labels face the cam are in:

Re: [Paraview] Paraview Programmable Source 3D Text

2015-02-10 Thread anton.piccardo-selg
Hi Roman, Did you succeed to implement a 3D Text annotation in the data set? I am currently also looking into adding this to our ParaView customization but I am a bit at a loss how this can be achieved programmatically in ParaView. If you have any hints or ideas how to tackle this, I would

Re: [Paraview] Paraview Programmable Source 3D Text

2015-01-07 Thread Dr. Roman Grothausmann
Dear Cory, Many thanks for Your reply. On 07/01/15 04:17, Cory Quammen wrote: vtkFollower won't work with the text glyph approach you are proposing. The problem is that you need to rotate each of the text glyphs independently to face the camera plane. If you generate a set of 3D glyphs at each

Re: [Paraview] Paraview Programmable Source 3D Text

2015-01-06 Thread Dr. Roman Grothausmann
Dear Cory, Following Your suggestion, I tried to modify my current plugin to include a new representation. However, I'm lost on how to combine the two things together. The example at the wiki and the one I found from Utkarsh

Re: [Paraview] Paraview Programmable Source 3D Text

2015-01-06 Thread Cory Quammen
Roman, I think there's a fundamental problem with the approach we've discussed so far. vtkFollower won't work with the text glyph approach you are proposing. The problem is that you need to rotate each of the text glyphs independently to face the camera plane. If you generate a set of 3D glyphs

Re: [Paraview] Paraview Programmable Source 3D Text

2015-01-05 Thread Cory Quammen
Hi Roman, A representation plugin could probably do this. It would just need to set its internal actor to an instance of vtkFollower and set the camera from the view's renderer, which could be set by overriding the AddToView(vtkView* view) method in your custom representation. I hope that helps,

Re: [Paraview] Paraview Programmable Source 3D Text

2015-01-05 Thread Dr. Roman Grothausmann
Dear Utkarsh, Needing the same thing as Willi, I've created a paraview plugin written in C++ doing basically the same as Your script. Would it be possible to achieve something like vtkFollower does from within a c++ PV plugin such that the text always faces the camera? An other idea would be

Re: [Paraview] Paraview Programmable Source 3D Text

2015-01-05 Thread Dr. Roman Grothausmann
Dear Cory, Many thanks for Your suggestion, I wouldn't have thought of a representation plugin. I guess You mean the plugin type described here: http://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Adding_new_Representations_for_3D_View_using_Plugins_.2A_new_in_version_3.7 I'll give it a try.

Re: [Paraview] Paraview Programmable Source 3D Text

2013-09-26 Thread Willi Karel
Dear Utkarsh, would it be possible to synchronize the transform of the rendered texts to the transform of the camera, such that the planes in which the texts lie stay normal to the viewing direction? I'm aware of vtkFollower, but I'm not sure if it is applicable / how to make use of it in the

Re: [Paraview] Paraview Programmable Source 3D Text

2013-09-26 Thread Utkarsh Ayachit
Alas, that's not easy to do, if at all possible, with Python source. On Thu, Sep 26, 2013 at 5:48 AM, Willi Karel w...@ipf.tuwien.ac.at wrote: Dear Utkarsh, would it be possible to synchronize the transform of the rendered texts to the transform of the camera, such that the planes in which

Re: [Paraview] Paraview Programmable Source 3D Text

2013-09-25 Thread Utkarsh Ayachit
Willi, You can still use the programmable source for 3D text. With vtkPolyData as the chosen Output DataSet Type, you can use the attached script as the Script. On Wed, Sep 25, 2013 at 6:11 AM, Willi Karel w...@ipf.tuwien.ac.at wrote: I'd like to insert various text strings

Re: [Paraview] Paraview Programmable Source 3D Text

2013-09-25 Thread Willi Karel
Dear Utkarsh, that works nice, thanks a lot! Willi. On 25.09.2013 15:25, Utkarsh Ayachit wrote: Willi, You can still use the programmable source for 3D text. With vtkPolyData as the chosen Output DataSet Type, you can use the attached script as the Script. On Wed, Sep 25,