Re: [Paraview] 回复: 回复:RE: error when open tecplot(.plt) files
and choose Tecplot Binary Files (Vislt) (*.plt) in the Files of type list before selecting your (.plt) file. Richard. honorable guys: i need to open tecplot(.plt) files , but there is an error reminder when i try, does it need any tecplot reader? where can i find the reader? thanks a lot. -- Richard GRENON ONERA Departement d'Aerodynamique Appliquee - DAAP/ACI 8 rue des Vertugadins 92190 MEUDON - FRANCE phone : +33 1 46 73 42 17 fax : +33 1 46 73 41 46 mailto:richard.gre...@onera.fr http://www.onera.fr -- Richard GRENON ONERA Departement d'Aerodynamique Appliquee - DAAP/ACI 8 rue des Vertugadins 92190 MEUDON - FRANCE phone : +33 1 46 73 42 17 fax : +33 1 46 73 41 46 mailto:richard.gre...@onera.fr http://www.onera.fr -- Richard GRENON ONERA Departement d'Aerodynamique Appliquee - DAAP/ACI 8 rue des Vertugadins 92190 MEUDON - FRANCE phone : +33 1 46 73 42 17 fax : +33 1 46 73 41 46 mailto:richard.gre...@onera.fr http://www.onera.fr ___ 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 -- Jérôme CARDOLACCIA CEA Saclay DM2S/SEMT/DYN 01.69.08.15.77 ___ 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] Timeseries from Tecplot binary files
I tried to wrap the Visit Tecplot binary reader into a FileSeriesReader to make it time-aware (see attached files). I succeeded in getting time information and data properties (I got one or the other, not both...). But when I hit the Apply changes button, I got the following error, which seems linked to a known bug : http://vtk.org/Bug/view.php?id=13343 : - ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx, line 816 vtkPVPostFilterExecutive (0x3d34dd0): Input for connection index 0 on input port index 0 for algorithm vtkPVPostFilter(0x3d91ab0) is of type vtkDataObject, but a vtkPolyData is required. ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx, line 816 vtkPVPostFilterExecutive (0x3d34dd0): Input for connection index 0 on input port index 0 for algorithm vtkPVPostFilter(0x3d91ab0) is of type vtkDataObject, but a vtkPolyData is required. - (I am working with Paraview 3.98 Linux x86_64) So is this really an incompatibility between the binary reader and the FileSeriesReader, or am I doing something wrong ? Regards, Jerome Le 04/02/2013 17:50, Jérôme CARDOLACCIA a écrit : Hi, I am trying to visualize the results of a time-varying simulation. These are contained in separate Tecplot binary files. The Tecplot ASCII reader imports my temporal datasets flawlessly, however the binary reader does not seem so accomodating... So I was (naively) wondering whether there is some easy fix to have this binary reader handle a multi-time set of files ? Regards, Jerome ___ 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 -- Jérôme CARDOLACCIA CEA Saclay DM2S/SEMT/DYN 01.69.08.15.77 ParaViewReaders Reader name=VisItTecplotBinaryReader2tmp extensions=plt file_description=My Tec Files /Reader /ParaViewReaders ServerManagerConfiguration ProxyGroup name=internal_sources SourceProxy name=VisItTecplotBinaryReader2 class=vtkVisItTecplotBinaryReader label=VisitTec Documentation long_help=Reads a subset of the Tecplot binary file format Note this reader is automatically generated from wrapping a third party reader. For more information on the reader see https://wci.llnl.gov/codes/visit The default file extension is .plt /Documentation StringVectorProperty name=FileName animateable=0 command=SetFileName number_of_elements=1 FileListDomain name=files/ Documentation blablabla /Documentation /StringVectorProperty Hints ReaderFactory extensions=plt file_description=My Tecplot Binary Files (VisIt) / /Hints StringVectorProperty name=FileName command=SetFileName number_of_elements=1 panel_visibility=never FileListDomain name=files/ Documentation This property specifies the file name for the reader /Documentation /StringVectorProperty StringVectorProperty name=MeshInfo information_only=1 ArraySelectionInformationHelper attribute_name=Mesh/ /StringVectorProperty StringVectorProperty name=MeshStatus label=Meshes command=SetMeshArrayStatus number_of_elements=2 repeat_command=1 number_of_elements_per_command=2 element_types=2 0 information_property=MeshInfo ArraySelectionDomain name=array_list RequiredProperties Property name=MeshInfo function=ArrayList/ /RequiredProperties /ArraySelectionDomain Documentation Select the meshes to be loaded from the dataset, if any. /Documentation /StringVectorProperty
[Paraview] Timeseries from Tecplot binary files
Hi, I am trying to visualize the results of a time-varying simulation. These are contained in separate Tecplot binary files. The Tecplot ASCII reader imports my temporal datasets flawlessly, however the binary reader does not seem so accomodating... So I was (naively) wondering whether there is some easy fix to have this binary reader handle a multi-time set of files ? Regards, Jerome ___ 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] [vtkusers] Spline Source and python script
Hi, it is more a ParaView-related question, so I changed the list name ;) I tried again the solution Pat proposed in the post, and I am sorry to tell you that it works without changing anything... I just can be more precise. Please follow these steps in the paraview python shell : s = SplineSource() s.ParametricFunction.SetPropertyWithName( Closed, 1 ) # Now, the Closed Spline property toggles to checked pointA = [1,2,3] pointB = [6,5,4] pointC = [7,8,9] s.ParametricFunction.SetPropertyWithName( Points, pointA+pointB+pointC) # Now, the three points appear in the spline points list Then press apply : the spline appears in the render window. If you experience problems, please tell me which steps are guilty. HTH, Jerome On 11/26/2011 08:04 AM, Ian Leslie wrote: Hi, I saw your post on getting the spline function to work in the pyhthon shell within ParaView on the vtk.org users mailing list and was wondering if you would be willing to share your solution with me. I wasn't able to implement the suggested solution based on the post alone http://markmail.org/search/list:paraview?q=SplineSource+and+python+script#query:list%3Aparaview%20SplineSource%20and%20python%20script+page:1+mid:hhzkv5vj33zv6hky+state:results Thanks, Ian ___ Powered bywww.kitware.com Visit other Kitware open-source projects athttp://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at:http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers ___ 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 macros (was: Further questions regarding 4D dataset)
I put these macros in my Peavip lib : http://github.com/jeromevelut/Peavip It was initially devoted to expose VTK native filters in ParaView, but I think that it makes sense to put also ParaView python macros. It could be a solution to use such a repo to share macros. What do you think? Jerome 2011/7/12 Utkarsh Ayachit utkarsh.ayac...@kitware.com Sweet. That's neat. We need to start thinking of a mechanism to share/distribute macros now :). Utkarsh On Tue, Jul 12, 2011 at 2:36 PM, Jérôme jerome.ve...@gmail.com wrote: Macro-ized ! Richard, just add the attached py files as new macros and you will be able to switch between MIP, MinIP and Composite (the defaut one) volume rendering. These macros are more than minimalist (2 lines) : they can be easily extended to check the current representation and toggle to volume automatically. I hope it will be helpful for you Jerome 2011/7/12 Utkarsh Ayachit utkarsh.ayac...@kitware.com Cool. I wasn't aware of this :). To change the blend mode from Python shell, all you do is following (with the source being volume rendering active in the pipeline browser): SetDisplayProperties(BlendMode=MaximumIntensity) Utkarsh On Tue, Jul 12, 2011 at 1:08 PM, Jérôme jerome.ve...@gmail.com wrote: Hi, I asked a while ago for the possibility to expose BlendMode (MIP is one of the BlendMode) in rendering proxies and I was granted : http://www.cmake.org/pipermail/paraview/2009-October/014157.html http://paraview.org/gitweb?p=ParaView.git;a=commit;h=3a07a88345910d5605e042287391e6623af9deb5 By grep-ing current sources, I found that BlendMode is exposed for GPUVolumeRayCastMapper and FixedPointVolumeRayCastMapper. However, I don't know how easily you can toggle the BlendMode from python shell... Jerome 2011/7/12 Utkarsh Ayachit utkarsh.ayac...@kitware.com No, ParaView does not support MIP at this time. Utkarsh Sent from my iPad On Jun 22, 2011, at 6:49 PM, Richard Beare richard.be...@gmail.com wrote: Hi, The volume rendering works successfully. Thank you for the assistance. Further investigations have suggested that Imaris is probably performing simple maximum intensity projection, but enabling the user to rotate the volume and producing nice colour combinations. Is there any MIP facility in paraview? Thanks ___ 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 ___ 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] Further questions regarding 4D dataset
Hi, I asked a while ago for the possibility to expose BlendMode (MIP is one of the BlendMode) in rendering proxies and I was granted : http://www.cmake.org/pipermail/paraview/2009-October/014157.html http://paraview.org/gitweb?p=ParaView.git;a=commit;h=3a07a88345910d5605e042287391e6623af9deb5 By grep-ing current sources, I found that BlendMode is exposed for GPUVolumeRayCastMapper and FixedPointVolumeRayCastMapper. However, I don't know how easily you can toggle the BlendMode from python shell... Jerome 2011/7/12 Utkarsh Ayachit utkarsh.ayac...@kitware.com No, ParaView does not support MIP at this time. Utkarsh Sent from my iPad On Jun 22, 2011, at 6:49 PM, Richard Beare richard.be...@gmail.com wrote: Hi, The volume rendering works successfully. Thank you for the assistance. Further investigations have suggested that Imaris is probably performing simple maximum intensity projection, but enabling the user to rotate the volume and producing nice colour combinations. Is there any MIP facility in paraview? Thanks ___ 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 ___ 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] Further questions regarding 4D dataset
Macro-ized ! Richard, just add the attached py files as new macros and you will be able to switch between MIP, MinIP and Composite (the defaut one) volume rendering. These macros are more than minimalist (2 lines) : they can be easily extended to check the current representation and toggle to volume automatically. I hope it will be helpful for you Jerome 2011/7/12 Utkarsh Ayachit utkarsh.ayac...@kitware.com Cool. I wasn't aware of this :). To change the blend mode from Python shell, all you do is following (with the source being volume rendering active in the pipeline browser): SetDisplayProperties(BlendMode=MaximumIntensity) Utkarsh On Tue, Jul 12, 2011 at 1:08 PM, Jérôme jerome.ve...@gmail.com wrote: Hi, I asked a while ago for the possibility to expose BlendMode (MIP is one of the BlendMode) in rendering proxies and I was granted : http://www.cmake.org/pipermail/paraview/2009-October/014157.html http://paraview.org/gitweb?p=ParaView.git;a=commit;h=3a07a88345910d5605e042287391e6623af9deb5 By grep-ing current sources, I found that BlendMode is exposed for GPUVolumeRayCastMapper and FixedPointVolumeRayCastMapper. However, I don't know how easily you can toggle the BlendMode from python shell... Jerome 2011/7/12 Utkarsh Ayachit utkarsh.ayac...@kitware.com No, ParaView does not support MIP at this time. Utkarsh Sent from my iPad On Jun 22, 2011, at 6:49 PM, Richard Beare richard.be...@gmail.com wrote: Hi, The volume rendering works successfully. Thank you for the assistance. Further investigations have suggested that Imaris is probably performing simple maximum intensity projection, but enabling the user to rotate the volume and producing nice colour combinations. Is there any MIP facility in paraview? Thanks ___ 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 Composite.py Description: Binary data MinIP.py Description: Binary data MIP.py Description: Binary data ___ 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] Ongoing Work to Release Unused Memory from Pipeline
I don't know if it applies to your pipelines, but each time I write an XML ServerManager to expose a VTK filter in ParaView, I add a ckeckbox for the vtkAlgorithm's function ReleaseDataFlag : IntVectorProperty name=ReleaseDataFlag command=SetReleaseDataFlag number_of_elements=1 default_values=0 animateable=0 BooleanDomain name=boolean/ Documentation Turn release data flag on or off for all output ports. /Documentation /IntVectorProperty Obviously, it implies that the filters with RealeaseDataFlag set to true will reexecute at each update, even it they are not marked as modified. You can find such examples in my github repo that exposes VTK native filters to ParaView: http://github.com/jeromevelut/Peavip . All the vtkImageAlgorithm derived filter propose this option. HTH Jerome 2011/7/8 Berk Geveci berk.gev...@kitware.com If this is something that you are interested in exploring, we can help to some extent. On Thu, Jul 7, 2011 at 3:22 PM, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: Mike, There are currently no such plans in the near future, at the least. But that's definitely something we should start thinking about more seriously as we start dealing with larger and larger datasets. Utkarsh On Wed, Jul 6, 2011 at 10:12 PM, Michael Jackson mike.jack...@bluequartz.net wrote: Is there any ongoing or upcoming work in ParaView to have some sort of option to dispose of unused memory from filters that are higher up in the pipeline? We are thinking of basing our Materials Science based software package on VTK and then make the filters available in ParaView but our data sets are already pushing the memory limits of PCs. Having multiple copies of the data in memory would just make a bad situation worse for us. I know if I write my own pipeline in VTK I can manually dispose of memory from each pipeline step. Just wandering if this type of capability is going to be exposed in someway in an upcoming version of ParaView. Thanks ___ Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software Dayton, Ohio ___ 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 ___ 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] Lookup table bug for the filter following a volume representation
Hi, I submitted a bug related to Lookup table here : http://paraview.org/Bug/view.php?id=12180 Basically, if you select a 'Volume' representation for a filter and plug another filter, the new representation lookup table freezes to a default red-to-purple scale. Can anyboy tell me if this is reproducible elsewhere than on my system (Linux, NVidia, PV-3.11.1 git-master)? Thanks a lot Jerome ___ 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] PV 3.10.1 integration over a surface
Hi, my understanding is that when you used CellDataToPointData filter, the cell data are removed and thus they don't appear in the Calculator. The CellDataToPointData filter has a Pass Cell Data option that will keep the original data in the pipeline. However, I didn't understand from where you got your normals: are they generated from Generate Surface Normals filter or outside ParaView? When you load your data, do you see the CellData array in the information tab of your data? Best regards, Jerome 2011/6/19 Andy Bauer andy.ba...@kitware.com I think the cell normals that you have are generated for visualization and not really part of your data set that's directly outputted from your filter. So when you do cell data to point data you still don't have the normals in there. Did you try using the extract surface and generate surface normals filters? On Sun, Jun 19, 2011 at 12:52 PM, Stephen Wornom stephen.wor...@inria.frwrote: Andy Bauer wrote: One way is to use the calculator filter to multiply the pressure by the normal to get force per unit area on the cylinder. Then you can use the integrate variables filter to get the total force on it. If you don't have normals on your cylinder, you can use the generate surface normals filter but that only works for polydata. The extract surface should get you from any other data set to the polydata you want. I have cell normals (vector) next I do cell data to point data extract surface when I do calculator, the cell normal vector is not in the list. How do I get the cell normal vector in the calculator list? Thanks for your help, Stephen Andy On Sun, Jun 19, 2011 at 4:01 AM, Stephen Wornom stephen.wor...@inria.frmailto: stephen.wornom@inria.**fr stephen.wor...@inria.fr wrote: How does one compute the integral of P Normal ds ? where Normal is the surface normal vector click on integrate variables computes the integral of P ds I would like Fx = integral of P nx ds where nx ds is the surface area normal to the x-direction. Hope my question is clear. Stephen p.s. The surface in question is a cylinder __**_ Powered by www.kitware.com http://www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/**opensource/opensource.htmlhttp://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/**ParaViewhttp://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/**mailman/listinfo/paraviewhttp://www.paraview.org/mailman/listinfo/paraview -- stephen.wor...@inria.fr 2004 route des lucioles - BP93 Sophia Antipolis 06902 CEDEX Tel: 04 92 38 50 54 Fax: 04 97 15 53 51 ___ 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] PV-3.10 development version
Dear all, Maybe I missed something, but I cannot find a development version for ParaView-3.10 such the one that exists for 3.8. What is the status of this really useful package ? Thanks a lot ! Jerome ___ 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] problems with ServerManagerConfiguration and vtkImageReslice
Hi, regarding the vtkImageSlice exposition in ParaView, you should take a look at these threads: - issue report: http://www.mail-archive.com/paraview@paraview.org/msg02225.html http://www.mail-archive.com/paraview@paraview.org/msg08260.html - issue deep explanation: http://www.cmake.org/pipermail/paraview/2010-June/017738.html regarding the segfault, I feel surprise ! I use Median and Gradient very often, and I never noticed a bug. Can you give the step to reproduce ? Best regards, Jerome 2011/5/19 Dominik Szczerba domi...@itis.ethz.ch I think my theory that it has to do with threading may be correct... I just tried instead of my custom plugin to run the built-in Gradient or Median on my vtkImageData and Paraview (3.11) silently segfaults. Both these built-in filters derive from vtkThreadedImageAlgorithm. Built-in vtkExtractVOI. however, works correctly, just as my other custom plugins deriving from vtkImageAlgorithm. Any pointers in this bug hunting are appreciated. Dominik On Thu, May 19, 2011 at 9:30 PM, Dominik Szczerba domi...@itis.ethz.ch wrote: So far I was able to add a few simple custom plugins, but am slowly losing the grip. I am trying to resample an image like this: SourceProxy name=ImageResample class=vtkImageResample label=ImageResample InputProperty name=Input command=SetInputConnection ProxyGroupDomain name=groups Group name=sources/ Group name=filters/ /ProxyGroupDomain DataTypeDomain name=input_type DataType value=vtkImageData/ /DataTypeDomain /InputProperty DoubleVectorProperty name=Magnification Factor command=SetAxisMagnificationFactor number_of_elements=3 number_of_elements_per_command=1 repeat_command=1 use_index=1 default_values=1 1 1/ I get these 2 problems: 1) There appear two (!) outputs (named Output-0 and Output-1). I get this message: ERROR: In /home/dsz/pack/ParaView/VTK/Filtering/vtkDemandDrivenPipeline.cxx, line 827 vtkPVPostFilterExecutive (0x3aa4f60): Input for connection index 0 on input port index 0 for algorithm vtkPVPostFilter(0x2cfb850) is of type vtkImageStencilData, but a vtkDataSet is required. 2) The first output has the expected Spacing, but it does not contain the same scalar array as in the input. Instead, it contains a new array ImageScalars ranging [0,0]. I get this message: Warning: In /home/dsz/pack/ParaView/ParaViewCore/VTKExtensions/vtkTexturePainter.cxx, line 179 vtkTexturePainter (0x339fa70): Failed to locate selected scalars. Will use image scalars by default. I have been so far successful with other image algorithms, however they were all deriving from vtkImageAlgorithm. This one derives from vtkThreadedImageAlgorithm - could this have anything to do here? Could anyone point me into the right direction? After inspection of the xml files in the ParaView source tree I am still clueless. Thanks and regards, Dominik ___ 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] problems with ServerManagerConfiguration and vtkImageReslice
I don't have any problem running Median or Gradient on image of type double. If you are allowed to share your data, I may give a try here. Maybe are you running out of memory? You can try to extract a subset of your data and see if the segfault occurs. Jerome 2011/5/20 Dominik Szczerba domi...@itis.ethz.ch Hi Jerome, Thanks for the references, but there does not to be any solution in there? And yes, strange extents are also taking place in some cases, i.e., extents are actually correct, but the content of the image data is smaller if the new spacing is finer than the original. Due to the lack of detailed description of this whole mechanism I can not say if this is my lack of knowledge or a bug. Regarding segfaults, the only non-standard thing I can say about my input image data is that it contains a scalar type double. The said filters will work with image generated by Sources/Wavelet, but the type of that one is float. I am afraid something is hardcoded somewhere. Regards, Dominik On Fri, May 20, 2011 at 8:25 AM, Jérôme jerome.ve...@gmail.com wrote: Hi, regarding the vtkImageSlice exposition in ParaView, you should take a look at these threads: - issue report: http://www.mail-archive.com/paraview@paraview.org/msg02225.html http://www.mail-archive.com/paraview@paraview.org/msg08260.html - issue deep explanation: http://www.cmake.org/pipermail/paraview/2010-June/017738.html regarding the segfault, I feel surprise ! I use Median and Gradient very often, and I never noticed a bug. Can you give the step to reproduce ? Best regards, Jerome 2011/5/19 Dominik Szczerba domi...@itis.ethz.ch I think my theory that it has to do with threading may be correct... I just tried instead of my custom plugin to run the built-in Gradient or Median on my vtkImageData and Paraview (3.11) silently segfaults. Both these built-in filters derive from vtkThreadedImageAlgorithm. Built-in vtkExtractVOI. however, works correctly, just as my other custom plugins deriving from vtkImageAlgorithm. Any pointers in this bug hunting are appreciated. Dominik On Thu, May 19, 2011 at 9:30 PM, Dominik Szczerba domi...@itis.ethz.ch wrote: So far I was able to add a few simple custom plugins, but am slowly losing the grip. I am trying to resample an image like this: SourceProxy name=ImageResample class=vtkImageResample label=ImageResample InputProperty name=Input command=SetInputConnection ProxyGroupDomain name=groups Group name=sources/ Group name=filters/ /ProxyGroupDomain DataTypeDomain name=input_type DataType value=vtkImageData/ /DataTypeDomain /InputProperty DoubleVectorProperty name=Magnification Factor command=SetAxisMagnificationFactor number_of_elements=3 number_of_elements_per_command=1 repeat_command=1 use_index=1 default_values=1 1 1/ I get these 2 problems: 1) There appear two (!) outputs (named Output-0 and Output-1). I get this message: ERROR: In /home/dsz/pack/ParaView/VTK/Filtering/vtkDemandDrivenPipeline.cxx, line 827 vtkPVPostFilterExecutive (0x3aa4f60): Input for connection index 0 on input port index 0 for algorithm vtkPVPostFilter(0x2cfb850) is of type vtkImageStencilData, but a vtkDataSet is required. 2) The first output has the expected Spacing, but it does not contain the same scalar array as in the input. Instead, it contains a new array ImageScalars ranging [0,0]. I get this message: Warning: In /home/dsz/pack/ParaView/ParaViewCore/VTKExtensions/vtkTexturePainter.cxx, line 179 vtkTexturePainter (0x339fa70): Failed to locate selected scalars. Will use image scalars by default. I have been so far successful with other image algorithms, however they were all deriving from vtkImageAlgorithm. This one derives from vtkThreadedImageAlgorithm - could this have anything to do here? Could anyone point me into the right direction? After inspection of the xml files in the ParaView source tree I am still clueless. Thanks and regards, Dominik ___ 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] problems with ServerManagerConfiguration and vtkImageReslice
It is definitively not an out-of-memory problem!! Your data makes my paraview crashed too, but not only. I tried with a vtk python script (thus nothing to do with paraview) and the same occurs. The reason comes from the way your Image.vti is built: the output of the vtkXMLImageDataReader contains one PointData array, but scalars are not set. You have to write somewhere when you build your image something like that : myImage-GetPointData()-SetScalars( myImage-GetPointData()-GetArray(0)) For a ParaView-exclusive solution, just plug a Calculator after the Image.vti source and set the operation to FractalIterations only. It will set properly the output scalars. HTH Jerome 2011/5/20 Dominik Szczerba domi...@itis.ethz.ch Hi, My data is here, I would be glad if you tried it out. http://otoro.itis.ethz.ch/~dominik/tmp/Image.vti My ParaView is several days old git. Thanks and regards, Dominik On Fri, May 20, 2011 at 8:51 AM, Jérôme jerome.ve...@gmail.com wrote: I don't have any problem running Median or Gradient on image of type double. If you are allowed to share your data, I may give a try here. Maybe are you running out of memory? You can try to extract a subset of your data and see if the segfault occurs. Jerome 2011/5/20 Dominik Szczerba domi...@itis.ethz.ch Hi Jerome, Thanks for the references, but there does not to be any solution in there? And yes, strange extents are also taking place in some cases, i.e., extents are actually correct, but the content of the image data is smaller if the new spacing is finer than the original. Due to the lack of detailed description of this whole mechanism I can not say if this is my lack of knowledge or a bug. Regarding segfaults, the only non-standard thing I can say about my input image data is that it contains a scalar type double. The said filters will work with image generated by Sources/Wavelet, but the type of that one is float. I am afraid something is hardcoded somewhere. Regards, Dominik On Fri, May 20, 2011 at 8:25 AM, Jérôme jerome.ve...@gmail.com wrote: Hi, regarding the vtkImageSlice exposition in ParaView, you should take a look at these threads: - issue report: http://www.mail-archive.com/paraview@paraview.org/msg02225.html http://www.mail-archive.com/paraview@paraview.org/msg08260.html - issue deep explanation: http://www.cmake.org/pipermail/paraview/2010-June/017738.html regarding the segfault, I feel surprise ! I use Median and Gradient very often, and I never noticed a bug. Can you give the step to reproduce ? Best regards, Jerome 2011/5/19 Dominik Szczerba domi...@itis.ethz.ch I think my theory that it has to do with threading may be correct... I just tried instead of my custom plugin to run the built-in Gradient or Median on my vtkImageData and Paraview (3.11) silently segfaults. Both these built-in filters derive from vtkThreadedImageAlgorithm. Built-in vtkExtractVOI. however, works correctly, just as my other custom plugins deriving from vtkImageAlgorithm. Any pointers in this bug hunting are appreciated. Dominik On Thu, May 19, 2011 at 9:30 PM, Dominik Szczerba domi...@itis.ethz.ch wrote: So far I was able to add a few simple custom plugins, but am slowly losing the grip. I am trying to resample an image like this: SourceProxy name=ImageResample class=vtkImageResample label=ImageResample InputProperty name=Input command=SetInputConnection ProxyGroupDomain name=groups Group name=sources/ Group name=filters/ /ProxyGroupDomain DataTypeDomain name=input_type DataType value=vtkImageData/ /DataTypeDomain /InputProperty DoubleVectorProperty name=Magnification Factor command=SetAxisMagnificationFactor number_of_elements=3 number_of_elements_per_command=1 repeat_command=1 use_index=1 default_values=1 1 1/ I get these 2 problems: 1) There appear two (!) outputs (named Output-0 and Output-1). I get this message: ERROR: In /home/dsz/pack/ParaView/VTK/Filtering/vtkDemandDrivenPipeline.cxx, line 827 vtkPVPostFilterExecutive (0x3aa4f60): Input for connection index 0 on input port index 0 for algorithm vtkPVPostFilter(0x2cfb850) is of type vtkImageStencilData, but a vtkDataSet is required. 2) The first output has the expected Spacing, but it does not contain the same scalar array as in the input. Instead, it contains a new array ImageScalars ranging [0,0]. I get this message: Warning: In /home/dsz/pack/ParaView/ParaViewCore/VTKExtensions/vtkTexturePainter.cxx, line 179 vtkTexturePainter (0x339fa70): Failed to locate selected scalars. Will use image scalars by default. I have been so far successful with other image
Re: [Paraview] XML-only Plugins
Hi! Sorry, I missed the commit info : I didn't find the pv3.10.2 tag ! It's ok on git master. Thanks Utkarsh ! Jerome 2011/5/10 Utkarsh Ayachit utkarsh.ayac...@kitware.com Jerome, I committed that fix last evening to git-master. Make sure you have updated and built your paraview. I loaded your XML and it works fine for me after yesterday's commits. Utkarsh commit ebd0057c757fedd8e96c2c9477e6f1d14eab4957 Merge: dbaa49a 1812062 Author: Utkarsh Ayachit utkarsh.ayac...@kitware.com Date: Mon May 9 17:10:43 2011 -0400 Merge topic 'fix_xml_plugins' 1812062 Added support to load XML-only plugins. On Tue, May 10, 2011 at 8:23 AM, Jérôme jerome.ve...@gmail.com wrote: Hi, I noticed that the bug http://paraview.org/Bug/view.php?id=10835 has been updated and fixed. As I wanted to confirm the resolution on my machine, I tried to load some XML plugins and received the following message : ERROR: In /home/euHeart/Codes/ParaView/ParaViewCore/ClientServerCore/vtkPVPluginLoader.cxx, line 184 vtkPVPluginLoader (0x26b01b0): /home/euHeart/Codes/Peavip/Plugins/Filters/ImageCast.xml: invalid ELF header The wiki has a section entitled Invalid ELF header but it is empty. The plugin is successfully loaded when using a compilation step. Please find attached an XML that triggers the error (it simply exposes vtkImageCast filter to paraview). Maybe some things has changed in PV-3.10.x and my XML is not ParaView compliant anymore ? In this case, why the compiled plugin does work ??? I encoutnered this error with PV-3.10.1 and pv 3.11.1 Thanks a lot ! Jerome ___ 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] Cannot change outline color
Hi, If you want to change the representation of outline, you should plug your source into a Outline filter: it will outputs a cube representing the bounding box of your data. This cube is a vtkPolyData for which you can change the representation as you want (color, but also line width and opacity) HTH Jerome 2011/5/5 Hom Nath Gharti hng.em...@gmail.com: It seems that color cannot be changed in Outline representation with ParaView 3.10.1. I observe this problem in both Windows and Linux. Or could this be a local problem? Thanks. ___ 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] [vtkusers] vtkIsoVolume example?
Hi, you can try ReleaseDataFlagOn() on your filters/reader. It will free the memory of the output ports. HTH Jerome 2011/4/21 Alexis Chan alex...@cs.unc.edu: Hi I found out that there was nothing wrong with the code snippet. I simply ran out of memory, so I could not do online rendering. I saved the vtkIsoVolume into an Unstructured Grid file and reopened it for offline rendering. Let me know if there is a more efficient way of doing this. Thanks! vtkXMLUnstructuredGridReader* reader = vtkXMLUnstructuredGridReader::New(); reader-SetFileName(C://MyFile.vtu); vtkIsoVolume* myIsoVolume = vtkIsoVolume::New(); myIsoVolume -SetInput((vtkDataSet*)reader-GetOutput()); myIsoVolume -SetInputArrayToProcess(0,0,0,vtkDataObject::FIELD_ASSOCIATION_POINTS,Pressure); myIsoVolume -ThresholdBetween(-100,100); myIsoVolume -Update() vtkXMLUnstructuredGridWriter* writer2 = vtkXMLUnstructuredGridWriter::New(); vtkUnstructuredGrid* unstructGrid = (vtkUnstructuredGrid*)myIsoVolume -GetOutputDataObject(0); writer2-SetInput((vtkDataSet*)unstructGrid); writer2-SetFileName(volwriter); writer2-Write(); Next run of application: vtkXMLUnstructuredGridReader* reader = vtkXMLUnstructuredGridReader::New(); reader-SetFileName(volreader); vtkGeometryFilter* geomFilter = vtkGeometryFilter::New(); geomFilter-SetInput(reader-GetOutput()); geomFilter-SetInputArrayToProcess(0,0,0,vtkDataObject::FIELD_ASSOCIATION_POINTS,Pressure); geomFilter-Update(); vtkPolyDataMapper* mapper = vtkPolyDataMapper::New(); mapper-SetInput(geomFilter-GetOutput()); // Render code On Wed, Apr 20, 2011 at 4:41 AM, Alexis Chan alex...@cs.unc.edu wrote: Hi Is there a vtkIsoVolume example that I can refer to? When I open a vtu file in ParaView and apply the Iso Volume filter to it, I am able to see the Iso Volume. I tried to replicate that in my VTK application but I ran into Unable to allocate memory error. Here's the code snippet ( I verified using the debugger that ParaView uses the same values for the SetInputArrayToProcess): vtkXMLUnstructuredGridReader* reader = vtkXMLUnstructuredGridReader::New(); reader-SetFileName(C://MyFile.vtu); vtkIsoVolume* myIsoVolume = vtkIsoVolume::New(); myIsoVolume -SetInput((vtkDataSet*)reader-GetOutput()); myIsoVolume -SetInputArrayToProcess(0,0,0,vtkDataObject::FIELD_ASSOCIATION_POINTS,Pressure); myIsoVolume -ThresholdBetween(-100,100); myIsoVolume -Update(); -- Regards, Alexis -- Regards, Alexis ___ 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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers ___ 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] make install seems to built a mirror of all the libs
Thanks for your reply. I effectively saw several threads dealing with this CMake variable so I already changed it to OFF, without success... Jerome 2011/4/20 Albina, Frank frank.alb...@sauber-motorsport.com: I think this has to do with the variable PARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES which is set to ON by default. You could try to switch it off and see if it fixes the issue. Cheers, Frank. -Original Message- From: paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org] On Behalf Of Jérôme Sent: Mittwoch, 20. April 2011 10:40 To: paraview-users Subject: [Paraview] make install seems to built a mirror of all the libs Hi, I git pull pv-3.11.1 this morning and built without any problem. But when I execute make install, the installation process seems to copy all the lib that can be found in /usr/lib64 into my /usr/local/lib/paraview-3.11/lib64. Example : ... -- Installing: /usr/local/lib/paraview-3.11/lib64/osgPlugins-2.8.3/osgdb_bmp.so -- Installing: /usr/local/lib/paraview-3.11/lib64/osgPlugins-2.8.3/osgdb_svg.so -- Installing: /usr/local/lib/paraview-3.11/lib64/osgPlugins-2.8.3/osgdb_ive.so -- Installing: /usr/local/lib/paraview-3.11/lib64/osgPlugins-2.8.3/osgdb_iv.so ... System is Fedora14. I removed the build tree before recompiling Paraview from scratch. Does anybody note this before ? If not, how can I track down the origin of this strange behaviour ? I attached my CMakeCache as it should be helpful. Thanks a lot ! Jerome ___ 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] make install seems to built a mirror of all the libs
Thanks David ! It's fixed for me. Jerome 2011/4/20 David Partyka david.part...@kitware.com: Hi Jerome, I believe I have fixed the issue. Please git pull git submodule update (the fix was in VTK). Please let me know if you have any other issues. On Wed, Apr 20, 2011 at 9:12 AM, David Partyka david.part...@kitware.com wrote: Wow, I just recreated this error (on git master). Let me see if I can track this down. On Wed, Apr 20, 2011 at 5:09 AM, Jérôme jerome.ve...@gmail.com wrote: Thanks for your reply. I effectively saw several threads dealing with this CMake variable so I already changed it to OFF, without success... Jerome 2011/4/20 Albina, Frank frank.alb...@sauber-motorsport.com: I think this has to do with the variable PARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES which is set to ON by default. You could try to switch it off and see if it fixes the issue. Cheers, Frank. -Original Message- From: paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org] On Behalf Of Jérôme Sent: Mittwoch, 20. April 2011 10:40 To: paraview-users Subject: [Paraview] make install seems to built a mirror of all the libs Hi, I git pull pv-3.11.1 this morning and built without any problem. But when I execute make install, the installation process seems to copy all the lib that can be found in /usr/lib64 into my /usr/local/lib/paraview-3.11/lib64. Example : ... -- Installing: /usr/local/lib/paraview-3.11/lib64/osgPlugins-2.8.3/osgdb_bmp.so -- Installing: /usr/local/lib/paraview-3.11/lib64/osgPlugins-2.8.3/osgdb_svg.so -- Installing: /usr/local/lib/paraview-3.11/lib64/osgPlugins-2.8.3/osgdb_ive.so -- Installing: /usr/local/lib/paraview-3.11/lib64/osgPlugins-2.8.3/osgdb_iv.so ... System is Fedora14. I removed the build tree before recompiling Paraview from scratch. Does anybody note this before ? If not, how can I track down the origin of this strange behaviour ? I attached my CMakeCache as it should be helpful. Thanks a lot ! Jerome ___ 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] PV 3.10.0 filters contributing code
Hi Utkarsh and Natalie, Regarding the scalar name problem, I encountered this and solved it with the -apparently- same code snippet you sent. Yes, having the full code or the procedure to trigger the error would be helpful. Regarding the contributing code, I applause! The work-flow you proposed is the simplest one. Do you think it would possible to use the submodule mechanism from git, so that the contributed plugins are directly built in the ParaView tree without interfering with the developers' branches ? Looking forward to contributing, Jerome 2011/4/14 Utkarsh Ayachit utkarsh.ayac...@kitware.com: Natalie, Could you share the code/data and steps to reproduce so that I may be better able to judge what's the problem? Also as far your question about contributing code goes, I think that's definitely a great idea. I am a thinking of using a the following workflow to get contributed code in: * Commit your plugin (complete with CMake files and such) to a github or gitorious repository. * Add a Wiki page to the ParaView Wiki with details on building/using the plugin, and any other relevant information useful to the user. * Add a link for this Wiki page in the main page (I'll add a section for contributed plugins). If ParaView users find that plugin generally useable, we'd work with the developer to get the plugin into the ParaView repository itself. I want to keep this a separate step since many plugin developers may not consider all the configurations while writing their plugins e.g. it should work in client-server, parallel, render-server/data-server, remote-rendering etc. and it doesn't make sense to not share that plugin only because it doesn't handle some obscure configuration. How does that sound? Utkarsh On Thu, Apr 14, 2011 at 5:03 AM, Natalie Happenhofer natalieh...@hotmail.com wrote: Hi! I've recently downloaded PV 3.10.0 and extended it with my own filters I've already build in PV 3.6 and PV 3.8.0. However, executing them in PV3.10.0, I get the error Warning: In /home/happenhofer/svn/paraview/branches/ParaView-3.10.0/Servers/Filters/vtkTexturePainter.cxx, line 179 vtkTexturePainter (0x900c8d0): Failed to locate selected scalars. Will use image scalars by default. ERROR: In /home/happenhofer/svn/paraview/branches/ParaView-3.10.0/VTK/Rendering/vtkOpenGLTexture.cxx, line 196 vtkOpenGLTexture (0x9083d20): No scalar values found for texture input! I've googled those errors and one way to get rid of this seemed to be to name the arrays. Lamentably, the error persists after naming them. Here is a code fragment of setting the output (hor is a vtkDoubleArray): hor - SetName(name.c_str()); output - CopyStructure(input); output - GetPointData() - AddArray(hor); output - GetPointData() - SetActiveScalars(name.c_str()); output - Squeeze(); Do you have any ideas on this? As I said, in PV 3.6.x and PV 3.8.0 this code worked fine. Also, since I've been developing filters for ParaView quite a time now and some of my filters might be interesting to other users as well, so I thought about contributing code. I have coded a DataCalculator which operates on different data sets, for example if you have two datasets at different times and want to know the difference between the values, you could use this filter. Another filter of mine calculates the horizontal average of a dataset. Lastly, I wrote a wrapper-routine to the VTK-and the XDMF-Writer already included in Paraview, so that they do not just write one file, but write a time series of files. This might be interesting if you perform some operations on a time-series read in and want to save the output without having to call the writer for each time step separately. If you are interested, please let me know. Greetings, Natalie ___ 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 ___ 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] Image Mathematics
Thanks Utkarsh! Well, I am ok with calling an input Input ;). Best, Jerome 2011/3/31 Utkarsh Ayachit utkarsh.ayac...@kitware.com: I'm not surprised. A lot of code assumes the primary input to be named Input, although midway in the ParaView development lifespan we decided to abondon that notion, yet there may be code that assumes that. Feel free to file a bug, but I have a feeling it will be while before we attempt to fix this. Utkarsh On Thu, Mar 31, 2011 at 4:36 AM, Jérôme jerome.ve...@gmail.com wrote: Hi again, I found the origin of the pipeline issue: The XML description of the filter must set the name of one input to Input. The 2-inputs ImageMathematics works well with first input name=Input rather than name=Input1. Second input name=Input2 does not have to be changed. Should I fill a bug entry for that? Is it a design constraint? Best regards, Jerome 2011/3/29 Jérôme jerome.ve...@gmail.com: Dear all, I am trying to embed the vtkImageMathematics filter in ParaView, but I have a pipeline issue (attached are the corresponding XML servermanagers). For one input operations (add K, invert, sin, cos,...) everything works well. But for two inputs operations (Add, Multiply, Min, Max,...) the pipeline browser does not show the connections between the input images and the ImageMathematics filter. Note that updating the pipeline produces the right output! The only problem is that I cannot right-click and choose change input. Another consequence is that a python-scripted state is not able to rebuild the pipeline. FYI, I already developed a two-image-inputs filter (image convolution with a kernel represented by another vtkImageData: http://github.com/jeromevelut/vtkKinship) for which this issue doesn't occur. Could it be the way the input informations are provided at the VTK side of the filter ? Thanks a lot, Jerome ___ 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] Image Mathematics
Dear all, I am trying to embed the vtkImageMathematics filter in ParaView, but I have a pipeline issue (attached are the corresponding XML servermanagers). For one input operations (add K, invert, sin, cos,...) everything works well. But for two inputs operations (Add, Multiply, Min, Max,...) the pipeline browser does not show the connections between the input images and the ImageMathematics filter. Note that updating the pipeline produces the right output! The only problem is that I cannot right-click and choose change input. Another consequence is that a python-scripted state is not able to rebuild the pipeline. FYI, I already developed a two-image-inputs filter (image convolution with a kernel represented by another vtkImageData: http://github.com/jeromevelut/vtkKinship) for which this issue doesn't occur. Could it be the way the input informations are provided at the VTK side of the filter ? Thanks a lot, Jerome ServerManagerConfiguration ProxyGroup name=filters SourceProxy name=ImageMathematics1Input class=vtkImageMathematics label=Image Mathematics 1 Input Documentation long_help= short_help= /Documentation InputProperty name=Input command=SetInputConnection port_index=0 ProxyGroupDomain name=groups Group name=sources/ Group name=filters/ /ProxyGroupDomain DataTypeDomain name=input_type DataType value=vtkImageData/ /DataTypeDomain Documentation Set the input to the Image Mathematics filter. /Documentation /InputProperty IntVectorProperty name=Operation command=SetOperation number_of_elements=1 default_values=4 EnumerationDomain name=enum Entry value=4 text=Invert/ Entry value=5 text=Sin/ Entry value=6 text=Cos/ Entry value=7 text=Exp/ Entry value=8 text=Log/ Entry value=9 text=Abs/ Entry value=10 text=Sqr/ Entry value=11 text=Sqrt/ Entry value=14 text=Atan/ Entry value=15 text=Atan2/ Entry value=16 text=Multiply by k/ Entry value=17 text=Add c/ Entry value=18 text=Conjugate/ Entry value=20 text=Replace by k/ /EnumerationDomain /IntVectorProperty DoubleVectorProperty name=ConstantK command=SetConstantK number_of_elements=1 default_values=1 /DoubleVectorProperty DoubleVectorProperty name=ConstantC command=SetConstantC number_of_elements=1 default_values=0 /DoubleVectorProperty IntVectorProperty name=DivideByZeroToC command=SetDivideByZeroToC number_of_elements=1 default_values=1 BooleanDomain name=boolean/ /IntVectorProperty IntVectorProperty name=ReleaseDataFlag command=SetReleaseDataFlag number_of_elements=1 default_values=0 animateable=0 BooleanDomain name=boolean/ Documentation /Documentation /IntVectorProperty /SourceProxy /ProxyGroup /ServerManagerConfiguration ServerManagerConfiguration ProxyGroup name=filters SourceProxy name=ImageMathematics2Inputs class=vtkImageMathematics label=Image Mathematics 2 Inputs Documentation long_help= short_help= /Documentation InputProperty name=Input1 command=SetInputConnection ProxyGroupDomain name=groups Group name=sources/ Group name=filters/ /ProxyGroupDomain DataTypeDomain name=input_type DataType value=vtkImageData/ /DataTypeDomain /InputProperty InputProperty name=Input2 command=SetInputConnection port_index=1 ProxyGroupDomain name=groups Group name=sources/ Group name=filters/ /ProxyGroupDomain DataTypeDomain
Re: [Paraview] Add a source as a plugin
Hi David, I may be wrong, but I think that sources are filters without input. Thus you don't need anything else than the ProxyGroup name=sources you put in the XML. Jerome 2011/3/10 David Doria daviddo...@gmail.com: Is there something besides this: https://github.com/daviddoria/vtkEllipsoidSource/blob/master/vtkEllipsoidSource.xml that must be done to get a source to appear in the Sources menu? Sources seem to be missing from http://www.vtk.org/Wiki/ParaView/Plugin_HowTo 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] Gradient of an image
David, I just commited the ImageLuminance.xml in Peavip. I tried the following pipeline with success : Reader(daveDpeth.png) - ImageLuminance - Gradient The error you get with ImageMagnitude is due to fact that some VTK filter doesn't give a name to the output scalar. There is an old thread on that topic -'cannot find it again, sorry-. Finally, I won't ask to put Peavip in ParaView, as I don't think it has sufficient quality, and enabling a lot of filters in the interface is not a good idea. A third party GUI in which the user choose the needed filters should be more suitable. Jerome 2011/3/3 David Doria daviddo...@gmail.com: On Wed, Mar 2, 2011 at 4:32 PM, Jérôme jerome.ve...@gmail.com wrote: Hi David, I think that your image has a 3-components data array, such as RGB. ParaView Gradient filter is based on vtkImageGradient which expects a 1-component image. You can - convert your image in grey level with a third party software, - use the calculator to compute a norm of the input image, - enable the vtkImageMagnitude or vtkImageLuminance in ParaView (I already did it here: http://github.com/jeromevelut/Peavip, but it seems that vtkImageMagnitude needs some update...) HTH Jerome Jerome, That is great! Can you include it in the actual Paraview distribution? FYI vtkImageMagnitude appears in the filters list, but vtkImageLuminance seems to be absent. Also, when I run vtkImageMagnitude, I get: Warning: In /home/doriad/src/ParaView/Servers/Filters/vtkTexturePainter.cxx, line 179 vtkTexturePainter (0x8dee780): Failed to locate selected scalars. Will use image scalars by default. and then there is no output. The data is in an array called PNGImage of type unsigned char with Data range [0,255],[0,255],[0,255]. Any thoughts? The file I'm trying it on is here: http://daviddoria.com/Uploads/daveDepth.png if you want to try to reproduce. 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] SplineSource and python script
Hi, I have some difficulties to have the SplineSource working properly through a python script. First, I created a spline by hand and saved the state as a python file. I simplified it in order to keep only the SplineSource settings (file attached). When I execute this script (ParaView-3.10-RC1), I get the following error : Traceback (most recent call last): File string, line 6, in module File /usr/local/lib/paraview-3.10/site-packages/paraview/servermanager.py, line 207, in __setattr__ to add this attribute.) AttributeError: Attribute Closed does not exist. This class does not allow addition of new attributes to avoid mistakes due to typos. Use add_attribute() if you really want to add this attribute. When I access the object through python shell, the Closed attribute appears in a protected list (which seems to be the right case) : FindSource(RCA).ParametricFunction.__dict__ {'SMProxy': (vtkSMProxy)0x48e25d0, '_Proxy__LastAttrName': 'NewPropertyIterator', '_Proxy__Properties': {'Points': weakref at 0x4ce6ec0; dead, 'Closed': weakref at 0x4ce6158; dead}, 'ObserverTag': -1, 'Observed': None, 'Port': 0} The same error occurs with the Points attribute, thus I cannot add points by script : this is what I want to do. Thanks ! Jerome ___ 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] SplineSource and python script
Hi, It works like a charm! Thank you very much. You are right: I get the expected error message, but the spline is correctly initialized. Jerome 2011/2/18 pat marion pat.mar...@kitware.com: Hi Jerome, It looks like the ParametricFunction property of the SplineSource is not python friendly. I can confirm this bug. As a workaround, you can do this: s.ParametricFunction.SetPropertyWithName(Closed, 1) s.ParametricFunction.SetPropertyWithName(Points, [x,y,z, x2,y2,z2]) I think paraview will print an error message when you said the Points property even though it works. You'll see an error message that the spline must contain at least 1 point. My guess is that it clears the Points property before setting the new value. Pat On Fri, Feb 18, 2011 at 5:30 AM, Jérôme jerome.ve...@gmail.com wrote: Hi, I have some difficulties to have the SplineSource working properly through a python script. First, I created a spline by hand and saved the state as a python file. I simplified it in order to keep only the SplineSource settings (file attached). When I execute this script (ParaView-3.10-RC1), I get the following error : Traceback (most recent call last): File string, line 6, in module File /usr/local/lib/paraview-3.10/site-packages/paraview/servermanager.py, line 207, in __setattr__ to add this attribute.) AttributeError: Attribute Closed does not exist. This class does not allow addition of new attributes to avoid mistakes due to typos. Use add_attribute() if you really want to add this attribute. When I access the object through python shell, the Closed attribute appears in a protected list (which seems to be the right case) : FindSource(RCA).ParametricFunction.__dict__ {'SMProxy': (vtkSMProxy)0x48e25d0, '_Proxy__LastAttrName': 'NewPropertyIterator', '_Proxy__Properties': {'Points': weakref at 0x4ce6ec0; dead, 'Closed': weakref at 0x4ce6158; dead}, 'ObserverTag': -1, 'Observed': None, 'Port': 0} The same error occurs with the Points attribute, thus I cannot add points by script : this is what I want to do. Thanks ! Jerome ___ 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] moving cameras
Hi, I just tried the steps to reproduce the bug: I got the same behaviour as Raymond. My ParaView is 3.10.0-RC1 compiled from the git repo eponymous tag. OS is Linux Fedora13-x86_64 Jerome 2011/2/14 raymond.co...@csiro.au: I experience the behaviour in both windows xp 32 bit and windows 7 64 bit. To be clear, lets say you make something like 2x2 viewports and then start adding cameras, you will only be able to add one. -Original Message- From: Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com] Sent: Monday, 14 February 2011 3:55 PM To: Cohen, Ray (CMIS, Clayton) Cc: paraview@paraview.org Subject: Re: [Paraview] moving cameras What operating system is this? I just tried it on mac and I don't seem to have any issue adding the second orbit for the second view irrespective of whether I add the orbit immediately after creating the view or and some other point in future. Is there something else I should be doing to reproduce this issue? Utkarsh On Sun, Feb 13, 2011 at 10:34 PM, raymond.co...@csiro.au wrote: Hi, I just downloaded 3.10.0-RC1 and it still has an annoying moving camera issue. PROBLEM: I am unable to create independent moving cameras for each viewport of a scene INSTRUCTIONS FOR REPLICATING THE PROBLEM: 1. Create a cone 2. Split the view so there are now two 3d viewports 3. In the animation view add a Camera-Orbit 4. Hit play, one of the viewports should rotate. 5. Select the other viewport and try to add a Camera-Orbit. It will NOT let you do this. SUGGESTED FIX: 1. Make the add camera - Orbit/Follow Path/Interpolate Camera Locations operate on the CURRENTLY selected viewport. MY CURRENT ANNOYING WORKAROUND: - adding camera - Interpolate Camera Locations immediately after each new viewport is created. Do other people experience this bug? Thanks, Ray ___ 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 ___ 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 an image from float to unsigned char
Hi David, Data type casting is very application dependent. Adding a casting-capability to a data writer could be an idea, but it means that you add some functionalities to an object that was not intended to handle them. More risky: it means that you will write data that are not those you put in the writer! Integrate vtkImageCast in ParaView is an easy task (it is done in Peavip), either through a compiled plugin or an XML. My 2c Jerome 2010/12/10 David Doria daviddo...@gmail.com: On Fri, Dec 10, 2010 at 1:39 PM, Sven Buijssen sven.buijs...@tu-dortmund.de wrote: Hi David, May I remind you of a thread you started last year? It shouldn't be too hard to adapt the python code presented in one of the answers to your current use case: http://markmail.org/message/x2qs2jn6ltaw5v6u Sven Thanks Sven. Every time I use a programmable filter I think I am missing a built in function. Could the PNGWriter be hooked up to a vtkImageCast easily? 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] no probe over line output with paraview scripting
Hi Matt, By quickly reading your code, I understand that you try to put the ouput of the PlotOverLine on the the input of an image writer. The mistake, IMHO, is that PlotOverLine outputs a vtkPolyData (Polygonal Mesh in ParaView), that's why the writer doesn't want it as input (it expects a vtkImageData instead). I think that what you want is a screenshot of the plot. You should look in that direction. Sort of Offscreen screenshot ?? Don't know... HTH Jerome 2010/10/29 m.c.wilk...@massey.ac.nz: Hi, As promised, I have another question! The code below can render a picture to the screen fine. But I would like to send the picture to a file, without rendering anything to the screen. I know I can put WriteImage('/tmp/foo.png') at the end to save the output, but that is after I've popped up an image. I did find a powerpoint by David E DeMarle about paraview scripting with this in it: writer = servermanager.writers.PNGWriter() writer.FileName = '/tmp/foo.png' writer.Input = pl writer.UpdatePipeline() But when I try that I get: ERROR: In /scratch/pv/ParaView/VTK/IO/vtkPNGWriter.cxx, line 54 vtkPNGWriter (0xb108028): Write:Please specify an input! which is odd since I thought I had set the input via writer.Input = pl My full code was from paraview.simple import * reader = servermanager.sources.XMLUnstructuredGridReader(FileName = /var/tmp/file.vtu) pl = PlotOverLine(Input = reader) pl.Source.Point1 = [-7000, -5000, 0] pl.Source.Point2 = [4300, 6300, .75] writer = servermanager.writers.PNGWriter() writer.FileName = '/tmp/foo.png' writer.Input = pl c = CreateXYPlotView() d = Show() d.XArrayName = 'arc_length' d.SeriesVisibility = ['namecolours (0)', '0', 'namecolours (1)', '0', 'namecolours (2)', '0', 'vtkValidPointMask', '0', 'arc_length', '0'] d.UseIndexForXAxis = 0 writer.UpdatePipeline() I feel pretty bad about always asking questions on this list, but I just can't seem to find documentation, or if I do, it is for a slightly different setup (as in David E DeMarle's powerpoint for instance). So, if I am just missing some good doco source, please point me that way! Thanks for any help! Matt Wilkins On Fri, Oct 29, 2010 at 01:22:24PM +1300, m.c.wilk...@massey.ac.nz wrote: Hi Utkarsh, Thanks, I am using 3.9, but I wasn't using paraview.simple, just following the examples in the Python Scripting chapter in the ParaView Guide. Using paraview.simple does make things simpler ;-) and indeed I can get it to work. For the record this works fine for me: from paraview.simple import * reader = servermanager.sources.XMLUnstructuredGridReader(FileName = /var/tmp/file.vtu) pl = PlotOverLine(Input = reader) pl.Source.Point1 = [-7000, -5000, 0] pl.Source.Point2 = [4300, 6300, .75] CreateXYPlotView() d = Show() d.XArrayName = 'arc_length' d.SeriesVisibility = ['namecolours (0)', '0', 'namecolours (1)', '0', 'namecolours (2)', '0', 'vtkValidPointMask', '0', 'arc_length', '0'] d.UseIndexForXAxis = 0 Render() OK, so got past this problem, more to come I expect! Thank you Matt Wilkins On Thu, Oct 28, 2010 at 09:08:50AM -0600, Utkarsh Ayachit wrote: What version of ParaView are you using? Here's my script with 3.9 (should work with 3.8 too). Wavelet() pl = PlotOverLine() pl.Source.Point1 = [-10, -10, -10] pl.Source.Point2 = [10, 10, 10] CreateXYPlotView() Show() Render() Utkarsh On Wed, Oct 27, 2010 at 2:30 PM, m.c.wilk...@massey.ac.nz wrote: Hi, I am driving paraview via pvpython, and trying to do a probe over line. I would think this is quite easy, but it is proving frustratingly difficult! This is what I am typing from paraview import servermanager c = servermanager.Connect() reader = servermanager.sources.XMLUnstructuredGridReader(FileName = /var/tmp/file.vtu) pl = servermanager.filters.ProbeLine(Input = reader) pl.Source.Point1 = [-7000, -5000, 0] pl.Source.Point2 = [4300, 6300, .75] view = servermanager.CreateRenderView() rep = servermanager.CreateRepresentation(pl, view) pl.UpdatePipeline() view.ResetCamera() view.StillRender() I get a nice picture of the x axis and a short y axis, but nothing plotted. I try a probe over line in paraview with the same beginning and end points and I get data displayed. I am not specifying what variables should be displayed for the probe over line, so perhaps nothing is getting displayed? I cannot for the life of me find how I would specify what to display though. If I do a probe over line in paraview with the Python Shell Trace running, I can see that the SeriesVisibility attribute in the paraview.servermanager.XYChartRepresentation object is being set. However I don't have that representation, I only have the 'rep' above, and that doesn't have a SeriesVisibility attribute. Thank you for any help, even if it is a pointer to where this is
Re: [Paraview] Commands for Source Plugin
Hi, First of all, your public virtual function is called 'SetNuberOfXBin' whereas the XML try to find SetNumberOfXBins. If this is a copy/paste from your real code, you would have to check your syntax. Second, the XML describes an IntegerVectorProperty with 10 elements, thus I expected to find a function in your VTK class of the form: SetNumberOfBins( int, int, int, int, int, int, int, int, int, int ); For clarity purpose (I don't know how mandatory it is), I would then declare the default values as default_values=1 1 1 1 1 1 1 1 1 1 1. Really, I don't understand what you are trying to do. Usually, a SetNumberOf... is described as IntegerVectorProperty name=NumberOfXBins command=SetNumberOfXBins number_of_elements=1 default_values=1 IntRangeDomain name=range min=0 /IntegerVectorProperty And your VTK class should implement a public function void SetNumberOfXBins( int n ); The better being to use a vtkSetMacro for a basic accessor method. But you may have some additional processing when setting the value, making vtkSetMacro unsufficient : in this case, don't forget to call Modified( ) in your Set method unless the pipeline won't update accordingly to your expectations. HTH Jerome 2010/7/8 owen.arn...@stfc.ac.uk: As part of a source plugin I am developing, I would like to provide gui input parameters. Many of the sources in paraview already provide this, such as the Sphere source, which allows properties like radius to be adjusted manually. I have included the IntegerVectorProperty xml fragment (see below), which I believe should enable such an option and have provided a corresponding public listener method (also below) on my vtkRebinningSource, which is derived from vtkPolyDataAlgorithm. When I select the plugin from the sources menu in paraview, I get the error message: ERROR: In ..\..\Paraview_source\Paraview-3.8.0-RC2\Servers\Commmon\vtkProcessModule.cxx, line 1066 : Object type: vtkRebinningSource, could not find requested method: SetNumberOfXBins or the method was called with incorrect arguments. while processing Message 0 = Invoke ... Presumably, I have not registered the event listening method correctly. While this is simple to do in raw vtk, I haven’t found any description of how to do this in the paraview documentation. Can anyone provide me with guidance of how I might do this for my source plugin? Thanks in advance, Owen ServerManagerConfiguration !-- Begin RebinningSource -- ProxyGroup name=sources SourceProxy name=RebinningSource class=vtkRebinningSource IntegerVectorProperty name=NumberOfXBins command=SetNumberOfXBins number_of_elements=10 default_values=1 /IntegerVectorProperty /SourceProxy /ProxyGroup !-- End RebinningSource -- /ServerManagerConfiguration public: virtual void SetNuberOfXBins(vtkObject * caller, unsigned long eventId, void* callData); -- Scanned by iCritical. ___ 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] Changing the label in the pipeline browser through python scripts
Hi, I wonder how I can change the label of a filter in the pipeline browser through python commands. Thanks a lot! Jerome ___ 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] Changing the label in the pipeline browser through python scripts
Thanks Utkarsh! I just found the file Utilities/VTKPythonWrapping/paraview/simple.py, in which this function is defined. Is there a more convenient documentation (such as the nightly doxygen) somewhere? Jerome 2010/6/18 Utkarsh Ayachit utkarsh.ayac...@kitware.com: You can use RenameSource. from paraview.simple import * help(RenameSource) Utkarsh On Fri, Jun 18, 2010 at 4:22 AM, Jérôme jerome.ve...@gmail.com wrote: Hi, I wonder how I can change the label of a filter in the pipeline browser through python commands. Thanks a lot! Jerome ___ 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] Plugin Autoload
Hi Aurélien, I am the one that submitted the bug. It describes a problem I had with autoloading an autostart-style plug-in. Nobody was able to reproduce this bug. What you describe here is another problem that I also encounter: Checking auto-load for XML-based plugin (such as enabling a VTK filter without building a cxx plugin) does not work. I talked about that in the thread entitled Auto-load plugin failed. I forgot to talk about the XML autoload failure in the bug report, that's why it hasn't been tested... I will submit another one. Jerome Le 16 juin 2010 09:57, Aurélien Marsan aurelien.mar...@ecl2009.ec-lyon.fr a écrit : And I tried on my computer to autoload the plugin Example/Plugins/Reader/readers.xml and the HelixSource too. It doesn't seem to work neither. Le 16 juin 2010 09:45, Aurélien Marsan aurelien.mar...@ecl2009.ec-lyon.fr a écrit : Then, here is my problem : When I load an xml plugin, and its .bqrc file, check autoload, close paraview and reopen it, the plugin is not auto-loaded I have to load it again manually. No message is displayed. Is there some save configuration to do before closing ? Le 15 juin 2010 11:12, Aurélien Marsan aurelien.mar...@ecl2009.ec-lyon.fr a écrit : Hi, Does someone ever had bugs with the Autoload Option ? I've found this bug report http://public.kitware.com/Bug/view.php?id=9803, but I don't have the message that is described. -- Aurélien MARSAN Doctorant Cifre Turbomeca/LMFA aurelien.mar...@ecl2009.ec-lyon.fr 06.31.98.26.73 -- Aurélien MARSAN Doctorant Cifre Turbomeca/LMFA aurelien.mar...@ecl2009.ec-lyon.fr 06.31.98.26.73 ___ 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] Plugin Autoload
Re-Hi, I submited a bug here: http://public.kitware.com/Bug/view.php?id=10835 Jerome Le 16 juin 2010 10:32, Jérôme jerome.ve...@gmail.com a écrit : Hi Aurélien, I am the one that submitted the bug. It describes a problem I had with autoloading an autostart-style plug-in. Nobody was able to reproduce this bug. What you describe here is another problem that I also encounter: Checking auto-load for XML-based plugin (such as enabling a VTK filter without building a cxx plugin) does not work. I talked about that in the thread entitled Auto-load plugin failed. I forgot to talk about the XML autoload failure in the bug report, that's why it hasn't been tested... I will submit another one. Jerome Le 16 juin 2010 09:57, Aurélien Marsan aurelien.mar...@ecl2009.ec-lyon.fr a écrit : And I tried on my computer to autoload the plugin Example/Plugins/Reader/readers.xml and the HelixSource too. It doesn't seem to work neither. Le 16 juin 2010 09:45, Aurélien Marsan aurelien.mar...@ecl2009.ec-lyon.fr a écrit : Then, here is my problem : When I load an xml plugin, and its .bqrc file, check autoload, close paraview and reopen it, the plugin is not auto-loaded I have to load it again manually. No message is displayed. Is there some save configuration to do before closing ? Le 15 juin 2010 11:12, Aurélien Marsan aurelien.mar...@ecl2009.ec-lyon.fr a écrit : Hi, Does someone ever had bugs with the Autoload Option ? I've found this bug report http://public.kitware.com/Bug/view.php?id=9803, but I don't have the message that is described. -- Aurélien MARSAN Doctorant Cifre Turbomeca/LMFA aurelien.mar...@ecl2009.ec-lyon.fr 06.31.98.26.73 -- Aurélien MARSAN Doctorant Cifre Turbomeca/LMFA aurelien.mar...@ecl2009.ec-lyon.fr 06.31.98.26.73 ___ 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] Problem with Color Gradients in 'Save Screenshot'
Hi, FYI, I also noted that bug on WinXP, ParaView-3.9 Jerome 2010/6/16 Phil Thibodeau philthibod...@gmail.com: When I use the 'Save Screenshot' feature in PV 3.8, the background colour gradient 'doubles'. On my screen, I have a smooth colour gradient from the top of the window to the bottom, but the screenshot has two tiles of the gradient (see attachment). This only occurs when I turn off the Save only Selected View to have multiple windows in my screenshot. Does anyone know why this is happening? Paraview 3.8.0 on Fedora 12. I'm new to PV and Linux in general - please keep in mind for any responses. Thanks, Phil -- Philippe Thibodeau Mechanical Engineering Co-op Student Aalto University ___ 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] Programmable Source MultiBlockDataSet
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ôme (*) in fact, if I put the OutputDataSetType to 13, it takes 0 (the value default : vtkPolyData), but it seems to work... Le 23/04/2010 19:04, Aurélien Marsan a écrit : 2010/4/23 Aurélien Marsan aur.mar...@gmail.com mailto:aur.mar...@gmail.com: thanks ! And so, could you add Temporal Data Set to this commit ? Le 23 avril 2010 16:28, Utkarsh Ayachit utkarsh.ayac...@kitware.com mailto:utkarsh.ayac...@kitware.com a écrit : 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 aur.mar...@gmail.com mailto:aur.mar...@gmail.com: 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, I use a Programmable Filter, and set the Output Data Type Same as Input. So I can use this script. from Moduleperso import * m = MultiBlocFromV3D() # This is a personnal reader in python, that returns a vtkMultiBlockDataSet self.GetOutputDataObject(0).DeepCopy(m) Hope this will help some people who don't want to go in source code... Le 23 avril 2010 14:07, Aurélien Marsan aur.mar...@gmail.com mailto:aur.mar...@gmail.com a écrit : 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 aur.mar...@gmail.com mailto:aur.mar...@gmail.com a écrit : 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 Programmable Source, so we don't need to write the file on the disk before to open it with Paraview. Does Programmable Source work with MultiBlockDataSet ? I don't see this class in the Output Data Set Type that we can choose... And is it correct if I write in the Script of the Programmable Filter : from perso import * multiblock = MultiBlockDataSetFromV3D(.) self.GetOutput().DeepCopy(multiblock) Thanks for help. A.MARSAN ___ Powered by www.kitware.com http://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 attachment: jerome_plumecoq.vcf___ 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 and read a vtk file (in python)
Hello, Thank you Eric : now I can read my datas with a ProgrammableSource, and display them. But I would like to create a ProgrammableSource in a python script, and I have this error when I try to set the InformationScript (which is necessary to display the datas) attribute : Traceback (most recent call last): File "string", line 1, in module File "/home/plumecoq/EHPOC/plugins/ElsaMenu/elsa.py", line 106, in module main() File "/home/plumecoq/EHPOC/plugins/ElsaMenu/elsa.py", line 85, in main ps.InformationScript = str_information_script File "/home/plumecoq/Paraview/ParaView-3.8.0-bin/Utilities/VTKPythonWrapping/paraview/servermanager.py", line 201, in __setattr__ "to add this attribute.") AttributeError: Attribute InformationScript does not exist. This class does not allow addition of new attributes to avoid mistakes due to typos. Use add_attribute() if you really want to add this attribute. My code is : # solution 2 : Programmable Source ps = ProgrammableSource() ps.OutputDataSetType = 2 # 2 : Structured Grid, 13 : MultiblockDataSet str_script = """ import lecture_v3d as v3d reader = v3d.V3dReader("/home/plumecoq/tmp/ParaView/flow_1_0075.v3d") self.GetOutput().DeepCopy(reader.bloc_vts) """ ps.Script = str_script str_information_script = """ from paraview import util util.SetOutputWholeExtent(self, [0, 10, 0, 10, 0, 30]) """ ps.InformationScript = str_information_script when I put the string str_information_script in the window Script(RequestInformation) of the ProgrammableSource, it works fine. any ideas ? Jrme Le 07/06/2010 13:30, Eric E. Monson a crit: Hey Jrme, Yes, you can use the Python Programmable Source as a reader. There are some examples on these two pages, in case you haven't seen them: http://www.paraview.org/Wiki/Here_are_some_more_examples_of_simple_ParaView_3_python_filters http://www.paraview.org/Wiki/Python_Programmable_Filter -Eric -- Eric E Monson Duke Visualization Technology Group On Jun 7, 2010, at 4:58 AM, Jrme Plumecoq wrote: Hello, thank you very much ! Do you know if is possible to write directly a reader in python ? Or is it only possible in C++ ? Jrme Le 04/06/2010 15:37, Utkarsh Ayachit a crit: There was a bug in OpenDataFile() that was fixed a few days ago (May 26) that is causing that "AttributeError: Attribute FileName does not exist". Attached is a patch for the same. Utkarsh 2010/6/4 Berk Geveci berk.gev...@kitware.com: 1) reading : from a vtkStructuredGrid object, I use a vtkStructuredGridWriter to create a vtk file, and I have the following problem : when I launch the script in Paraview, the format of floating points is not good (I obtain for example 33,1632 instead of 33.1632). So, the file created is not readable by Paraview. If I launch the script directly in a terminal, it works fine. Perhaps because the version of vtk module is not the same ? If I use the binary format I have not this problem. This seems to be related to the way the LOCALE is set on your system. It is probably set to French in one case and English in the other. Does anybody know if we can force LOCALE to English in the ParaView application or the reader? 2) writing : I would like to read my vtk files from the python shell, with OpenDataFile(), but It didn't succeed and I have the following message (with a file which can be read in paraview using menu open of course :-) : Unless I am mistaken, you give the filename directly to OpenDataFile(), without FileName=. -berk /home/plumecoq/tmp/ParaView/flow_1_0075.vtk Traceback (most recent call last): File "string", line 1, in module File "/home/plumecoq/EHPOC/plugins/ElsaMenu/elsa.py", line 91, in module main() File "/home/plumecoq/EHPOC/plugins/ElsaMenu/elsa.py", line 73, in main reader_vtk = OpenDataFile(file_name_vtk) File "/home/plumecoq/Paraview/ParaView-3.8.0-bin/Utilities/VTKPythonWrapping/paraview/simple.py", line 115, in OpenDataFile reader = globals()[xml_name](FileName=filename, **extraArgs) File "/home/plumecoq/Paraview/ParaView-3.8.0-bin/Utilities/VTKPythonWrapping/paraview/simple.py", line 542, in CreateObject setattr(px, param, params[param]) File "/home/plumecoq/Paraview/ParaView-3.8.0-bin/Utilities/VTKPythonWrapping/paraview/servermanager.py", line 201, in __setattr__ "to add this attribute.") AttributeError: Attribute FileName does not exist. This class does not allow addition of new attributes to avoid mistakes due to typos. Use add_attribute() if you really want to add this attribute. any ideas ? I try to use LegacyVTKFileReader instead, but I have also some problems. I use a re-compile version of Paraview 3.8, under Linux (Fedora 10 - 64 bits) thanks for your help. Jrme
Re: [Paraview] Write and read a vtk file (in python)
Ok in fact the good attribute name is : ScriptRequestInformation Le 08/06/2010 14:18, Jrme Plumecoq a crit: Hello, Thank you Eric : now I can read my datas with a ProgrammableSource, and display them. But I would like to create a ProgrammableSource in a python script, and I have this error when I try to set the InformationScript (which is necessary to display the datas) attribute : Traceback (most recent call last): File "string", line 1, in module File "/home/plumecoq/EHPOC/plugins/ElsaMenu/elsa.py", line 106, in module main() File "/home/plumecoq/EHPOC/plugins/ElsaMenu/elsa.py", line 85, in main ps.InformationScript = str_information_script File "/home/plumecoq/Paraview/ParaView-3.8.0-bin/Utilities/VTKPythonWrapping/paraview/servermanager.py", line 201, in __setattr__ "to add this attribute.") AttributeError: Attribute InformationScript does not exist. This class does not allow addition of new attributes to avoid mistakes due to typos. Use add_attribute() if you really want to add this attribute. My code is : # solution 2 : Programmable Source ps = ProgrammableSource() ps.OutputDataSetType = 2 # 2 : Structured Grid, 13 : MultiblockDataSet str_script = """ import lecture_v3d as v3d reader = v3d.V3dReader("/home/plumecoq/tmp/ParaView/flow_1_0075.v3d") self.GetOutput().DeepCopy(reader.bloc_vts) """ ps.Script = str_script str_information_script = """ from paraview import util util.SetOutputWholeExtent(self, [0, 10, 0, 10, 0, 30]) """ ps.InformationScript = str_information_script when I put the string str_information_script in the window Script(RequestInformation) of the ProgrammableSource, it works fine. any ideas ? Jrme Le 07/06/2010 13:30, Eric E. Monson a crit: Hey Jrme, Yes, you can use the Python Programmable Source as a reader. There are some examples on these two pages, in case you haven't seen them: http://www.paraview.org/Wiki/Here_are_some_more_examples_of_simple_ParaView_3_python_filters http://www.paraview.org/Wiki/Python_Programmable_Filter -Eric -- Eric E Monson Duke Visualization Technology Group On Jun 7, 2010, at 4:58 AM, Jrme Plumecoq wrote: Hello, thank you very much ! Do you know if is possible to write directly a reader in python ? Or is it only possible in C++ ? Jrme Le 04/06/2010 15:37, Utkarsh Ayachit a crit: There was a bug in OpenDataFile() that was fixed a few days ago (May 26) that is causing that "AttributeError: Attribute FileName does not exist". Attached is a patch for the same. Utkarsh 2010/6/4 Berk Geveci berk.gev...@kitware.com: 1) reading : from a vtkStructuredGrid object, I use a vtkStructuredGridWriter to create a vtk file, and I have the following problem : when I launch the script in Paraview, the format of floating points is not good (I obtain for example 33,1632 instead of 33.1632). So, the file created is not readable by Paraview. If I launch the script directly in a terminal, it works fine. Perhaps because the version of vtk module is not the same ? If I use the binary format I have not this problem. This seems to be related to the way the LOCALE is set on your system. It is probably set to French in one case and English in the other. Does anybody know if we can force LOCALE to English in the ParaView application or the reader? 2) writing : I would like to read my vtk files from the python shell, with OpenDataFile(), but It didn't succeed and I have the following message (with a file which can be read in paraview using menu open of course :-) : Unless I am mistaken, you give the filename directly to OpenDataFile(), without FileName=. -berk /home/plumecoq/tmp/ParaView/flow_1_0075.vtk Traceback (most recent call last): File "string", line 1, in module File "/home/plumecoq/EHPOC/plugins/ElsaMenu/elsa.py", line 91, in module main() File "/home/plumecoq/EHPOC/plugins/ElsaMenu/elsa.py", line 73, in main reader_vtk = OpenDataFile(file_name_vtk) File "/home/plumecoq/Paraview/ParaView-3.8.0-bin/Utilities/VTKPythonWrapping/paraview/simple.py", line 115, in OpenDataFile reader = globals()[xml_name](FileName=filename, **extraArgs) File "/home/plumecoq/Paraview/ParaView-3.8.0-bin/Utilities/VTKPythonWrapping/paraview/simple.py", line 542, in CreateObject setattr(px, param, params[param]) File "/home/plumecoq/Paraview/ParaView-3.8.0-bin/Utilities/VTKPythonWrapping/paraview/servermanager.py", line 201, in __setattr__ "to add this attribute.") AttributeError: Attribute FileName does not exist. This class does not allow addition of new attributes to avoid mistakes due to typos. Use add_attribute() if you really want to
Re: [Paraview] Write and read a vtk file (in python)
Hello, it doesn't fix the problem for me, but perhaps it is because I don't use version 4.6 of Qt... But if I set the locale in the python script before writing the vtk file in ASCII, it works fine. Thank you ! Jrme Le 04/06/2010 16:15, Utkarsh Ayachit a crit: I've committed a fix. Attached is the patch for the same. commit 3f4904f94224ef3a6c03989a012c4484a759a607 Author: Utkarsh Ayachit utkarsh.ayac...@kitware.com Date: Fri Jun 4 10:14:30 2010 -0400 setlocale to avoid locale related numeric issues. Refer to http://www.paraview.org/pipermail/paraview/2009-August/013278.html thread for details. Utkarsh On Fri, Jun 4, 2010 at 9:50 AM, Berk Geveci berk.gev...@kitware.com wrote: Thanks Takuya. We'll take care of it. 2010/6/4 Takuya OSHIMA osh...@eng.niigata-u.ac.jp: Hi, This seems to be related to the way the LOCALE is set on your system. It is probably set to French in one case and English in the other. Does anybody know if we can force LOCALE to English in the ParaView application or the reader? Indeed, forcing the locale where the PV application runs under to C was what I proposed a while ago, which failed to draw attention: http://www.paraview.org/pipermail/paraview/2009-August/013278.html I'd really appreciate if the PV developers reconsider this. Takuya Takuya OSHIMA, Ph.D. Faculty of Engineering, Niigata University 8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN From: Berk Geveci berk.gev...@kitware.com Subject: Re: [Paraview] Write and read a vtk file (in python) Date: Fri, 4 Jun 2010 09:25:02 -0400 1) reading : from a vtkStructuredGrid object, I use a vtkStructuredGridWriter to create a vtk file, and I have the following problem : when I launch the script in Paraview, the format of floating points is not good (I obtain for example 33,1632 instead of 33.1632). So, the file created is not readable by Paraview. If I launch the script directly in a terminal, it works fine. Perhaps because the version of vtk module is not the same ? If I use the binary format I have not this problem. This seems to be related to the way the LOCALE is set on your system. It is probably set to French in one case and English in the other. Does anybody know if we can force LOCALE to English in the ParaView application or the reader? 2) writing : I would like to read my vtk files from the python shell, with OpenDataFile(), but It didn't succeed and I have the following message (with a file which can be read in paraview using menu open of course :-) : Unless I am mistaken, you give the filename directly to OpenDataFile(), without FileName=. -berk /home/plumecoq/tmp/ParaView/flow_1_0075.vtk Traceback (most recent call last): File "string", line 1, in module File "/home/plumecoq/EHPOC/plugins/ElsaMenu/elsa.py", line 91, in module main() File "/home/plumecoq/EHPOC/plugins/ElsaMenu/elsa.py", line 73, in main reader_vtk = OpenDataFile(file_name_vtk) File "/home/plumecoq/Paraview/ParaView-3.8.0-bin/Utilities/VTKPythonWrapping/paraview/simple.py", line 115, in OpenDataFile reader = globals()[xml_name](FileName=filename, **extraArgs) File "/home/plumecoq/Paraview/ParaView-3.8.0-bin/Utilities/VTKPythonWrapping/paraview/simple.py", line 542, in CreateObject setattr(px, param, params[param]) File "/home/plumecoq/Paraview/ParaView-3.8.0-bin/Utilities/VTKPythonWrapping/paraview/servermanager.py", line 201, in __setattr__ "to add this attribute.") AttributeError: Attribute FileName does not exist. This class does not allow addition of new attributes to avoid mistakes due to typos. Use add_attribute() if you really want to add this attribute. any ideas ? I try to use LegacyVTKFileReader instead, but I have also some problems. I use a re-compile version of Paraview 3.8, under Linux (Fedora 10 - 64 bits) thanks for your help. Jrme ___ 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 ___ Powered by www.kitware.com Visit other Kitware open-source projects at
Re: [Paraview] Resampling data in ParaView
Finally, I found a bug opened 6 months ago: http://www.paraview.org/Bug/view.php?id=10125 I added a note. I hope that it will interest some PV gurus Jerome 2010/6/2 Jérôme jerome.ve...@gmail.com: Dear all, I fill very surprised that *nobody* has to resample some data inside ParaView. Several threads deal with enabling some VTK filters in ParaView that actually change the extent of the input image (just as vtkImageResample), but when the output extent is higher that input, there is a strange behaviour. Sorry for being lazy: the problem was described in the following threads. http://www.paraview.org/pipermail/paraview/2010-May/017309.html http://www.paraview.org/pipermail/paraview/2009-October/014306.html http://www.paraview.org/pipermail/paraview/2009-April/011945.html Please, tell me if I am doing something wrong in the XML, if I am stupid, if this is a known limitation of ParaView, if I am not sending to the right mailing list, if [put your own proposition]. Thanks for all, and best regards. Jerome PS: you can find the incriminated XML files here: http://github.com/jeromevelut/Peavip . Beware of the Spline Filter, another pending request has been sent. ___ 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] Enabling vtkSplineFilter in ParaView
Hi, I was able to enable the vtkSplineFilter in ParaView-3.7 with the attached ServerManager XML. But with the current 3.9, I am having a segfault after the filter updates. Here is the WinXP32 call stack after the segfault : ntdll.dll!7c91120e() [Les frames ci-dessous sont peut-être incorrects et/ou manquants, aucun symbole chargé pour ntdll.dll] msvcr90d.dll!102d528b() msvcr90d.dll!102d5ef9() msvcr90d.dll!102c103e() msvcr90d.dll!1023d496() msvcr90d.dll!102cff17() msvcr90d.dll!102cff0e() msvcr90d.dll!102cfb2f() msvcr90d.dll!102cfadc() msvcr90d.dll!102db25b() QtCored4.dll!qMalloc(unsigned int size=48) Ligne 55 + 0xa octets C++ QtCored4.dll!QVectorData::allocate(int size=48, int alignment=4) Ligne 67 + 0x28 octets C++ QtGuid4.dll!QVectorQScriptItem::malloc(int aalloc=1696132182) Ligne 391 + 0x23 octets C++ 00e084c8() msvcr90d.dll!1023d496() msvcr90d.dll!102d3261() msvcr90d.dll!102d3258() QtGuid4.dll!QSpanData::adjustSpanMethods() Ligne 5143 + 0xf octets C++ QtGuid4.dll!QSpanData::setup(const QBrush brush={...}, int alpha=1697441976, QPainter::CompositionMode compositionMode=284019584) Ligne 5095 C++ 10edcb80() QtGuid4.dll!blend_color_argb(int count=-1, const QT_FT_Span_ * spans=0x00e08ae8, void * userData=0x10edcb88) Ligne 3082 C++ QtGuid4.dll!qt_span_fill_clipRect(int count=14715600, const QT_FT_Span_ * spans=0x00e10b34, void * userData=0x652d84e8) Ligne 4714 + 0x14 octets C++ 00e08ac8() Note that I also get this segfault in Fedora 12. I certainly missed something in the XML that was not fatal with the previous PV version. Please, could someone take a look at my XML, try it and tell if this is reproducible? Thanks a lot! Jerome ServerManagerConfiguration ProxyGroup name=filters SourceProxy name=SplineFilter class=vtkSplineFilter label=Spline Filter Documentation long_help= short_help= /Documentation InputProperty name=Input command=SetInputConnection ProxyGroupDomain name=groups Group name=sources/ Group name=filters/ /ProxyGroupDomain DataTypeDomain name=input_type DataType value=vtkPolyData/ /DataTypeDomain /InputProperty IntVectorProperty name=Subdivide command=SetSubdivide number_of_elements=1 default_values=1 EnumerationDomain name=enum Entry value=0 text=Specified/ Entry value=1 text=Length/ /EnumerationDomain /IntVectorProperty IntVectorProperty name=NumberOfSubdivisions command=SetNumberOfSubdivisions number_of_elements=1 default_values=5 /IntVectorProperty DoubleVectorProperty name=Length command=SetLength number_of_elements=1 default_values=1 /DoubleVectorProperty /SourceProxy /ProxyGroup /ServerManagerConfiguration ___ 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] Enabling vtkSplineFilter in ParaView
Hi again ! I tried to replace the SplineFilter with a ProgrammableFilter containing the following script : input = self.GetInput() splineFilter = vtk.vtkSplineFilter() splineFilter.SetInput( input ) splineFilter.SetSubdivideToLength() splineFilter.SetLength( 1 ) splineFilter.Update( ) self.GetOutput().DeepCopy(splineFilter.GetOutput()) This way, I am able to get a spline-based resampling. It means that my XML description contains an error, but I cannot find it. Jerome 2010/6/1 Jérôme jerome.ve...@gmail.com: Hi, I was able to enable the vtkSplineFilter in ParaView-3.7 with the attached ServerManager XML. But with the current 3.9, I am having a segfault after the filter updates. Here is the WinXP32 call stack after the segfault : ntdll.dll!7c91120e() [Les frames ci-dessous sont peut-être incorrects et/ou manquants, aucun symbole chargé pour ntdll.dll] msvcr90d.dll!102d528b() msvcr90d.dll!102d5ef9() msvcr90d.dll!102c103e() msvcr90d.dll!1023d496() msvcr90d.dll!102cff17() msvcr90d.dll!102cff0e() msvcr90d.dll!102cfb2f() msvcr90d.dll!102cfadc() msvcr90d.dll!102db25b() QtCored4.dll!qMalloc(unsigned int size=48) Ligne 55 + 0xa octets C++ QtCored4.dll!QVectorData::allocate(int size=48, int alignment=4) Ligne 67 + 0x28 octets C++ QtGuid4.dll!QVectorQScriptItem::malloc(int aalloc=1696132182) Ligne 391 + 0x23 octets C++ 00e084c8() msvcr90d.dll!1023d496() msvcr90d.dll!102d3261() msvcr90d.dll!102d3258() QtGuid4.dll!QSpanData::adjustSpanMethods() Ligne 5143 + 0xf octets C++ QtGuid4.dll!QSpanData::setup(const QBrush brush={...}, int alpha=1697441976, QPainter::CompositionMode compositionMode=284019584) Ligne 5095 C++ 10edcb80() QtGuid4.dll!blend_color_argb(int count=-1, const QT_FT_Span_ * spans=0x00e08ae8, void * userData=0x10edcb88) Ligne 3082 C++ QtGuid4.dll!qt_span_fill_clipRect(int count=14715600, const QT_FT_Span_ * spans=0x00e10b34, void * userData=0x652d84e8) Ligne 4714 + 0x14 octets C++ 00e08ac8() Note that I also get this segfault in Fedora 12. I certainly missed something in the XML that was not fatal with the previous PV version. Please, could someone take a look at my XML, try it and tell if this is reproducible? Thanks a lot! Jerome ___ 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] Problem with loading the.mhd files on ParaView
Hi, I don't have any errors with the RegionGrowing dataset: I loaded it successfully. The Watershed is 300MB, I don't have time to download it... Good luck! Jerome 2010/5/25 Yusuf OEZBEK nasil122...@yahoo.de: Hello, I have saved the segmentation-outputs of two algorithms (itk-watershed and region growing) as. mhd file. Then I wanted to load the .mhd files with Paraview, but I get the following errors. ERROR: In .. \ .. \ .. \ src \ server \ Filters \ vtkTexturePainter.cxx, line 287 vtkTexturePainter (082D23E0): Incorrect dimensionality. and ERROR: In .. \ .. \ .. \ src \ VTK \ IO \ vtkMetaImageReader.cxx, line 105 vtkMetaImageReader (123D7000): Unknown data type: 11 Can someone please tell me what these errors mean. http://www.wopsys.com/Outputs/RegionGrowing.mhd http://www.wopsys.com/Outputs/RegionGrowing.raw http://www.wopsys.com/Outputs/Watershed.mhd http://www.wopsys.com/Outputs/Watershed.raw Thanks ___ 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] Image Padding : extent problem again
Hi, I am back with the strange extent/bounds problem (see other threads...) I want to process FFT-based image convolution in ParaView. Thus I enabled different VTK filters in ParaView so that I can implement the following pipeline : - Read an image and pad it to include - built a kernel (eg. Wavelet source), normalize it to 1 and pad it in order to match the image extent - FFT image and kernel - Multiply the two FFT - R-FFT - Crop It *should* work ! An Insight journal paper has been proposed on this topic. The first thing I had to do was to enable the VTK ImagePadFilter's children (mirror, constant and wrap). You will find the ServerManager XML attached. Problem is that..it doesn't work. Please try this: - First, load the XML through the Manage Plugins in the Tools menu. It will add a Image Padding (Constant) to the filters menu. - Create a wavelet source with default values - Plug the Image Padding (constant) filter to the wavelet source and set the OutputWholeExtent to [-20 20 -20 20 -20 20] Press apply and set the wavelet source to visible: the bounding boxes seem to look good, isn't it? Thus, we expect the Pad filter output extent to be [-20 20 ...]. Now, go to the information tab of the pad filter: extent is [-10 10...], the same as input! Now, set the representation to slice: Cannot volume render since no point (or cell) data available. Now, set the representation to volume: it works, but with input extent. If you set the OutputWholeExtent to [-5 5 ... ], this bug doesn't occur. It is an enlarging-exclusive extent weird behaviour. It means that today, I am not able to: - resample images with finer resolution - build volume with input-independent extent - pad images in ParaView. Please, please, let me know if you can reproduce the problem. If so, I will (re)submit a bug on Mantis. Let me know also if this is a builtin limitation of ParaView (because of Parallel Visualisation or something) and I will stop annoying you with that. Thanks a lot Jerome ServerManagerConfiguration ProxyGroup name=filters SourceProxy name=ImageConstantPad class=vtkImageConstantPad label=Image Padding (Constant) Documentation long_help= short_help= /Documentation InputProperty name=Input command=SetInputConnection ProxyGroupDomain name=groups Group name=sources/ Group name=filters/ /ProxyGroupDomain DataTypeDomain name=input_type DataType value=vtkDataSet/ /DataTypeDomain /InputProperty IntVectorProperty name=OutputWholeExtent label=OutputWholeExtent command=SetOutputWholeExtent number_of_elements=6 default_values=0 1 0 1 0 1 Documentation Choose the component to extract. /Documentation /IntVectorProperty DoubleVectorProperty name=Constant label=Constant command=SetConstant number_of_elements=1 animateable=1 default_values=0 Documentation Choose the components to extract. /Documentation /DoubleVectorProperty IntVectorProperty name=ReleaseDataFlag command=SetReleaseDataFlag number_of_elements=1 default_values=0 animateable=0 BooleanDomain name=boolean/ Documentation /Documentation /IntVectorProperty /SourceProxy /ProxyGroup /ServerManagerConfiguration ___ 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] Image Resample: Extent bug
Hi, I am back with this extent bug. Reminder: a filter that produces output with larger extent than input has a weird behaviour. I attached a ServerManager XML that describes the vtkImageResample filter. With this filter, you can choose an output spacing smaller than the input, inducing an oversampling of the input image. You can load it in ParaView as a Plugin. In ParaView, this simple pipeline will reproduce what I call here a bug (however, I hope that someone will tell me that my XML is s bad): builtin | Wavelet1 (Menu Sources - Wavelet) | ImageResample1 (Menu Filters - Image Resample ) - Wavelet is set to default values - Set, in ImageResample, the AxisOutputSpacing property to: 0.5 0.5 0.5 - Apply Now, take a look at the Information tabs: - Wavelet1 has an extent of [ -10,10 , -10,10 , -10,10 ] and same bounds. Normal, spacing is 1 - ImageResample extent ought to be [ -20,20 , -20,20 , -20,20 ] with bounds [ -10,10 , -10,10 , -10,10 ]. But it is not! Extent is unchanged, but the new spacing has been takn into account as the bounds are now [ -5,5 , ...]. My conclusion is that ParaView prevents the output extent to be greater than the input one (to be convinced, change the AxisOutputSpacing to 2: everything work well). Weird additional things: the outline representation is aligned to the input bounding box (good point: it has to be). But setting representation to slice or volume throw an error or show the slice with wrong extent/bounds. I hope that someone will tackle this problem: I thing it is not so rare to have output extent greater than input extent (oversampling, curved planar reformation, ...) see also: http://www.paraview.org/pipermail/paraview/2009-October/014306.html Thanks a lot Jerome ServerManagerConfiguration ProxyGroup name=filters SourceProxy name=ImageResample class=vtkImageResample label=Image Resample Documentation long_help= short_help= /Documentation InputProperty name=Input command=SetInputConnection ProxyGroupDomain name=groups Group name=sources/ Group name=filters/ /ProxyGroupDomain DataTypeDomain name=input_type DataType value=vtkImageData/ /DataTypeDomain /InputProperty DoubleVectorProperty name=AxisOutputSpacing label=AxisOutputSpacing command=SetAxisOutputSpacing number_of_elements=3 number_of_elements_per_command=1 use_index=1 repeat_command=1 animateable=1 default_values=1 1 1 Documentation Choose the component to extract. /Documentation /DoubleVectorProperty DoubleVectorProperty name=AxisMagnificationFactor label=AxisMagnificationFactor command=SetAxisMagnificationFactor number_of_elements=3 number_of_elements_per_command=1 use_index=1 repeat_command=1 animateable=1 default_values=1 1 1 Documentation Choose the components to extract. /Documentation /DoubleVectorProperty IntVectorProperty name=InterpolationMode command=SetInterpolationMode number_of_elements=1 default_values=2 animateable=0 EnumerationDomain name=enum Entry value=0 text=NearestNeighbor/ Entry value=1 text=Linear/ Entry value=2 text=Cubic/ /EnumerationDomain Documentation /Documentation /IntVectorProperty IntVectorProperty name=Interpolate command=SetInterpolate number_of_elements=1 default_values=1 animateable=0 BooleanDomain name=boolean/ Documentation /Documentation /IntVectorProperty IntVectorProperty name=ReleaseDataFlag command=SetReleaseDataFlag number_of_elements=1 default_values=0 animateable=0 BooleanDomain name=boolean/ Documentation /Documentation /IntVectorProperty
[Paraview] Pointless bug: Background colour resets to default
Hi, I submitted a tiny bug few weeks ago: http://public.kitware.com/Bug/view.php?id=10445 I wonder if someone could reproduce it. I do with WinXP and Linux Fedora, git development version. Thanks a lot Jerome ___ 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] arguments
Hi ! I'm new two ParaView and I have one question : I would like to launch a script shell directly from a button (whitout opening the script shell). So I have implemented a plugin which adds a new menu (*), and hence I can launch a python script using pqPythonManager and runScript() from pqPythonDialog. But I would like to launch a script with command line options. do you know if it is possible ? And if it is, how to do this ? I use version 3.8.0-RC1 of ParaView. thanks ! Jérôme (*) my goal is to add a new GUI where the user can enter some informations, and launching a python script using these informations. attachment: jerome_plumecoq.vcf___ 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] arguments
Yes, indeed, I want to pass arguments to the python script, not run a script when launching paraview. Le 06/05/2010 15:38, pat marion a crit: To pass command options to the script, then you could set your arguments in sys.argv before calling the script. import sys sys.argv = ['script.py', 'arg1', 'arg2'] execfile('script.py') Pat ok, but I would like to do it in C++ (with the pqPythonDialog's method runScript(scripts), where scripts is a list (in fact, only one) of python scripts... Jrme On Thu, May 6, 2010 at 9:36 AM, Eric E. Monson emon...@cs.duke.edu wrote: I think he meant that he wants to pass arguments to the script when he launches it (the script), not run a script when he launches paraview from the command line. -Eric On May 6, 2010, at 9:32 AM, Utkarsh Ayachit wrote: You can use the --script option. --script=opt Set a python script to be evaluated on startup. e.g. ./paraview --script=/tmp/foo.py Utkarsh 2010/5/6 Jrme Plumecoq jerome.plume...@c-s.fr: Hi ! I'm new two ParaView and I have one question : I would like to launch a script shell directly from a button (whitout opening the script shell). So I have implemented a plugin which adds a new menu (*), and hence I can launch a python script using pqPythonManager and runScript() from pqPythonDialog. But I would like to launch a script with command line options. do you know if it is possible ? And if it is, how to do this ? I use version 3.8.0-RC1 of ParaView. thanks ! Jrme (*) my goal is to add a new GUI where the user can enter some informations, and launching a python script using these informations. ___ 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 ___ 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 attachment: jerome_plumecoq.vcf___ 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] arguments
Le 06/05/2010 16:01, Eric E. Monson a crit: Hey Jrme, I don't know if this will be helpful to you, but I wrote a plugin (a long time ago, using an older API) that added a toolbar button which popped up a dialog and then ran a python script. Yes it's exactly what I would like to do (except that it is from the menu, but it's the same idea). The solution I used was to do a search-and-replace on the python script string to put values returned from the dialog directly into the python script before running it. You mean that you modify directly the python script from C++ code before running it ? So it is not possible to pass directly arguments to the python script ? If it is not possible, it would be indeed a solution. Another one would to create a temporary file which contains the arguments (in C++ code), and then read this file from the python script (I think it must be easier than modify directly the python script...) Thank you for your answers. Jrme attachment: jerome_plumecoq.vcf___ 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] arguments
It works fine ! :-) Thank you very much ! Jrme Le 06/05/2010 16:09, pat marion a crit: Use pqPythonDialog::runString(const QString script). Calling pqPythonDialog::runString("execfile('script.py')") is the same as calling pqPythonDialog::runScript(QStringList("script.py")). Pat 2010/5/6 Jrme Plumecoq jerome.plume...@c-s.fr Yes, indeed, I want to pass arguments to the python script, not run a script when launching paraview. Le 06/05/2010 15:38, pat marion a crit: To pass command options to the script, then you could set your arguments in sys.argv before calling the script. import sys sys.argv = ['script.py', 'arg1', 'arg2'] execfile('script.py') Pat ok, but I would like to do it in C++ (with the pqPythonDialog's method runScript(scripts), where scripts is a list (in fact, only one) of python scripts... Jrme On Thu, May 6, 2010 at 9:36 AM, Eric E. Monson emon...@cs.duke.edu wrote: I think he meant that he wants to pass arguments to the script when he launches it (the script), not run a script when he launches paraview from the command line. -Eric On May 6, 2010, at 9:32 AM, Utkarsh Ayachit wrote: You can use the --script option. --script=opt Set a python script to be evaluated on startup. e.g. ./paraview --script=/tmp/foo.py Utkarsh 2010/5/6 Jrme Plumecoq jerome.plume...@c-s.fr: Hi ! I'm new two ParaView and I have one question : I would like to launch a script shell directly from a button (whitout opening the script shell). So I have implemented a plugin which adds a new menu (*), and hence I can launch a python script using pqPythonManager and runScript() from pqPythonDialog. But I would like to launch a script with command line options. do you know if it is possible ? And if it is, how to do this ? I use version 3.8.0-RC1 of ParaView. thanks ! Jrme (*) my goal is to add a new GUI where the user can enter some informations, and launching a python script using these informations. ___ 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 ___ 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 ___ 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 attachment: jerome_plumecoq.vcf___ 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] Add values from 2 files and number of points in a Slice
Hi, 2010/5/5 |Phi phi...@gmail.com: Hi everyone, I am trying to add scalar values from two different .vtk files with the same geometry: I have two files giving me the potential in each node and I would like to add these potentials. I was trying to use the calculator, but I can just manage to treat each file at a time. Any ideas? The calculator should work if you previously append the two dataset with Append Attributes. Another thing I was wondering if it could be done is increasing the number of points in the spreadsheet View when we make a Slice. I am trying to get some points on a circle and so I perform two slices of my volume: first a spherical slice and then a planar slice, but when I try to see it in the Spreadsheet View (so that I can export the points) only get 50 points. This is not enough for a plot I pretend to do and so I would like to increase the resolution. For example having a sphere with with more points when I do the slice. From what you described, I imagine that your final circle is an Unstructured Grid. I don't know resampling filters for such data in VTK/ParaView. One solution could be to resample your input volume, and then perform the sphere/plane slicing. Take a look at VTK's vtkImageResample and how to enable a native VTK filter in ParaView: if you get it working, please tell me! I had a weird bounded extent when performing oversampling. (see http://www.paraview.org/pipermail/paraview/2009-March/011334.html) Jerome Thanks, best regards, Nuno ___ 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] Optional input and Change input behaviour
Hi, I wrote a filter with 3 inputs, one being optional. The first time I update the filter, if I don't set any input to the optional one, all is ok. Then I Change input from the pipeline browser, set an input to the optional one. All is ok as well. Problem is: I want my optional input back to no input. How can I do that from the Change input panel? Thanks! Jérôme ___ 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] ProxyProperty and homonyms
You are right! I thought that the command field was guilty (they are the homonyms), but they were not. I simply changed the property name in my new filter, so that I don't have to rewrite XML for existing proxies. Thanks a lot David! Jerome 2010/4/13 David E DeMarle dave.dema...@kitware.com In vtkSMProxyProperty::ReadXMLAttributes() (and it's parent classes), I do not see any attribute similar to Exposed or Shared in the XML parser. You might be able to work around it by making new proxies for SmoothPolyDataFilter, and then changing the name of the property in your version. hth, David E DeMarle Kitware, Inc. RD Engineer 28 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-371-3971 x109 On Tue, Apr 13, 2010 at 3:43 AM, Jérôme jerome.ve...@gmail.com wrote: I found this thread, really interesting: http://www.paraview.org/pipermail/paraview/2008-December/010414.html In my case, do I have to use SubProxy and play with ExposedProperties, ShareProperties and Except rather than propxyProperty? Or maybe there as similar mechanism (Exposed, except,...) in ProxyProperty? Best regards, Jerome 2010/4/11 Jérôme jerome.ve...@gmail.com Hi, One of my filters has a member that is a vtkPolyDataAlgorithm. The user has to set it to a specific smoothing filter, eg. vtkPolyDataSmoothingFilter. The member is called RegularizationFilter in my VTK class. Thus the ServerManager XML contains the following property: ProxyProperty name=RegularizationFilter command=SetRegularizationFilter ProxyListDomain name=proxy_list Proxy group=filters name=SmoothPolyDataFilter/ /ProxyListDomain /ProxyProperty In ParaView, I can get the filter working, with a combobox proposing the Smooth filter and its properties in a frame below. Problem is that Smooth has a NumberOfIterations property, and my filter has too! When I change the NumberOfIterations in the smooth filter, the homonym changes as well... How can I set both NumberOfIterations independent? Thanks for your suggestions! Please find attached the XML describing my filter. Best regards, Jerome ___ 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] ProxyProperty and homonyms
I found this thread, really interesting: http://www.paraview.org/pipermail/paraview/2008-December/010414.html In my case, do I have to use SubProxy and play with ExposedProperties, ShareProperties and Except rather than propxyProperty? Or maybe there as similar mechanism (Exposed, except,...) in ProxyProperty? Best regards, Jerome 2010/4/11 Jérôme jerome.ve...@gmail.com Hi, One of my filters has a member that is a vtkPolyDataAlgorithm. The user has to set it to a specific smoothing filter, eg. vtkPolyDataSmoothingFilter. The member is called RegularizationFilter in my VTK class. Thus the ServerManager XML contains the following property: ProxyProperty name=RegularizationFilter command=SetRegularizationFilter ProxyListDomain name=proxy_list Proxy group=filters name=SmoothPolyDataFilter/ /ProxyListDomain /ProxyProperty In ParaView, I can get the filter working, with a combobox proposing the Smooth filter and its properties in a frame below. Problem is that Smooth has a NumberOfIterations property, and my filter has too! When I change the NumberOfIterations in the smooth filter, the homonym changes as well... How can I set both NumberOfIterations independent? Thanks for your suggestions! Please find attached the XML describing my filter. Best regards, Jerome ___ 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] ProxyProperty and homonyms
Hi, One of my filters has a member that is a vtkPolyDataAlgorithm. The user has to set it to a specific smoothing filter, eg. vtkPolyDataSmoothingFilter. The member is called RegularizationFilter in my VTK class. Thus the ServerManager XML contains the following property: ProxyProperty name=RegularizationFilter command=SetRegularizationFilter ProxyListDomain name=proxy_list Proxy group=filters name=SmoothPolyDataFilter/ /ProxyListDomain /ProxyProperty In ParaView, I can get the filter working, with a combobox proposing the Smooth filter and its properties in a frame below. Problem is that Smooth has a NumberOfIterations property, and my filter has too! When I change the NumberOfIterations in the smooth filter, the homonym changes as well... How can I set both NumberOfIterations independent? Thanks for your suggestions! Please find attached the XML describing my filter. Best regards, Jerome !-- Copyright (c) 2010, Jérôme Velut All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT OWNER ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- ServerManagerConfiguration ProxyGroup name=filters !-- -- SourceProxy name=RegularizedDeformableMesh class=vtkRegularizedDeformableMesh label=Regularized Deformable Mesh Documentation long_help= short_help= /Documentation InputProperty name=InputMesh command=SetInputConnection ProxyGroupDomain name=groups Group name=sources/ Group name=filters/ /ProxyGroupDomain DataTypeDomain name=input_type DataType value=vtkPolyData/ /DataTypeDomain /InputProperty InputProperty name=Image command=SetInputConnection port_index=1 ProxyGroupDomain name=groups Group name=sources/ Group name=filters/ /ProxyGroupDomain DataTypeDomain name=input_type DataType value=vtkImageData/ /DataTypeDomain /InputProperty ProxyProperty name=RegularizationFilter command=SetRegularizationFilter ProxyListDomain name=proxy_list Proxy group=filters name=SmoothPolyDataFilter/ /ProxyListDomain /ProxyProperty IntVectorProperty name=IterateFromZero command=SetIterateFromZero number_of_elements=1 default_values=1 BooleanDomain name=boolean/ /IntVectorProperty IntVectorProperty name=NumberOfIterations command=SetNumberOfIterations number_of_elements=1 default_values=1 IntRangeDomain name=range min=0/ /IntVectorProperty DoubleVectorProperty name=ScaleFactor command=SetScaleFactor number_of_elements=1 default_values=1 /DoubleVectorProperty /SourceProxy !-- End RegularizedDeformableMesh -- /ProxyGroup !-- End Filter Group -- /ServerManagerConfiguration ___ 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
Re: [Paraview] Press Apply Button from Toolbar
OK, let's go further on my investigations : I found that pqObjectInspectorWidget is responsible of emitting the 'accept' signal and implements also the 'onaccept' slot. The latter seems to do what I want! But I didn't find, for now, how to get an instance of the pqObjectInspectorWidget. Work and see... Jerome 2010/3/20 Jérôme jerome.ve...@gmail.com Hi, I dig out this old thread when searching how to Update the pipeline from code. In my case, I don't want an auto-apply behaviour. But as soon as a special interaction occurs, I want the whole pipeline to update. I tried different things I though suitable, but it was not: - renderAllViews( true ) from a newly object-builder-created pqPipelineSource - UpdatePipeline from the same proxy - Render from the underlying vtkRenderWindowInteractor I didn't find in the code what the click-apply-button signal actually does. What I want is to embed in a single clck on a image the following interaction steps: 1) add a PointSource to the server 2) set the position in the image 3) click the Apply button The first 2 steps are OK. Still remain the 3rd, which I have to do by hand. Reminder: I am *very* lazy! Thanks for your suggestions Jerome 2009/2/3 Michael Geppert michaelgepp...@gmx.net Hi David, thanks, I haven't tried the Auto Accept yet, I'm going to try it as soon as possible... It is still a workaround, is there any other possibility? Best regards, Michael David E DeMarle schrieb: Does the Auto Accept toggle work for you? It is under Options-General On Mon, Feb 2, 2009 at 10:40 AM, Michael Geppert michaelgepp...@gmx.net wrote: Hi everyone, I wrote a toolbar plugin with a copy paste function for filter pipelines. My toolbar button just copies the selected part of the pipeline to the selected source. Now I would like my filter to auto-press the apply button of every newly-created filter, is this possible somehow? Thanks! Michael Geppert ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview ___ ParaView mailing list ParaView@paraview.org 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] Press Apply Button from Toolbar
Finally, I got it. I had to use UpdateSelfAndAllInputs( ) from the vtkSMProxy, then set a representation of that proxy to visible (create one if necessary), then call render() on the application core instance and finally set the modified state of the underlying pqPipelineSource to UNMODIFIED (that switch off the Apply button). Well, sorry for that soliloquy. 'Hope it will help someone other than me! Jerome 2010/3/21 Jérôme jerome.ve...@gmail.com OK, let's go further on my investigations : I found that pqObjectInspectorWidget is responsible of emitting the 'accept' signal and implements also the 'onaccept' slot. The latter seems to do what I want! But I didn't find, for now, how to get an instance of the pqObjectInspectorWidget. Work and see... Jerome 2010/3/20 Jérôme jerome.ve...@gmail.com Hi, I dig out this old thread when searching how to Update the pipeline from code. In my case, I don't want an auto-apply behaviour. But as soon as a special interaction occurs, I want the whole pipeline to update. I tried different things I though suitable, but it was not: - renderAllViews( true ) from a newly object-builder-created pqPipelineSource - UpdatePipeline from the same proxy - Render from the underlying vtkRenderWindowInteractor I didn't find in the code what the click-apply-button signal actually does. What I want is to embed in a single clck on a image the following interaction steps: 1) add a PointSource to the server 2) set the position in the image 3) click the Apply button The first 2 steps are OK. Still remain the 3rd, which I have to do by hand. Reminder: I am *very* lazy! Thanks for your suggestions Jerome 2009/2/3 Michael Geppert michaelgepp...@gmx.net Hi David, thanks, I haven't tried the Auto Accept yet, I'm going to try it as soon as possible... It is still a workaround, is there any other possibility? Best regards, Michael David E DeMarle schrieb: Does the Auto Accept toggle work for you? It is under Options-General On Mon, Feb 2, 2009 at 10:40 AM, Michael Geppert michaelgepp...@gmx.net wrote: Hi everyone, I wrote a toolbar plugin with a copy paste function for filter pipelines. My toolbar button just copies the selected part of the pipeline to the selected source. Now I would like my filter to auto-press the apply button of every newly-created filter, is this possible somehow? Thanks! Michael Geppert ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview ___ ParaView mailing list ParaView@paraview.org 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] Press Apply Button from Toolbar
Hi, I dig out this old thread when searching how to Update the pipeline from code. In my case, I don't want an auto-apply behaviour. But as soon as a special interaction occurs, I want the whole pipeline to update. I tried different things I though suitable, but it was not: - renderAllViews( true ) from a newly object-builder-created pqPipelineSource - UpdatePipeline from the same proxy - Render from the underlying vtkRenderWindowInteractor I didn't find in the code what the click-apply-button signal actually does. What I want is to embed in a single clck on a image the following interaction steps: 1) add a PointSource to the server 2) set the position in the image 3) click the Apply button The first 2 steps are OK. Still remain the 3rd, which I have to do by hand. Reminder: I am *very* lazy! Thanks for your suggestions Jerome 2009/2/3 Michael Geppert michaelgepp...@gmx.net Hi David, thanks, I haven't tried the Auto Accept yet, I'm going to try it as soon as possible... It is still a workaround, is there any other possibility? Best regards, Michael David E DeMarle schrieb: Does the Auto Accept toggle work for you? It is under Options-General On Mon, Feb 2, 2009 at 10:40 AM, Michael Geppert michaelgepp...@gmx.net wrote: Hi everyone, I wrote a toolbar plugin with a copy paste function for filter pipelines. My toolbar button just copies the selected part of the pipeline to the selected source. Now I would like my filter to auto-press the apply button of every newly-created filter, is this possible somehow? Thanks! Michael Geppert ___ ParaView mailing list ParaView@paraview.org http://www.paraview.org/mailman/listinfo/paraview ___ ParaView mailing list ParaView@paraview.org 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] Input Editor - Cramped Input Port Selection
Thanks Utkarsh I like it ! However - let me know if I am boring ;) -, for multiple inputs on one port (such as AppendGeometry), it would be nice if the current inputs are already selected when choosing Change Input in the pipeline browser. Lazy men (yes, I am) don't want to reselect them... Anyway, that's good ! Jerome 2010/3/17 Utkarsh Ayachit utkarsh.ayac...@kitware.com Folks, I've committed some changes. A slight change from the mockup is the placement of the radio buttons, since the buttons on the top seemed disconnected from the pipeline view when more than 1 input ports were present. Also, if there's only 1 input port, the radio buttons are now hidden. Jeremy, I think I understood what you meant, and I've tried to address that issue as well. Feel free to give that a try. Utkarsh On Tue, Mar 16, 2010 at 12:08 PM, Jérôme jerome.ve...@gmail.com wrote: Then I was right : I was not clear enough! First, I talked about the current panel, not your mockup. I agree with those who enthousiastic. Second, the problem I noted on the multiple-input-port panel is that the input are not ordered by index, but by name. Changing Source to ArbirtraySource in the filters.xml for streamer with custom source will change the order the inputs appear. Well, I know, if the name are well-chosen, it is not a problem. Now, let's take this pipeline: builtin | |---Wavelet || |Gradient | | --- PointSource If you want to initialize a stream tracer in the Gradient at each point of PointSource, you have to select Gradient, then choose filter - Stream tracer with custom source. The inputs panel is shown, with the Input field being already set to the selected 'Gradient'. What you have to do is to set the Source to PointSource from the pipeline. Well... Attached is a screenshot of this procedure, but Source is named ArbitrarySource. The Gradient is set as ArbitrarySource, and Input field is not set. I hope I am clearer now! Jerome 2010/3/16 Utkarsh Ayachit utkarsh.ayac...@kitware.com I am not sure why there's a problem. In your case, your filters have 2 input ports. e.g. in the stream tracer case, referring to the mockup, INPUT1 will be called Input while INPUT2 will be called ArbitrarySource or Source as the case may be. Both of which allowing the user to only add 1 item in the input box next to them. Utkarsh On Tue, Mar 16, 2010 at 4:23 AM, Jérôme jerome.ve...@gmail.com wrote: My 2 cents on this : It seems to me that the input list is provided in alphabetical order. In my case I have a lot of custom plugins that take 2 inputs, one being vtkImageData and the other a vtkPolyData (such a stream tracer with custom source). Depending on wich is the 'principal' input, the default input setting of this panel have non-corresponding type. For instance, the Image input is set to an existing PointSet. I don't know if I am clear enough, but maybe you can try with the stream tracer with custom source: in the current configuration, there is no problem. But I am quite sure that if you rename the 2nd input Source to ArbitrarySource in the filters.xml, you will understand this tiny problem. Jerome 2010/3/16 Christian Werner christian.wer...@rwth-aachen.de I vote yes for the mockup! Utkarsh Ayachit wrote: I agree, the pipeline preview is confusing and for the most part useless. Unless people object, I'd vote for removing it as well. Attached is a sample mockup. In case of filters like Append which have single input port, but multiple input connections, the use can type in a comma separated list of the inputs in the input field or select multiple items using the pipeline browser in the dialog. Utkarsh On Mon, Mar 15, 2010 at 11:22 AM, Christian Werner christian.wer...@rwth-aachen.de wrote: As a user, may I present three suggestions, two of which should be very easy and still yield an improvement. 1) remove the Pipeline Preview: This may be rude because it's somehow nice. But then again, you cannot change what happens to the pipeline anyway. Also, I don't think one would change his mind about the selection of the inputs just because the Pipeline Preview shows something unsuspected. Most of the time the user knows what he is doing and wants to quickly and easily select his inputs. The actual layout works against this intend. The Pipeline Preview can be included again once a nice layout is found. 2) hide the Pipeline Preview and make it visible if the user wants to 3) change the layout such that the inputs are shown on top and let QT manage the form's height. You normally don't use so many inputs, so this most probably would never lead to problems. Best regards, Christian Paul
Re: [Paraview] Input Editor - Cramped Input Port Selection
My 2 cents on this : It seems to me that the input list is provided in alphabetical order. In my case I have a lot of custom plugins that take 2 inputs, one being vtkImageData and the other a vtkPolyData (such a stream tracer with custom source). Depending on wich is the 'principal' input, the default input setting of this panel have non-corresponding type. For instance, the Image input is set to an existing PointSet. I don't know if I am clear enough, but maybe you can try with the stream tracer with custom source: in the current configuration, there is no problem. But I am quite sure that if you rename the 2nd input Source to ArbitrarySource in the filters.xml, you will understand this tiny problem. Jerome 2010/3/16 Christian Werner christian.wer...@rwth-aachen.de I vote yes for the mockup! Utkarsh Ayachit wrote: I agree, the pipeline preview is confusing and for the most part useless. Unless people object, I'd vote for removing it as well. Attached is a sample mockup. In case of filters like Append which have single input port, but multiple input connections, the use can type in a comma separated list of the inputs in the input field or select multiple items using the pipeline browser in the dialog. Utkarsh On Mon, Mar 15, 2010 at 11:22 AM, Christian Werner christian.wer...@rwth-aachen.de wrote: As a user, may I present three suggestions, two of which should be very easy and still yield an improvement. 1) remove the Pipeline Preview: This may be rude because it's somehow nice. But then again, you cannot change what happens to the pipeline anyway. Also, I don't think one would change his mind about the selection of the inputs just because the Pipeline Preview shows something unsuspected. Most of the time the user knows what he is doing and wants to quickly and easily select his inputs. The actual layout works against this intend. The Pipeline Preview can be included again once a nice layout is found. 2) hide the Pipeline Preview and make it visible if the user wants to 3) change the layout such that the inputs are shown on top and let QT manage the form's height. You normally don't use so many inputs, so this most probably would never lead to problems. Best regards, Christian Paul Edwards wrote: One simple fix would be to make sure that the preview window isn't selectable. A lot of my users get confused thinking one box is for the input and the other as the source. Regards, Paul On 12 March 2010 19:10, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: I cannot agree more. I am going to take a stab and fixing this before 3.8. We've just had too many complaints about this dialog to keep on delaying this. Utkarsh On Fri, Mar 12, 2010 at 2:00 PM, Christian Werner christian.wer...@rwth-aachen.de wrote: Hello! I wonder why the input port selection is so cramped in the input editor. It is really bad that you cannot actually read out the selections you make without moving the scrollbar. Then, after scrolling, you cannot change the other input without scrolling back. This really steals your time. On the other hand there is that pipeline preview which is nice to see but honestly I'd instantly trade it away for a better overview on my inputs. I have attached a picture that shows the situation on my PC. By the way, doesn't anyone have any idea about my last issue? (no cell/point data in imported ITK volumes): Create Cell or Point Data out of Image Best regards, Christian ___ 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 ___ 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
Re: [Paraview] Input Editor - Cramped Input Port Selection
Then I was right : I was not clear enough! First, I talked about the current panel, not your mockup. I agree with those who enthousiastic. Second, the problem I noted on the multiple-input-port panel is that the input are not ordered by index, but by name. Changing Source to ArbirtraySource in the filters.xml for streamer with custom source will change the order the inputs appear. Well, I know, if the name are well-chosen, it is not a problem. Now, let's take this pipeline: builtin | |---Wavelet || |Gradient | | --- PointSource If you want to initialize a stream tracer in the Gradient at each point of PointSource, you have to select Gradient, then choose filter - Stream tracer with custom source. The inputs panel is shown, with the Input field being already set to the selected 'Gradient'. What you have to do is to set the Source to PointSource from the pipeline. Well... Attached is a screenshot of this procedure, but Source is named ArbitrarySource. The Gradient is set as ArbitrarySource, and Input field is not set. I hope I am clearer now! Jerome 2010/3/16 Utkarsh Ayachit utkarsh.ayac...@kitware.com I am not sure why there's a problem. In your case, your filters have 2 input ports. e.g. in the stream tracer case, referring to the mockup, INPUT1 will be called Input while INPUT2 will be called ArbitrarySource or Source as the case may be. Both of which allowing the user to only add 1 item in the input box next to them. Utkarsh On Tue, Mar 16, 2010 at 4:23 AM, Jérôme jerome.ve...@gmail.com wrote: My 2 cents on this : It seems to me that the input list is provided in alphabetical order. In my case I have a lot of custom plugins that take 2 inputs, one being vtkImageData and the other a vtkPolyData (such a stream tracer with custom source). Depending on wich is the 'principal' input, the default input setting of this panel have non-corresponding type. For instance, the Image input is set to an existing PointSet. I don't know if I am clear enough, but maybe you can try with the stream tracer with custom source: in the current configuration, there is no problem. But I am quite sure that if you rename the 2nd input Source to ArbitrarySource in the filters.xml, you will understand this tiny problem. Jerome 2010/3/16 Christian Werner christian.wer...@rwth-aachen.de I vote yes for the mockup! Utkarsh Ayachit wrote: I agree, the pipeline preview is confusing and for the most part useless. Unless people object, I'd vote for removing it as well. Attached is a sample mockup. In case of filters like Append which have single input port, but multiple input connections, the use can type in a comma separated list of the inputs in the input field or select multiple items using the pipeline browser in the dialog. Utkarsh On Mon, Mar 15, 2010 at 11:22 AM, Christian Werner christian.wer...@rwth-aachen.de wrote: As a user, may I present three suggestions, two of which should be very easy and still yield an improvement. 1) remove the Pipeline Preview: This may be rude because it's somehow nice. But then again, you cannot change what happens to the pipeline anyway. Also, I don't think one would change his mind about the selection of the inputs just because the Pipeline Preview shows something unsuspected. Most of the time the user knows what he is doing and wants to quickly and easily select his inputs. The actual layout works against this intend. The Pipeline Preview can be included again once a nice layout is found. 2) hide the Pipeline Preview and make it visible if the user wants to 3) change the layout such that the inputs are shown on top and let QT manage the form's height. You normally don't use so many inputs, so this most probably would never lead to problems. Best regards, Christian Paul Edwards wrote: One simple fix would be to make sure that the preview window isn't selectable. A lot of my users get confused thinking one box is for the input and the other as the source. Regards, Paul On 12 March 2010 19:10, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: I cannot agree more. I am going to take a stab and fixing this before 3.8. We've just had too many complaints about this dialog to keep on delaying this. Utkarsh On Fri, Mar 12, 2010 at 2:00 PM, Christian Werner christian.wer...@rwth-aachen.de wrote: Hello! I wonder why the input port selection is so cramped in the input editor. It is really bad that you cannot actually read out the selections you make without moving the scrollbar. Then, after scrolling, you cannot change the other input without scrolling back. This really steals your time. On the other hand there is that pipeline preview which is nice to see but honestly I'd instantly trade it away for a better overview on my inputs. I
Re: [Paraview] Call plugin filter from custom toolbar
Hi, here is a code-snippet I used to add a custom source to the pipeline browser: # // The objectBuilder make the view factory available pqObjectBuilder* builder = pqApplicationCore::instance()-getObjectBuilder(); // The server manager model is used for getting the server to plug the source in. pqServerManagerModel* smm = pqApplicationCore::instance()-getServerManagerModel(); QListpqServer* serversList = smm-findItemspqServer*( ); // I use it only on a stand-alone paraview. So I just check the validity of the // built-in server, that serverList.count() != 0 and serverList[0] is the built-in server // It has to be adapted for client/server systems. if( serversList.count() != 0 ) { pqPipelineSource* pipelineSource = 0; pipelineSource = builder-createSource( sources, MyCustomSource, serversList[0] ); } # If your filter is selectable from the menu, it means that you have a valid XML description: the builder will do the right job. Just adapt it for a filter rather than a source. HTH Jerome 2010/3/7 Christian Werner christian.wer...@rwth-aachen.de Hello! I have written some plugins for paraview and would like to make them accessible in a seperate toolbar. Looking around how this might work I found a nice example that showed how to gerenate a new custom toolbar. ( /Examples/Plugins/GUIToolBar ) There I find a function that triggers some action: void MyToolBarActions::onAction() { QMessageBox::information(NULL, MyAction, MyAction was invoked\n); } How can I change this such that on of my plugins, say vtkMyFilter, is executed? Up until now I have to browse the alphabetic listing for this. I am using ParaView 3.6 by the way. Best regards, Christian ___ 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] [vtkusers] GPU based volume rendering in ParaView
Hi, I ran into the empty not supported extensions list, with linux/ATI/Mesa. By reading, I found that the problem is not due to extensions, but due to: if(strstr(gl_vendor,ATI)!=0) { this-LoadExtensionsSucceeded=0; return; } and if(strstr(gl_version,Mesa)!=0) { this-LoadExtensionsSucceeded=0; return; } (Code from ParaView3/VTK/VolumeRendering/vtkOpenGLGPUVolumeRayCastMapper.cxx) My feeling is that GPU raycast mapping is impossible with ATI card. My question is: Am I wrong? If there is any, what should I do to enable GPU rendering on ATI? Thanks a lot! Jerome (ps: I tried with an NVidia quadro and... wow! Thanks!) 2010/3/2 Wagner Sales wsa...@gmail.com Hi all, Sorry by ask this same question twice times. I know about Mac issues. But I'm starting in parallel volume rendering playground, and I really don't know how to take ( if possible ) advantages from GPU volume rendering in a parallel environment. May be my knowledge aren't the sufficient to know this by myself. Are advantages on this field? For example, can we render a large dataset in multiple machines using the GPU power instead the current approaches, that's relies ( at least I know ) on the CPUs? And, if possible, are some SLI support too? Best regards, Wagner 2010/3/1 Eric E. Monson emon...@cs.duke.edu: Hey all, Thanks for the feedback. Yup, I can get it to error out just as you said! :) I guess I'd seen something about this on the list regarding VTKEdge, but hadn't remembered. Please let us all know, though, if a solution pops up. Talk to you later, -Eric On Mar 1, 2010, at 1:54 PM, Francois Bertel wrote: Hello, The GPU Rast Mapper does not work on Mac so it is skipped to avoid bad behavior. It is skipped because: 1. on Snow Leopard with an nVidia card, the GPU Ray Cast mapper triggers a bug in the OpenGL driver (that we cannot locate precisely enough) and the driver will exit the application with: (0) : fatal error C: Nested functions, aborting! or: (0) : fatal error C: *** exception during compilation *** Cg compiler terminated due to fatal error 2. On Leopard, a user reported a corrupted image. If you are adventurous, and see what happen for your specific configuration, you can comment out the lines in VTK/VolumeRendering/vtkOpenGLGPUVolumeRayCastMapper.cxx that skip the Macs: // It does not work on Apple OS X Snow Leopard with nVidia. // There is a bug in the OpenGL driver with an error in the // Cg compiler about an infinite loop. #ifdef __APPLE__ this-LoadExtensionsSucceeded=0; return; #endif Regards On Mon, Mar 1, 2010 at 1:05 PM, Aashish Chaudhary aashish.chaudh...@kitware.com wrote: Eric, Yes you do need to have certain extensions. Now the mapper I have not written myself and hence I am forwarding this email to vtk users list. I hope that the original author would respond to it. I will see if we can produce a better message which could list the missing extensions. Thanks for testing it out. ~Regards, Aashish On Mon, Mar 1, 2010 at 12:56 PM, Eric E. Monson emon...@cs.duke.edu wrote: Hey Aashish, I've been having trouble with it, too, on my Mac (OS X 10.6.2, PV compiled serial x86_64 arch updated from CVS and rebuilt today, CMake 2.9.20100113). Are there any special hardware requirements, then? I can see the GPU Volume Mapper option, but when I switch over to that from the Fixed point mapper I get this error: ERROR: In /Users/emonson/Programming/ParaView_cvs/ParaView3/VTK/VolumeRendering/vtkOpenGLGPUVolumeRayCastMapper.cxx, line 4110 vtkOpenGLGPUVolumeRayCastMapper (0x12082cc00): Rendering failed because the following OpenGL extensions are required but not supported: (Just as this shows, the list of OpenGL extensions it says are required but not supported is empty...) My graphics card is a NVIDIA GeForce 8800 GT. Thanks, -Eric -- Eric E Monson Duke Visualization Technology Group On Mar 1, 2010, at 11:55 AM, Aashish Chaudhary wrote: No there is no special option required but you would have to update your paraview cvs copy as the code got into cvs last thursday. Can you update and compile again? Thanks, On Sun, Feb 28, 2010 at 2:27 PM, Pierre-Olivier Dallaire pierre-olivier.dalla...@videotron.ca wrote: Hi, Do we need to enable a special option in the CMakeCache.txt file in order to get this feature ? I compiled the CVS version on Mac and cannot access the GPU option for volume rendering. Regards, PO On 2010-02-26, at 10:58 AM, Aashish Chaudhary wrote: All, I am pleased to announce that ParaView3 now has GPU based volume rendering from VTKEdge. Its currently in CVS and should be able to make into 3.8 release. Currently it does not work in tile display mode but we are hoping
Re: [Paraview] [vtkusers] GPU based volume rendering in ParaView
Yes I noted that, but too late. I will think about it for my next purchase! Anyway, thanks for the confirmation. Jerome 2010/3/6 Wagner Sales wsa...@gmail.com Hi Jerôme, The ATI driver ( or GLSL compiler ) are very buggy. Because that, GPU ray casting will work only on NVidia cards on Linux and Windows. Mac have issues too. Regards, Wagner 2010/3/6 Jérôme jerome.ve...@gmail.com: Hi, I ran into the empty not supported extensions list, with linux/ATI/Mesa. By reading, I found that the problem is not due to extensions, but due to: if(strstr(gl_vendor,ATI)!=0) { this-LoadExtensionsSucceeded=0; return; } and if(strstr(gl_version,Mesa)!=0) { this-LoadExtensionsSucceeded=0; return; } (Code from ParaView3/VTK/VolumeRendering/vtkOpenGLGPUVolumeRayCastMapper.cxx) My feeling is that GPU raycast mapping is impossible with ATI card. My question is: Am I wrong? If there is any, what should I do to enable GPU rendering on ATI? Thanks a lot! Jerome (ps: I tried with an NVidia quadro and... wow! Thanks!) 2010/3/2 Wagner Sales wsa...@gmail.com Hi all, Sorry by ask this same question twice times. I know about Mac issues. But I'm starting in parallel volume rendering playground, and I really don't know how to take ( if possible ) advantages from GPU volume rendering in a parallel environment. May be my knowledge aren't the sufficient to know this by myself. Are advantages on this field? For example, can we render a large dataset in multiple machines using the GPU power instead the current approaches, that's relies ( at least I know ) on the CPUs? And, if possible, are some SLI support too? Best regards, Wagner 2010/3/1 Eric E. Monson emon...@cs.duke.edu: Hey all, Thanks for the feedback. Yup, I can get it to error out just as you said! :) I guess I'd seen something about this on the list regarding VTKEdge, but hadn't remembered. Please let us all know, though, if a solution pops up. Talk to you later, -Eric On Mar 1, 2010, at 1:54 PM, Francois Bertel wrote: Hello, The GPU Rast Mapper does not work on Mac so it is skipped to avoid bad behavior. It is skipped because: 1. on Snow Leopard with an nVidia card, the GPU Ray Cast mapper triggers a bug in the OpenGL driver (that we cannot locate precisely enough) and the driver will exit the application with: (0) : fatal error C: Nested functions, aborting! or: (0) : fatal error C: *** exception during compilation *** Cg compiler terminated due to fatal error 2. On Leopard, a user reported a corrupted image. If you are adventurous, and see what happen for your specific configuration, you can comment out the lines in VTK/VolumeRendering/vtkOpenGLGPUVolumeRayCastMapper.cxx that skip the Macs: // It does not work on Apple OS X Snow Leopard with nVidia. // There is a bug in the OpenGL driver with an error in the // Cg compiler about an infinite loop. #ifdef __APPLE__ this-LoadExtensionsSucceeded=0; return; #endif Regards On Mon, Mar 1, 2010 at 1:05 PM, Aashish Chaudhary aashish.chaudh...@kitware.com wrote: Eric, Yes you do need to have certain extensions. Now the mapper I have not written myself and hence I am forwarding this email to vtk users list. I hope that the original author would respond to it. I will see if we can produce a better message which could list the missing extensions. Thanks for testing it out. ~Regards, Aashish On Mon, Mar 1, 2010 at 12:56 PM, Eric E. Monson emon...@cs.duke.edu wrote: Hey Aashish, I've been having trouble with it, too, on my Mac (OS X 10.6.2, PV compiled serial x86_64 arch updated from CVS and rebuilt today, CMake 2.9.20100113). Are there any special hardware requirements, then? I can see the GPU Volume Mapper option, but when I switch over to that from the Fixed point mapper I get this error: ERROR: In /Users/emonson/Programming/ParaView_cvs/ParaView3/VTK/VolumeRendering/vtkOpenGLGPUVolumeRayCastMapper.cxx, line 4110 vtkOpenGLGPUVolumeRayCastMapper (0x12082cc00): Rendering failed because the following OpenGL extensions are required but not supported: (Just as this shows, the list of OpenGL extensions it says are required but not supported is empty...) My graphics card is a NVIDIA GeForce 8800 GT. Thanks, -Eric -- Eric E Monson Duke Visualization Technology Group On Mar 1, 2010, at 11:55 AM, Aashish Chaudhary wrote: No there is no special option required but you would have to update your paraview cvs copy as the code got into cvs last thursday. Can you update and compile again? Thanks, On Sun
Re: [Paraview] How to color by Cell Data
Hi, After full updates on 2 computers (personal and office) both running fedora 12, the problem persists... on one of them only! The sadness is that the personal one is concerned, so I cannot debug efficiently. The point is that I didn't perform a comprehensive clean on my built tree. This is the next step. Jerome 2010/3/1 Michael Jackson mike.jack...@bluequartz.net So I figured out where the problem lies, but not what the actual problem is: QListQString pqPipelineRepresentation::getColorFields() for(int i=0; icellinfo-GetNumberOfArrays(); i++) that loop is 0 to 0 on OS X and 0 to 2 on Windows. But using the exact same data file. So for some reason the OS X version is NOT storing/updating something properly. Odd. -- Mike Jackson www.bluequartz.net On Mar 1, 2010, at 10:44 AM, Utkarsh Ayachit wrote: The the widget is Qt/Component/pqDisplayColorWidget.h|cxx. Look at pqDisplayColorWidget::reloadGUI(). In this method it gets the list of arrays and then populates the combo-box. Utkarsh On Mon, Mar 1, 2010 at 10:41 AM, Michael Jackson mike.jack...@bluequartz.net wrote: Send me the areas to look at and I'll try to see what is happening. -- Mike Jackson www.bluequartz.net On Mar 1, 2010, at 10:33 AM, Utkarsh Ayachit wrote: I've tried on Os X (4.6 Cocoa), and Linux and still cannot reproduce the issue. Mike, if you don't mind a little debugging, I can point you to the relevant code. Utkarsh On Mon, Mar 1, 2010 at 10:20 AM, Michael Jackson mike.jack...@bluequartz.net wrote: Well, this is really getting weird. I have to admit that I have NOT tried it on anything other than OS X with Qt/Cocoa. I am going to try with OS X/Qt-Carbon (Qt 4.6.2) and see what happens. I guess I'll try Windows Next. -- Mike Jackson www.bluequartz.net On Mar 1, 2010, at 9:52 AM, Sven Buijssen wrote: Hi, I tested my nightly clean builds of ParaView CVS HEAD (pulled via git) + Qt 4.5.2 on * SuSE Linux Enterprise Server 10 SP2 * Ubuntu 9.10 Server 64bit * openSuSE 10.2 64bit * openSuSE 11.1 32bit * SPARC Solaris 10 64bit (PV CVS 2010-02-25, nothing newer as I'm having some trouble with Mesa since Dave's commit Fri Feb 26 17:57:21 2010 +) I see for all builds both point Ids and cell Ids in the Color By menu. I also checked the tarballs of all nightly builds since beginning of February 2010 on openSuSE 11.1 and could not reproduce the issue. Cell Ids is always there. Sven Michael Jackson wrote, On 01.03.2010 15:47: Here is a screen shot. I updated to latest cvs and recompiled. Still no joy. I even tried saving the data set to a new file, then loading the file. No luck there either. Any other suggestions are welcome. I do have the data file if you are interested. ___ Mike Jackson www.bluequartz.net On Feb 28, 2010, at 2:01 PM, Jérôme wrote: Well, I just updated my worktree with the latest CVS. The problem remains, both in debug and release. Note that Yum (package manager of Fedora) installs qt-4.6.2. I will trace the code tomorrow monday. Jerome 2010/2/28 Utkarsh Ayachit utkarsh.ayac...@kitware.com That is weird. I am on Mac with Qt 4.6.0, Cocoa and the latest CVS ParaView and I see both point Ids and cell Ids in the Color By menu. I'll test it out with my linux box at work tomorrow. Utkarsh On Sun, Feb 28, 2010 at 9:44 AM, Michael Jackson mike.jack...@bluequartz.net wrote: Maybe it is Qt versions or ParaView versions? I am using Qt 4.6.1 compiled for Cocoa on OS X 10.5.8 Intel. I am using ParaView from url = git://github.com/Kitware/ParaView.git which was last updated about a week ago. When I get to the office on Monday I can try the same with ParaView 3.6.2 and see if the problem persists. As far as Data, I _could_ share it, but like Jerome stated, you can reproduce it with a simple sphere source, then Generate Normals. The complete source code can be found here: href= http://www.bluequartz.net/cgi-bin/gitweb/gitweb.cgi?p=PVMXADataModel.git;a=blob;f=Source/Server/CrystalInterfaceColoringFilter/vtkCrystalInterfaceColoringFilter.cpp;hb=de5d94a3a128a08a534230deca9057e4e57d0358 _ Mike Jackson mike.jack...@bluequartz.net On Feb 28, 2010, at 7:51 AM, Jérôme wrote: Hi, I confirm the problem: even with your script, CELL_DATA are not enabled. They don't appear in the Color by combo box, but the cell Ids are present in the Information panel. It works as expected when I try with POINT_DATA. I just had a doubt: Qt has been updated to 4.6 recently on my computer, and I don't know if my ParaView is up-to-date according to this... Let's update, compile, wait and see. Jerome 2010/2/28 Favre Jean jfa...@cscs.ch Hi, I noted this problem a few days ago. A *really* simple example: - Add a SphereSource
Re: [Paraview] How to color by Cell Data
By my side, yes: SphereSource - GenerateIds. You are right: Information tab shows the celldata and pointdata array, whereas Color by has only point. Jerome 2010/3/3 Utkarsh Ayachit utkarsh.ayac...@kitware.com Mmm..not sure if that'd help, since you said you can reproduce the issue with GenerateIds filter as well, right? Utkarsh On Wed, Mar 3, 2010 at 9:51 AM, Michael Jackson mike.jack...@bluequartz.net wrote: Do you want my data file? Mike J. On 3/3/2010 9:28 AM, Utkarsh Ayachit wrote: Mike, but the cell data shows up correctly on the information tab, right? So the cell data is being loaded, and even reported to ParaView. It's hard to imagine why it would be doing what it's doing, esp. with the precompiled binaries on Mac, since they work fine for me, on my Mac 10.6 :). It cannot be a mere GUI issue since from the debugging report that Mike gave us before, ParaView indeed doesn't report those cell arrays to the client when rendering. I just wish I could reproduce it somehow somewhere so I could debug it :). I am going to test on Os X 10.5 to see if we have any better luck. Utkarsh On Wed, Mar 3, 2010 at 9:23 AM, Eric E. Monsonemon...@cs.duke.edu wrote: Mike, is it possible that it's a problem related to OS X 10.5? I know Jérôme is having some trouble with Fedora, but I can't reproduce the issue on Snow Leopard or Ubuntu (both x86_64 builds). Which architecture are you building PV and Qt for? -Eric On Mar 3, 2010, at 9:09 AM, Michael Jackson wrote: I have tried clean builds on ParaView CVS and ParaView 3.6.2 OS X with Qt versions 4.5.3 and Qt 4.6.2 both carbon and Cocoa and none of that alleviates the problem. Not even the precompiled binary from Kitware's web site works correctly. It does work perfectly fine on windows though. I wonder where the loading of the file takes place. I have a feeling something is not loading the cell data correctly. Maybe. -- Mike Jackson On 3/3/2010 3:01 AM, Jérôme wrote: Hi, After full updates on 2 computers (personal and office) both running fedora 12, the problem persists... on one of them only! The sadness is that the personal one is concerned, so I cannot debug efficiently. The point is that I didn't perform a comprehensive clean on my built tree. This is the next step. Jerome 2010/3/1 Michael Jacksonmike.jack...@bluequartz.netmailto: mike.jack...@bluequartz.net So I figured out where the problem lies, but not what the actual problem is: QListQString pqPipelineRepresentation::getColorFields() for(int i=0; icellinfo-GetNumberOfArrays(); i++) that loop is 0 to 0 on OS X and 0 to 2 on Windows. But using the exact same data file. So for some reason the OS X version is NOT storing/updating something properly. Odd. ___ 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 ___ 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 ___ 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 color by Cell Data
Fine! I renamed my ~/.config/ParaView/ParaView3.7.0.ini to ParaView3.7.0.ini.old. ParaView creates a new config file, and the cell arrays are back! Thanks a lot! For curiosity, I will remove line after line to find the bugging one. Jerome 2010/3/3 Michael Jackson mike.jack...@bluequartz.net Drum roll please... Corrupt set of paraview preferences. After installing 10.5.8 clean from my installation disks everything worked as it was supposed to. So that means the only difference is between the 2 user environments. Preferences is the first to check. Looked in my home directory, blew away the .config directory, launched paraview on the trouble machine and now everything works. I could completely replicate this issue simply by swapping in and out the good and bad preferences for ParaView. I have the bad preferences if anyone wants them to try and debug what was going on. Thanks to EVERYONE who helped me with ideas. _ Mike Jackson mike.jack...@bluequartz.net On Mar 3, 2010, at 12:39 PM, Eric E. Monson wrote: I just tried the 3.6.2 binary on a MacBook booted off an old 10.5.7 usb drive backup and all of the Color By entries showed up just fine. The MacBook has the GMA 950 on-board graphics chipset. The Mac Pro I used before has the NVidia GeForce 8800 GT card. If you can think of any other specs that might be crucial, just drop me a line. -Eric On Mar 3, 2010, at 12:18 PM, Michael Jackson wrote: I just fire up the 3.6.2 binary from Kitware on OS X 10.5.8 on a MacBook Pro with nVidea 8600M graphics card and the information tab is identical to your image BUT my Color By drop down only shows Solid Color, Ids, Normals, all of which are Point Data and NOT Cell Data. So not really sure what is up. If someone wants to remotely work on my machine email me off list and I'll get you setup. Mike Jackson. On 3/3/2010 12:06 PM, Eric E. Monson wrote: I don't have a CVS build on OS X 10.5.8 any more, but I booted into it and ran the 3.6.2 binary and SphereSource-GenerateIds shows all four arrays in Color By and three in Information. -Eric On Mar 3, 2010, at 10:30 AM, Jérôme wrote: By my side, yes: SphereSource - GenerateIds. You are right: Information tab shows the celldata and pointdata array, whereas Color by has only point. Jerome 2010/3/3 Utkarsh Ayachit utkarsh.ayac...@kitware.com mailto: utkarsh.ayac...@kitware.com Mmm..not sure if that'd help, since you said you can reproduce the issue with GenerateIds filter as well, right? Utkarsh On Wed, Mar 3, 2010 at 9:51 AM, Michael Jackson mike.jack...@bluequartz.net mailto:mike.jack...@bluequartz.net wrote: Do you want my data file? Mike J. On 3/3/2010 9:28 AM, Utkarsh Ayachit wrote: Mike, but the cell data shows up correctly on the information tab, right? So the cell data is being loaded, and even reported to ParaView. It's hard to imagine why it would be doing what it's doing, esp. with the precompiled binaries on Mac, since they work fine for me, on my Mac 10.6 :). It cannot be a mere GUI issue since from the debugging report that Mike gave us before, ParaView indeed doesn't report those cell arrays to the client when rendering. I just wish I could reproduce it somehow somewhere so I could debug it :). I am going to test on Os X 10.5 to see if we have any better luck. Utkarsh ___ 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 ___ 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 color by Cell Data
If someone is going further on that .ini corruption, I just noted something maybe useful. The problem is not that CellArray are not listed in the Color by combo box: If you try with PointSource - GenerateIds instead of SphereSource - GenerateIds then the CellArray is visible. As the sphere source integrates a normal computation, I suspect a sort of MaxNumberOf... blocking the number of arrays to 2. Anyway, Mike found the workaround. Thanks again! HTH Jerome 2010/3/3 Jérôme jerome.ve...@gmail.com Fine! I renamed my ~/.config/ParaView/ParaView3.7.0.ini to ParaView3.7.0.ini.old. ParaView creates a new config file, and the cell arrays are back! Thanks a lot! For curiosity, I will remove line after line to find the bugging one. Jerome 2010/3/3 Michael Jackson mike.jack...@bluequartz.net Drum roll please... Corrupt set of paraview preferences. After installing 10.5.8 clean from my installation disks everything worked as it was supposed to. So that means the only difference is between the 2 user environments. Preferences is the first to check. Looked in my home directory, blew away the .config directory, launched paraview on the trouble machine and now everything works. I could completely replicate this issue simply by swapping in and out the good and bad preferences for ParaView. I have the bad preferences if anyone wants them to try and debug what was going on. Thanks to EVERYONE who helped me with ideas. _ Mike Jackson mike.jack...@bluequartz.net On Mar 3, 2010, at 12:39 PM, Eric E. Monson wrote: I just tried the 3.6.2 binary on a MacBook booted off an old 10.5.7 usb drive backup and all of the Color By entries showed up just fine. The MacBook has the GMA 950 on-board graphics chipset. The Mac Pro I used before has the NVidia GeForce 8800 GT card. If you can think of any other specs that might be crucial, just drop me a line. -Eric On Mar 3, 2010, at 12:18 PM, Michael Jackson wrote: I just fire up the 3.6.2 binary from Kitware on OS X 10.5.8 on a MacBook Pro with nVidea 8600M graphics card and the information tab is identical to your image BUT my Color By drop down only shows Solid Color, Ids, Normals, all of which are Point Data and NOT Cell Data. So not really sure what is up. If someone wants to remotely work on my machine email me off list and I'll get you setup. Mike Jackson. On 3/3/2010 12:06 PM, Eric E. Monson wrote: I don't have a CVS build on OS X 10.5.8 any more, but I booted into it and ran the 3.6.2 binary and SphereSource-GenerateIds shows all four arrays in Color By and three in Information. -Eric On Mar 3, 2010, at 10:30 AM, Jérôme wrote: By my side, yes: SphereSource - GenerateIds. You are right: Information tab shows the celldata and pointdata array, whereas Color by has only point. Jerome 2010/3/3 Utkarsh Ayachit utkarsh.ayac...@kitware.com mailto: utkarsh.ayac...@kitware.com Mmm..not sure if that'd help, since you said you can reproduce the issue with GenerateIds filter as well, right? Utkarsh On Wed, Mar 3, 2010 at 9:51 AM, Michael Jackson mike.jack...@bluequartz.net mailto:mike.jack...@bluequartz.net wrote: Do you want my data file? Mike J. On 3/3/2010 9:28 AM, Utkarsh Ayachit wrote: Mike, but the cell data shows up correctly on the information tab, right? So the cell data is being loaded, and even reported to ParaView. It's hard to imagine why it would be doing what it's doing, esp. with the precompiled binaries on Mac, since they work fine for me, on my Mac 10.6 :). It cannot be a mere GUI issue since from the debugging report that Mike gave us before, ParaView indeed doesn't report those cell arrays to the client when rendering. I just wish I could reproduce it somehow somewhere so I could debug it :). I am going to test on Os X 10.5 to see if we have any better luck. Utkarsh ___ 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 ___ 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
Re: [Paraview] How to color by Cell Data
Utkarsh, I will send you mine this -french- evening (I don't have it here). It could be interesting to compare with the Mike's bad one. Jerome 2010/3/3 Utkarsh Ayachit utkarsh.ayac...@kitware.com Oh wow...that's interesting. I won't mind looking at the ini out of curiosity. Utkarsh On Wed, Mar 3, 2010 at 2:11 PM, Michael Jackson mike.jack...@bluequartz.net wrote: Drum roll please... Corrupt set of paraview preferences. After installing 10.5.8 clean from my installation disks everything worked as it was supposed to. So that means the only difference is between the 2 user environments. Preferences is the first to check. Looked in my home directory, blew away the .config directory, launched paraview on the trouble machine and now everything works. I could completely replicate this issue simply by swapping in and out the good and bad preferences for ParaView. I have the bad preferences if anyone wants them to try and debug what was going on. Thanks to EVERYONE who helped me with ideas. _ Mike Jackson mike.jack...@bluequartz.net On Mar 3, 2010, at 12:39 PM, Eric E. Monson wrote: I just tried the 3.6.2 binary on a MacBook booted off an old 10.5.7 usb drive backup and all of the Color By entries showed up just fine. The MacBook has the GMA 950 on-board graphics chipset. The Mac Pro I used before has the NVidia GeForce 8800 GT card. If you can think of any other specs that might be crucial, just drop me a line. -Eric On Mar 3, 2010, at 12:18 PM, Michael Jackson wrote: I just fire up the 3.6.2 binary from Kitware on OS X 10.5.8 on a MacBook Pro with nVidea 8600M graphics card and the information tab is identical to your image BUT my Color By drop down only shows Solid Color, Ids, Normals, all of which are Point Data and NOT Cell Data. So not really sure what is up. If someone wants to remotely work on my machine email me off list and I'll get you setup. Mike Jackson. On 3/3/2010 12:06 PM, Eric E. Monson wrote: I don't have a CVS build on OS X 10.5.8 any more, but I booted into it and ran the 3.6.2 binary and SphereSource-GenerateIds shows all four arrays in Color By and three in Information. -Eric On Mar 3, 2010, at 10:30 AM, Jérôme wrote: By my side, yes: SphereSource - GenerateIds. You are right: Information tab shows the celldata and pointdata array, whereas Color by has only point. Jerome 2010/3/3 Utkarsh Ayachit utkarsh.ayac...@kitware.com mailto:utkarsh.ayac...@kitware.com Mmm..not sure if that'd help, since you said you can reproduce the issue with GenerateIds filter as well, right? Utkarsh On Wed, Mar 3, 2010 at 9:51 AM, Michael Jackson mike.jack...@bluequartz.net mailto:mike.jack...@bluequartz.net wrote: Do you want my data file? Mike J. On 3/3/2010 9:28 AM, Utkarsh Ayachit wrote: Mike, but the cell data shows up correctly on the information tab, right? So the cell data is being loaded, and even reported to ParaView. It's hard to imagine why it would be doing what it's doing, esp. with the precompiled binaries on Mac, since they work fine for me, on my Mac 10.6 :). It cannot be a mere GUI issue since from the debugging report that Mike gave us before, ParaView indeed doesn't report those cell arrays to the client when rendering. I just wish I could reproduce it somehow somewhere so I could debug it :). I am going to test on Os X 10.5 to see if we have any better luck. Utkarsh ___ 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 ___ 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
Re: [Paraview] How to color by Cell Data
Hi, I noted this problem a few days ago. A *really* simple example: - Add a SphereSource - Connect to a Generate Ids filter - Update: The information panel shows a 'Ids' array for points and for cells, but the Color by doesn't give the choice of cell array. Jerome 2010/2/28 Utkarsh Ayachit utkarsh.ayac...@kitware.com That's weird, your cell array should have been listed in the Color By menu. Is it possible to share the data or a small sample to reproduce the issue? Utkarsh On Sat, Feb 27, 2010 at 11:09 AM, Michael Jackson mike.jack...@bluequartz.net wrote: I have a triangle surface mesh that contains Cell based RGB attribute array. I would like to color by that array, ie, not using a Lookup table or interpolation. When I load my data set the cell data is listed, but in the color by drop down list the scalar array is not listed as a choice. On a whim I then ran the Cell Data to Point Data filter on the data. At that point I was able to select the scalar array to Color By and the surface mesh now has the correct colors. I know if I were to code this up in straight VTk I can set the rendering to be by Cells: vtkPolyDataMapper *cubeMapper = vtkPolyDataMapper::New(); cubeMapper-SetInput(filter-GetOutput()); cubeMapper-SetScalarVisibility(1); cubeMapper-SetScalarModeToUseCellData(); How do I get the same effect in ParaView? Thanks _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer Dayton, Ohio ___ 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 ___ 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 color by Cell Data
Well, I just updated my worktree with the latest CVS. The problem remains, both in debug and release. Note that Yum (package manager of Fedora) installs qt-4.6.2. I will trace the code tomorrow monday. Jerome 2010/2/28 Utkarsh Ayachit utkarsh.ayac...@kitware.com That is weird. I am on Mac with Qt 4.6.0, Cocoa and the latest CVS ParaView and I see both point Ids and cell Ids in the Color By menu. I'll test it out with my linux box at work tomorrow. Utkarsh On Sun, Feb 28, 2010 at 9:44 AM, Michael Jackson mike.jack...@bluequartz.net wrote: Maybe it is Qt versions or ParaView versions? I am using Qt 4.6.1 compiled for Cocoa on OS X 10.5.8 Intel. I am using ParaView from url = git://github.com/Kitware/ParaView.git which was last updated about a week ago. When I get to the office on Monday I can try the same with ParaView 3.6.2 and see if the problem persists. As far as Data, I _could_ share it, but like Jerome stated, you can reproduce it with a simple sphere source, then Generate Normals. The complete source code can be found here: href= http://www.bluequartz.net/cgi-bin/gitweb/gitweb.cgi?p=PVMXADataModel.git;a=blob;f=Source/Server/CrystalInterfaceColoringFilter/vtkCrystalInterfaceColoringFilter.cpp;hb=de5d94a3a128a08a534230deca9057e4e57d0358 _ Mike Jackson mike.jack...@bluequartz.net On Feb 28, 2010, at 7:51 AM, Jérôme wrote: Hi, I confirm the problem: even with your script, CELL_DATA are not enabled. They don't appear in the Color by combo box, but the cell Ids are present in the Information panel. It works as expected when I try with POINT_DATA. I just had a doubt: Qt has been updated to 4.6 recently on my computer, and I don't know if my ParaView is up-to-date according to this... Let's update, compile, wait and see. Jerome 2010/2/28 Favre Jean jfa...@cscs.ch Hi, I noted this problem a few days ago. A *really* simple example: - Add a SphereSource - Connect to a Generate Ids filter - Update: The information panel shows a 'Ids' array for points and for cells, but the Color by doesn't give the choice of cell array. Jerome - I cannot reproduce the problem. The following code works exactly as expected and enables the coloring by POINT_DATA or CELL_DATA sph1 = Sphere() genid1 = GenerateIds(Input=sph1) rep1 = Show(genid1) rep1.ColorArrayName = 'Ids' rep1.ColorAttributeType = 'CELL_DATA' Jean M. Favre Swiss National Supercomputing Center ___ 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 ___ 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] Peavip enables VTK filters and sources in ParaView
Dear all, I launched a few months ago an initiative on github. This is called Peavip and aims at exposing VTK filters to the ParaView GUI. The structure is as follow: - each filter/source has its own XML description (ServerManagerConfiguration) It allows for fast loading of particular filter, without having to build something - a CMakeLists gathers the XMLs in order to produce a cxx plugin The user can load all XMLized filters thanks to a single so/dll/dyn file. This git repository is under development, and new features wil be added, I hope, soon. Coming next: - Choice of exposed filters during the CMake setup - Documentation!! - Categorization of filters in the Filters menu from ParaView - ... ideas from the community You will find the Peavip git repository here: http://github.com/jeromevelut/Peavip Although this is a pre-alpha-Proof-of-concept-preliminar software, I hope that it will be useful for people. Feel free to send feedbacks! Best regards, Jerome ___ 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] showing all points of a structured dataset
Hi, the same happens if you want to visualize an vtkImageData as points or surface. Only the outer topological entities are displayed, because of the mapper internal functionning. See thread unstructured grid + tetrahedrons in the vtk-users mailing list. In a nutshell, the outer geometrical entities are considered as vertices by the mapper. Using a glyph filter before visualization with a 2D glyph (Vertex type) will attached a topological 0D entity (vertex) to all the geometrical entities (points). Attached is an example of 12^3 volume with 2 different visualizations: left is the volume fitlered through a glyph filter with vertex type, right is Style-Representation-Points. HTH Jerome 2010/1/15 Hom Nath Gharti hng.em...@gmail.com One possible idea would be: Filters - Alphabetical - Glyphs On Fri, Jan 15, 2010 at 9:39 AM, n...@toothycat.net wrote: Hi, I've got a 3x3x3 set of points, and am trying to show all of the points individually. My VTK file looks like # vtk DataFile Version 2.0 Volume example ASCII DATASET STRUCTURED_POINTS DIMENSIONS 3 3 3 ASPECT_RATIO 1 1 1 ORIGIN 0 0 0 POINT_DATA 27 SCALARS volume_scalars char 1 LOOKUP_TABLE default 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 When I set 'Representation' under 'Display' to points, the point at the centre is missed out. In fact, for any 3d dataset of structured points I have tried, the interior points are missed out. The points look like they are there, since 'Information' tells me there are 27 points. Any ideas how I can see all the points? Thanks, Nagi ___ 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 attachment: volume_vertex_visualization.png___ 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] Filter input types
Hi Fred, Quoting from the vtkPolyDataAlgorithm doc: This class also provides a FillInputPortInfo method that by default says that all inputs will be PolyData. If that isn't the case then please override this method in your subclass. You will find a lot of VTK classes that override the FillInputPortInformation method. It shouldn't be too difficult. Jerome 2009/12/11 Fred Fred stan1...@hotmail.fr I wrote a filter inherited from vtkPolyDataAlgorithm. As far as I have understood, such a filter is supposed to produce a vtkPolyData but may use any kind of dataset as input. The problem is I get an error because my input is an ImageData set while a PolyData is expected. Any idea of what I missed in my code? -- PC, téléphones portables, souris hi-tech. à gagner grâce à Hotmail ! C'est ici ! http://www.hotmailmagicmoment.com ___ 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] Multiple input port filters: cannot set the second input
Hi, I checkout the CVS today and since then, my custom filters taking 2 input ports refuse to be set on the second input. I can reproduce it with the Stream tracer (custom source). Does anyone not this? Best regards, Jerome ___ 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] Multiple input port filters: cannot set the second input
Sven, sorry for the typo : I meant note this?. I also noted the builtin server named b at startup. Jerome 2009/12/9 Sven Buijssen sven.buijs...@tu-dortmund.de Hi Jérôme, (off the list for the moment to clarify what you meant) I checkout the CVS today and since then, my custom filters taking 2 input ports refuse to be set on the second input. I can reproduce it with the Stream tracer (custom source). Does anyone not this? You meant not have this or note this? I can reproduce the behaviour with my nightly builds. Moreover, when I start up paraview in builtin mode, the server in the pipeline view is merely called b, only when opening a file it becomes builtin. Do you see the same? Sven ___ 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] problem with latest CVS
Utkarsh, I have similar problem: the generated vtkSMXML_ header files cannot be found. Attached is my CMakeLists defining the plugins. Some variables are declared in other places. If you need them, tell me. Jerome 2009/12/2 Utkarsh Ayachit utkarsh.ayac...@kitware.com Paul, I've been changing the way plugins are configured. Can you try clean-building your plugin? If that doesn't work, can you post your CMakeLists.txt file? Thanks Utkarsh On Wed, Dec 2, 2009 at 6:33 AM, Paul Edwards paul.m.edwa...@gmail.com wrote: I'm getting build errors on my plugins: . /path/to/build/dir/MyReader/MyReaderGUIPlugin_Plugin.cxx:43:86: error: /path/to/build/dir/MyReader/vtkSMXML_MyReaderSMPlugin.h: No such file or directory /path/to/build/dir/MyReader/MyReaderGUIPlugin_Plugin.cxx: In member function ‘virtual void MyReaderGUIPlugin_Plugin::GetXMLs(std::vectorstd::basic_stringchar, std::char_traitschar, std::allocatorchar , std::allocatorstd::basic_stringchar, std::char_traitschar, std::allocatorchar )’: /path/to/build/dir/MyReader/MyReaderGUIPlugin_Plugin.cxx:69: error: ‘MyReaderSMPluginvtkMyReaderGetInterfaces’ was not declared in this scope make[2]: *** [MyReader/CMakeFiles/MyReaderGUIPlugin.dir/MyReaderGUIPlugin_Plugin.cxx.o] Error 1 Is it just me?! Thanks, Paul ___ 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 FIND_PACKAGE(ParaView REQUIRED) INCLUDE(${PARAVIEW_USE_FILE}) # FILTERS PLUGIN -- SET( PLUGINS_SRCS ${VTK_ALGO_SRCS_PATH}/vtkImageCylinderSource.cxx ${VTK_ALGO_SRCS_PATH}/vtkMomentKernelSource.cxx ${VTK_ALGO_SRCS_PATH}/vtkHessianKernelSource.cxx ${VTK_ALGO_SRCS_PATH}/vtkExtractVOIFromBoundingBox.cxx ${VTK_ALGO_SRCS_PATH}/vtkImageGaussianNoiseSource.cxx ${VTK_ALGO_SRCS_PATH}/vtkPolylineSource.cxx ${VTK_ALGO_SRCS_PATH}/vtkExtendedImageConvolution.cxx ${VTK_ALGO_SRCS_PATH}/vtkImageGeometricalMoments.cxx ${VTK_ALGO_SRCS_PATH}/vtkLocalImageConvolution.cxx ${VTK_ALGO_SRCS_PATH}/vtkLocalGeometricalMomentProperty.cxx ${VTK_ALGO_SRCS_PATH}/vtkLocalHessianProperty.cxx ${VTK_ALGO_SRCS_PATH}/vtkExtractCenterline.cxx ${VTK_ALGO_SRCS_PATH}/vtkMultipleHypothesisCenterlineExtraction.cxx ${VTK_ALGO_SRCS_PATH}/vtkPVPolyDataToImageStencil.cxx ${VTK_ALGO_SRCS_PATH}/vtkFrenetSerretFrame.cxx ${VTK_ALGO_SRCS_PATH}/vtkStraightenedCurvedPlanarReformation.cxx ${VTK_ALGO_SRCS_PATH}/vtkStretchedCurvedPlanarReformation.cxx ${VTK_ALGO_SRCS_PATH}/vtkSpatialTracking.cxx ${VTK_ALGO_SRCS_PATH}/vtkGeometricalMomentsSpatialTracking.cxx ${VTK_ALGO_SRCS_PATH}/vtkMultiresolutionGeometricalMomentsSpatialTracking.cxx ${VTK_ALGO_SRCS_PATH}/vtkCenterOfMassAttraction.cxx ${VTK_ALGO_SRCS_PATH}/vtkCenterOfMassAttraction2.cxx ${VTK_ALGO_SRCS_PATH}/vtkLocalMultiresolutionGeometricalMoments.cxx ${VTK_ALGO_SRCS_PATH}/vtkLocalMultiscaleVesselnessMeasure.cxx ${VTK_ALGO_SRCS_PATH}/vtkSelectMomentScale.cxx ${VTK_ALGO_SRCS_PATH}/vtkExtractLine.cxx ${VTK_ALGO_SRCS_PATH}/vtkPathsDistance.cxx ${VTK_ALGO_SRCS_PATH}/vtkFastMarching.cxx ${VTK_ALGO_SRCS_PATH}/vtkThresholdedFastMarching.cxx ${VTK_ALGO_SRCS_PATH}/vtkVesselnessFastMarching.cxx ${VTK_ALGO_SRCS_PATH}/vtkOrientedVesselnessFastMarching.cxx ${VTK_ALGO_SRCS_PATH}/vtkPolylineLength.cxx ${VTK_ALGO_SRCS_PATH}/vtkPolylineIntegrator.cxx ${VTK_ALGO_SRCS_PATH}/vtkImageMultiscaleVesselnessMeasure.cxx ${VTK_ALGO_SRCS_PATH}/vtkImageHessianProperty.cxx ${VTK_ALGO_SRCS_PATH}/vtkVesselnessRandomSeed.cxx ${VTK_ALGO_SRCS_PATH}/vtkOrderedTubeFilter.cxx ) # Use the ADD_PARAVIEW_PLUGIN macro to build a plugin ADD_PARAVIEW_PLUGIN( PVVesselExtraction #--Name
Re: [Paraview] problem with latest CVS
Further investigations: - I commented out the ICS/IDS reader plugin that was causing build errors. Now, it builds. - The output libraries are now static! Do we have to precise if a plugin is static or dynamic? This is visible for several definitely different PV plugin projects. make -j 2 gives the following (ending) output: ... [ 78%] [ 80%] Generating moc_ChironToolbarActions.cxx Generating qrc_chiron.cxx [ 82%] Generating moc_ChironToolbarActionsImplementation.cxx [ 84%] [ 86%] Building CXX object Plugins/CMakeFiles/ChironToolbar.dir/qrc_chiron.cxx.o Building CXX object Plugins/CMakeFiles/ChironToolbar.dir/moc_ChironToolbarActions.cxx.o [ 89%] Building CXX object Plugins/CMakeFiles/ChironToolbar.dir/ChironToolbarActionsImplementation.cxx.o [ 91%] Building CXX object Plugins/CMakeFiles/ChironToolbar.dir/moc_ChironToolbarActionsImplementation.cxx.o [ 93%] Building CXX object Plugins/CMakeFiles/ChironToolbar.dir/ChironToolbarActions.cxx.o [ 95%] Building CXX object Plugins/CMakeFiles/ChironToolbar.dir/ChironToolbar_Plugin.cxx.o [ 97%] Building CXX object Plugins/CMakeFiles/ChironToolbar.dir/moc_ChironToolbar_Plugin.cxx.o Linking CXX static library ../bin/libChironToolbar.a [100%] Built target ChironToolbar Jerome 2009/12/3 Jérôme jerome.ve...@gmail.com Utkarsh, I have similar problem: the generated vtkSMXML_ header files cannot be found. Attached is my CMakeLists defining the plugins. Some variables are declared in other places. If you need them, tell me. Jerome 2009/12/2 Utkarsh Ayachit utkarsh.ayac...@kitware.com Paul, I've been changing the way plugins are configured. Can you try clean-building your plugin? If that doesn't work, can you post your CMakeLists.txt file? Thanks Utkarsh On Wed, Dec 2, 2009 at 6:33 AM, Paul Edwards paul.m.edwa...@gmail.com wrote: I'm getting build errors on my plugins: . /path/to/build/dir/MyReader/MyReaderGUIPlugin_Plugin.cxx:43:86: error: /path/to/build/dir/MyReader/vtkSMXML_MyReaderSMPlugin.h: No such file or directory /path/to/build/dir/MyReader/MyReaderGUIPlugin_Plugin.cxx: In member function ‘virtual void MyReaderGUIPlugin_Plugin::GetXMLs(std::vectorstd::basic_stringchar, std::char_traitschar, std::allocatorchar , std::allocatorstd::basic_stringchar, std::char_traitschar, std::allocatorchar )’: /path/to/build/dir/MyReader/MyReaderGUIPlugin_Plugin.cxx:69: error: ‘MyReaderSMPluginvtkMyReaderGetInterfaces’ was not declared in this scope make[2]: *** [MyReader/CMakeFiles/MyReaderGUIPlugin.dir/MyReaderGUIPlugin_Plugin.cxx.o] Error 1 Is it just me?! Thanks, Paul ___ 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 ___ 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] problem with latest CVS
Hi, Thanks for all! Unfortunately, I am currently re-compiling ParaView from scratch... I will give you a feed-back as soon as my tiny comp' has finished. What I can say is that your fix about 'static' link is ok. I did not have to wait the compilation to end, maybe because this is CMake-script related? The build error is now reported on a DICOM reader and I am having the following message : /home/dje/Softwares/VesselExtraction/Plugins/ParaView/CoronaryExtractionToolbar_Plugin.cxx:43:93: erreur: /home/dje/Softwares/VesselExtraction/Plugins/ParaView/vtkSMXML_DICOMImageReader.h : Aucun fichier ou dossier de ce type /home/dje/Softwares/VesselExtraction/Plugins/ParaView/CoronaryExtractionToolbar_Plugin.cxx: In member function ‘virtual void CoronaryExtractionToolbar_Plugin::GetXMLs(std::vectorstd::basic_stringchar, std::char_traitschar, std::allocatorchar , std::allocatorstd::basic_stringchar, std::char_traitschar, std::allocatorchar )’: /home/dje/Softwares/VesselExtraction/Plugins/ParaView/CoronaryExtractionToolbar_Plugin.cxx:71: erreur: ‘DICOMImageReaderDICOMReaderGetInterfaces’ was not declared in this scope make[2]: *** [Plugins/ParaView/CMakeFiles/CoronaryExtractionToolbar.dir/CoronaryExtractionToolbar_Plugin.cxx.o] Erreur 1 make[2]: *** Attente des tâches non terminées (Sorry for the frenchy message!!) The vtkSMXML_DICOMImageReader.h cannot be found. But he exists ! Attached are vtkSMXML_DICOM.h and the DICOM_plugin cxx and h. Thanks again, Jerome 2009/12/3 Utkarsh Ayachit utkarsh.ayac...@kitware.com Jerome, I tried to mimic your plugin by a small example but could not reproduce your issue. If you don't mind helping me track this down, can you try the following: * First, try clean building -- delete the build directory for the plugin (not paraview) and try again. * Does the vtkSMXML_*.h the compiler is complaining about exist? * What does ICSImageReader_Plugin.cxx look like? Thanks, Utkarsh On Thu, Dec 3, 2009 at 5:20 AM, Jérôme jerome.ve...@gmail.com wrote: Utkarsh, I have similar problem: the generated vtkSMXML_ header files cannot be found. Attached is my CMakeLists defining the plugins. Some variables are declared in other places. If you need them, tell me. Jerome 2009/12/2 Utkarsh Ayachit utkarsh.ayac...@kitware.com Paul, I've been changing the way plugins are configured. Can you try clean-building your plugin? If that doesn't work, can you post your CMakeLists.txt file? Thanks Utkarsh On Wed, Dec 2, 2009 at 6:33 AM, Paul Edwards paul.m.edwa...@gmail.com wrote: I'm getting build errors on my plugins: . /path/to/build/dir/MyReader/MyReaderGUIPlugin_Plugin.cxx:43:86: error: /path/to/build/dir/MyReader/vtkSMXML_MyReaderSMPlugin.h: No such file or directory /path/to/build/dir/MyReader/MyReaderGUIPlugin_Plugin.cxx: In member function ‘virtual void MyReaderGUIPlugin_Plugin::GetXMLs(std::vectorstd::basic_stringchar, std::char_traitschar, std::allocatorchar , std::allocatorstd::basic_stringchar, std::char_traitschar, std::allocatorchar )’: /path/to/build/dir/MyReader/MyReaderGUIPlugin_Plugin.cxx:69: error: ‘MyReaderSMPluginvtkMyReaderGetInterfaces’ was not declared in this scope make[2]: *** [MyReader/CMakeFiles/MyReaderGUIPlugin.dir/MyReaderGUIPlugin_Plugin.cxx.o] Error 1 Is it just me?! Thanks, Paul ___ 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 // Loadable modules // // Generated by /home/dje/Softwares/ParaView-3.7/Release/bin/kwProcessXML // #ifndef __DICOMImageReader_h #define __DICOMImageReader_h #include string.h // From file /home/dje/Codes/VesselExtraction/Plugins/ParaView/DICOMReader.xml static const char* DICOMImageReaderDICOMReaderInterface0 = ServerManagerConfiguration\n \n ProxyGroup name=\sources\\n !-- == --\n SourceProxy name=\DICOMImageReader\ class=\vtkDICOMImageReader\\n label=\DICOM Reader\\n StringVectorProperty\n name=\DirectoryName\\n number_of_elements=\1\\n command=\SetDirectoryName\\n immediate_update=\1\\n
Re: [Paraview] problem with latest CVS
You got it, Utkarsh! Thanks a lot! Jerome 2009/12/3 Utkarsh Ayachit utkarsh.ayac...@kitware.com Thanks Paul and Jerome, All those files helped. The issue was exposed where there were multiple call to ADD_PARAVIEW_PLUGIN in a CMakeLists.txt file. The problem was since ADD_PARAVIEW_PLUGIN was a macro, the state of some variables was cleared cleanly and hence leaked from one call to another. Fixed that by converting the ADD_PARAVIEW_PLUGIN to a function (instead of a macro) so variable scopes work as expected. I've committed a fix. Let me know if that doesn't help. Utkarsh On Thu, Dec 3, 2009 at 11:32 AM, Jérôme jerome.ve...@gmail.com wrote: Hi, Thanks for all! Unfortunately, I am currently re-compiling ParaView from scratch... I will give you a feed-back as soon as my tiny comp' has finished. What I can say is that your fix about 'static' link is ok. I did not have to wait the compilation to end, maybe because this is CMake-script related? The build error is now reported on a DICOM reader and I am having the following message : /home/dje/Softwares/VesselExtraction/Plugins/ParaView/CoronaryExtractionToolbar_Plugin.cxx:43:93: erreur: /home/dje/Softwares/VesselExtraction/Plugins/ParaView/vtkSMXML_DICOMImageReader.h : Aucun fichier ou dossier de ce type /home/dje/Softwares/VesselExtraction/Plugins/ParaView/CoronaryExtractionToolbar_Plugin.cxx: In member function ‘virtual void CoronaryExtractionToolbar_Plugin::GetXMLs(std::vectorstd::basic_stringchar, std::char_traitschar, std::allocatorchar , std::allocatorstd::basic_stringchar, std::char_traitschar, std::allocatorchar )’: /home/dje/Softwares/VesselExtraction/Plugins/ParaView/CoronaryExtractionToolbar_Plugin.cxx:71: erreur: ‘DICOMImageReaderDICOMReaderGetInterfaces’ was not declared in this scope make[2]: *** [Plugins/ParaView/CMakeFiles/CoronaryExtractionToolbar.dir/CoronaryExtractionToolbar_Plugin.cxx.o] Erreur 1 make[2]: *** Attente des tâches non terminées (Sorry for the frenchy message!!) The vtkSMXML_DICOMImageReader.h cannot be found. But he exists ! Attached are vtkSMXML_DICOM.h and the DICOM_plugin cxx and h. Thanks again, Jerome 2009/12/3 Utkarsh Ayachit utkarsh.ayac...@kitware.com Jerome, I tried to mimic your plugin by a small example but could not reproduce your issue. If you don't mind helping me track this down, can you try the following: * First, try clean building -- delete the build directory for the plugin (not paraview) and try again. * Does the vtkSMXML_*.h the compiler is complaining about exist? * What does ICSImageReader_Plugin.cxx look like? Thanks, Utkarsh On Thu, Dec 3, 2009 at 5:20 AM, Jérôme jerome.ve...@gmail.com wrote: Utkarsh, I have similar problem: the generated vtkSMXML_ header files cannot be found. Attached is my CMakeLists defining the plugins. Some variables are declared in other places. If you need them, tell me. Jerome 2009/12/2 Utkarsh Ayachit utkarsh.ayac...@kitware.com Paul, I've been changing the way plugins are configured. Can you try clean-building your plugin? If that doesn't work, can you post your CMakeLists.txt file? Thanks Utkarsh On Wed, Dec 2, 2009 at 6:33 AM, Paul Edwards paul.m.edwa...@gmail.com wrote: I'm getting build errors on my plugins: . /path/to/build/dir/MyReader/MyReaderGUIPlugin_Plugin.cxx:43:86: error: /path/to/build/dir/MyReader/vtkSMXML_MyReaderSMPlugin.h: No such file or directory /path/to/build/dir/MyReader/MyReaderGUIPlugin_Plugin.cxx: In member function ‘virtual void MyReaderGUIPlugin_Plugin::GetXMLs(std::vectorstd::basic_stringchar, std::char_traitschar, std::allocatorchar , std::allocatorstd::basic_stringchar, std::char_traitschar, std::allocatorchar )’: /path/to/build/dir/MyReader/MyReaderGUIPlugin_Plugin.cxx:69: error: ‘MyReaderSMPluginvtkMyReaderGetInterfaces’ was not declared in this scope make[2]: *** [MyReader/CMakeFiles/MyReaderGUIPlugin.dir/MyReaderGUIPlugin_Plugin.cxx.o] Error 1 Is it just me?! Thanks, Paul ___ 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
Re: [Paraview] Building plugin with sources in different directory
Yes, I think this is the cause. Your MyFilter/CMakeLists should define the project and different variables such as the include folders. You asked me out-of-list for my usual configurations: You may want to take a look at http://github.com/jeromevelut/Chiron This is a work-in-progress Medical Imaging Paraview plugin. Checkout the Chiron-PoC branch (proof-of-concept). The structure will not change. In your case, your root folder looks like my ./Modules/ folder and your ./plugin is the same as my ./Plugins HTH, Jerome 2009/11/29 pat marion pat.mar...@kitware.com Do you need to include_directories(../) ? Pat On Sun, Nov 29, 2009 at 12:08 PM, David Doria daviddo...@gmail.comwrote: On Sun, Nov 29, 2009 at 11:48 AM, Dave Partyka dave.part...@kitware.com wrote: Is there a MyPlugin.h file and is it in the same directory as the .cxx? If I recall correctly the ADD_PARAVIEW_PLUGIN sets up client/server wrappings and makes an assumption that each source file you give it has a header file. There is indeed a MyPlugin.h that is in the same directory as MyPlugin.cxx. What I think the problem is though is the CMakeLists.txt is not in the same directory as those source files. The setup is like this /MyFilter/MyFilter.cxx /MyFilter/MyFilter.h /MyFilter/CMakeLists.txt /MyFilter/plugin/MyFilter.xml /MyFilter/plugin/CMakeLists.txt The MyFilter CMakeLists SUBDIRS the plugin directory. The plugin/CMakeLists.txt has ADD_PARAVIEW_PLUGIN(MyFilter 1.0 SERVER_MANAGER_XML MyFilter.xml SERVER_MANAGER_SOURCES ../MyFilter.cxx ) I think the problem is that it is looking in /MyFilter/plugin for the .h file. Am I misunderstanding? Is there a way to tell it where to look (in this case, ../)? 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 ___ 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] Developing plugins procedural question
Hi, My own experience is the following: I usually make a project with this directory structure: ./ ./Algorithms ./Plugins ./(other stuffs) a global CMakeLists defines different variables: - ALGORITHM_PATH - PLUGIN_PATH A user-defined variable - BUILD_PARAVIEW_PLUGIN If the latter is on, then I add SUB_DIRS( PLUGIN_PATH ) In the Algorithm folder, a CMakeLists create a new library (say VTKAlgo lib) and set a ALGORITHM_SRC variable that contains the cxx and h. Obvously INCLUDE_DIR is set to this path too. In the Plugin folder, a CMakeLists build the plugin. After the ADD_PARAVIEW_PLUGIN, I add TARGET_LINK_LIBRARY( MyPlugin VTKAlgo) This structure is quite convenient IMHO and I use it for any new project. Final user can choose to build only the VTK lib or the ParaView plugin. For extended project with other targets (such as GIMIAS), I simply have to add a folder with properly defined CMake variable. HTH Jerome 2009/11/28 David Doria daviddo...@gmail.com Say I have written a VTK filter and the directory structure is as follows: .../MyFilter/MyFilter.h .../MyFilter/MyFilter.cxx .../MyFilter/CMakeLists.txt And it is built in .../MyFilter/bin I now want to make a Paraview plugin for it. I would like to keep it very separate though so I can still have something to hand out to people who just want the filter, and then have something extra that I could also provide if people want the plugin. I tried to do the following: Make a .../MyFilter/plugin directory. Put the MyFilter.xml and a new CMakeLists.txt in that directory. set SERVER_MANAGER_SOURCES to ../vtkMyFilter.cxx (which is .../MyFilter/MyFilter.cxx) I then made .../MyFilter/plugin/bin and tried to build the plugin in this directory. The problem seems to be that since vtkMyFilter.cxx includes vtkMyFilter.h, this header cannot be found since we are no longer in the same directory that vtkMyFilter.h exists in. I guess ideally I would like to have a .../MyFilter/CMakeListsPlugin.txt and build it in .../MyFilter/plugin_bin, but as far as I understand cmake will only let you read the configuration from a file named exactly CMakeLists.txt. Is there an easy solution to this? How do you guys do 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 ___ 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] MHD reader not available
Hi, The Open file dialog does not propose Meta Image File since a recent checkout (2 days ago) of the CVS head. I investigated this problem: - File ParaView3/Servers/ServerManager/Resources/readers.xml: The description of the vtkMetaImageReader is name=Meta Image Reader. I found weird to see spaces in the name, and there is no 'label' field - File ParaView3/Applications/ParaView/ParaViewReaders.xml: The line concerning MHD is Meta Image Proxy, instead of Meta Image Reader. I am currently building a release ParaView, so I cannot test changes and send a patch... Jerome ___ 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] MHD reader not available
I fixed the Meta Image Reader. Attached is a patch file obtained from: cvs diff ./Applications/ParaView/ParaViewReaders.xml ./Servers/ServerManager/Resources/readers.xml metaimagereader.patch I also submit a bug report here : http://public.kitware.com/Bug/view.php?id=9973 Best regards, Jerome 2009/11/27 Jérôme jerome.ve...@gmail.com Hi, The Open file dialog does not propose Meta Image File since a recent checkout (2 days ago) of the CVS head. I investigated this problem: - File ParaView3/Servers/ServerManager/Resources/readers.xml: The description of the vtkMetaImageReader is name=Meta Image Reader. I found weird to see spaces in the name, and there is no 'label' field - File ParaView3/Applications/ParaView/ParaViewReaders.xml: The line concerning MHD is Meta Image Proxy, instead of Meta Image Reader. I am currently building a release ParaView, so I cannot test changes and send a patch... Jerome metaimagereader.patch Description: Binary data ___ 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 freezes the laptop with Intel graphics card
Hi, I am running Fedora 11 as well, but with ATI card. Are you experiencing this problem with *every* vti/vtp files? or only with a few? In the latter case, the best you can do is to post the concerned files if they are not too heavy, or to give an url where we can find it. Best regards, Jerome 2009/10/30 siqi chen siqiche...@gmail.com Hi, I am using Paraview 3.7.0 under Fedora 11. But it constantly freezes the laptop when try to open files such as .vtp or .vti and I have to manually reboot. This is annoying. The video card on the laptop is Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller. Any suggestions? Thanks Siqi ___ 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] Auto-load plugin failed
Hi Yumin, I submitted a bug reporting this issue. I hope I did it well. http://public.kitware.com/Bug/view.php?id=9803 Best regards, Jerome 2009/10/27 Yumin Yuan yumin.y...@kitware.com Hi Jerome, On Tue, Oct 27, 2009 at 3:45 AM, Jérôme jerome.ve...@gmail.com wrote: Hi Yumin, Compiling my XML to expose VTK native filters produces a so/dll library that can be autoloaded in ParaView. However, I would take advantage on the fact that this XML may be shared to somebodyelse without the need to own ParaView from source. The wiki says: Alternatively, we can simply load the XML from the Plugins Manager (just select the file type to be *.xml in the file open dialog). I want this because of deployment issues see thread About on-line available binaries for next release ) - What have I to add in the XML to give him the same behaviour than its corresponding compiled library? I think this is probably a bug if you check Auto Load for the xml, but it still doesn't auto-load next time. I suggest to log it in the bug tracker. Furthermore, I thought that my Autostart plugin (called PVCustomizer) was unable to autoload because it depends on my ParaviewVTK XML plugin. But that is not the case: Even if I load the native VTK filters description with the compiled version, my PVCustomizer is loadable through the GUI, but it shows the message Loaded, but .\PVCustomizer.dll, is not a server manager plugin! and no version is displayed although my CMakeLists contains the following lines: ## # AUTOSTART PLUGIN -- QT4_WRAP_CPP(MOC_SRCS PVCustomizer.h) # Macro for auto-start plugins. We specify the class name # and the methods to call on startup and shutdown on an instance of that class. # It fills IFACES and IFACE_SRCS with proper values as needed by ADD_PARAVIEW_PLUGIN macro. ADD_PARAVIEW_AUTO_START(IFACES IFACE_SRCS CLASS_NAME PVCustomizer # the class name for our class STARTUP onStartup # specify the method to call on startup SHUTDOWN onShutdown # specify the method to call on shutdown ) # Create a plugin for this starter ADD_PARAVIEW_PLUGIN(PVCustomizer 1.0 REQUIRED_ON_CLIENT GUI_INTERFACES ${IFACES} SOURCES PVCustomizer.cxx ${MOC_SRCS} ${IFACE_SRCS} REQUIRED_PLUGINS ParaviewVTK) TARGET_LINK_LIBRARIES( PVCustomizer VesselExtractionVTK ) ## I checked Autoload, having no effect when I restart ParaView... I looked at the sources, but I cannot understand now why this message is displayed. I will give a try with a step-by-step procedure. I assume you Rebuilt the plugin after the new changes, and it still displayed the warning? Then, it is a bug. Thanks a lot for your time, Yumin, and sorry for disturbing... No problem. Yumin Yumin Yuan RD Engineer Kitware Inc. www.kitware.com Phone : (518) 881-4936 email : yumin.y...@kitware.com ___ 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 freezes the laptop with Intel graphics card
W... If it is possible for you to trace a debug built, it could give useful information. However, I precise my question: are you experiencing -sometimes- this crash with your files, or it happens also on common files, such as the one you can find in ParaViewData? Waiting for your debug trace ;) Jerome 2009/10/30 siqi chen siqiche...@gmail.com Hi, Jerome, This is the weird part. It doesn't crash at specific files. It seems like a random event. Thanks Siqi On Fri, Oct 30, 2009 at 11:21 AM, Jérôme jerome.ve...@gmail.com wrote: Hi, I am running Fedora 11 as well, but with ATI card. Are you experiencing this problem with *every* vti/vtp files? or only with a few? In the latter case, the best you can do is to post the concerned files if they are not too heavy, or to give an url where we can find it. Best regards, Jerome 2009/10/30 siqi chen siqiche...@gmail.com Hi, I am using Paraview 3.7.0 under Fedora 11. But it constantly freezes the laptop when try to open files such as .vtp or .vti and I have to manually reboot. This is annoying. The video card on the laptop is Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller. Any suggestions? Thanks Siqi ___ 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] paraview freezes the laptop with Intel graphics card
Hi, If this is a complete freeze, I think that this is not linked to ParaView. I had this problem on my laptop when running Firefox with more than one tab. However, this freeze was reported for ATI card. But, as far as I know, Intel cards show a series of problem under Linux. Sorry for not being of more help. Jerome 2009/10/30 siqi chen siqiche...@gmail.com Hi, I forgot to mention that the whole computer freezes when this happens. I tried to write the debug information to a file by using gdb paraview error.txt , but there is no error report in the file after I reboot. So it must be that the computer crashes before any error is written to the file. What should I do now? Thanks Siqi On Fri, Oct 30, 2009 at 12:12 PM, Jérôme jerome.ve...@gmail.com wrote: W... If it is possible for you to trace a debug built, it could give useful information. However, I precise my question: are you experiencing -sometimes- this crash with your files, or it happens also on common files, such as the one you can find in ParaViewData? Waiting for your debug trace ;) Jerome 2009/10/30 siqi chen siqiche...@gmail.com Hi, Jerome, This is the weird part. It doesn't crash at specific files. It seems like a random event. Thanks Siqi On Fri, Oct 30, 2009 at 11:21 AM, Jérôme jerome.ve...@gmail.com wrote: Hi, I am running Fedora 11 as well, but with ATI card. Are you experiencing this problem with *every* vti/vtp files? or only with a few? In the latter case, the best you can do is to post the concerned files if they are not too heavy, or to give an url where we can find it. Best regards, Jerome 2009/10/30 siqi chen siqiche...@gmail.com Hi, I am using Paraview 3.7.0 under Fedora 11. But it constantly freezes the laptop when try to open files such as .vtp or .vti and I have to manually reboot. This is annoying. The video card on the laptop is Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller. Any suggestions? Thanks Siqi ___ 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 ___ 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 freezes the laptop with Intel graphics card
Regarding your debug info: if nothing is written in the output file, I *really* expect ParaView for not being the cause of the freeze... 2009/10/30 Jérôme jerome.ve...@gmail.com Hi, If this is a complete freeze, I think that this is not linked to ParaView. I had this problem on my laptop when running Firefox with more than one tab. However, this freeze was reported for ATI card. But, as far as I know, Intel cards show a series of problem under Linux. Sorry for not being of more help. Jerome 2009/10/30 siqi chen siqiche...@gmail.com Hi, I forgot to mention that the whole computer freezes when this happens. I tried to write the debug information to a file by using gdb paraview error.txt , but there is no error report in the file after I reboot. So it must be that the computer crashes before any error is written to the file. What should I do now? Thanks Siqi On Fri, Oct 30, 2009 at 12:12 PM, Jérôme jerome.ve...@gmail.com wrote: W... If it is possible for you to trace a debug built, it could give useful information. However, I precise my question: are you experiencing -sometimes- this crash with your files, or it happens also on common files, such as the one you can find in ParaViewData? Waiting for your debug trace ;) Jerome 2009/10/30 siqi chen siqiche...@gmail.com Hi, Jerome, This is the weird part. It doesn't crash at specific files. It seems like a random event. Thanks Siqi On Fri, Oct 30, 2009 at 11:21 AM, Jérôme jerome.ve...@gmail.comwrote: Hi, I am running Fedora 11 as well, but with ATI card. Are you experiencing this problem with *every* vti/vtp files? or only with a few? In the latter case, the best you can do is to post the concerned files if they are not too heavy, or to give an url where we can find it. Best regards, Jerome 2009/10/30 siqi chen siqiche...@gmail.com Hi, I am using Paraview 3.7.0 under Fedora 11. But it constantly freezes the laptop when try to open files such as .vtp or .vti and I have to manually reboot. This is annoying. The video card on the laptop is Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller. Any suggestions? Thanks Siqi ___ 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 ___ 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] Image filters extent
Hi all, I am fighting again against these extent problems. see threads: http://www.paraview.org/pipermail/paraview/2009-January/010903.html http://www.paraview.org/pipermail/paraview/2009-April/011674.html (for the last mail, indeed) http://www.paraview.org/pipermail/paraview/2009-March/011334.html I have an input volume with extent (0,511,0,511,0,109). I wrote a filter that reslices this volume orthogonally along a spline curve (Straightened-CPR). Thus the output extent does not depend on input extent at all. If I want to see the structures around the spline, I can use, say, about 15 voxels in the output x and y dimensions. The output's z dimension will depend on the number of points of the spline. My first problem was related to the outline that shows a different bounding box than the information panel. In my case, having more than 110 points in the curve made my output volume extent clip at 110 on z extent! I managed to solve it by implementing the RequestUpdateExtent function. Now, the output extent can be different than the input with -almost- no problem. Now that I have a reliable output extent, I wish to slice the volume with a Slice representation. Problem is: each time I change slice, the filter updates! In debug mode, the pipeline execution shows these function calls when change current slice: (I edited the debug output for a more friendly reading) ## vtkStraightenedCurvedPlanarReformation (1EBFB850): RequestUpdateExtent (vtkAlgorithm.h ) vtkStraightenedCurvedPlanarReformation (1EBFB850): setting AbortExecute to 0 returning ProgressText of (null) vtkStraightenedCurvedPlanarReformation (1EBFB850): RequestData (vtkAlgorithm.h ) vtkStraightenedCurvedPlanarReformation (1EBFB850): setting AbortExecute to 0 returning ProgressText of (null) ## Here is my RequestUpdateExtent function: int vtkStraightenedCurvedPlanarReformation::RequestUpdateExtent ( vtkInformation * vtkNotUsed(request), vtkInformationVector** inputVector, vtkInformationVector *outputVector) { vtkDebugMacro( RequestUpdateExtentendl); //! \bug RequestUpdateExtent set the filter to Modified each time it is //! called. One effect is to call RequestData when slicing through the //! output. // get the info objects vtkInformation* outInfo = outputVector-GetInformationObject(0); vtkInformation *inInfo = inputVector[0]-GetInformationObject(0); int outExtent[6], inExtent[6], uExtent[6]; // uExtent is no more used... outInfo-Get(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(), outExtent); outInfo-Get(vtkStreamingDemandDrivenPipeline::UPDATE_EXTENT(), uExtent); inInfo-Get(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(), inExtent); // clip the inExtent to the outExtent. Is it normal to do that??? for( int i=0; i 6; i+=2 ) { if( inExtent[i] outExtent[i] ) inExtent[i] = outExtent[i]; if( inExtent[i+1] outExtent[i+1] ) inExtent[i+1] = outExtent[i+1]; } outInfo-Set(vtkStreamingDemandDrivenPipeline::UPDATE_EXTENT(), inExtent, 6); return( 1 ); } I have very big difficulties to understand the 'extent' concept in VTK. Is there a detailed chapter on that in VTK books? Or do I have to parse the code, step-by-step? Thanks for your help. Best regards, Jerome 2009/3/10 Jérôme jerome.ve...@gmail.com Hi, I noticed such a problem for other filters. In fact, it seems that vtkImageReslice and inherited filters are not ParaView compliant. I was forced to write external executable to process my volumes (making isotropic an anisotropic DICOM volume), then I open it in Paraview. Best regards, Jerome 2009/3/10 Bryn Lloyd bll...@vision.ee.ethz.ch Still no progress on this. I have tried to integrate vtkImageConstantPad as a plugin. The displayed outline of the image (in paraview) suggests that the extent of the enlarged image is correct, but the information printed in the information tab shows the same extent as the input, rather than the one I expect at the output of vtkImageConstantPad. say the input is an 10x10x10 image. I set the output extent to be 12x12x12 in the vtkImageConstantPad. However, Paraview tells me the output still has dimensions 10x10x10. I have modified vtkImageConstantPad and tried different parent classes - vtkImageToImageFilter - vtkImageAlgorithm - vtkDataSetAlgorithm - vtkTrivialProducer ... hoping to break up the pipeline somehow, i.e. simply producing a new image, which is displayed and can be used subsequently for other operations. Sofar with no success. I have written a test, which runs
Re: [Paraview] [vtkusers] vtkDelaunay3D
Hi Alessandro, please, reply to the list so that anyone having the answer could... well, answers. As you said, this is a warning, not an error. Do you get the expected output? I get this warning when I don't give good settings to the Delaunay filter. Jerome 2009/10/29 Alessandro Artusi artusialessand...@googlemail.com Dear Pam and Jerome, thanks a lot, your emails have clarified to me many aspects. I have tried what you have suggested Pam, but I get this error: Generic Warning: In /build/buildd/vtk-5.0.4/Common/vtkMath.cxx, line 394 Unable to factor linear system Delaunay return me this warning. Any suggestion? Thanks a lot again, Alessandro. On Thu, Oct 29, 2009 at 4:49 PM, pam papere...@gmail.com wrote: Hi, I don't know if you are programming on C++ if this is the case I used it in this way, using a vtkUnstructuredGrid example pts=vtkPoints::New(); //points x-y-z pts-InsertPoint(0,1,1,1); pts-InsertPoint(1,16,10,1.25); pts-InsertPoint(2,17,11,1); pts-InsertPoint(3,20,12,1.2); pts-InsertPoint(4,15,12,1); vtkUnstructuredGrid* profile = vtkUnstructuredGrid::New(); --- or could by vtkPolyData //Specify point array to define point coordinates. profile-SetPoints(pts); delny=vtkDelaunay3D::New(); delny-SetInput(profile); delny-Update(); Hope this helps. Pam 2009/10/29 Alessandro Artusi artusialessand...@googlemail.com Dear All, I am trying to use the vtkDelaunay3D but I am getting an error: delny = vtk.vtkDelaunay3D() delny.SetInput(p) delny.SetTolerance(0.01) where p is a vtkPoints defined as: p = vtk.vtkPoints() p.SetNumberOfPoints(elem) and I am inserting some points in p like this: p.InsertPoint(index, x, y, z) I am getting the following error at the line delny.SetInput(p): TypeError: function takes exactly 2 arguments (1 given) But I had a look to the documentation of the class vtkDelaunay3D and SetInput takes only one argument Someone can tell me where I am mistaken? Thanks a lot. 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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers ___ 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] Auto-load plugin failed
Hi Yumin, Compiling my XML to expose VTK native filters produces a so/dll library that can be autoloaded in ParaView. However, I would take advantage on the fact that this XML may be shared to somebodyelse without the need to own ParaView from source. The wiki says: Alternatively, we can simply load the XML from the *Plugins Manager* (just select the file type to be *.xml in the file open dialog). I want this because of deployment issues see thread About on-line available binaries for next release ) - What have I to add in the XML to give him the same behaviour than its corresponding compiled library? Furthermore, I thought that my Autostart plugin (called PVCustomizer) was unable to autoload because it depends on my ParaviewVTK XML plugin. But that is not the case: Even if I load the native VTK filters description with the compiled version, my PVCustomizer is loadable through the GUI, but it shows the message Loaded, but .\PVCustomizer.dll, is not a server manager plugin! and no version is displayed although my CMakeLists contains the following lines: ## # AUTOSTART PLUGIN -- QT4_WRAP_CPP(MOC_SRCS PVCustomizer.h) # Macro for auto-start plugins. We specify the class name # and the methods to call on startup and shutdown on an instance of that class. # It fills IFACES and IFACE_SRCS with proper values as needed by ADD_PARAVIEW_PLUGIN macro. ADD_PARAVIEW_AUTO_START(IFACES IFACE_SRCS CLASS_NAME PVCustomizer # the class name for our class STARTUP onStartup # specify the method to call on startup SHUTDOWN onShutdown # specify the method to call on shutdown ) # Create a plugin for this starter ADD_PARAVIEW_PLUGIN(PVCustomizer 1.0 REQUIRED_ON_CLIENT GUI_INTERFACES ${IFACES} SOURCES PVCustomizer.cxx ${MOC_SRCS} ${IFACE_SRCS} REQUIRED_PLUGINS ParaviewVTK) TARGET_LINK_LIBRARIES( PVCustomizer VesselExtractionVTK ) ## I checked Autoload, having no effect when I restart ParaView... I looked at the sources, but I cannot understand now why this message is displayed. I will give a try with a step-by-step procedure. Thanks a lot for your time, Yumin, and sorry for disturbing... Best regards, Jerome 2009/10/26 Yumin Yuan yumin.y...@kitware.com Hi Jerome, You can try to compile your xml into a plugin, which will also solve your the Version problem Check Enabling a filter in VTK section on the wiki: http://paraview.org/Wiki/Plugin_HowTo Yumin On Mon, Oct 26, 2009 at 11:39 AM, Jérôme jerome.ve...@gmail.com wrote: Hi Yumin, Thanks a lot for your interest !! However... I assume once you load your xml plugin from the plugin_loader, and check the Auto Load checkbox, the next time you start paraview, your xml plugin is loaded automatically, no? That's my problem: it is not loaded even in this case... Attached is a minimal xml that exposes vtkImageMathematics to paraview filter list. I cannot auto-load it. Now regarding the warning message, I believe it is due to the new addition to ADD_PARAVIEW_PLUGIN macro in ParaViewPlugins.cmake (see below), and the version shown in the plugin_loader_GUI refers to plugin Version you set when calling ADD_PARAVIEW_PLUGIN in CMakeLists.txt Yes, my CMakeLists contains the version specification for the cxx plugins. But thank you for the update about REQUIRED_PLUGINS, I was hoping that it will solve my problem. So I set the PVCustomizer (cxx plugin, version 1.0 in the CMakeLists) requiring the XML ParaviewVTK. But I cannot load ParaviewVTK, so making the former depending on the latter is quite awkward... Finally, you made me progressing and I have a more precise question : - How to set the version of a plugin that is only an XML description of VTK filters? -ie I don't have a CMakeLists for this...- Thanks again Yumin! Jerome On Fri, Oct 23, 2009 at 4:34 AM, Jérôme jerome.ve...@gmail.com wrote: Hi, ParaView-CVS brought a good surprise for me a few days ago. The plugin loader has been rewrote and is now offering an auto-load option that is very useful. However, I have an XML description of a lot of VTK native filters that cannot be opened automatically. I have to Load new each time. Then, no problem, the filters are exposed in the menu. But the plugin loader gives a warning message (see screenshot attached) and no Version (effectively, the XML doesn't have a version= element)... Second, I have an AutoStartPlugin that shows exactly the same problem (PVCustomizer). The reason, I think, is that this plugin depends on VTK filters (SplineFilter) that is described in the previous XML... Can someone tell me how to make the XML plugin 'autoloadeable' ? I wonder if it will solve the second problem... Thanks a lot! Jerome
Re: [Paraview] Auto-load plugin failed
Thanks Yumin, - For the XML auto-load failure, I will post it in the bug tracker. Do I have access to mantis with an universal authentification? Or do I have to request for a login/pass? - For the autostart plugin that shows the warning, I will try with a minimal build environment and post it as bug (if it is confirmed). Best regards, Jerome 2009/10/27 Yumin Yuan yumin.y...@kitware.com Hi Jerome, On Tue, Oct 27, 2009 at 3:45 AM, Jérôme jerome.ve...@gmail.com wrote: Hi Yumin, Compiling my XML to expose VTK native filters produces a so/dll library that can be autoloaded in ParaView. However, I would take advantage on the fact that this XML may be shared to somebodyelse without the need to own ParaView from source. The wiki says: Alternatively, we can simply load the XML from the Plugins Manager (just select the file type to be *.xml in the file open dialog). I want this because of deployment issues see thread About on-line available binaries for next release ) - What have I to add in the XML to give him the same behaviour than its corresponding compiled library? I think this is probably a bug if you check Auto Load for the xml, but it still doesn't auto-load next time. I suggest to log it in the bug tracker. Furthermore, I thought that my Autostart plugin (called PVCustomizer) was unable to autoload because it depends on my ParaviewVTK XML plugin. But that is not the case: Even if I load the native VTK filters description with the compiled version, my PVCustomizer is loadable through the GUI, but it shows the message Loaded, but .\PVCustomizer.dll, is not a server manager plugin! and no version is displayed although my CMakeLists contains the following lines: ## # AUTOSTART PLUGIN -- QT4_WRAP_CPP(MOC_SRCS PVCustomizer.h) # Macro for auto-start plugins. We specify the class name # and the methods to call on startup and shutdown on an instance of that class. # It fills IFACES and IFACE_SRCS with proper values as needed by ADD_PARAVIEW_PLUGIN macro. ADD_PARAVIEW_AUTO_START(IFACES IFACE_SRCS CLASS_NAME PVCustomizer # the class name for our class STARTUP onStartup # specify the method to call on startup SHUTDOWN onShutdown # specify the method to call on shutdown ) # Create a plugin for this starter ADD_PARAVIEW_PLUGIN(PVCustomizer 1.0 REQUIRED_ON_CLIENT GUI_INTERFACES ${IFACES} SOURCES PVCustomizer.cxx ${MOC_SRCS} ${IFACE_SRCS} REQUIRED_PLUGINS ParaviewVTK) TARGET_LINK_LIBRARIES( PVCustomizer VesselExtractionVTK ) ## I checked Autoload, having no effect when I restart ParaView... I looked at the sources, but I cannot understand now why this message is displayed. I will give a try with a step-by-step procedure. I assume you Rebuilt the plugin after the new changes, and it still displayed the warning? Then, it is a bug. Thanks a lot for your time, Yumin, and sorry for disturbing... No problem. Yumin Yumin Yuan RD Engineer Kitware Inc. www.kitware.com Phone : (518) 881-4936 email : yumin.y...@kitware.com ___ 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] Trouble making simple VTK filter plugin
If someone confirms that paraview proxy have to represent a vtkAlgorithm or one of its subclass, that will mean that you cannot use vtkIterativeClosestPointTransform directly as in the paraview pipeline. And yes, you got it, a custom VTK class would be needed to embed the pipeline connection and the transformation computation. Jerome 2009/10/25 David Doria daviddo...@gmail.com On Sun, Oct 25, 2009 at 3:31 PM, Jérôme jerome.ve...@gmail.com wrote: Hi, I took a look at your xml, and I didn't find any problems... So I verify in the VTK doc if you didn't misused the vtkIterativeClosestPointTransform, that I never had to work with. Especially, I checked the input data types (that was one of my major crashes' cause!) and I found that this filter is not a vtkAlgorithm (in the OO sense). And I think, but ParaView developers have to confirm this, that the ParaView proxy -that's what you described in your XML- concept is linked to vtkAlgorithm. If I am right, you cannot use the Enabling VTK filters in ParaView wiki-way. In your case, you certainly will have to write a subclass of vtkAlgorithm that outputs a matrix of transformation. Sorry for not being of more helps... Jerome Ah, that makes a lot of sense. I need to use a vtkTransformPolyDataFilter and set the input of this filter to the output of the vtkIterativeClosestPointTransform. Is this something that can be chained together in paraview? Or do I need to make a VTK filter that does all of this in one step and interface to the new filter with 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
Re: [Paraview] Auto-load plugin failed
Hi Yumin, Thanks a lot for your interest !! However... I assume once you load your xml plugin from the plugin_loader, and check the Auto Load checkbox, the next time you start paraview, your xml plugin is loaded automatically, no? That's my problem: it is not loaded even in this case... Attached is a minimal xml that exposes vtkImageMathematics to paraview filter list. I cannot auto-load it. Now regarding the warning message, I believe it is due to the new addition to ADD_PARAVIEW_PLUGIN macro in ParaViewPlugins.cmake (see below), and the version shown in the plugin_loader_GUI refers to plugin Version you set when calling ADD_PARAVIEW_PLUGIN in CMakeLists.txt Yes, my CMakeLists contains the version specification for the cxx plugins. But thank you for the update about REQUIRED_PLUGINS, I was hoping that it will solve my problem. So I set the PVCustomizer (cxx plugin, version 1.0 in the CMakeLists) requiring the XML ParaviewVTK. But I cannot load ParaviewVTK, so making the former depending on the latter is quite awkward... Finally, you made me progressing and I have a more precise question : - How to set the version of a plugin that is only an XML description of VTK filters? -ie I don't have a CMakeLists for this...- Thanks again Yumin! Jerome On Fri, Oct 23, 2009 at 4:34 AM, Jérôme jerome.ve...@gmail.com wrote: Hi, ParaView-CVS brought a good surprise for me a few days ago. The plugin loader has been rewrote and is now offering an auto-load option that is very useful. However, I have an XML description of a lot of VTK native filters that cannot be opened automatically. I have to Load new each time. Then, no problem, the filters are exposed in the menu. But the plugin loader gives a warning message (see screenshot attached) and no Version (effectively, the XML doesn't have a version= element)... Second, I have an AutoStartPlugin that shows exactly the same problem (PVCustomizer). The reason, I think, is that this plugin depends on VTK filters (SplineFilter) that is described in the previous XML... Can someone tell me how to make the XML plugin 'autoloadeable' ? I wonder if it will solve the second problem... Thanks a lot! Jerome ___ 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 -- Yumin Yuan RD Engineer Kitware Inc. www.kitware.com Phone : (518) 881-4936 email : yumin.y...@kitware.com ServerManagerConfiguration ProxyGroup name=filters !-- == -- SourceProxy name=ImageMathematics class=vtkImageMathematics label=Image Math Documentation long_help=Provides some image operations, one or two inputs. short_help=vtkImageMathematics filter. /Documentation InputProperty name=Input1 command=SetInputConnection port_index=0 ProxyGroupDomain name=groups Group name=sources/ Group name=filters/ /ProxyGroupDomain DataTypeDomain name=input_type DataType value=vtkImageData/ /DataTypeDomain Documentation Set the input to the Image Mathematics filter. /Documentation /InputProperty InputProperty name=Input2 command=SetInputConnection port_index=1 is_optional=1 ProxyGroupDomain name=groups Group name=sources/ Group name=filters/ /ProxyGroupDomain DataTypeDomain name=input_type DataType value=vtkImageData/ /DataTypeDomain Documentation Set the input to the Image Mathematics filter. /Documentation /InputProperty IntVectorProperty name=Operation command=SetOperation number_of_elements=1 default_values=0 EnumerationDomain name=enum Entry value=0 text=Add/ Entry value=1 text=Substract/ Entry value=2 text=Multiply/ Entry value=3 text=Divide/ Entry value=4 text=Invert/ Entry value=5 text=Sin/ Entry value=6 text=Cos/ Entry value=7 text=Exp/ Entry value=8 text=Log/ Entry value=9 text=Abs
Re: [Paraview] network created with box glyphs and tubes
Hi, if your links are independent polydatas, you can simply apply a transform filter with a 90deg-rotation to the ouput of your tube filters. HTH, Jerome 2009/10/23 Sreejith Pulloor sreejit...@gmail.com Paraview, I am trying to create a network with some cubic pores connected by square links. For the pores, I applied the box glyphs and for getting square links, I applied the tube filter with 4 sides. And the final picture is attached. Now if we look, the square cross section of the link lying diagonal to the cubic cross section. What i would like to have the cubic pores and square cross section aligned parallel. How can I do that? Any tips? thank you Sreejith ___ 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] Is it possible to add a new proxy group?
Hi, You can go here: http://paraview.org/Wiki/Plugin_HowTo#Adding_Categories_to_the_Filters_Menu It seems to deal with your problem! Best regards, Jerome 2009/10/23 Fred Fred stan1...@hotmail.fr Simple. I just would like to see in the filter menu a new category, below Alphabetical named MyFilters for instance. Date: Thu, 22 Oct 2009 13:02:31 -0400 Subject: Re: [Paraview] Is it possible to add a new proxy group? From: berk.gev...@kitware.com To: stan1...@hotmail.fr CC: paraview@paraview.org What are you trying to do? These classes will be brought into ParaView under a plugin? If yes, what sort of plugin (simple vs. custom GUI)? -berk On Thu, Oct 22, 2009 at 11:20 AM, Fred Fred stan1...@hotmail.fr wrote: Ok and is there a place where I could find how to proceed? Date: Thu, 22 Oct 2009 11:15:04 -0400 Subject: Re: [Paraview] Is it possible to add a new proxy group? From: berk.gev...@kitware.com To: stan1...@hotmail.fr CC: paraview@paraview.org Yes. But somethings may not work 100% since ParaView uses certain groups to do certain things. 2009/10/22 Fred Fred stan1...@hotmail.fr: for instance to group all classes developped by myself in a single group? Nouveau! Découvrez le Windows phone Samsung Omnia II disponible chez SFR. Cliquez ici ___ 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 Nouveau! Découvrez le Windows phone Samsung Omnia II disponible chez SFR. Cliquez ici -- Nouveau Windows 7 : Trouvez le PC qui vous convient. En savoir plus.http://clk.atdmt.com/FRM/go/181574580/direct/01/ ___ 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] Dockable RenderView
Hi, just curiosity: Is there a reason why the render windows are not dockable, such as the pipeline browser panel or object property (or every config panels, in fact!) ? Thanks! Jerome ___ 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] Point source
Well, I just try the Auto-accept and I don't have any problem... But maybe I understand what is disturbing you: When you create the point source, default is 1 point at the center of sphere. This has a ponctual bounding box, so the camera is set very close to this point. When changing the parameters, the camera is not reset. It is likely that your source doesn't produce points in the field of view. Try this (that's what I did): just zoom out after having changing the parameters! In my mind, Auto-accept is not fired every time changes occur on property, but in a synchronous way. This has to be confirmed by reading the sources... HTH! Jérôme 2009/10/21 David Doria daviddo...@gmail.com On Wed, Oct 21, 2009 at 10:53 AM, Jérôme jerome.ve...@gmail.com wrote: Hi David, - I cannot reproduce your visibility problem. Once I click Apply after setting the paramter, my point cloud is displayed in the render window... - As PointSource proxy is linked to vtkPointSource, the VTK doc tells that the points are randomly distributed inside the specified sphere. - http://www.vtk.org/doc/nightly/html/classvtkPointSource.html#_details Best regards, Jerome I turned off auto accept and it works as you explained. However, with auto accept enabled, the points never get displayed until the source is disabled-enabled. I thought the idea of auto accept was that it was the equivalent of clicking apply after making every change? 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] Change input action crashes my ParaView
Hi, I have Paraview3 from CVS. When I want to change the inputs of a filter that has multiple inputs, I get this message: QAbstractItemModel::endRemoveRows: Invalid index ( 1 , 0 ) in model pqPipelineModel(0x8fa51c8) And then ParaView seg-faults. Could someone confirm that this is a bug by following these basic steps? - Add a Sphere source - Apply - Add an Axes source - Apply - Connect a Glyph with custom source to sphere - this will open an Input editor dialog with Sphere as input and nothing as source. - Choose Axes as source - Ok, Apply - Normally, you should have axes object at each sphere point (note: default scale is 0!! have to change in order to see them...) - Now, entering the bug: right click on Glyph in pipeline - Change input - Input editor dialog is opening: Click on source radio button - Choose Sphere in the pipeline - At this stage I get the QAbstractItem error message - Click OK: ParaView ends, seg fault. I noted this behaviour on WinXP 32, Fedora9-x86_32, Fedora11-x86_32 and Fedora11-x86_64. Please note that it could complete the bug #9312 on mantis, since this append not only when deleting the multiple input filter but also by changing the inputs... Thanks, Jerome ___ 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