Re: [Paraview] Setter and getter for ParaView Plugin
So, I tried this and wonder if it is right: For the return value, I declared an attribute double OpThreshold and the family of Set Get : SetMacro(OpThreshold,double) GetMarco(OpThreshold,double) then in the function, I used this-OpThreshold = optimalThreshold with optimalThreshold is the value we calculate. In the .xml file DoubleVectorProperty name = OpThreshold command=GetOpThreshold infomation_only = 1 /DoubleVectorProperty I followed the tutorial in the IEEE vis09 conference, in stead of command Set, we have command Get DoubleVectorProperty name=Translate command=SetTranslate number_of_elements=3 default_values=0 0 0 So, please tell me if I'm right or wrong, if wrong, then what do I have to change. Thank you very much. - Original Message - From: Sebastien Jourdain sebastien.jourd...@kitware.com To: Tuan Ha Tran tuan-ha.t...@insa-lyon.fr Cc: paraview-develop...@paraview.org, paraview@paraview.org Sent: Tue, 05 Jun 2012 21:26:37 +0200 (CEST) Subject: Re: [Paraview] Setter and getter for ParaView Plugin You just have to use the attribute information_only=1 For more details, you can look at the one that are defined inside ParaView itself in SRC/ParaViewCode/ServerImplementation/Resources/*.xml Seb On Tue, Jun 5, 2012 at 3:21 PM, Tuan Ha Tran wrote: Hi everyone, I want to ask you a question about setter and getter of ParaView Plugin. As input, we can use the xml file to link them, using , , etc. So, for the outputs, how can we write the xml file? For exemple, I have a function with double as return value. And I want to show this value in ParaView, as well as extract it in Python Shell and JavaScript Terminal (ParaViewWeb). Thank you very much in advance. ___ 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] Pseudo colors
Hello experts, I want to use pseudo colors for models and store it as point data or cell data with the calculator. Can somebody help me, please? Regards, Chris ___ 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] Cmake complaint with git clone of ParaView
On Tue, Jun 5, 2012 at 10:10 PM, William Sherman sherm...@indiana.edu wrote: Hello, Earlier this evening I did a git clone copy of ParaView from git://paraview.org/ParaView.git, and CMake is giving my the following errors: CMake Error at CMake/VTKModules.cmake:3 (include): include could not find load file: vtkDependentOption Call Stack (most recent call first): CMakeLists.txt:148 (include) CMake Error at CMake/VTKModules.cmake:361 (VTK_DEPENDENT_OPTION): Unknown CMake command VTK_DEPENDENT_OPTION. Call Stack (most recent call first): CMakeLists.txt:148 (include) I did a Google search, but no obvious answer appeared. Note: I also got this warning: CMake Warning at CMakeLists.txt:120 (MESSAGE): Warning: You are using Qt 4.7.4. Officially supported version is Qt 4.8 Of course, that was after it complained about a lack of Qt, and mentioned version 4.7, so I spent an hour compiling Qt version 4.7.4 (if only CMake had told me it wanted an even more recent version!) Thanks for the help, Bill After git clone, you need a 'git submodule update --init', or you can 'git clone --recursive': http://www.paraview.org/Wiki/ParaView/Git/Download 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] Setter and getter for ParaView Plugin
Hi Tuan, an information_only property is used to retrieve value from the object by calling some Get Macro. But information property does not behave the same way a regular property does. In fact, you need to explicitly call on your proxy UpdatePropertyInformation() in order to update the local values of those information properties. In ParaViewWeb, the method UpdatePropertyInformation() is not exposed therefore, you will need to write a helper plugin in python. Here is a sample code that illustrate what you want to achieve: === file: helper.py def getProperty( proxy, propertyName ): proxy.UpdatePropertyInformation() return eval(proxy. + propertyName) ## You might need to fix that line, but you get the idea... JavaScript part = helper = paraview.getPlugin('helper'); var value = helper.getProperty( myProxy, 'NumberOfSomething' ); Seb On Tue, Jun 5, 2012 at 5:42 PM, Tuan Ha Tran tuan-ha.t...@insa-lyon.fr wrote: Thank you very much for your reply, Seb. I have been reading lots of exemple in the .xml files before I ask you this question : For input, we have command=SetInputArrayToProcess to know that there is a function (if i'm right) which is linked with the input. But for the output, there isn't any information like that. So, I wonder if the output as information_only=1 is the return value of an vtkGetMacro? And if the return value of my function is not an attribute of my class, is there any way to see this return value? - Original Message - From: Sebastien Jourdain sebastien.jourd...@kitware.com To: Tuan Ha Tran tuan-ha.t...@insa-lyon.fr Cc: paraview-develop...@paraview.org, paraview@paraview.org Sent: Tue, 05 Jun 2012 21:26:37 +0200 (CEST) Subject: Re: [Paraview] Setter and getter for ParaView Plugin You just have to use the attribute information_only=1 For more details, you can look at the one that are defined inside ParaView itself in SRC/ParaViewCode/ServerImplementation/Resources/*.xml Seb On Tue, Jun 5, 2012 at 3:21 PM, Tuan Ha Tran wrote: Hi everyone, I want to ask you a question about setter and getter of ParaView Plugin. As input, we can use the xml file to link them, using , , etc. So, for the outputs, how can we write the xml file? For exemple, I have a function with double as return value. And I want to show this value in ParaView, as well as extract it in Python Shell and JavaScript Terminal (ParaViewWeb). Thank you very much in advance. ___ 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] Pseudo colors
Chris, Have you read this? http://paraview.org/Wiki/ParaView/Users_Guide/Calculator - Cory On Wed, Jun 6, 2012 at 4:23 AM, Christoph Schweigi chris.schweigho...@gmx.net wrote: Hello experts, I want to use pseudo colors for models and store it as point data or cell data with the calculator. Can somebody help me, please? Regards, Chris ___ 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 -- Cory Quammen Research Associate Department of Computer Science The University of North Carolina at Chapel Hill ___ 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] Cmake complaint with git clone of ParaView
After git clone, you need a 'git submodule update --init', or you can 'git clone --recursive': http://www.paraview.org/Wiki/ParaView/Git/Download Thanks David, I'm sure that's the problem. Unfortunately, my git reports that it doesn't have the submodule option. Which surprises me, since I litterally compiled a brand new version of git last night: % git --version git version 1.7.11-rc1 And unfortunately, the --recursive option makes use of the submodule option, so it too complains: git: 'submodule' is not a git command. See 'git --help'. I'd guess that I did something wrong in building git, but the build process was pretty basic. But I'll go back and see what I did wrong there (or go to a machine that already has git installed, download ParaView there, and then copy it back to the machine I want it on -- which has RedHat Enterprise Linux on it, and no git in the respository!). David Thanks for the tip, Bill ___ 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] Rename filtered sources with Python
Hi Seb, Thanks for your advices. I tried RenameSource. It's easy to use, and I got good results. Magician On 2012/06/05, at 23:58, Sebastien Jourdain wrote: Here are the two way of doing that: First set the name at the creation by doing that: c = Cone(guiName = MySuperName) Or renaming it afterward RenameSource( proxy = p, newName = MySuperNewName) Seb On Tue, Jun 5, 2012 at 10:18 AM, Magician f_magic...@mac.com wrote: Hi all, I've been trying to automate ParaView with Python for weeks. Now I want to rename filter results such as ExtractBlock1 to any other names. I searched documents on the web and properties of ActiveSource and others, but I couldn't find how to rename them. I found a tip of renaming Sphere sources, but I couldn't apply it to my cases: http://www.paraview.org/pipermail/paraview/2009-June/012350.html Does anyone have good ideas? Magician ___ 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 v 3.14, GradientOfUnstructuredDataSet1, vorticity
When using the filter GradientOfUnstructuredDataSet1 and selecting Vorticity, this result doesn't become available. On the other hand Q Criterion becomes available under the right moniker... Is this expected? best, Ricardo Reis -- PhD/MSc Mechanical Engineering | Lic. Aerospace Engineering Computational Fluid Dynamics, High Performance Computing, Turbulence http://www.lasef.ist.utl.pt Cultural Instigator @ Rádio Zero http://www.radiozero.pt http://www.flickr.com/photos/rreis/ contacts: gtalk: kyriu...@gmail.com skype: kyriusan Institutional Address: Ricardo J.N. dos Reis IDMEC, Instituto Superior Técnico, Technical University of Lisbon Av. Rovisco Pais 1049-001 Lisboa Portugal - email sent with alpine 2.00 -___ 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] Setter and getter for ParaView Plugin
Thank you very much Seb :) - Original Message - From: Sebastien Jourdain sebastien.jourd...@kitware.com To: Tuan Ha Tran tuan-ha.t...@insa-lyon.fr Cc: paraview-develop...@paraview.org, paraview@paraview.org Sent: Wed, 06 Jun 2012 14:08:34 +0200 (CEST) Subject: Re: [Paraview] Setter and getter for ParaView Plugin Hi Tuan, an information_only property is used to retrieve value from the object by calling some Get Macro. But information property does not behave the same way a regular property does. In fact, you need to explicitly call on your proxy UpdatePropertyInformation() in order to update the local values of those information properties. In ParaViewWeb, the method UpdatePropertyInformation() is not exposed therefore, you will need to write a helper plugin in python. Here is a sample code that illustrate what you want to achieve: === file: helper.py def getProperty( proxy, propertyName ): proxy.UpdatePropertyInformation() return eval(proxy. + propertyName) ## You might need to fix that line, but you get the idea... JavaScript part = helper = paraview.getPlugin('helper'); var value = helper.getProperty( myProxy, 'NumberOfSomething' ); Seb On Tue, Jun 5, 2012 at 5:42 PM, Tuan Ha Tran wrote: Thank you very much for your reply, Seb. I have been reading lots of exemple in the .xml files before I ask you this question : For input, we have command=SetInputArrayToProcess to know that there is a function (if i'm right) which is linked with the input. But for the output, there isn't any information like that. So, I wonder if the output as information_only=1 is the return value of an vtkGetMacro? And if the return value of my function is not an attribute of my class, is there any way to see this return value? - Original Message - From: Sebastien Jourdain To: Tuan Ha Tran Cc: paraview-develop...@paraview.org, paraview@paraview.org Sent: Tue, 05 Jun 2012 21:26:37 +0200 (CEST) Subject: Re: [Paraview] Setter and getter for ParaView Plugin You just have to use the attribute information_only=1 For more details, you can look at the one that are defined inside ParaView itself in SRC/ParaViewCode/ServerImplementation/Resources/*.xml Seb On Tue, Jun 5, 2012 at 3:21 PM, Tuan Ha Tran wrote: Hi everyone, I want to ask you a question about setter and getter of ParaView Plugin. As input, we can use the xml file to link them, using , , etc. So, for the outputs, how can we write the xml file? For exemple, I have a function with double as return value. And I want to show this value in ParaView, as well as extract it in Python Shell and JavaScript Terminal (ParaViewWeb). Thank you very much in advance. ___ 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] Write xml for ParaView Plugin
Hi everybody, I'm writing some .xml ServerManager file for a ParaView Plugin. Our class have a function likes this : double calculate(vtkImagedata* voi) that return a double value calculated from the vtkImageData. I loaded the plugin into Paraview. I use the Python Shell and when I call myReturnedValue = MyFilter.calculate(proxy) (proxy is a vtkImageData type), I always have the following error : AttributeError : 'function' object has no attribute 'calculate' I searched in the filters.xml and found something mention about function. I wonder if we can use these descriptions to access to the function (this function is nothing similar to any vtk function, don't override any of them). I think that I have to add something like 'function = calculate' so that the function is recognized in ParaView as well as Python but I can't find any exemple. Do you have any idea? Thank you in advance. ___ 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] How to use paraview to mark something on the object
Hi all, I am new for paraview, and thank in advance for all kinds of help. My question : I am doing the visualization of a wheel rotating on the road, and want to do some marks (e.g line..) on the wheel. The marks can move with the wheel together, so that we can see the wheel is rotating but not just slithering on the road. Also the color of the wheel is changing for each time step, because the displacement is also changing in X,Y and Z directions, but the marks should have a fixed color, which can make it obvious to be observed. I do not know how to do it. Please help me. Regards. ___ 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] Paraview v 3.14, GradientOfUnstructuredDataSet1, vorticity
I am guessing that Vorticity in your dataset is a 3D vector (which is typical) and that Q Criterion is a scalar. When you take the gradient of a vector, you get a 3x3 tensor (an estimate of the Jacobian matrix, I believe). These 9-tuples are not as widely recognized in ParaView/VTK filters as scalars and vectors so they will not be listed in selection combo boxes for inputs. You should still see the entry listed in the Information panel, though. In contrast, when you take the gradient of a scalar, you get a vector, which is understood by and leveraged by many filters. -Ken On 6/6/12 9:04 AM, Ricardo Reis rr...@aero.ist.utl.pt wrote: When using the filter GradientOfUnstructuredDataSet1 and selecting Vorticity, this result doesn't become available. On the other hand Q Criterion becomes available under the right moniker... Is this expected? best, Ricardo Reis -- PhD/MSc Mechanical Engineering | Lic. Aerospace Engineering Computational Fluid Dynamics, High Performance Computing, Turbulence http://www.lasef.ist.utl.pt Cultural Instigator @ Rádio Zero http://www.radiozero.pt http://www.flickr.com/photos/rreis/ contacts: gtalk: kyriu...@gmail.com skype: kyriusan Institutional Address: Ricardo J.N. dos Reis IDMEC, Instituto Superior Técnico, Technical University of Lisbon Av. Rovisco Pais 1049-001 Lisboa Portugal - email sent with alpine 2.00 - ___ 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] Paraview v 3.14, GradientOfUnstructuredDataSet1, vorticity
On Wed, 6 Jun 2012, Moreland, Kenneth wrote: I am guessing that Vorticity in your dataset is a 3D vector (which is typical) and that Q Criterion is a scalar. When you take the gradient of a vector, you get a 3x3 tensor (an estimate of the Jacobian matrix, I believe). These 9-tuples are not as widely recognized in ParaView/VTK filters as scalars and vectors so they will not be listed in selection combo boxes for inputs. You should still see the entry listed in the Information panel, though. This filter, besides calculating the gradient, gives me the option to also calculate Compute Vorticity Compute QCriterion I'm starting from a velocity vector field. I would expect to obtain, after the filter and selecting all options: - a gradient (here it gives only 3 main directions) - a vorticity vector field - a scalar field with QCriterion Of these, the vorticity field is absent, even in the information panel. best, Ricardo Reis -- PhD/MSc Mechanical Engineering | Lic. Aerospace Engineering Computational Fluid Dynamics, High Performance Computing, Turbulence http://www.lasef.ist.utl.pt Cultural Instigator @ Rádio Zero http://www.radiozero.pt http://www.flickr.com/photos/rreis/ contacts: gtalk: kyriu...@gmail.com skype: kyriusan Institutional Address: Ricardo J.N. dos Reis IDMEC, Instituto Superior Técnico, Technical University of Lisbon Av. Rovisco Pais 1049-001 Lisboa Portugal - email sent with alpine 2.00 -___ 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] Paraview v 3.14, GradientOfUnstructuredDataSet1, vorticity
Hi, This filter is a bit confusing to use (along with being poorly named since it works with image data, rectilinear grids, etc.). When you choose the Vorticity it returns the vorticity instead of the gradient field. When you select Q criterion it returns q criterion in addition to the other gradient quantity. It's on my radar to clean this up but I haven't gotten around to it yet. Andy On Wed, Jun 6, 2012 at 12:02 PM, Ricardo Reis rr...@aero.ist.utl.pt wrote: On Wed, 6 Jun 2012, Moreland, Kenneth wrote: I am guessing that Vorticity in your dataset is a 3D vector (which is typical) and that Q Criterion is a scalar. When you take the gradient of a vector, you get a 3x3 tensor (an estimate of the Jacobian matrix, I believe). These 9-tuples are not as widely recognized in ParaView/VTK filters as scalars and vectors so they will not be listed in selection combo boxes for inputs. You should still see the entry listed in the Information panel, though. This filter, besides calculating the gradient, gives me the option to also calculate Compute Vorticity Compute QCriterion I'm starting from a velocity vector field. I would expect to obtain, after the filter and selecting all options: - a gradient (here it gives only 3 main directions) - a vorticity vector field - a scalar field with QCriterion Of these, the vorticity field is absent, even in the information panel. best, Ricardo Reis -- PhD/MSc Mechanical Engineering | Lic. Aerospace Engineering Computational Fluid Dynamics, High Performance Computing, Turbulence http://www.lasef.ist.utl.pt Cultural Instigator @ Rádio Zero http://www.radiozero.pt http://www.flickr.com/photos/**rreis/http://www.flickr.com/photos/rreis/ contacts: gtalk: kyriu...@gmail.com skype: kyriusan Institutional Address: Ricardo J.N. dos Reis IDMEC, Instituto Superior Técnico, Technical University of Lisbon Av. Rovisco Pais 1049-001 Lisboa Portugal - email sent with alpine 2.00 - ___ 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] PV3.14.1 Extract Selection- PreserveTopology bug
Hi, I seem to be running into a bug with Extract Selection / findData functionality and need some help in resolving this. I believe this is a vtk bug (unless someone can tell me otherwise). *Q1. Please help me in getting this resolved. e.g. Should I/can I submit this to the PV mantis bug collection? * Typical simulation data has Image and Rectilinear structures and point and cell data but I can reproduce these problems with just the Wavelet source: i)Preserve Topology=1 causes all output to disappear - Steps to reproduce: Create wavelet source. Click apply. Select Edit Menufind data Change dropdown from Cell to Point Enter RTData200 and click Run Selection Query - A set of points appears. Click Extract Selection In the new ExtractSelection filter select Preserve Topology and click apply And here's the problem: In the Statistics Inspector you'll now see the output has no cells, points and uses no memory... ii) So I thought that maybe things would be better if I started with an unstructuredgrid as a source- I added a default threshold filter after the wavelet source that accepted all vaules. Now when I repeat the above steps I can get an output of points but the PreserveTopology does not function as specified - If this property is set to 1 the output preserves the topology of its input and adds an insidedness array to mark which cells are inside or out. If 0 then the output is an unstructured grid which contains only the subset of cells that are inside. ((Possible cause or maybe a red-herring... but... if the output is a image data or other grid, is this filter correctly supporting RequestInformation requirements? ie. outInfo-Set(... TIME_STEPS() WHOLE_EXTENT(),...) - I did not see RequestInformation implemented in vtkExtractSelection/vtkExtractSelectionBase; Does it need to be, or perhaps the pipeline assumes key-value pairs from the upstream filter? -I don't yet know enough about the pipeline architecture to fix this bug and would appreciate some help )) Some context and related thoughts- Paraview 3.14.1 (64 bit windows 7 built with standard VS2008 SP1). Python 2.7 We'd like a way to calculate typical connected mass properties (e.g total amount of oil that is connected (according to minimum geological and chemical properties) to a specific well volume. This is not a 'one-time' problem; I'm looking for a clean solution rather than a quick workaround. Once we understand how to select a subset of voxels we'll want to connect it to the GridConnectivity filter- * Mass properties of connected fragments for unstructured grids. * *This filter works on multiblock unstructured grid inputs and also works in parallel. It Ignores any cells with a cell data Status value of 0. It performs connectivity to distict fragments separately. It then integrates attributes of the fragments.* Too bad the ExtractSelection/GridConnectivity filters do not support a GUI way to specify the 'insideness or 'status' array names. Q2. Would you be interested in a patch for that? Thanks! 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
Re: [Paraview] Pseudo colors
Hi Chris, Please keep the discussion on the mailing list so that others may benefit. I guess I don't understand what exactly you are trying to accomplish. Are you trying to specify colors at each vertex on your model? Or are you trying to view some scalar field by pseudocoloring it? Cory On Wed, Jun 6, 2012 at 12:56 PM, Christoph Schweighofer chris.schweigho...@gmx.net wrote: Hello Cory, thank you for your answer. I read now the Users_Guid for the Calculator 3 times, but I do not understand everything and the colors are only mentioned once. Do you want to say it´s not possible to create a pseudo color with the calculator? How can I do it? Thank you for your help, Chris Original-Nachricht Datum: Wed, 6 Jun 2012 09:18:38 -0400 Von: Cory Quammen cquam...@cs.unc.edu An: Christoph Schweigi chris.schweigho...@gmx.net CC: paraview@paraview.org paraview@paraview.org Betreff: Re: [Paraview] Pseudo colors Chris, Have you read this? http://paraview.org/Wiki/ParaView/Users_Guide/Calculator - Cory On Wed, Jun 6, 2012 at 4:23 AM, Christoph Schweigi chris.schweigho...@gmx.net wrote: Hello experts, I want to use pseudo colors for models and store it as point data or cell data with the calculator. Can somebody help me, please? Regards, Chris ___ 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 -- Cory Quammen Research Associate Department of Computer Science The University of North Carolina at Chapel Hill -- NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone! Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a -- Cory Quammen Research Associate Department of Computer Science The University of North Carolina at Chapel Hill ___ 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] Data editing from the spreadsheet view
Hello, it is possible to edit/modify data, for example the values of some CELL_DATA of a POLYDATA, directly from the spreadsheet view? I know that Paraview is a data analysis and visualization application, but this editing possibility could be very useful. Otherwise, I suppose that the other option is to make use of the Python scripting capabilities offered... Thank you in advance, Regards, Alessandro ___ 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] Data editing from the spreadsheet view
Unfortunately, no. Directly editing values adds problems with the pipeline semantics. (For example, what happens if upstream data changes?) I found this previous discussion on the mailing list for a similar question: http://markmail.org/message/yjhfdglqqrdh7twu. I hope that makes your manipulations easier. -Ken On 6/6/12 11:51 AM, Alessandro Comunian alessandro.comun...@gmail.com wrote: Hello, it is possible to edit/modify data, for example the values of some CELL_DATA of a POLYDATA, directly from the spreadsheet view? I know that Paraview is a data analysis and visualization application, but this editing possibility could be very useful. Otherwise, I suppose that the other option is to make use of the Python scripting capabilities offered... Thank you in advance, Regards, Alessandro ___ 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] Write xml for ParaView Plugin
You should do that in two step. On property on your proxy where you set the ROI. And one information property where you calculate... Seb On Wed, Jun 6, 2012 at 11:17 AM, Tuan Ha Tran tuan-ha.t...@insa-lyon.fr wrote: Hi everybody, I'm writing some .xml ServerManager file for a ParaView Plugin. Our class have a function likes this : double calculate(vtkImagedata* voi) that return a double value calculated from the vtkImageData. I loaded the plugin into Paraview. I use the Python Shell and when I call myReturnedValue = MyFilter.calculate(proxy) (proxy is a vtkImageData type), I always have the following error : AttributeError : 'function' object has no attribute 'calculate' I searched in the filters.xml and found something mention about function. I wonder if we can use these descriptions to access to the function (this function is nothing similar to any vtk function, don't override any of them). I think that I have to add something like 'function = calculate' so that the function is recognized in ParaView as well as Python but I can't find any exemple. Do you have any idea? Thank you in advance. ___ 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] How to use paraview to mark something on the object
An interesting problem :-) Does the topology of the mesh change over time or just the positions of the points? Essentially, we need a landmark that moves with the wheel to which we can attach something. If the topology does not change, you can start by selecting one of more cells, extracting the selection and then coloring those cells a solid color (you might need to translate them slightly to avoid rendering artifacts). If that works, you could use the Python Programmable filter to create a line that starts at the centroid of the extracted cell. If you want to do that, let us know and someone on this list can help you with the appropriate VTK API. On Wed, Jun 6, 2012 at 11:36 AM, Tianshi SUN sts...@gmail.com wrote: Hi all, I am new for paraview, and thank in advance for all kinds of help. My question : I am doing the visualization of a wheel rotating on the road, and want to do some marks (e.g line..) on the wheel. The marks can move with the wheel together, so that we can see the wheel is rotating but not just slithering on the road. Also the color of the wheel is changing for each time step, because the displacement is also changing in X,Y and Z directions, but the marks should have a fixed color, which can make it obvious to be observed. I do not know how to do it. Please help me. Regards. ___ 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] Parallel Streamtracer
By the way, did you make sure to apply D3? disk_out_ref.ex2 is not partitioned so by default it would be loaded entirely onto MPI rank 0. On Mon, Jun 4, 2012 at 5:21 AM, Stephan Rogge stephan.ro...@tu-cottbus.dewrote: Hello Leo, ok, I took the disk_out_ref.ex2 example data set and did some time measurements. Remember, my machine has 4 Cores + HyperThreading. My first observation is that PV seems to have a problem with distributing the data when the Multi-Core option (GUI) is enabled. When PV is started with builtin Multi-Core I was not able to apply a stream tracer with more than 1000 seed points (PV is freezing and never comes back). Otherwise, when pvserver processes has been started manually I was able to set up to 100.000 seed points. Is it a bug? Now let's have a look on the scaling performance. As you suggested, I've used the D3 filter for distributing the data along the processes. The stream tracer execution time for 10.000 seed points: ## Bulitin: 10.063 seconds ## 1 MPI-Process (no D3): 10.162 seconds ## 4 MPI-Processes: 15.615 seconds ## 8 MPI-Processes: 14.103 seconds and 100.000 seed points: ## Bulitin: 100.603 seconds ## 1 MPI-Process (no D3): 100.967 seconds ## 4 MPI-Processes: 168.1 seconds ## 8 MPI-Processes: 171.325 seconds I cannot see any positive scaling behavior here. Maybe is this example not appropriate for scaling measurements? One more thing: I've visualized the vtkProcessId and saw that the whole vector field is partitioned. I thought, that each streamline is integrated in its own process. But it seems that this is not the case. This could explain my scaling issues: In cases of small vector fields the overhead of synchronization becomes too large and decreases the overall performance. My suggestion is to have a parallel StreamTracer which is built for a single machine with several threads. Could be worth to randomly distribute the seeds over all available (local) processes? Of course, each process have access on the whole vector field. Cheers, Stephan Von: Yuanxin Liu [mailto:leo@kitware.com] Gesendet: Freitag, 1. Juni 2012 16:13 An: Stephan Rogge Cc: Andy Bauer; paraview@paraview.org Betreff: Re: [Paraview] Parallel Streamtracer Hi, Stephan, I did measure the performance at some point and was able to get fairly decent speed up with more processors. So I am surprised you are seeing huge latency. Of course, the performance is sensitive to the input. It is also sensitive to how readers distribute data. So, one thing you might want to try is to attach the D3 filter to the reader. If that doesn't help, I will be happy to get your data and take a look. Leo On Fri, Jun 1, 2012 at 1:54 AM, Stephan Rogge stephan.ro...@tu-cottbus.de wrote: Leo, As I mentioned in my initial post of this thread: I used the up-to-date master branch of ParaView. Which means I have already used your implementation. I can imagine, to parallelize this algorithm can be very tough. And I can see that distribute the calculation over 8 processes does not lead to a nice scaling. But I don't understand this huge amount of latency when using the StreamTracer in a Cave-Mode with two view ports and two pvserver processes on the same machine (extra machine for the client). I guess the tracer filter is applied for each viewport separately? This would be ok as long as both filter executions run parallel. And I doubt that this is the case. Can you help to clarify my problem? Regards, Stephan Von: Yuanxin Liu [mailto:leo@kitware.com] Gesendet: Donnerstag, 31. Mai 2012 21:33 An: Stephan Rogge Cc: Andy Bauer; paraview@paraview.org Betreff: Re: [Paraview] Parallel Streamtracer It is in the current VTK and ParaView master. The class is vtkPStreamTracer. Leo On Thu, May 31, 2012 at 3:31 PM, Stephan Rogge stephan.ro...@tu-cottbus.de wrote: Hi, Andy and Leo, thanks for your replies. Is it possible to get this new implementation? I would to give it a try. Regards, Stephan Am 31.05.2012 um 17:48 schrieb Yuanxin Liu leo@kitware.com: Hi, Stephan, The previous implementation only has serial performance: It traces the streamlines one at a time and never starts a new streamline until the previous one finishes. With communication overhead, it is not surprising it got slower. My new implementation is able to let the processes working on different streamlines simultaneously and should scale much better. Leo On Thu, May 31, 2012 at 11:27 AM, Andy Bauer andy.ba...@kitware.com wrote: Hi Stephan, The parallel stream tracer uses the partitioning of the grid to determine which process does the integration. When the streamline exits the subdomain of a process there is a search to see if it enters a subdomain assigned to any other processes before figuring it whether it has left the entire domain. Leo, copied here, has been improving the streamline implementation
Re: [Paraview] Parallel Streamtracer
Hello Berk, absolutely. After applying both filter, D3 and StreamTracer, I've visualized the partitions with vtkProcessId to check whether D3 was applied or not and was able to see that the stream lines had different (homogenous) colors depending on their region. The D3 filter is only applied by more than one MPI process. To make things clearer: ## Bulitin (no D3): 10.063 seconds ## 1 MPI-Process (no D3): 10.162 seconds ## 4 MPI-Processes (D3): 15.615 seconds ## 8 MPI-Processes(D3): 14.103 seconds and 100.000 seed points: ## Bulitin (no D3): 100.603 seconds ## 1 MPI-Process (no D3): 100.967 seconds ## 4 MPI-Processes(D3): 168.1 seconds ## 8 MPI-Processes(D3): 171.325 seconds Sorry, for the confusion. Regrads, Stephan Von: Berk Geveci [mailto:berk.gev...@kitware.com] Gesendet: Donnerstag, 7. Juni 2012 02:53 An: Stephan Rogge Cc: Yuanxin Liu; paraview@paraview.org Betreff: Re: [Paraview] Parallel Streamtracer By the way, did you make sure to apply D3? disk_out_ref.ex2 is not partitioned so by default it would be loaded entirely onto MPI rank 0. On Mon, Jun 4, 2012 at 5:21 AM, Stephan Rogge stephan.ro...@tu-cottbus.de wrote: Hello Leo, ok, I took the disk_out_ref.ex2 example data set and did some time measurements. Remember, my machine has 4 Cores + HyperThreading. My first observation is that PV seems to have a problem with distributing the data when the Multi-Core option (GUI) is enabled. When PV is started with builtin Multi-Core I was not able to apply a stream tracer with more than 1000 seed points (PV is freezing and never comes back). Otherwise, when pvserver processes has been started manually I was able to set up to 100.000 seed points. Is it a bug? Now let's have a look on the scaling performance. As you suggested, I've used the D3 filter for distributing the data along the processes. The stream tracer execution time for 10.000 seed points: ## Bulitin: 10.063 seconds ## 1 MPI-Process (no D3): 10.162 seconds ## 4 MPI-Processes: 15.615 seconds ## 8 MPI-Processes: 14.103 seconds and 100.000 seed points: ## Bulitin: 100.603 seconds ## 1 MPI-Process (no D3): 100.967 seconds ## 4 MPI-Processes: 168.1 seconds ## 8 MPI-Processes: 171.325 seconds I cannot see any positive scaling behavior here. Maybe is this example not appropriate for scaling measurements? One more thing: I've visualized the vtkProcessId and saw that the whole vector field is partitioned. I thought, that each streamline is integrated in its own process. But it seems that this is not the case. This could explain my scaling issues: In cases of small vector fields the overhead of synchronization becomes too large and decreases the overall performance. My suggestion is to have a parallel StreamTracer which is built for a single machine with several threads. Could be worth to randomly distribute the seeds over all available (local) processes? Of course, each process have access on the whole vector field. Cheers, Stephan Von: Yuanxin Liu [mailto:leo@kitware.com] Gesendet: Freitag, 1. Juni 2012 16:13 An: Stephan Rogge Cc: Andy Bauer; paraview@paraview.org Betreff: Re: [Paraview] Parallel Streamtracer Hi, Stephan, I did measure the performance at some point and was able to get fairly decent speed up with more processors. So I am surprised you are seeing huge latency. Of course, the performance is sensitive to the input. It is also sensitive to how readers distribute data. So, one thing you might want to try is to attach the D3 filter to the reader. If that doesn't help, I will be happy to get your data and take a look. Leo On Fri, Jun 1, 2012 at 1:54 AM, Stephan Rogge stephan.ro...@tu-cottbus.de wrote: Leo, As I mentioned in my initial post of this thread: I used the up-to-date master branch of ParaView. Which means I have already used your implementation. I can imagine, to parallelize this algorithm can be very tough. And I can see that distribute the calculation over 8 processes does not lead to a nice scaling. But I don't understand this huge amount of latency when using the StreamTracer in a Cave-Mode with two view ports and two pvserver processes on the same machine (extra machine for the client). I guess the tracer filter is applied for each viewport separately? This would be ok as long as both filter executions run parallel. And I doubt that this is the case. Can you help to clarify my problem? Regards, Stephan Von: Yuanxin Liu [mailto:leo@kitware.com] Gesendet: Donnerstag, 31. Mai 2012 21:33 An: Stephan Rogge Cc: Andy Bauer; paraview@paraview.org Betreff: Re: [Paraview] Parallel Streamtracer It is in the current VTK and ParaView master. The class is vtkPStreamTracer. Leo On Thu, May 31, 2012 at 3:31 PM, Stephan Rogge stephan.ro...@tu-cottbus.de wrote: Hi, Andy and Leo, thanks for your replies. Is it possible to get this new implementation? I would to give it a try. Regards, Stephan Am 31.05.2012 um 17:48 schrieb Yuanxin Liu leo@kitware.com: