Re: [Paraview] Some information about extending paraview functionalities
Difference between filters and plugins: Filters are the computational units in VTK and ParaView. They are connected together to form pipelines. In ParaView, the available filters are listed in the Filters menu. Plugins are a mechanism to add functionality to ParaView. That often includes adding filters to the Fitlers menu, but could also include a number of other things such as new menus, views, or python scripts. In ParaView there are actually two distinct versions of Python scripting which I usually labels as client-side scripting and server-side scripting. Client-side scripting is used to automate the operations that you would typically do through the ParaView GUI. It does not really interface directly with the VTK Python wrappings that you use. Client-side scripting is described on this Wiki page: http://www.paraview.org/Wiki/ParaView/Python_Scripting Server-side scripting is run directly in the pipeline via the Programmable Filter. To use it, you basically create a Programmable Filter and throw your Python code inside it. In this form of scripting you are directly interfacing with the VTK Python wrappers. Server-side scripting is described on this Wiki page: http://www.paraview.org/Wiki/Python_Programmable_Filter The plugin page concerning embedding Python that you pointed to is a convenience for plugins that provide or use client-side scripts. It is not useful for server-side scripting because that Python code does not have access to the loaded modules. (Or at least, I don't think that they do.) -Ken On 4/9/10 4:32 AM, Luca Penasa luca.pen...@email.it wrote: Hi everybody, Maybe some of my question could be answered with some 'googling', but i would like to make the point on some problems i have encountered. Thanks to everybody! this is my problem: In the last months i learned the basis of the vtk library (that is simply a wonderful tool!!) and i am using the python wrappings for my applications. I have writed a python module with several functions for doing operations on point clouds. At this point i am using paraview ONLY for view the results of my python code... Now i would like to make a step forward, and begin to implement my code into the paraview gui, maybe as a filter or plugin (sorry, but i did not clearly understand the difference!?), so i could import my data in paraview and do the same operations i am currently doing from the python shell. It would be great if i could extend paraview-gui functionalities for setting the parameters and execute the functions i writed in python... So i found this page: http://www.cmake.org/Wiki/Plugin_HowTo#Embedding_Python_Source_as_Modules but i cannot understand if what i want to do is actually possible or not.. Anybody can give me some clarifications? If it is possible, is there a place where to find some examples? Sorry for my english, i hope you understand what i mean! Thank you! -- --- Luca Penasa Student at Geosciences Dpt. University of Padua (IT) luca.pen...@email.it --- -- Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f Sponsor: Apri Conto Arancio entro il 28 febbraio 2010 e ricevi 50 Euro da spendere presso Media World. Aprilo adesso Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=10034d=9-4 ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview Kenneth Moreland *** Sandia National Laboratories *** *** *** *** email: kmo...@sandia.gov ** *** ** phone: (505) 844-8919 *** web: http://www.cs.unm.edu/~kmorel ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] 2D plots
Hi all, I'd like to use Paraview to make both 2D and 3D plots. I'm not sure what is the best way for doing 2D plots: is it by treating them as 3D plots with the third coordinate set to 0? If possible, I would prefer using .vtk ASCII input files, and my data are given on an unstructured triangular grid. Thank you, Marco ___ 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] Experience with hanging OpenMPI
On 04/09/2010 02:44 PM, pat marion wrote: Hi, just thought I'd share this in case someone else runs into the same issue- After upgrading my computer to dual quad-core intel xeons, and installing Ubuntu Karmic (9.10), pvserver with mpi would hang after a few renders. It turns out it was this bug: https://bugs.launchpad.net/ubuntu/+source/openmpi/+bug/504659 https://svn.open-mpi.org/trac/ompi/ticket/2043 I removed the openmpi-bin and libopenmpi-dev packages and installed libmpich2-dev and mpich2. Now everything is stable! Pat You can work around this bug by increasing the number of fifos open mpi uses. This avoids the race condition where all the fifos seem to be in use. Add : -mca btl_sm_num_fifos 16 to the mpirun command line. signature.asc Description: OpenPGP digital signature ___ 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] Paraview3.8
is announced at www.paraview.org but looking under Downloads 3.6.2 still is the most recent version. Is 3.8 already out? Only by cvs/git? Regards Bastian ___ 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] Paraview3.8
That note should have said branched, not released. I will try to get the website updated. Anyway, I should have RC1 binaries available tonight/tomorrow for download. On Mon, Apr 12, 2010 at 4:28 PM, bastil2...@yahoo.de bastil2...@yahoo.dewrote: is announced at www.paraview.org but looking under Downloads 3.6.2 still is the most recent version. Is 3.8 already out? Only by cvs/git? Regards Bastian ___ 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 Range
I am developing a python script to visualise point data (unstructured grid) with a large number of scalar values for each point. My problem is some of the scalar data is a bit noisy, i.e. a histogram of the values has a long tail at one or both ends, which effectively reduces the useful range of color in the visualisation. I would like to determine the 5 and 95 percentiles for each data array and use these as the range for the LUT. And I would like to do this from my python script. I can't figure out how to get at the underlying point data, as it would then be very easily to calculate a restricted range. See my current script below. Thanks in advance for any help, Dave from paraview.simple import * sm = servermanager sm.Connect() INPUTFILES = (Esk all trees v2.txt_1.vtk, Esk all trees v2.txt_2.vtk, Esk all trees v2.txt_3.vtk) # create reader for legacy VTK files reader = LegacyVTKReader(FileNames=INPUTFILES[2]) #create and configure view window Show() view = GetActiveView() #set the background color #view.Background = [1,1,1] #white #set window size view.ViewSize = [800, 600] view.UseOffscreenRenderingForScreenshots = True # set basic display properties dp = GetDisplayProperties() #set representation dp.Representation = Points #dp.Representation = Surface #set point size dp.PointSize = 2 dp.MapScalars = True dp.InterpolateScalarsBeforeMapping = True # create a legend bar = servermanager.rendering.ScalarBarWidgetRepresentation(registrationGroup='scalar_bars', registrationName=ScalarBarWidgetRepresentation1) #bar.LabelColor = [1.0, 1.0, 1.0] #bar.TitleColor = [1.0, 1.0, 1.0] bar.TitleFontSize = 10 bar.LabelFontSize = 10 view.Representations.append(bar) # render and save image for each scalar array in the point data for a in reader.PointData : print a.GetName() r = a.GetRange() dp.LookupTable = MakeBlueToRedLT(r[0], r[1]) dp.ColorAttributeType = 'POINT_DATA' dp.ColorArrayName = a.GetName() bar.Title = a.GetName() bar.LookupTable = dp.LookupTable Render() #save screenshot WriteImage( v%s.jpg % (a.GetName()) ) Disclaimer: This e-mail and any attachments may contain information which is confidential or subject to copyright. If you receive this e-mail in error, please delete it. Scion does not accept responsibility for anything in this e-mail which is not provided in the course of Scion's usual business or for any computer virus, data corruption, interference or delay arising from this e-mail. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview