[Paraview] python script how to change Data Range

2011-01-18 Thread 小縣信也
Hi paraviewers!

I tried to change Data Range of color bar by paraview python script.
But It didn't work.
Does someone know the reasson?
Is there another way to change Data Range in script?

Kind Regards,
Shinya

-code which I rtied--

ScalarBarWidgetRepresentation2 = CreateScalarBar( Title='p',
Position2=[0.13, 0.5], Enabled=1, LabelFontSize=12, LabelColor=[0.47,
0.47, 0.47], TitleFontSize=12, TitleColor=[0.47, 0.47, 0.47],
Position=[0.87, 0.25] )

1_p_PVLookupTable = GetLookupTableForArray( p, 1, RGBPoints=[0.0,
0.0, 0.0, 1.0, 0.5, 1.0, 0.0, 0.0], ScalarRangeInitialized=1.0 )
ScalarBarWidgetRepresentation2.LookupTable = a1_p_PVLookupTable
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/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] creating time in a filter

2011-01-18 Thread Stephane PLOIX
Hi,

I have a static source, and a filter that creates some time (it applies a 
transformation that can be animated using the time from the pipeline).
If I advertise that this filter provides time to the pipeline using 
outInfo-Set(vtkStreamingDemandDrivePipeline::TIME_RANGE(), range, 2);
in the requestinformation method, the requestdata method is not called 
when animating over time.

If I set the exact same flag in the reader, it is called when requesting 
another time.

So : is there a difference as to how sources are treated depending if they 
have an input or not, and how can a filter advertise that even if its 
input is static (no TIME_RANGE nor TIME_STEPS), it deals with time and 
should be called for new time requests?

Best,
Stephane

  
 
Stephane PLOIX
Pilote Opérationnel - Visualisation scientifique
EDF - RD
SINETICS
1, Av du Général de Gaulle
92140 Clamart
 
stephane.pl...@edf.fr
Tél. : +33 (0) 1 47 65 51 10
  
Un geste simple pour l'environnement, n'imprimez ce message que si vous en 
avez l'utilité.



Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à 
l'intention exclusive des destinataires et les informations qui y figurent sont 
strictement confidentielles. Toute utilisation de ce Message non conforme à sa 
destination, toute diffusion ou toute publication totale ou partielle, est 
interdite sauf autorisation expresse.

Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le 
copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si 
vous avez reçu ce Message par erreur, merci de le supprimer de votre système, 
ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support 
que ce soit. Nous vous remercions également d'en avertir immédiatement 
l'expéditeur par retour du message.

Il est impossible de garantir que les communications par messagerie 
électronique arrivent en temps utile, sont sécurisées ou dénuées de toute 
erreur ou virus.


This message and any attachments (the 'Message') are intended solely for the 
addressees. The information contained in this Message is confidential. Any use 
of information contained in this Message not in accord with its purpose, any 
dissemination or disclosure, either whole or partial, is prohibited except 
formal approval.

If you are not the addressee, you may not copy, forward, disclose or use any 
part of it. If you have received this message in error, please delete it and 
all copies from your system and notify the sender immediately by return message.

E-mail communication cannot be guaranteed to be timely secure, error or 
virus-free.
image/gifimage/gif___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/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 v3.9.0: problems with exporter plug-in

2011-01-18 Thread Nenad Vujicic
Hello everyone,

Because of Xdmf problems inside of v3.8.1, I tried to use my exporter
plug-in with current v3.9.0 sources. I downloaded sources from Git
repository and compiled them with Visual Studio 2008 SP1, Python 2.7
and OpenMPI 1.4.3. Unfortunately, in exported scene I got only center
of rotation axes and orientation axes.

After closer inspection, I made very short snipped that shows the
problem. In class derived from vtkExporter, in function WriteData() I
override, I call following sequence:

   - for every renderer in RenderWindow
 - for every actor in renderer // only 3d actors
   - mapper = actor.GetMapper()
   - if(mapper != NULL)
 - mappers_input = mapper.GetInput()
 - print mappers_input // PROBLEM: NULL for whatever I add to
pipeline, instead of 2 axes meshes

At the moment, I read 3 renderers, the first renderer has 5 actors (2
for center of rotation axes mesh and 3 LOD actors), the second 0 and
the third has 9 actors (all for orientation axes mesh). The problem is
in 3 LOD actors for which I get vtkCompositePolyDataMapper2 objects as
mappers, but which return NULL on GetInput() always! In v3.8.x I used
same mechanism to get vtkPolyData and other data sets from which I
would later extract scene's properties.

Am I doing something wrong or exporter's part still requires some work
before v3.9.0 is released? Btw, similar occurs when I try to export
scene to VRML - only center of rotation axes mesh is exported.

Thanks,
Nenad.
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/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 v3.9.0: problems with exporter plug-in

2011-01-18 Thread Utkarsh Ayachit
Don't use vtkMapper::GetInput(), that downcasts to vtkPolyData. Using
GetInputDataObject(..) API. That should return you the dataobject. It
may be a vtkCOmpositeDataSet (since ParaView no longer merges blocks
in composite dataset before rendering). You'll have to handle each
block in your exporter.

Utkarsh

On Tue, Jan 18, 2011 at 7:08 AM, Nenad Vujicic nena...@gmail.com wrote:
 Hello everyone,

 Because of Xdmf problems inside of v3.8.1, I tried to use my exporter
 plug-in with current v3.9.0 sources. I downloaded sources from Git
 repository and compiled them with Visual Studio 2008 SP1, Python 2.7
 and OpenMPI 1.4.3. Unfortunately, in exported scene I got only center
 of rotation axes and orientation axes.

 After closer inspection, I made very short snipped that shows the
 problem. In class derived from vtkExporter, in function WriteData() I
 override, I call following sequence:

   - for every renderer in RenderWindow
     - for every actor in renderer // only 3d actors
       - mapper = actor.GetMapper()
       - if(mapper != NULL)
         - mappers_input = mapper.GetInput()
         - print mappers_input // PROBLEM: NULL for whatever I add to
 pipeline, instead of 2 axes meshes

 At the moment, I read 3 renderers, the first renderer has 5 actors (2
 for center of rotation axes mesh and 3 LOD actors), the second 0 and
 the third has 9 actors (all for orientation axes mesh). The problem is
 in 3 LOD actors for which I get vtkCompositePolyDataMapper2 objects as
 mappers, but which return NULL on GetInput() always! In v3.8.x I used
 same mechanism to get vtkPolyData and other data sets from which I
 would later extract scene's properties.

 Am I doing something wrong or exporter's part still requires some work
 before v3.9.0 is released? Btw, similar occurs when I try to export
 scene to VRML - only center of rotation axes mesh is exported.

 Thanks,
 Nenad.
 ___
 Powered by www.kitware.com

 Visit other Kitware open-source projects at 
 http://www.kitware.com/opensource/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] xdmf mailing list

2011-01-18 Thread Utkarsh Ayachit
Here's the link to the xdmf mailing list:
http://www.kitware.com/cgi-bin/mailman/listinfo/xdmf

Dave, can you fix the wiki please? You seem to have access to it, I don't.

Utkarsh

On Mon, Jan 17, 2011 at 9:18 PM, Dan Lussier dtluss...@gmail.com wrote:
 I have tried to sign up for the XDMF mailing list
 x...@lists.kitware.com as per http://www.xdmf.org, but the list
 doesn't seem to be working.

 Does the XDMF mailing list exist?

 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] python script how to change Data Range

2011-01-18 Thread Utkarsh Ayachit
The arguments to GetLookupTableForArray() are only the default values,
when a new lookuptable is created. If one exists, then they don't make
any changes.
Change the RGBPoints explicitly as follows:

1_p_PVLookupTable.RGBPoints = []

Utkarsh

2011/1/18 小縣信也 so020...@gmail.com:
 Hi paraviewers!

 I tried to change Data Range of color bar by paraview python script.
 But It didn't work.
 Does someone know the reasson?
 Is there another way to change Data Range in script?

 Kind Regards,
 Shinya

 -code which I rtied--

 ScalarBarWidgetRepresentation2 = CreateScalarBar( Title='p',
 Position2=[0.13, 0.5], Enabled=1, LabelFontSize=12, LabelColor=[0.47,
 0.47, 0.47], TitleFontSize=12, TitleColor=[0.47, 0.47, 0.47],
 Position=[0.87, 0.25] )

 1_p_PVLookupTable = GetLookupTableForArray( p, 1, RGBPoints=[0.0,
 0.0, 0.0, 1.0, 0.5, 1.0, 0.0, 0.0], ScalarRangeInitialized=1.0 )
 ScalarBarWidgetRepresentation2.LookupTable = a1_p_PVLookupTable
 ___
 Powered by www.kitware.com

 Visit other Kitware open-source projects at 
 http://www.kitware.com/opensource/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] xdmf mailing list

2011-01-18 Thread David Partyka
Wiki updated.

On Tue, Jan 18, 2011 at 8:45 AM, Utkarsh Ayachit 
utkarsh.ayac...@kitware.com wrote:

 Here's the link to the xdmf mailing list:
 http://www.kitware.com/cgi-bin/mailman/listinfo/xdmf

 Dave, can you fix the wiki please? You seem to have access to it, I don't.

 Utkarsh

 On Mon, Jan 17, 2011 at 9:18 PM, Dan Lussier dtluss...@gmail.com wrote:
  I have tried to sign up for the XDMF mailing list
  x...@lists.kitware.com as per http://www.xdmf.org, but the list
  doesn't seem to be working.
 
  Does the XDMF mailing list exist?
 
  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] ParaView 3.8.1 and HDF5

2011-01-18 Thread Nathalie.Rauschmayr
Hello,

I have just one more question regarding HDF5 and ParaView. You wrote that your 
version of ParaView provides also a modified Xdmf and I have seen in 
XdmfHDF.cxx, that there are several function calls for writing data to the DSM. 
So I have tried to write a VTK object directly to the DSM via the 
vtkXdmfWriter, but therefore the member-variable Domain have to be set to the 
value DSM (line 730 in XdmfHDF.cxx) and this is never the case. 
Do I have to set special parameters for the vtkXdmfWriter or doesn't the writer 
allow writing to the DSM at all? 

best regards,
nathalie
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/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] Problems uploading files for Plot3D reading

2011-01-18 Thread Joe Ahdoot
Dear Paraview,

earlier i had a problem uploading a .xyz file and a .q file but Mr. Geveci
pointed out that the files did not exactly match in format (the grid was in
ASCII geometry while the .q file was in binary). Therefore i used a python
convert file to correct this.

Now I have a grid file that will not load correctly even after I attempted
converting it to the correct format with the python script. The only way i
can successfully upload the grid file *without* converting it is to use the
settings- Only MultiGrid checked, and BigEndian. Yet, then i am unable to
upload to the .q file over that.

Any suggestions?

Thanks,
Joe Ahdoot
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/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] Something wrong with Ubuntu 10.10 - compared with Ubuntu 10.04

2011-01-18 Thread Mr. M.

Dear all

Please bear over with me, but I've tried to google for the following 
error messages and have seen that other people have the same problem as 
me (but the threads have been unanswered). I hope somebody can help me 
avoid this error:


---
$ python
Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56)
[GCC 4.4.5] on linux2
Type help, copyright, credits or license for more information.
 from sys import path
 path.append('/usr/lib/paraview')
 from paraview.simple import *
Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/lib/pymodules/python2.6/paraview/simple.py, line 39, in 
module

import servermanager
  File /usr/lib/pymodules/python2.6/paraview/servermanager.py, line 
43, in module

import paraview, re, os, new, sys, vtk
  File /usr/lib/pymodules/python2.6/paraview/vtk/__init__.py, line 4, 
in module

from libvtkCommonPython import *
ImportError: libvtkCommonPythonD.so.pv3.8: cannot open shared object 
file: No such file or directory


---

But it's not true - I've have the file it's looking for:

martin@MEK-404-MFJO-01:~$ locate libvtkCommonPythonD.so
/usr/lib/paraview/libvtkCommonPythonD.so
/usr/lib/paraview/libvtkCommonPythonD.so.pv3.8


???

I know somebody who's running Ubuntu 10.04 and doesn't have this problem 
so I think the problem is related to something that has changed between 
these two versions...


Please advice - any suggestions are most welcome...

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/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] Something wrong with Ubuntu 10.10 - compared with Ubuntu 10.04

2011-01-18 Thread David Partyka
If you add /usr/lib/paraview to LD_LIBRARY_PATH does it work?


On Tue, Jan 18, 2011 at 2:44 PM, Mr. M. newsbo...@gmail.com wrote:

 Dear all

 Please bear over with me, but I've tried to google for the following error
 messages and have seen that other people have the same problem as me (but
 the threads have been unanswered). I hope somebody can help me avoid this
 error:

 ---
 $ python
 Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56)
 [GCC 4.4.5] on linux2
 Type help, copyright, credits or license for more information.
  from sys import path
  path.append('/usr/lib/paraview')
  from paraview.simple import *
 Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/lib/pymodules/python2.6/paraview/simple.py, line 39, in
 module
import servermanager
  File /usr/lib/pymodules/python2.6/paraview/servermanager.py, line 43, in
 module
import paraview, re, os, new, sys, vtk
  File /usr/lib/pymodules/python2.6/paraview/vtk/__init__.py, line 4, in
 module
from libvtkCommonPython import *
 ImportError: libvtkCommonPythonD.so.pv3.8: cannot open shared object file:
 No such file or directory
 
 ---

 But it's not true - I've have the file it's looking for:

 martin@MEK-404-MFJO-01:~$ locate libvtkCommonPythonD.so
 /usr/lib/paraview/libvtkCommonPythonD.so
 /usr/lib/paraview/libvtkCommonPythonD.so.pv3.8


 ???

 I know somebody who's running Ubuntu 10.04 and doesn't have this problem so
 I think the problem is related to something that has changed between these
 two versions...

 Please advice - any suggestions are most welcome...

 ___
 Powered by www.kitware.com

 Visit other Kitware open-source projects at
 http://www.kitware.com/opensource/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] Something wrong with Ubuntu 10.10 - compared with Ubuntu 10.04

2011-01-18 Thread newsboost guy
 Hi David:

- thanks for LD_LIBRARY_PATH-suggestion
- I also found this suggestion on google and tried it earlier, however it
still didn't / doesn't work (slightly different message):

---
$ LD_LIBRARY_PATH=/usr/lib/paraview python
Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56)
[GCC 4.4.5] on linux2
Type help, copyright, credits or license for more information.
 from sys import path
 path.append('/usr/lib/paraview')
 from paraview.simple import *

paraview version 3.8.0, Date: 2010-03-26
Traceback (most recent call last):
  File /usr/lib/pymodules/python2.6/paraview/servermanager.py, line 2922,
in _proxyDefinitionsUpdated
if vtkSMObject.GetProxyManager().GetProxyDefinitionsUpdated():
AttributeError: GetProxyDefinitionsUpdated
Traceback (most recent call last):
  File /usr/lib/pymodules/python2.6/paraview/servermanager.py, line 2922,
in _proxyDefinitionsUpdated
if vtkSMObject.GetProxyManager().GetProxyDefinitionsUpdated():
AttributeError: GetProxyDefinitionsUpdated
---

Any other clever ideas, please?


On 2011-01-18 20:49, David Partyka wrote: If you add /usr/lib/paraview to
LD_LIBRARY_PATH does it work?


On Tue, Jan 18, 2011 at 2:44 PM, Mr. M. newsbo...@gmail.com wrote:

 Dear all

 Please bear over with me, but I've tried to google for the following error
 messages and have seen that other people have the same problem as me (but
 the threads have been unanswered). I hope somebody can help me avoid this
 error:

 ---
 $ python
 Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56)
 [GCC 4.4.5] on linux2
 Type help, copyright, credits or license for more information.
  from sys import path
  path.append('/usr/lib/paraview')
  from paraview.simple import *
 Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/lib/pymodules/python2.6/paraview/simple.py, line 39, in
 module
import servermanager
  File /usr/lib/pymodules/python2.6/paraview/servermanager.py, line 43, in
 module
import paraview, re, os, new, sys, vtk
  File /usr/lib/pymodules/python2.6/paraview/vtk/__init__.py, line 4, in
 module
