Re: [Paraview] vtkCompositeDataSet - memory ?

2009-02-23 Thread Jean Favre
Andy Bauer wrote:
 ...They should also have the same vtkPointData as a result so that
 data is not duplicated. 

In my own experience, it is often the case that different Data arrays
can be defined on the 3D blocks and on the 2D boundary surfaces. I just
wanted to point out that ParaView is smart enough to enable this and to
annotate  data arrays of name VAR as  VAR (partial). Thus, there is no
confusion for the User that he/she is selecting a data array that is
strictly defined on only a subset of parts.

Jean --
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


[Paraview] use of vtkSynchronizedTemplates

2009-02-23 Thread Natalie Happenhofer

Hi!
I want to display isosurfaces of values I compute in my filter, so looking at 
vtkContourFilter, I got the idea to use the vtkSynchronizedTemplates3D (as my 
filter is going to handle 3D ImageData).
I have a vtkSynchronizedTemplate3D as an instance of my filter, in the 
constructor it´s initialized and then I do the following:


this - SynchronizedTemplates3D - SetInput(TauSet);
this - SynchronizedTemplates3D - ComputeNormalsOff();
this - SynchronizedTemplates3D - ComputeGradientsOff();
this - SynchronizedTemplates3D - SetComputeScalars(1);
this - SynchronizedTemplates3D - SetNumberOfContours(1);
this - SynchronizedTemplates3D - SetValue(0, TauValue);

int ext[6];
inInfo - Get(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(), ext);
this - SynchronizedTemplates3D - ThreadedExecute(TauSet,inInfo,outInfo,ext, 
TauValues);


It does compile, but running I get an segmentation fault, debugging and 
backtracing I get:

#0  0x7f42ffc5eb10 in ContourImagedouble () from 
/home/happenhofer/Paraview/build-svn/bin/libvtkGraphics.so.pv3.4
#1  0x7f42ffc5a308 in vtkSynchronizedTemplates3D::ThreadedExecute () from 
/home/happenhofer/Paraview/build-svn/bin/libvtkGraphics.so.pv3.4
#2  0x7f4309195f06 in vtkTauFilter::RequestData () from 
/home/happenhofer/Paraview/build-svn/bin/libvtkPVFilters.so

vtkTauFilter would be my filter, so the error occurs in ContourImagedouble.

Does anyone have an idea even how to find the problem? That would be a great 
help.. 

and just in general - calling ThreadedExecute would execute the 
SynchronizedTemplate filter and return a grid with the isosurface computed, 
does it not? or do I have to specifiy the output somehow?

thx a lot,
Natalie Happenhofer

_
El doble de diversión: con Windows Live Messenger comparte fotos mientras 
charlas.
http://www.microsoft.com/windows/windowslive/products/messenger.aspx___
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] Location widgets properties

2009-02-23 Thread Utkarsh Ayachit
Nehme,

There's no easy way to do that. You'll have to use client-server
streams and manipulate the server side representation object directly.

Utkarsh

On Sun, Feb 22, 2009 at 12:33 AM, Nehmé Bilal nehmebi...@gmail.com wrote:
 Hello,

 I have a plugin that use location widgets to manipulate points position.
 To create the widgets, I use vtkSMNewWidgetRepresentationProxy.
 I am able to manipulate the points position correctly, but I would
 like to manipulate some other properties of these widgets specially
 colors.
 Anyone know how can I change the color of vtkSMNewWidgetRepresentationProxy ?

 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

___
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] Open vtk with zlib

2009-02-23 Thread Sébastien Blaise

Hi,

I try to write a VTK compressed file (uncompressed works fine), but I 
have the following error when I open it in Paraview:


ERROR: In /build/buildd/paraview-3.2.2/VTK/IO/vtkXMLDataParser.cxx, line 
434
vtkXMLDataParser (0xa02c998): Error reading beginning of compression 
header. Read 0 of 12 bytes.


ERROR: In 
/build/buildd/paraview-3.2.2/VTK/IO/vtkXMLUnstructuredDataReader.cxx, 
line 515
vtkXMLUnstructuredGridReader (0xa030228): Cannot read points array from 
Points in piece 0. The data array in the element may be too short.



I don't understand what is wrong. I followed instructions from 
(http://www.vtkedge.org/Wiki/VTK_XML_Formats), using only one block at 
the moment. I read the header with GHex and it seems OK. The critical 
part of the code is (zlib_compress is a function I implemented to 
compress the buffer). :


#ifdef HAVE_ZLIB
   if (compression_level!=0){
   unsigned int header[4];
   header[0]=1;
   header[1]=data_size;
   header[2]=0;
   header[3] = ((int)(data_size*1.002))+13;
   unsigned char *compressed_sol = (unsigned char*)malloc (header[3]);
   zlib_compress((unsigned 
char*)buffer_sol.str().c_str(),compressed_sol,data_size,header[3],compression_level); 


   fstream_sol.write((char *)header,4*sizeof(unsigned int));
   fstream_sol.write((char*)compressed_sol,header[3]);
   free(compressed_sol);
   }else
#endif
   {
   fstream_sol.write((char *)(data_size),sizeof(unsigned int));
   fstream_sol.write(buffer_sol.str().c_str(),pos_end-pos_start);
   }

Do you have any idea of what can be wrong?

Thanks for any help,
Sébastien
___
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 plugin

2009-02-23 Thread Biao She
Hi everyone.
I have successfully created a plugin for paraview in Linux. Now I want to
move it to Windows.
CMake vs8 2005 code generator is used for generating the plugin project.
Nothing went wrong before I tried to build the project. I got the following
two building errors:
1C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdlib(18) : error
C2143: syntax error : missing ';' before 'namespace'
1vtkMyDICOMReader.cxx
1C:\Program Files\Microsoft Visual Studio 8\VC\include\string(15) : error
C2143: syntax error : missing ';' before 'namespace'

I have tried to add semicolons before the namespaces, but it leads me to
more errors. My source code should be fine since it works for Linux. Does
anyone have an idea about how to fix the problem? Thanks.

Biao
___
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] Parallel VTK

2009-02-23 Thread Tobias Höink

Hi Samuele,

I made a few changes to your files.

Tobias



dati1.vtr
Description: Binary data


dati2.vtr
Description: Binary data


dati.pvtr
Description: Binary data




On Feb 19, 2009, at 9:19 AM, Samuele Zampini wrote:


Dear Berk,
I've switched from source to Source but nothing happened. Better, I  
get a crash, now, instead of an error message.


Any other idea?

Thanks,
Samuele.

Il giorno gio, 19/02/2009 alle 09.41 -0500, Berk Geveci ha scritto:


Hi Samuele,
As you can see in the error, the pvtr file is missing the Source  
attribute for each piece. Keep in mind that the XML format is case  
sensitive. You should switch from source to Source. -berk On Wed,  
Feb 18, 2009 at 1:03 PM, Samuele Zampini lelelel...@libero.it  
wrote:  Hi all,  I am trying to use this database (actually, I  
am attaching just an  example) with the ParallelVTK language for  
Paraview.  I get an error message. What's, to you?   Thanks for  
help,  Samuele.  ___  
 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  

dati2.vtrdati.pvtrdati1.vtr
___
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] Parallel VTK

2009-02-23 Thread Samuele Zampini
Hey Tobias,

thank you very much. It works great, now.

Just a question: what does GhostLevel=1 mean? Does it mean that I have
a plane which is both in  1st and in 2nd file?

Thanks again for your great help,

Samuele.



Il giorno lun, 23/02/2009 alle 12.02 -0600, Tobias Höink ha scritto:

 Hi Samuele,
 
 I made a few changes to your files.
 
 Tobias
 
 
 
 On Feb 19, 2009, at 9:19 AM, Samuele Zampini wrote:
 
  Dear Berk,
  I've switched from source to Source but nothing happened. Better, I  
  get a crash, now, instead of an error message.
 
  Any other idea?
 
  Thanks,
  Samuele.
 
  Il giorno gio, 19/02/2009 alle 09.41 -0500, Berk Geveci ha scritto:
 
  Hi Samuele,
  As you can see in the error, the pvtr file is missing the Source  
  attribute for each piece. Keep in mind that the XML format is case  
  sensitive. You should switch from source to Source. -berk On Wed,  
  Feb 18, 2009 at 1:03 PM, Samuele Zampini lelelel...@libero.it  
  wrote:  Hi all,  I am trying to use this database (actually, I  
  am attaching just an  example) with the ParallelVTK language for  
  Paraview.  I get an error message. What's, to you?   Thanks for  
  help,  Samuele.  ___  
   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  
  dati2.vtrdati.pvtrdati1.vtr
  ___
  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] keep constant contour in animation

2009-02-23 Thread Berk Geveci
The quickest work-around is to save the contour(s) from the first time
step as a polydata and load it back in. I can't remember if we ended
up creating a filter that suppresses time requests.

-berk

On Mon, Feb 23, 2009 at 2:43 AM, Martin Uppman f0...@student.lth.se wrote:
 Hi,

 I want to simulate moving particles in a sequence and keep the contour
 image from the first time frame. I've been trying with a bunch of filters
 like temporal types, extracting types but also mixing a lot with animation
 inspector.
 My results though is always the same, the contour is being recalculated in
 every time frame. Is there a way to ignore this? (I've also tried to
 uncheck the three components, compute normals, compute gradients and
 compute scalars in properties of the contuor filter.)

 Thankful for help.

 Cheers,

 Martin

 ___
 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] pm.GetProxiesInGroup() returns tuple keys?

2009-02-23 Thread Berk Geveci
GetProxiesInGroup() should return a dictionary where the keys are the
proxy names and the values are the proxies themselves. Is that not the
case?

-berk

