Re: [Paraview] [Fwd: zoom and rotate in script]
Hello Utkarsh: Thanks a lot for your reply. I have made some progress in using ParaView. I have now a script to make zoom in and zoom out of the view. But it is too quick. I can't control the speed of the process. I would like to have a script that shows this zoom in and out slowly just like what we see on the television. Do you know how to do it? By the way I got these scripts by using the Python shell trace to record what I did by mouse click and so... Thanks a lot! Xueli Wang Utkarsh Ayachit wrote: Yes, the following link points to the section regarding how to get access to the camera: http://www.paraview.org/Wiki/ParaView/Python_Scripting#Representations_and_Views Once you have the camera, you can use the vtkCamera API to zoom or do whatever (http://www.vtk.org/doc/nightly/html/classvtkCamera.html) Utkarsh On Thu, Nov 4, 2010 at 7:57 AM, Xueli Wang w...@knmi.nl wrote: Hello everyone, I'm a new user of ParaView. One thing I wonder is whether is it possible to write Python scripts to zoom in and zoom out and rotate of the active object in the render window. My aim is to make a movie of a globe, the global can be zoomed in and out and rotate in a controlled manner. Thanks in advance! Xueli Wang ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Converting a Double array to an UnsignedChar array
Hey David, No, programmable filter and maybe Python calculator (I haven't really played much with that one yet) are the only ones I can think of. Sometimes I have to modify the reader to get the data in in the correct format, so that's always a non-trivial option. Good luck, -Eric -- Eric E Monson Duke Visualization Technology Group On Nov 7, 2010, at 3:37 PM, David Doria wrote: Is there any way besides a programmable filter to convert a double array to an unsigned char array? I am trying to color data (actual colors, not mapped colors) by a double array (which is [0,255], just happens to be type double). Thanks, David ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] [Fwd: zoom and rotate in script]
Try using time.sleep (from Python module time) to slow things down Utkarsh On Mon, Nov 8, 2010 at 5:44 AM, Xueli Wang w...@knmi.nl wrote: Hello Utkarsh: Thanks a lot for your reply. I have made some progress in using ParaView. I have now a script to make zoom in and zoom out of the view. But it is too quick. I can't control the speed of the process. I would like to have a script that shows this zoom in and out slowly just like what we see on the television. Do you know how to do it? By the way I got these scripts by using the Python shell trace to record what I did by mouse click and so... Thanks a lot! Xueli Wang Utkarsh Ayachit wrote: Yes, the following link points to the section regarding how to get access to the camera: http://www.paraview.org/Wiki/ParaView/Python_Scripting#Representations_and_Views Once you have the camera, you can use the vtkCamera API to zoom or do whatever (http://www.vtk.org/doc/nightly/html/classvtkCamera.html) Utkarsh On Thu, Nov 4, 2010 at 7:57 AM, Xueli Wang w...@knmi.nl wrote: Hello everyone, I'm a new user of ParaView. One thing I wonder is whether is it possible to write Python scripts to zoom in and zoom out and rotate of the active object in the render window. My aim is to make a movie of a globe, the global can be zoomed in and out and rotate in a controlled manner. Thanks in advance! Xueli Wang ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Two python questions: client vtk object -server; macro- set plugin fields
A1 There are round about ways of doing that, but I'd not recommend doing it. Sending data from client-to-server isn't the best strategy, the question you should ask in such cases is why can't I read the data on the server itself? A2 This sounds a better approach. There was a separate thread a while ago that talked about how to popup a input widget from a python macro, you might want to search for that. You wouldn't be setting attributes on the python programmable filter, in this case, you'll indeed simply change the python script used by the filter with the attributes replaced using the user chosen values. Utkarsh On Sun, Nov 7, 2010 at 8:41 AM, Lawrence Angrave angr...@illinois.edu wrote: Hi, Some python client related questions - Some Background: I have a pure-vtk python project that reads in volumetric and time-series polydata. I'd like to convert this to be a paraview plugin and macros. Ideally this would be a pure python solution and it would create two paraview sources (an unstructured grid and polydata) when the user opens a custom config file. Eventually it would be great to create a default pipeline of filters too. Q1 Is it possible to send a vtk unstructured grid object, built within a python macro, to the Paraview server? FYI I'll probably implement this with a python plugin instead but wondered if the above implementation is even possible with Paraview 3.8.1 (or later)? FYI I played with TrivialProducer and GetClientSideObject but did not see a way to push the data back to the server without saving to disk first i.e. the opposite of Fetch and then asking paraview to load the files. import paraview.vtk as vtk from paraview.simple import * .. Create client vtk objects... Now want to display them in paraview... tp=TrivialProducer() # Proxy does not support SetOutput tpclient=tp.GetClientSideObject() tpclient.SetOutput( myvtkpolydata ) # Nothing appears on server :-( # How do I send my poly data and ugrid to the server without saving to disk? Q2 Is about an alternative implementation idea - An alternative would be to create a python programmable filter that reads in the file and wrap it as a plugin. I'd need to two plugins (one for the UGrid and one of the poly data). Correct? How would you recommend that I control these from a python macro? e.g. The python macro would display a filename chooser, read in some basic config parameters and then set the relevant parameters on each filter before invoking the filter. I understand a filechooser may be possible using PyQt but am wondering if it's trivial to call custom methods and set attributes on a python programmable filter directly from a python macro (or other python plugin). Are there any code-snippets that you can recommend? I didnt see anything relevant on the wiki. By the way, thanks for the python bindings. We find python development so much faster than traditional C++ development - it's great not having to wait for a C++ build to complete. Thanks for your help! Lawrence. ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] ParticlePathlines filter with vtk time series
Michael, Looks like your vtk file doesn't define any cell, just points. That's the problem. Several filters iterate over points in cells and when cells are missing may totally skip points (which why you see no rendering when you load the vtk file). You need to define a vertices cell for your polydata in the vtk file. Save out the csv-table-to-points data as a ASCII vtk file to see how to define the cells. Utkarsh On Sun, Nov 7, 2010 at 5:04 AM, Michael Müller michael.muel...@ifk.uni-stuttgart.de wrote: Sorry, forgot to append the files... Von: Michael Müller Gesendet: Sonntag, 7. November 2010 11:00 An: Utkarsh Ayachit Cc: paraview@paraview.org Betreff: AW: [Paraview] ParticlePathlines filter with vtk time series Utkarsh, here you can see my sample files (vtk csv) each consisting of 4 time steps. The csv series works as expected, the vtk series doesn't... Thanks. Michael Von: Utkarsh Ayachit [utkarsh.ayac...@kitware.com] Gesendet: Freitag, 5. November 2010 21:20 An: Michael Müller Cc: paraview@paraview.org Betreff: Re: [Paraview] ParticlePathlines filter with vtk time series Can you possible share the vtk file you are having issue with? You can send it to me offline, if you cannot post it to the list. Thanks Utkarsh On Fri, Nov 5, 2010 at 6:36 AM, Michael Müller michael.muel...@ifk.uni-stuttgart.de wrote: Hi, I got a question regarding the 'ParticlePathlines'-filter. What I want to do is, load particle time series follow its trajectories and colour the pathlines according to a certain variable... If I load my time series of vtk-files (see below), apply the 'ParticlePathlines'-filter and skip through the time steps I can follow the particle trajectories. I may also choose the variable for the particles itself (TPART, see below). But for the pathlines the only options are 'Solid Color' and 'TrailId', so it's not possible to color the tracks acc. to for example TPART... Why that? - Is sth wrong with my file? - Do I need another paraview filter? I am currently using the downloaded version 3.8.1. And by the way, it is working properly using simple csv file series: after loading the series, applying TableToPoints ParticlePathlines filter I may choose TPART for coloring the pathlines... Any hints on that? Thanks. Michael sample files: ... vtk: # vtk DataFile Version 3.0 Particles: at time step 1 ASCII DATASET POLYDATA POINTS 4 float 1.0e+00 1.0e+00 0.0e+00 1.0e+00 2.0e+00 0.0e+00 2.0e+00 2.0e+00 0.0e+00 2.0e+00 1.0e+00 0.0e+00 POINT_DATA 4 SCALARS TPART float 1 LOOKUP_TABLE DEFAULT 3.0e+02 3.0e+02 3.0e+02 3.0e+02 ... csv: X, Y, Z, TPART 1.000, 1.000, 0.000, 300 1.000, 2.000, 0.000, 300 2.000, 2.000, 0.000, 300 2.000, 1.000, 0.000, 300 ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] ParticlePathlines filter with vtk time series
Utkarsh, sorry to contradict you, but actually the cells are irrelevant here. If you throw in a MaskPoints filter, with the create vertices option on, set mask to 1, and one point per cell, you see the points animate. When you stick in a pathline filter, as Michael pointed out, the option to display the original point vars is gone. They get lost. I experimented by adding a calculator filter which did nothing except create a new point array and hey-presto - the point vars re-appear. I didn't look into the pathline code, but it's just possible, that when there is only one scalar array, a bug manifests itself and you can't interpolate arrays. when there is 1 array, it works. Probably when I implemented it originally, I assumed that one array was Ids and somehow mucked it up. For a quick fix, throw a calculator filter in which just copied the TPART array with a new name to generate 2 arrays, then try again. sorry also beacuse I had a look at this over the weekend and forgot completely to post my findings. JB -Original Message- From: paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org] On Behalf Of Utkarsh Ayachit Sent: 08 November 2010 15:53 To: Michael Müller Cc: paraview@paraview.org Subject: Re: [Paraview] ParticlePathlines filter with vtk time series Michael, Looks like your vtk file doesn't define any cell, just points. That's the problem. Several filters iterate over points in cells and when cells are missing may totally skip points (which why you see no rendering when you load the vtk file). You need to define a vertices cell for your polydata in the vtk file. Save out the csv-table-to-points data as a ASCII vtk file to see how to define the cells. Utkarsh On Sun, Nov 7, 2010 at 5:04 AM, Michael Müller michael.muel...@ifk.uni-stuttgart.de wrote: Sorry, forgot to append the files... Von: Michael Müller Gesendet: Sonntag, 7. November 2010 11:00 An: Utkarsh Ayachit Cc: paraview@paraview.org Betreff: AW: [Paraview] ParticlePathlines filter with vtk time series Utkarsh, here you can see my sample files (vtk csv) each consisting of 4 time steps. The csv series works as expected, the vtk series doesn't... Thanks. Michael Von: Utkarsh Ayachit [utkarsh.ayac...@kitware.com] Gesendet: Freitag, 5. November 2010 21:20 An: Michael Müller Cc: paraview@paraview.org Betreff: Re: [Paraview] ParticlePathlines filter with vtk time series Can you possible share the vtk file you are having issue with? You can send it to me offline, if you cannot post it to the list. Thanks Utkarsh On Fri, Nov 5, 2010 at 6:36 AM, Michael Müller michael.muel...@ifk.uni-stuttgart.de wrote: Hi, I got a question regarding the 'ParticlePathlines'-filter. What I want to do is, load particle time series follow its trajectories and colour the pathlines according to a certain variable... If I load my time series of vtk-files (see below), apply the 'ParticlePathlines'-filter and skip through the time steps I can follow the particle trajectories. I may also choose the variable for the particles itself (TPART, see below). But for the pathlines the only options are 'Solid Color' and 'TrailId', so it's not possible to color the tracks acc. to for example TPART... Why that? - Is sth wrong with my file? - Do I need another paraview filter? I am currently using the downloaded version 3.8.1. And by the way, it is working properly using simple csv file series: after loading the series, applying TableToPoints ParticlePathlines filter I may choose TPART for coloring the pathlines... Any hints on that? Thanks. Michael sample files: ... vtk: # vtk DataFile Version 3.0 Particles: at time step 1 ASCII DATASET POLYDATA POINTS 4 float 1.0e+00 1.0e+00 0.0e+00 1.0e+00 2.0e+00 0.0e+00 2.0e+00 2.0e+00 0.0e+00 2.0e+00 1.0e+00 0.0e+00 POINT_DATA 4 SCALARS TPART float 1 LOOKUP_TABLE DEFAULT 3.0e+02 3.0e+02 3.0e+02 3.0e+02 ... csv: X, Y, Z, TPART 1.000, 1.000, 0.000, 300 1.000, 2.000, 0.000, 300 2.000, 2.000, 0.000, 300 2.000, 1.000, 0.000, 300 ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe:
[Paraview] Reading ASCII Tecplot data
Hi everyone, What is the current status of Paraview's ability to read in Tecplot data? I've had mixed success reading in ASCII (usually *.DAT) files. For example, many of the DAT files listed here http://people.sc.fsu.edu/~jburkardt/data/tec/tec.htmlhttp://people.sc.fsu.edu/%7Ejburkardt/data/tec/tec.htmlcannot be read in to Paraview (3.8.0 64-bit, running on Ubuntu 10.10). I'm pondering whether its worth writing a script to convert my DAT files to VTU instead... cheers, Novak. ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Question
Hi there I run a job in a 16-processor computer. I get the results. I can see the animation in paraview. But I am interested to make a video out of that. So whenever I want to watch it, It should not be necessary to launch paraview. I really appreciate if you can help me with this regard. Thank you for your time. a_min ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Question
Amin Jan! please have a look at the following tutorial I think that might be helpful! at the end of the page it explains how to export the animation to AVI file! http://paraview.org/OnlineHelpCurrent/Animation.html Hope this is helpful! -- Arsham University of Georgia Department of Computer Science Franklin College of Arts and Sciences 415 Graduate Studies Research Center Athens, GA 30602 Web: http://cs.uga.edu/~ars On Mon, Nov 8, 2010 at 12:32 PM, amin fereidooni aminjan...@gmail.comwrote: Hi there I run a job in a 16-processor computer. I get the results. I can see the animation in paraview. But I am interested to make a video out of that. So whenever I want to watch it, It should not be necessary to launch paraview. I really appreciate if you can help me with this regard. Thank you for your time. a_min ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Rescale to Data Range every time step
Using a file series reader, a sequence of images (mhd for example) can be imported into a time series. When I step through the time steps, on each image I often want to Rescale to Data Range on the color property of the object (in the Display tab). Is there a way to do this automatically every time step? Thanks, David ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Apply a transform to an ImageData
I want to transform an image (without moving the camera). The vtkTransformFilter expects a vtkPointData, so this is why the TransformFilter in ParaView doesn't work (is greyed out), but is there another method to do this? Thanks, David ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Apply a transform to an ImageData
Applying first 'Clean to Grid' filter may work! On Mon, Nov 8, 2010 at 7:44 PM, David Doria daviddo...@gmail.com wrote: I want to transform an image (without moving the camera). The vtkTransformFilter expects a vtkPointData, so this is why the TransformFilter in ParaView doesn't work (is greyed out), but is there another method to do this? Thanks, David ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Apply a transform to an ImageData
On Mon, Nov 8, 2010 at 1:59 PM, Hom Nath Gharti hng.em...@gmail.com wrote: Applying first 'Clean to Grid' filter may work! Great, that does it, thanks! David ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Making a certain color in an image transparent
I want to make one color of an image (a traditional 2D image) totally transparent and leave the rest in tact. I have some mask files (white and green pixels) and I want only the green pixels to be displayed in ParaView. The white pixels should be transparent so I can see the original image in that region (when I also have it opened in ParaView). I can do it in VTK using vtkImageMapToColors with a vtkLookupTable (http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/Transparency) but is it possible in ParaView? Thanks, David ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Reading ASCII Tecplot data
Hello Novak, I am currently working on increasing the support of Tecplot files inside of ParaView for the 3.10 release. The updated reader will have support for more of the different Tecplot data formats. On Mon, Nov 8, 2010 at 12:09 PM, Novak Elliott n.s.j.elli...@curtin.edu.auwrote: Hi everyone, What is the current status of Paraview's ability to read in Tecplot data? I've had mixed success reading in ASCII (usually *.DAT) files. For example, many of the DAT files listed here http://people.sc.fsu.edu/~jburkardt/data/tec/tec.htmlhttp://people.sc.fsu.edu/%7Ejburkardt/data/tec/tec.htmlcannot be read in to Paraview (3.8.0 64-bit, running on Ubuntu 10.10). I'm pondering whether its worth writing a script to convert my DAT files to VTU instead... cheers, Novak. ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview -- Robert Maynard ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Making a certain color in an image transparent
Nope, it's not currently possible with ParaView. On Mon, Nov 8, 2010 at 2:19 PM, David Doria daviddo...@gmail.com wrote: I want to make one color of an image (a traditional 2D image) totally transparent and leave the rest in tact. I have some mask files (white and green pixels) and I want only the green pixels to be displayed in ParaView. The white pixels should be transparent so I can see the original image in that region (when I also have it opened in ParaView). I can do it in VTK using vtkImageMapToColors with a vtkLookupTable (http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/Transparency) but is it possible in ParaView? Thanks, David ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Building a ParaView plugin
I downloaded a new vtk class (vtkAddTetraLayer) from http://www.vision.ee.ethz.ch/~blloyd/Extrusion/. I compiled the vtkAddTetraLayer.cxx to a shared library. I can then load the plugin using the Server Manager XML file, but when I try to use it I get: ERROR: In /home/haiduced/Downloads/ParaView-3.8.1/Servers/Common/vtkProcessModule.cxx, line 1065 vtkProcessModule (0x861b60): Cannot create object of type vtkAddTetraLayer. while processing Message 0 = New Argument 0 = string_value {vtkAddTetraLayer} Argument 1 = id_value {1068} ERROR: In /home/haiduced/Downloads/ParaView-3.8.1/Servers/Common/vtkProcessModule.cxx, line 1066 vtkProcessModule (0x861b60): Aborting execution for debugging purposes. So ParaView doesn't know about this vtk class. Is there a way to tell ParaView that the class is defined in the shared library vtkAddTetraLayer.so? Is there a way to access this new class from ParaView without recompiling VTK and ParaView from scratch? John Haiducek ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Making a certain color in an image transparent
David, I'm pretty sure I got TIFF files to display with transparency a while back. The files were RGBA, ie included an alpha channel and I had masked out a background. Can you pre-process your images and add an alpha channel with 0 where you want transparency? You should be able to find or make a test image pretty fast to see if it works. regards, Dave -Original Message- From: paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org] On Behalf Of Utkarsh Ayachit Sent: Tuesday, 9 November 2010 8:34 a.m. To: David Doria Cc: ParaView Subject: Re: [Paraview] Making a certain color in an image transparent Nope, it's not currently possible with ParaView. On Mon, Nov 8, 2010 at 2:19 PM, David Doria daviddo...@gmail.com wrote: I want to make one color of an image (a traditional 2D image) totally transparent and leave the rest in tact. I have some mask files (white and green pixels) and I want only the green pixels to be displayed in ParaView. The white pixels should be transparent so I can see the original image in that region (when I also have it opened in ParaView). I can do it in VTK using vtkImageMapToColors with a vtkLookupTable (http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/Transparency) but is it possible in ParaView? Thanks, David ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview Disclaimer: This e-mail and any attachments may contain information which is confidential or subject to copyright. If you receive this e-mail in error, please delete it. Scion does not accept responsibility for anything in this e-mail which is not provided in the course of Scion's usual business or for any computer virus, data corruption, interference or delay arising from this e-mail. ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Building a ParaView plugin
You need to compile a plugin and load that, simply loading the XML wouldn't do. Look at the example in ${ParaViewSource}/Examples/Plugins/Filter to see how to write the CMakeLists.txt to build such a plugin. Refer to the Wiki for additional details: http://www.paraview.org/Wiki/Plugin_HowTo#Adding_a_new_VTK_filter Utkarsh On Mon, Nov 8, 2010 at 2:47 PM, John Haiducek jhaid...@gmail.com wrote: I downloaded a new vtk class (vtkAddTetraLayer) from http://www.vision.ee.ethz.ch/~blloyd/Extrusion/. I compiled the vtkAddTetraLayer.cxx to a shared library. I can then load the plugin using the Server Manager XML file, but when I try to use it I get: ERROR: In /home/haiduced/Downloads/ParaView-3.8.1/Servers/Common/vtkProcessModule.cxx, line 1065 vtkProcessModule (0x861b60): Cannot create object of type vtkAddTetraLayer. while processing Message 0 = New Argument 0 = string_value {vtkAddTetraLayer} Argument 1 = id_value {1068} ERROR: In /home/haiduced/Downloads/ParaView-3.8.1/Servers/Common/vtkProcessModule.cxx, line 1066 vtkProcessModule (0x861b60): Aborting execution for debugging purposes. So ParaView doesn't know about this vtk class. Is there a way to tell ParaView that the class is defined in the shared library vtkAddTetraLayer.so? Is there a way to access this new class from ParaView without recompiling VTK and ParaView from scratch? John Haiducek ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Making a certain color in an image transparent
On Mon, Nov 8, 2010 at 2:41 PM, David Pont david.p...@scionresearch.com wrote: David, I'm pretty sure I got TIFF files to display with transparency a while back. The files were RGBA, ie included an alpha channel and I had masked out a background. Can you pre-process your images and add an alpha channel with 0 where you want transparency? You should be able to find or make a test image pretty fast to see if it works. regards, Dave Dave P, That did the trick. I used the itkRGBAPixel type for my image then wrote it as a TIFF and the transparency is as expected in ParaView. Thanks, David ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Rescale to Data Range every time step
Not currently. There's a mechanism to grow the range to fit the current range if required from Edit |Settings dialog. I believe there's a feature request for the same on the bug tracker. Utkarsh On Mon, Nov 8, 2010 at 1:31 PM, David Doria daviddo...@gmail.com wrote: Using a file series reader, a sequence of images (mhd for example) can be imported into a time series. When I step through the time steps, on each image I often want to Rescale to Data Range on the color property of the object (in the Display tab). Is there a way to do this automatically every time step? Thanks, David ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Apply a transform to an ImageData
In general, this is not a great solution. Clean to Grid converts to unstructured grid, and that provides a heck of a lot of overhead. A better solution would be to convert to a curvilinear grid. An even better solution would be if the transform filter were smart enough to transform images. Unfortunately, neither of these are implemented in ParaView, although either would be really easy to do. I submitted a suggestion to ParaView UserVoice, so go vote for it if you want to transform images: http://paraview.uservoice.com/forums/11350-general/suggestions/1206709-transform-filter-should-work-on-all-types-of-data -Ken On 11/8/10 12:15 PM, David Doria daviddo...@gmail.com wrote: On Mon, Nov 8, 2010 at 1:59 PM, Hom Nath Gharti hng.em...@gmail.com wrote: Applying first 'Clean to Grid' filter may work! Great, that does it, thanks! David ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview Kenneth Moreland *** Sandia National Laboratories *** *** *** *** email: kmo...@sandia.gov ** *** ** phone: (505) 844-8919 *** web: http://www.cs.unm.edu/~kmorel ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Building a ParaView plugin
Thanks for the tip, Utkarsh. Now I'm having some difficulty with CMake (I've not used CMake enough to get comfortable with it yet). My CMakeLists.txt is: cmake_minimum_required(VERSION 2.8) FIND_PACKAGE(ParaView REQUIRED) INCLUDE(${PARAVIEW_USE_FILE}) ADD_PARAVIEW_PLUGIN(AddTetraLayer 1.0 SERVER_MANAGER_XML vtkAddTetraLayer_SM.xml SERVER_MANAGER_SOURCES vtkAddTetraLayer.cxx GUI_RESOURCE_FILES vtkAddTetraLayer_GUI.xml) When I do a generate in ccmake, I get this: CMake Warning at /usr/local/lib/paraview-3.8/CMake/ParaViewPlugins.cmake:986 (ADD_LIBRARY): Cannot generate a safe runtime search path for target AddTetraLayer because files in some directories may conflict with libraries in implicit directories: runtime library [libQtCore.so.4] in /usr/lib64 may be hidden by files in: /usr/local/lib/paraview-3.8 Some of these libraries may not be found correctly. Call Stack (most recent call first): CMakeLists.txt:9 (ADD_PARAVIEW_PLUGIN) I am then able to build in spite of the error, but the output looks like: [ 9%] Generating qrc_AddTetraLayer.cxx [ 18%] Generating vtkSMXML_AddTetraLayer.h /usr/local/bin/kwProcessXML: error while loading shared libraries: libvtkCommon.so.pv3.8: cannot open shared object file: No such file or directory make[2]: *** [vtkSMXML_AddTetraLayer.h] Error 127 make[1]: *** [CMakeFiles/AddTetraLayer.dir/all] Error 2 make: *** [all] Error 2 Can anyone tell me how to fix these errors? On Mon, Nov 8, 2010 at 1:01 PM, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: You need to compile a plugin and load that, simply loading the XML wouldn't do. Look at the example in ${ParaViewSource}/Examples/Plugins/Filter to see how to write the CMakeLists.txt to build such a plugin. Refer to the Wiki for additional details: http://www.paraview.org/Wiki/Plugin_HowTo#Adding_a_new_VTK_filter Utkarsh On Mon, Nov 8, 2010 at 2:47 PM, John Haiducek jhaid...@gmail.com wrote: I downloaded a new vtk class (vtkAddTetraLayer) from http://www.vision.ee.ethz.ch/~blloyd/Extrusion/http://www.vision.ee.ethz.ch/%7Eblloyd/Extrusion/. I compiled the vtkAddTetraLayer.cxx to a shared library. I can then load the plugin using the Server Manager XML file, but when I try to use it I get: ERROR: In /home/haiduced/Downloads/ParaView-3.8.1/Servers/Common/vtkProcessModule.cxx, line 1065 vtkProcessModule (0x861b60): Cannot create object of type vtkAddTetraLayer. while processing Message 0 = New Argument 0 = string_value {vtkAddTetraLayer} Argument 1 = id_value {1068} ERROR: In /home/haiduced/Downloads/ParaView-3.8.1/Servers/Common/vtkProcessModule.cxx, line 1066 vtkProcessModule (0x861b60): Aborting execution for debugging purposes. So ParaView doesn't know about this vtk class. Is there a way to tell ParaView that the class is defined in the shared library vtkAddTetraLayer.so? Is there a way to access this new class from ParaView without recompiling VTK and ParaView from scratch? John Haiducek ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Apply a transform to an ImageData
On Mon, Nov 8, 2010 at 4:35 PM, Moreland, Kenneth kmo...@sandia.gov wrote: In general, this is not a great solution. Clean to Grid converts to unstructured grid, and that provides a heck of a lot of overhead. A better solution would be to convert to a curvilinear grid. An even better solution would be if the transform filter were smart enough to transform images. Unfortunately, neither of these are implemented in ParaView, although either would be really easy to do. I submitted a suggestion to ParaView UserVoice, so go vote for it if you want to transform images: http://paraview.uservoice.com/forums/11350-general/suggestions/1206709-transform-filter-should-work-on-all-types-of-data -Ken You have my vote(s). Would you plan to use the vtkImageReslice filter? If you have any thoughts/implementations, I'd be happy to be a second pair of eyes. David ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] ParaView environment for Python
I have a Python script that works inside of ParaView. I would like to execute the script from IDLE. I am using Python 3.1.2 on Windows. The documentation I have seen indicates setting an environment path for PYTHONPATH. The examples are for Unix. According to another piece of ParaView documentation, I could use pvPython or pvBatch. I tried to load simple.py and servermanager.py into IDLE. There were multiple syntax errors, which led me to consider that they are out of date and therefore no longer to be used. How does one interface with the ParaView engine (servermanager) from outside of ParaView? Is it similar for Windows and for Unix? Thanks for your help, Hamilton Woods ___ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Importing time-varying data into Paraview
Hi, I'm working for a fluid mechanics laboratory, and we have very large amounts of data that we want to interrogate in Paraview. We're moving away from text and custom binary data formats, to use the more portable VTK and NetCDF data formats. NetCDF and VTK seem very fast and easy to imolement in our in house code. Paraview is also a very efficient tool for us to visualise large data sets and create complex, 3D isosurfaces etc. It's in some respects better than the expensive commercial alternatives. I'm new to Paraview, NetCDF and VTK, but have been using Linux Open Source for a long time. There is one major snag that we have, which is the importing of time-dependent data. Paraview's feature set and documentation seems to indicate that handling time-dependent data is a large part of what the application should be capable of doing, so I'm not sure why we can't get it to work. We have very large scalar and vector fields which are typically a function of 3D space and time, for example we might wish to plot a vector field u~(x,y,z,time). Whilst the importing of a single time instance u~(x,y,z) works perfectly via both NetCDF, we can't seem to import 4D time dependent data and animate it. Paraview appears to have some very nice animation and time based functions, but we can't use them at all because we can't get any of our data imported as a function of time. I've tried a number of different ways of doing it, and in every instance Paraview fails to identify the time axis as being distinct from x, y z. I will list them here, along with the error messages and the incoming data format. I won't attach our actual .nc data files, as they're gigabytes in size! But I will provide the ncdump header info at the bottom of the message. They are very simple; one scalar value over a regular, structured, rectilinear grid with a regular time-step size. We don't need to compute any time-derivatives, but simply wish to animate iso-surfaces computed at each time step discretely. We have Paraview v.3.6.1 running on Linux and Mac OS X. Our failed attempts at loading time varying data are as follows: 1. Importing a single large NetCDF file which has the data stored as a 4-D array (x,y,z,time). In this case each dimension is stored as a NetCDF double type with the appropriate units. Opening the .nc file results in the error more than 3 dims without time not supported. The information tab after clearing away that error shows Extents X = #timesteps in netcdf, extents Y = #sizeX in netcdf, extents Z = #sizeY in netcdf. The Time list at the bottom of the object inspector is empty. So it appears that Paraview is treating time as a spatial co-ordinate and then failing to be able to have 4 spatial co-ordinates (which makes perfect sense). I've tried naming the time axis several different ways and changing its units, but to no avail. 2. Importing a sequence of separate NetCDF files which are in 3D (x,y,z) and are numbered according to their position in time. ie data-0.00.nc, data-0.01.nc , data-0.02.nc etc. In this case each spatial dimension is stored as a double type with the appropriate units , and the time value is only recorded in the filename. In this case, the Paraview open dialog does detect a set of files data-*.nc. So it recognises that they are a related series. When I open data-*.nc, I only see the data for the first time step. The Information tab shows properties: filename: data-0.00.nc, and the Time list at the bottom of the object inspector is empty. Apparently only the first file has loaded. The time animation features don't do anything. I can't find a way to move forward in the set data-*.nc. 3. Importing time slices as NetCDF files individually into Paraview and attempting to place each slice at its appropriate position in time (tedious, but it should work, right?) I can't seem to find any feature which will allow me to assign a data set to a particular place in time. Creating a time source does not allow me to link a dataset to a point in time; all visible datasets are overlapping each other at all points in time. In summary: Is importing time dependent data via NetCDF currently possible in Paraview ? Do we need to convert to an alternative file format, or name or mark the time axis in some special way so that Paraview recognises it? I can't see why the importing process can't allow one to choose any axis they like as the time axis; certainly this feature is built into all commercial data visualisation packages. Even if a restructuring of the data was required to do this, surely this could be easily implemented. Kind Regards Daniel Duke Laboratory for Turbulence Research in Aerospace Combustion Monash University, Australia -- netcdf headers produced by ncdump below --- 4D file- this won't load. netcdf data-timeseries { dimensions: X = 201 ; Y = 201 ; Z = 201 ; time = 31; variables: