Re: [Paraview] plotting integrated values of cutting plane at various offsets

2010-09-30 Thread Paul Edwards
Hi, I'm trying to create a table containing several rows of integrated values for different contours with a programmable filter but I can't see how to use the Integrate Variables filter. In filters.xml it show as being called vtkIntegrateAttributes but I cannot create this in python. Also,

[Paraview] Drawing 2D data

2010-09-30 Thread R M
Hi, I would to like to have your advice concerning the display of 2D data. I have some structure containing x, y positions, connectivity in order to create triangles, quads, lines, ... and attributes (acceleration, speed,...) that are associated to nodes. For the moment I can display

Re: [Paraview] plotting integrated values of cutting plane at various offsets

2010-09-30 Thread Eric E. Monson
Hey Paul, I don't have an answer to your problem, but just wanted to point out that vtkIntegrateAttributes is not part of VTK proper, but is listed on the ParaView docs pages: http://www.paraview.org/ParaView3/Doc/Nightly/html/classvtkIntegrateAttributes.html -Eric

Re: [Paraview] plotting integrated values of cutting plane at various offsets

2010-09-30 Thread Paul Edwards
Ah - thanks for the tip! Does anyone know the way to call this in a programmable filter? Or, is it even wrapped for python? Thanks, Paul On 30 September 2010 14:51, Eric E. Monson emon...@cs.duke.edu wrote: Hey Paul, I don't have an answer to your problem, but just wanted to point out that

Re: [Paraview] plotting integrated values of cutting plane at various offsets

2010-09-30 Thread Eric E. Monson
Could you be a bit more clear about what you're trying to do? It sounds like you're trying to take your contours and integrate some attributes over each of the contours separately so you get a table which contains as many rows as the number of contours (and maybe separate columns for each

Re: [Paraview] plotting integrated values of cutting plane at various offsets

2010-09-30 Thread Paul Edwards
Hi Eric, You are right - I would like one row of integrated values per contour. I don't understand how I can do this without Integrate Attributes though. Regards, Paul On 30 September 2010 15:30, Eric E. Monson emon...@cs.duke.edu wrote: Could you be a bit more clear about what you're trying

Re: [Paraview] plotting integrated values of cutting plane at various offsets

2010-09-30 Thread Paul Edwards
I've found out how to access the Integrate Attributes - I can import it from vtkPVFiltersPython :) On 30 September 2010 16:17, Paul Edwards paul.m.edwa...@gmail.com wrote: Hi Eric, You are right - I would like one row of integrated values per contour. I don't understand how I can do this

Re: [Paraview] plotting integrated values of cutting plane at various offsets

2010-09-30 Thread Eric E. Monson
That's great. This is very rough, but I was thinking of something like this after setting the programmable filter Output Data Set Type to vtkTable (to test I've created a Wavelet Source and run it through a Gradient filter, and then a Calculator which creates a new value called RTGradMag,

Re: [Paraview] plotting integrated values of cutting plane at various offsets

2010-09-30 Thread Eric E. Monson
Was having trouble doing the sum using numpy instead of the python built-in sum(), but I figured it out. It's just slightly cleaner this way, but I don't know which is faster. Of course, I still don't know if this does what you are looking for, but I thought I'd pass it along anyway... :) (I

Re: [Paraview] plotting integrated values of cutting plane at various offsets

2010-09-30 Thread Paul Edwards
Thanks Eric - unfortunately your calculation won't take into account the area (my data is coming from an unstructured grid). I've put in my solution with integrate attributes. It's a bit slow calculating the contour each time though 8-- from

Re: [Paraview] plotting integrated values of cutting plane at various offsets

2010-09-30 Thread Eric E. Monson
Yeah, I wondered if you were needing the area. If you want to compare the speed you could also try using a Python script (assigned to a macro button) which sets up this pipeline in the GUI for you automatically based on your desired contour values, branching out your pipeline into a bunch of

[Paraview] Re : Drawing 2D data

2010-09-30 Thread R M
I have try to inherit the reader plugin from vtkPolyDataMapper2D but the result is not ok. I don't not yet what vtkObject I should set as an output from the reader. For the moment I have always the data that is in 3D in Paraview. What is the good way to do what I would to do ? Thanks

[Paraview] binary VTU format

2010-09-30 Thread Eric Meloche
Greetings, Trying to convert an ascii vtu file to binary form. how does one convert the following to binary. -- DataArray type=Int32 Name=offsets format=ascii 8 16 24 32 40 48 56 64 /DataArray DataArray

Re: [Paraview] binary VTU format

2010-09-30 Thread ChiaWeng Boon
writer-SetDataModeToBinary()? boon ___ 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:

Re: [Paraview] binary VTU format

2010-09-30 Thread burlen
You have to be careful of the terminology because in the world of VTK XML files binary really means base 64 encoded, and appended not encoded means binary. I have used the following two lines in a code in order to coax the VTK XML writer to write binary: w-SetDataModeToAppended();

[Paraview] Problems combining volume and line data

2010-09-30 Thread Richard Beare
Hello, I have some image data that I'd like to volume render. It starts out as a nifti file and I can view it in paraview after conversion to a vtk structured grid (using the ITK ConvertBetweenFileFormats tool). I also have some line data (DTI tracts) that I have converted to ploydata lines. I can