On Thu, Feb 19, 2009 at 3:30 PM, Eric E. Monson emon...@cs.duke.edu wrote:
 Hey,

 I was just trying out some python state loading (outside of ParaView) for
 saving animations, and my old scripts are not working.

 pm = servermanager.ProxyManager()
 pm.GetProxiesInGroup(sources)

 now seems to return a dictionary where the keys are a tuple of two strings
 (a name and a number) instead of just a name string. Has something changed
 in CVS recently, or am I doing something screwy?

 Thanks,
 -Eric

 --
 Eric E Monson
 Duke Visualization Technology Group



 ___
 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] Extracting data

2009-02-23 Thread Berk Geveci
This seems to be a missing feature. It should be possible to save a
pvd file. Can you put a feature request in http://paraview.org/Bug?
Thanks.

-berk

On Thu, Feb 19, 2009 at 3:52 PM, Rakesh Hammond
rakesh.hamm...@googlemail.com wrote:
 Hi

 I have a multi-block time series data set (23 blocks).  I select some blocks
 (0,6,12,18) using extractBlock
 filter.  I then use the plot over line to plot some variables in my selected
 blocks.

 If i wanted to save the extracted blocks, i can save as a *.vtm file.
 However, it only saves the current time step
 as far as I can see.  Is there any way of saving all of the time steps (of
 the extracted data).

 I guess basically, I am trying to save a sub set of my initial data set, and
 my problem is it is only saving the
 current time step.  Can some one tell me what I am doing wrong?

 Regards,
 Rakesh

 ___
 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] pm.GetProxiesInGroup() returns tuple keys?

2009-02-23 Thread Eric E. Monson

Hey Berk,

Say I have a pipeline with a box and point source, from the Python  
shell (CVS Feb 18, 2009):


Python 2.5.2 |EPD 2.5.2001| (r252:60911, Aug 4 2008, 13:45:20)
[GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin
 from paraview.simple import *
 pm = servermanager.ProxyManager()
 pm.GetProxiesInGroup(sources)
{('Box1', '363'): paraview.servermanager.Box object at 0x224c5670,  
('PointSource1', '114'): paraview.servermanager.PointSource object at  
0x224c5530}



I can program around it,  but I was just curious what the the second  
member of the tuple is for.


-Eric


On Feb 23, 2009, at 9:03 PM, Berk Geveci wrote:


GetProxiesInGroup() should return a dictionary where the keys are the
proxy names and the values are the proxies themselves. Is that not the
case?

-berk

On Thu, Feb 19, 2009 at 3:30 PM, Eric E. Monson  
emon...@cs.duke.edu wrote:

Hey,

I was just trying out some python state loading (outside of  
ParaView) for

saving animations, and my old scripts are not working.

pm = servermanager.ProxyManager()
pm.GetProxiesInGroup(sources)

now seems to return a dictionary where the keys are a tuple of two  
strings
(a name and a number) instead of just a name string. Has something  
changed

in CVS recently, or am I doing something screwy?

Thanks,
-Eric

--
Eric E Monson
Duke Visualization Technology Group



___
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 plugin

2009-02-23 Thread Moreland, Kenneth
Offhand, I don't specifically recognize this error.  I'm not sure there is 
enough information here to adequately diagnose the problem.

-Ken


On 2/23/09 9:47 AM, Biao She sheb...@gmail.com wrote:

Hi everyone.
I have successfully created a plugin for paraview in Linux. Now I want to move 
it to Windows.
CMake vs8 2005 code generator is used for generating the plugin project. 
Nothing went wrong before I tried to build the project. I got the following two 
building errors:
1C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdlib(18) : error 
C2143: syntax error : missing ';' before 'namespace'
1vtkMyDICOMReader.cxx
1C:\Program Files\Microsoft Visual Studio 8\VC\include\string(15) : error 
C2143: syntax error : missing ';' before 'namespace'

I have tried to add semicolons before the namespaces, but it leads me to more 
errors. My source code should be fine since it works for Linux. Does anyone 
have an idea about how to fix the problem? Thanks.

Biao




     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


Re: [Paraview] keep constant contour in animation

2009-02-23 Thread Martin Uppman
Thank you very much Berk!

Regards,

Martin

 The quickest work-around is to save the contour(s) from the first time
 step as a polydata and load it back in. I can't remember if we ended
 up creating a filter that suppresses time requests.

 -berk

 On Mon, Feb 23, 2009 at 2:43 AM, Martin Uppman f0...@student.lth.se
 wrote:
 Hi,

 I want to simulate moving particles in a sequence and keep the contour
 image from the first time frame. I've been trying with a bunch of
 filters
 like temporal types, extracting types but also mixing a lot with
 animation
 inspector.
 My results though is always the same, the contour is being recalculated
 in
 every time frame. Is there a way to ignore this? (I've also tried to
 uncheck the three components, compute normals, compute gradients and
 compute scalars in properties of the contuor filter.)

 Thankful for help.

 Cheers,

 Martin

 ___
 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