[Paraview] Programmable Source

2010-09-24 Thread David Scott
I am unsure how best to do what I want to do which I shall now describe. I have a Python program that reads in data in a format not supported by ParaView (it actually reads from more than one file which contain different sorts of data). It reformats the data and then writes it out in VTK Legac

[Paraview] Programmable Source & MultiBlockDataSet

2010-04-22 Thread Aurélien Marsan
Hi, A new thing I don't know how to do with Paraview. I have written a personnal reader, that creates vtkStructuredGrid from files written in so called format "v3d". So I'm able to construct a MutliBlockDataSet, that is composed of all the Blocks I'm working with. I would like to use "Programmabl

Re: [Paraview] Programmable Source

2010-09-24 Thread Aurélien Marsan
Hello David, I am in the same situation. Here is what I have done : 1. Create the reader in python, that works with pvpython, and returns (in my case) a vtkMultiBlockDataSet 2. Then create a "MyReader.xml" file. That calls a vtkPythonProgrammableFilter, in which I import my reader and

Re: [Paraview] Programmable Source & MultiBlockDataSet

2010-04-23 Thread Aurélien Marsan
Maybe I have found a way to avoid the Programmable Source... But Is it possible to export an object created in the python shell directly into the pipeline of the paraview interface ? Le 22 avril 2010 15:36, Aurélien Marsan a écrit : > Hi, > > A new thing I don't know how to do with Paraview. >

Re: [Paraview] Programmable Source & MultiBlockDataSet

2010-04-23 Thread Aurélien Marsan
I found a solution to do what I wanted to do. Not really elegant, but it works. The best would be to encode the reader in the source code but I don't know how to do, and have no time for now. First, I use the tool Source -> Data Object Generator, and create a MultiBlockDataSet. > MB{} Then,

Re: [Paraview] Programmable Source & MultiBlockDataSet

2010-04-23 Thread Utkarsh Ayachit
I've just committed a change to ParaView to allow setting output type to be a multiblock dataset. Commit id: c7472789ba86210e190f398a90eebc081a66d40c Utkarsh 2010/4/23 Aurélien Marsan : > I found a solution to do what I wanted to do. Not really elegant, but it > works. > The best would be to enc

Re: [Paraview] Programmable Source & MultiBlockDataSet

2010-04-23 Thread Utkarsh Ayachit
Temporal DataSet! Filters shouldn't be producing temporal dataset explicitly. Why do you need it? Utkarsh 2010/4/23 Aurélien Marsan : > thanks ! > And so, could you add "Temporal Data Set" to this commit ? > Le 23 avril 2010 16:28, Utkarsh Ayachit a > écrit : >> >> I've just committed a change t

Re: [Paraview] Programmable Source & MultiBlockDataSet

2010-04-23 Thread Aurélien Marsan
ah So : I use file in format v3d. For a mesh that contains two blocks, they would be called called block1_timestep1.v3d, block2_timestep1.v3d, block1_timestep2.v3d, block2_timestep2.v3d, etc... Actually, I open these v3d_files with a python tool that I have writen, translate them as vtk.vtkSt

Re: [Paraview] Programmable Source & MultiBlockDataSet

2010-04-23 Thread Aurélien Marsan
Yet I understand why it's not possible to work with TemporalDataSet in Paraview. The output of the PVDReader is a MultiBlockDataSet, and the PVDReader redirect the reader based on the time value. ... Is it possible to create a programmable source that would be aware of the timestep ? Or do I have

Re: [Paraview] Programmable Source & MultiBlockDataSet

2010-04-23 Thread Utkarsh Ayachit
I've added an example to the Wiki showing how to produce timesteps from programmable source. http://www.paraview.org/Wiki/Here_are_some_more_examples_of_simple_ParaView_3_python_filters.#Producing_Data_with_Timesteps_.28Source.29 There's one caveat currently. The GUI does not realize the timesteps

Re: [Paraview] Programmable Source & MultiBlockDataSet

2010-04-26 Thread Aurélien Marsan
Thank for this example. But I'm trying to apply this to my case, and have one question again . :-| # TODO: Generate the data as you want. ---> That should be the DataSet at one timestep ? How does the programmable source handle the change of the filename to read ? Should I use a command sor

Re: [Paraview] Programmable Source & MultiBlockDataSet

2010-04-26 Thread Aurélien Marsan
... I answer myself : I have to use the req_timestep variable, and do something like > ModulePerso.ReadMultiBlockFromV3D(*'filename%s'%(req_timestep)*) If that could help other people, there is on the internet a presentation that explains quite well how time is managed in Paraview, especially s

Re: [Paraview] Programmable Source & MultiBlockDataSet

2010-06-10 Thread Jérôme Plumecoq
Hello, I also would like to make a ProgrammableSource with a vtkMultiBlockDataSet as output type (*). It seems that the correction indicated below doesn't appear in the version 3.8.0 of ParaView. do you know in which version this change will be integrate ? does a patch exist ? thanks. Jérô

