[Paraview] Continous update from Timer events possible?
Dear all, is it possible to update Paraview visualizations a few times per second, reacting to Timer Events? We have sensor data arriving over a network stream, which are processed and then to be visualized as glyph properties. Currently we use a very simple VTK application which checks for new data every 500ms and updates the rendering if necessary. We would like to integrate this View in Paraview. I had a look at the "Time in ParaView" tutorial, but my impression is that the Time variable is not useful in our case, because it assumes datasets to be defined at several time steps, whereas we always have a single (changing) dataset representing "current time". Does an example exist how to write a Paraview plugin which updates itself in regular intervals? Best wishes Ulrich ___ 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] Re : ANN: ParaView 3.10 branch & VTK 5.8 branch
The master branch of the git repo should have this fix. When we branch for the release (which will happen in the next few days) the current contents of master (building as version 3.9) will become 3.10. On Wed, Dec 8, 2010 at 2:36 AM, R M wrote: > Hello, > > Where can we get the 3.10 version ? I need to have the Cell Data to Point > Data that crashs on the 3.9.0 win 32. > it seems to be fixed in the 3.10 version -> > http://www.paraview.org/Bug/view.php?id=11520 > > Thank you. > > -- > *De :* Dave Partyka > *À :* ParaView ; ParaView Developers < > paraview-develop...@paraview.org>; vtk ; VTK Developers > > *Envoyé le :* Lun 6 décembre 2010, 20h 51min 57s > *Objet :* Re: [Paraview] ANN: ParaView 3.10 branch & VTK 5.8 branch > > Just a heads up. We will likely be branching tomorrow. > > Thank you, > > On Mon, Nov 29, 2010 at 1:30 PM, Dave Partyka wrote: > >> Hello all, >> >> We will be branching ParaView and VTK for their respective releases soon >> (probably this week). This is a heads up that finished features, bug fixes, >> etc., that are a part of these releases should be merged in the coming days. >> Once the branches are created any further changes that need to be part of >> the releases will need to be manually cherry-picked onto the release >> branches. >> >> Also, If anyone is responsible for failing tests on the dashboards we >> would strongly encourage you to please take a look at them. >> >> Thank you, >> > > > ___ 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 generate a depth map from a ParaView scene
Dear David, Thank you very much for your hint. I am not completely familiar with python shell access to paraview (but have some experience with vtk + python). I naively tried this: ViewProxy = paraview.servermanager.vtkSMRenderViewProxy() RenWin = ViewProxy.GetRenderWindow zb = RenWin.GetZBufferData() Traceback (most recent call last): File "", line 1, in AttributeError: 'builtin_function_or_method' object has no attribute 'GetZBufferData' But as you see, GetZBufferData does not seem to be available. I probably did something stupid here, but if anybody could correct me, I'd appreciate. Furthermore, from what I saw in the documentation, if GetZBufferData was available, it has to be used slightly differently, I think something like this: from libvtkCommonPython import vtkFloatArray z = vtkFloatArray() RenWin.GetZbufferData(0,0,300,300,z) Now if I got this to work, how would I go about writing the data in the vtkFloatArray z to an image file? I think I found an alternative way which seems to work. It uses more VTK functionalities (vtkWindowToImageFilter in particular) as follows: from libvtkRenderingPython import vtkWindowToImageFilter from libvtkIOPython import vtkTIFFWriter view = GetActiveView().GetRenderWindow() w2i = vtkWindowToImageFilter() w2i.SetInputBufferTypeToZBuffer () w2i.SetInput(view) w2i.Update() writer = vtkTIFFWriter() writer.SetInputConnection(w2i.GetOutputPort()) writer.SetFileName("/scratch/depthmap.tif") view.Render() writer.Write() Slight inconveniences are that I actually expected inverse color scheme (eg black for far away, white for closeup), but here it is the other way round. Also, I cannot write this to a PNG using vtkPNGWriter instead of the TIFF writer (error is: PNGWriter only supports unsigned char and unsigned short inputs). Any suggestions? Thanks again, Marc dave.dema...@kitware.com said: >> I'ld try this path: >> from the python shell get a hold of the current render view proxy >> http://www.paraview.org/ParaQ/Doc/Nightly/html/classvtkSMRenderViewPro >> xy.html >> from that get a hold of the vtkRenderWindow http://www.vtk.org/doc/ >> nightly/html/classvtkRenderWindow.html >> on that call GetZBufferData >> David E DeMarle -- Dr. Marc Baaden - Institut de Biologie Physico-Chimique, Paris mailto:baa...@smplinux.de - http://www.baaden.ibpc.fr FAX: +33 15841 5026 - Tel: +33 15841 5176 ou +33 609 843217 ___ 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] hdf5 version in binaries paraview-3.8.1
Hello, The binaries of Paraview-3.8.1 located on http://paraview.org/paraview/resources/software.html are built with the version hdf5 1.8.5 , or hdf5 1.6.x ? Best regards, Didier ___ 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] hdf5 version in binaries paraview-3.8.1
ParaView 3.8.1 uses hdf5 1.8.5. On Wed, Dec 8, 2010 at 9:43 AM, Didier Roissé wrote: > Hello, > The binaries of Paraview-3.8.1 located on > http://paraview.org/paraview/resources/software.html are built with the > version hdf5 1.8.5 , or hdf5 1.6.x ? > > Best regards, > Didier > > > > ___ > 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] hdf5 version in binaries paraview-3.8.1
I made a reader plugin for AmeletHDF format. I used hdf5 1.8.5 and ParaView-Development-3.8.1-Linux-x86_64 binaries to build my plugin . Then I launch Paraview 3.8.1 downloaded from paraview.org (binaries). I load my plugin successfully. But when I want to open a hdf file, I have this error : ./paraview Warning! The HDF5 header files included by this application do not match the version used by the HDF5 library to which this application is linked. Data corruption or segmentation faults may occur if the application is allowed to continue. You can, at your own risk, disable this check by setting the environment variable 'HDF5_DISABLE_VERSION_CHECK' to a value of '1'. Setting it to 2 will suppress the warning totally. Headers are 1.8.4, library is 1.6.8 Bye... Abandon I think that binaries of Paraview-3.8.1 present on the website are build with hdf5 1.6.8. Is it true ? Best regards, Didier 2010/12/8 Dave Partyka > ParaView 3.8.1 uses hdf5 1.8.5. > > On Wed, Dec 8, 2010 at 9:43 AM, Didier Roissé wrote: > >> Hello, >> The binaries of Paraview-3.8.1 located on >> http://paraview.org/paraview/resources/software.html are built with the >> version hdf5 1.8.5 , or hdf5 1.6.x ? >> >> Best regards, >> Didier >> >> >> >> ___ >> 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 generate a depth map from a ParaView scene
> I think I found an alternative way which seems to work. It uses more > VTK functionalities (vtkWindowToImageFilter in particular) as follows: > > from libvtkRenderingPython import vtkWindowToImageFilter > from libvtkIOPython import vtkTIFFWriter > > view = GetActiveView().GetRenderWindow() > > w2i = vtkWindowToImageFilter() > w2i.SetInputBufferTypeToZBuffer () > w2i.SetInput(view) > w2i.Update() > > writer = vtkTIFFWriter() > writer.SetInputConnection(w2i.GetOutputPort()) > writer.SetFileName("/scratch/depthmap.tif") > > view.Render() > writer.Write() > > This approach looks great to me as it hides much of the tedious bit fiddling. > Slight inconveniences are that I actually expected inverse color scheme > (eg black for far away, white for closeup), but here it is the other > way round. Also, I cannot write this to a PNG using vtkPNGWriter instead > of the TIFF writer (error is: PNGWriter only supports unsigned char and > unsigned short inputs). > Any suggestions? > > Nothing specific. You could get direct access to the array and do the Z inversion from python. Or you could search around for a set of vtk filters that do the flip and also find a different writer that works directly for your needs. Consider the nrrd writer, the nrrd library (http://teem.sourceforge.net/nrrd/) can do array manipulation quite well. > Thanks again, > Marc > > > dave.dema...@kitware.com said: > >> I'ld try this path: > >> from the python shell get a hold of the current render view proxy > >> http://www.paraview.org/ParaQ/Doc/Nightly/html/classvtkSMRenderViewPro > >> xy.html > > >> from that get a hold of the vtkRenderWindow http://www.vtk.org/doc/ > >> nightly/html/classvtkRenderWindow.html > > >> on that call GetZBufferData > > >> David E DeMarle > > > -- > Dr. Marc Baaden - Institut de Biologie Physico-Chimique, Paris > mailto:baa...@smplinux.de - http://www.baaden.ibpc.fr > FAX: +33 15841 5026 - Tel: +33 15841 5176 ou +33 609 843217 > > > ___ 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] bug in vtkLookupTable?
Hi There I'm trying to get colored points and tracks with a reader, but i only get the first point colored.. can somebody please give me a hint? It looks to me that the SetTableRange(d,d) is not doing what it's supposed to do... (pv 3.8.0) In position (vtkPoints) i've got 10 points, connected with lines. I would like to color each point according to it's snapid (vtkIdTypeArray). So, it does some coloring, but only on the line between the 1st point (SnapId=0) and the second point (SnapId 1).. Many thanks Rafael Kueng University of Zuerich My code: - vtkPolyData * out = vtkPolyData::GetData(outputVector); //...generate points... vtkSmartPointer lut = vtkSmartPointer::New(); lut->Build(); lut->SetTableRange(0,9); lut->SetNumberOfTableValues(10); lut->SetTableValue(0,1,0,0); lut->SetTableValue(1,1,1,0); lut->SetTableValue(2,1,1,1); lut->SetTableValue(3,0,1,1); //... SnapId->SetLookupTable(lut2); out->SetPoints(Position); out->SetVerts(Cells); out->SetLines(Tracks); out->GetPointData()->AddArray(SnapId); - i also tried lut->build after setting the table values, doesn't make any difference.. ___ 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] bug in vtkLookupTable?
On Wed, Dec 8, 2010 at 4:27 PM, Rafael Küng wrote: > Hi There > > I'm trying to get colored points and tracks with a reader, but i only get > the first point colored.. can somebody please give me a hint? It looks to me > that the SetTableRange(d,d) is not doing what it's supposed to do... (pv > 3.8.0) > > In position (vtkPoints) i've got 10 points, connected with lines. I would > like to color each point according to it's snapid (vtkIdTypeArray). > So, it does some coloring, but only on the line between the 1st point > (SnapId=0) and the second point (SnapId 1).. > > Many thanks > Rafael Kueng > University of Zuerich > > > My code: > > - > vtkPolyData * out = vtkPolyData::GetData(outputVector); > > //...generate points... > > vtkSmartPointer lut = > vtkSmartPointer::New(); > lut->Build(); > lut->SetTableRange(0,9); > lut->SetNumberOfTableValues(10); > lut->SetTableValue(0,1,0,0); > lut->SetTableValue(1,1,1,0); > lut->SetTableValue(2,1,1,1); > lut->SetTableValue(3,0,1,1); > //... > Put the following line here instead of at the top. lut->Build(); > SnapId->SetLookupTable(lut2); > > out->SetPoints(Position); > out->SetVerts(Cells); > out->SetLines(Tracks); > out->GetPointData()->AddArray(SnapId); > > - > > i also tried lut->build after setting the table values, doesn't make any > difference.. > ___ > 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 > -- John M. Drescher ___ 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