from libvtkCommonPython import *
 ImportError: libvtkCommonPythonD.so.pv3.8: cannot open shared object file:
 No such file or directory
 
 ---

 But it's not true - I've have the file it's looking for:

 martin@MEK-404-MFJO-01:~$ locate libvtkCommonPythonD.so
 /usr/lib/paraview/libvtkCommonPythonD.so
 /usr/lib/paraview/libvtkCommonPythonD.so.pv3.8


 ???

 I know somebody who's running Ubuntu 10.04 and doesn't have this problem so
 I think the problem is related to something that has changed between these
 two versions...

 Please advice - any suggestions are most welcome...

 ___
 Powered by www.kitware.com

 Visit other Kitware open-source projects at
 http://www.kitware.com/opensource/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 3.8.1 and HDF5

2011-01-18 Thread Biddiscombe, John A.
Nathalie



We use a customized vtkXdmfWriter which is inside the Icarus plugin. The writer 
is a subclass of the one in paraview and overrides a number of methods to

a) set the DSM manager etc

b) handle parallel writes properly using an H5MB utility that's also in there. 
This hooks into the callback mechanism of (the modified) Xdmf writing to delay 
creation of groups/datasets/etc until all processes have exchanged info (done 
in the H5MB utility).



It should write to DSM very nicely. I think we have a test somewhere which 
creates a DSM on nodes and writes to it using the writer. Maybe this test got 
squashed at some time.



Look in Icarus/DSMManager for the XdmfWriter classes. It may be that many fixes 
on the main branch that you are using don't exist. For writing to the DSM from 
paraview using Xdmf, the steering branch is the one to use, but we haven't made 
it public yet. we're trying to write it all up and submit it for publication, 
once that's done, we'll move the steering branch onto the public repo.



in Icarus/DSMManager key code is in XdmfH5MBCallback (the callback stuff that 
creates a tree from all nodes writing, then synchronizes them so collective 
dataset creates happen correctly - even when nodes are writing nothing). H5MB, 
the tree code used by above. The writer we use is XdmfWriter4 : see this 
snippet from the latest version which writes for us. Using this we can have 
paraview running on one set of nodes, write data into the DSM, and have it 
appear in another paraview session somewhere else using a shared DSM! This was 
our first bi-directional test of the DSM within paraview. For writing data into 
the simulation from paraview, we have more specialized HDF5 write code since 
the XdmfWriter carries a lot of baggage - (it does however handle early all vtk 
data types).



On another note : if you are only wanting live visualization, you might want to 
check out the coprocessing stuff, it is much easier to get working without 
documentation! Ours was intended for HDF5 enabled apps that want birectional 
communication, if you really need this, then we should take this off list an 
collaborate properly to get you going. (next week - not this!)





JB

One catch - the modified XdmfWriter does something unusual - it creates one 
dataset per process writing, so that parallel writes go into their own pieces - 
we wanted to preserve the spatial separation (decomposition) of data when 
writing in parallel - I'm actually changing this because for one current 
project we want a flat dataset combined using hyperslabs - not multiple 
blocksanyway


//-
// writes the currently selected object int the paraview GUI into the DSM
// using XdmfWriter in parallel
void pqDSMViewerPanel::onWriteDataToDSM()
{
  if (this-DSMReady()) {
if (!this-Internals-ActiveSourceProxy) {
  vtkGenericWarningMacro(Nothing to Write);
  return;
}
//
vtkSMProxyManager* pm = vtkSMProxy::GetProxyManager();
vtkSmartPointervtkSMSourceProxy XdmfWriter =
  vtkSMSourceProxy::SafeDownCast(pm-NewProxy(icarus_helpers, 
XdmfWriter4));

XdmfWriter-SetConnectionID(pqActiveObjects::instance().activeServer()-GetConnectionID());

// Delete our reference now and let smart pointer clean up later
XdmfWriter-UnRegister(NULL);

pqSMAdaptor::setProxyProperty(
  XdmfWriter-GetProperty(DSMManager), this-Internals-DSMProxy);

pqSMAdaptor::setElementProperty(
  XdmfWriter-GetProperty(FileName), stdin); // dummy non null 
filename, DSM is used

pqSMAdaptor::setInputProperty(
  XdmfWriter-GetProperty(Input),
  this-Internals-ActiveSourceProxy,
  this-Internals-ActiveSourcePort
  );

XdmfWriter-UpdateVTKObjects();
XdmfWriter-UpdatePipeline();
  }

}
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/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