Re: [Paraview] Programmable Source & MultiBlockDataSet

2010-06-10 Thread Utkarsh Ayachit
Attached is the patch. It will be included in 3.8.1 release. Utkarsh 2010/6/10 Jérôme Plumecoq : > Hello, > > I also would like to make a ProgrammableSource with a vtkMultiBlockDataSet > as output type (*). It seems that the correction indicated below doesn't > appear in the version 3.8.0 of P

Re: [Paraview] Programmable Source & MultiBlockDataSet

2010-06-10 Thread Aurélien Marsan
great ! But I never used patches. How do we apply it ? 2010/6/10 Utkarsh Ayachit > Attached is the patch. > > It will be included in 3.8.1 release. > > Utkarsh > > > > 2010/6/10 Jérôme Plumecoq : > > Hello, > > > > I also would like to make a ProgrammableSource with a > vtkMultiBlockDataSet > >

Re: [Paraview] Programmable Source & MultiBlockDataSet

2010-06-10 Thread Aurélien Marsan
I found it. In the source, before compiling. ... Le 10 juin 2010 18:03, Aurélien Marsan a écrit : > great ! > But I never used patches. How do we apply it ? > > > 2010/6/10 Utkarsh Ayachit > >> Attached is the patch. >> >> It will be included in 3.8.1 release. >> >> Utkarsh >> >> >> >> 2010/

[Paraview] Programmable source and time steps

2013-03-14 Thread Nasos Iliopoulos
Dear all, I am trying to create a programmable source with time steps on an unstructured grid. After consulting (http://www.paraview.org/Wiki/ParaView/Simple_ParaView_3_Python_Filters) and some attempts I managed to get something meaningful to work for Paraview 3.14.1 on Ubuntu. Now I want to

[Paraview] Paraview Programmable Source 3D Text

2013-09-25 Thread Willi Karel
I'd like to insert various text strings programmatically into the scene at various 3D locations in world coordinates. To me, (Python) "Programmable Source" seems to be the appropriate tool for that purpose (which I successfully use to insert geometries into the scene). Is that possible using "Progr

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: https://github.com/romangrothausmann/TextGlyphs3D_

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] Programmable source and time steps

2013-03-14 Thread Nasos Iliopoulos
Oops! it seems I had forgotten to switch on the advanced options button. Both are there now. -Nasos On 03/14/2013 12:32 PM, Nasos Iliopoulos wrote: Dear all, I am trying to create a programmable source with time steps on an unstructured grid. After consulting (http://www.paraview.org/Wiki/

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 wrote: > I'd like to insert various text strings programmatically into the sc

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". > > > > > > > > >

Re: [Paraview] Paraview Programmable Source 3D Text

2013-09-26 Thread Willi Karel
it in the context of ParaView / Programmable Source, as it derives from vtkActor. Many thanks! Willi. On 25.09.2013 22:50, Willi Karel wrote: > Dear Utkarsh, > that works nice, thanks a lot! > Willi. > > On 25.09.2013 15:25, Utkarsh Ayachit wrote: >> Willi, >> >> Yo

Re: [Paraview] Paraview Programmable Source 3D Text

2013-09-26 Thread Utkarsh Ayachit
h 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 context of ParaView / Programmable Source, as it > derives from vtkActor. > > Many thanks! > Willi. > > On

Re: [Paraview] Paraview Programmable Source 3D Text

2015-01-05 Thread Dr. Roman Grothausmann
amera, 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 context of ParaView / Programmable Source, as it derives from vtkActor. Many

Re: [Paraview] Paraview Programmable Source 3D Text

2015-01-05 Thread Cory Quammen
gt; 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 context of ParaView / Programmable Source, as it >> derives from vtkActor. >> >> Many

Re: [Paraview] Paraview Programmable Source 3D Text

2015-01-05 Thread Dr. Roman Grothausmann
re if it is applicable / how to make use of it in the context of ParaView / Programmable Source, as it derives from vtkActor. Many thanks! Willi. On 25.09.2013 22 :50, Willi Karel wrote: > Dear Utkarsh, > that works nice, thanks a lot! > Wi

Re: [Paraview] Paraview Programmable Source 3D Text

2015-01-06 Thread Dr. Roman Grothausmann
make use of it in the context of ParaView / Programmable Source, as it derives from vtkActor. Many thanks! Willi. -- Dr. Roman Grothausmann Tomographie und Digitale Bildverarbeitung Tomography and Digital Image Analysis Institut für Funktionelle und Angewandte Anatomie, OE 4120 Med

Re: [Paraview] Paraview Programmable Source 3D Text

2015-01-06 Thread Cory Quammen
> <mailto: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 th

Re: [Paraview] Paraview Programmable Source 3D Text

2015-01-07 Thread Dr. Roman Grothausmann
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 i

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 be