Re: [Paraview] Python Reader

2010-10-19 Thread Paul Edwards
Hi Patrick,

Have you tried adding a StringVectorProperty to your XML for a filename
(with ) and having a GUI XML file for adding a
reader?  I think someone suggested you look at the helix source xml (
http://paraview.org/gitweb?p=ParaView.git;a=blob;f=Examples/Plugins/HelixSource/helix.xml;h=d6c385561d9cdffc5298ced17d700bae8bc167b6;hb=HEAD)
and you can see how to add the GUI XML file in the other reader example (
http://paraview.org/gitweb?p=ParaView.git;a=tree;f=Examples/Plugins/Reader;hb=HEAD
)

Note: I haven't actually tried this as I'm not at a computer today with the
source on it.

Regards,
Paul


On 18 October 2010 18:14, Adriano Gagliardi  wrote:

>
> Hi Patrick,
>
> Is there a reason you don't want to write a C++ plugin to achieve this?
> Readers are fairly straightforward to implement with ParaView and there are
> plenty of examples. Plus, I don't know if it is possible to achieve what
> you
> want with Python API alone, but hopefully someone will correct me if I'm
> wrong.
>
> Cheers,
> Adriano
>
> ===
>
> Adriano Gagliardi MEng PhD
> Business Sector Leader
> Computational Aerodynamics
> Aircraft Research Association Ltd.
> Manton Lane
> Bedford
>
> Tel: 01234 32 4644
> E-mail: agaglia...@ara.co.uk
> Url: www.ara.co.uk
> -Original Message-
> From: Brockmann Patrick [mailto:patrick.brockm...@cea.fr]
> Sent: 18 October 2010 18:04
> To: paraview@paraview.org
> Cc: agaglia...@ara.co.uk
> Subject: Re: [Paraview] Python Reader
>
>
> > I'm assuming you want something more refined than:
> >
> > Programmable Filter:
> >
> > filename = 'myfilename'
> > execfile(my_python_code.py)
> >
> > ---
> > where filename is used within my_python_code as a variable?
> >
> Yes, especially if you want to design a plugin where filename is an entry
> choosen by a user.
> I am looking for a real example in the configuration of a
> ServerManagerConfiguration file for a python reader.
>
> Thanks
> Patrick
>
>
>
> **
> This email contains information that is private and confidential and is
> intended only for the addressee.
> If you are not the intended recipient please delete it and notify us
> immediately by e-mailing the sender.
> Note: All email sent to or from this address may be accessed by someone
> other than the recipient, for
> system management and security reasons.
> Aircraft Research Association Ltd.  Registered in England, Registration No
> 503668 Registered Office:
> Manton Lane, Bedford MK41 7PF England VAT No GB 196351245
>
> **
> ___
> 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 Reader

2010-10-19 Thread Brockmann Patrick

Paul Edwards a écrit :

Hi Patrick,

Have you tried adding a StringVectorProperty to your XML for a 
filename (with ) and having a GUI XML 
file for adding a reader?  I think someone suggested you look at the 
helix source xml 
(http://paraview.org/gitweb?p=ParaView.git;a=blob;f=Examples/Plugins/HelixSource/helix.xml;h=d6c385561d9cdffc5298ced17d700bae8bc167b6;hb=HEAD) 
and you can see how to add the GUI XML file in the other reader 
example 
(http://paraview.org/gitweb?p=ParaView.git;a=tree;f=Examples/Plugins/Reader;hb=HEAD)



Hi Paul,

Thanks to share your experience on this topic.
As I wrote to another paraview user,
my python code is a small 200 lines using netCDF4, numpy
and its conversion is not as straightforward as it could be because I use
many numpy functions.
Of course, I can do it but the python approach is more attrative.

I have tried to add

   


to the helix.xml example but
when I load it nothing appears in the source menu.

What I would like is a Python Reader example.
If someone has this to share, I am very interested.

Patrick

--
LSCE/IPSL, Laboratoire CEA-CNRS-UVSQ
Data Analysis and Visualization Engineer
IPSL Global Climate Modelling Group
--



  

  

  
   This source will execute a python script to produce a helix dataset.
  
  
  
   

  

  
 
   
 
   
 

 
 
 

 
	
 

 
 
 
 
 
 
 



  



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

2010-10-19 Thread Paul Edwards
You will need a separate xml file for the GUI plugin to tell paraview about
the new format.  Look at pqReader.xml in
"Examples/Plugins/Reader".

Regards,
Paul


On 19 October 2010 14:26, Brockmann Patrick wrote:

> Paul Edwards a écrit :
>
>  Hi Patrick,
>>
>> Have you tried adding a StringVectorProperty to your XML for a filename
>> (with ) and having a GUI XML file for adding a
>> reader?  I think someone suggested you look at the helix source xml (
>> http://paraview.org/gitweb?p=ParaView.git;a=blob;f=Examples/Plugins/HelixSource/helix.xml;h=d6c385561d9cdffc5298ced17d700bae8bc167b6;hb=HEAD)
>> and you can see how to add the GUI XML file in the other reader example (
>> http://paraview.org/gitweb?p=ParaView.git;a=tree;f=Examples/Plugins/Reader;hb=HEAD
>> )
>>
>>  Hi Paul,
>
> Thanks to share your experience on this topic.
> As I wrote to another paraview user,
> my python code is a small 200 lines using netCDF4, numpy
> and its conversion is not as straightforward as it could be because I use
> many numpy functions.
> Of course, I can do it but the python approach is more attrative.
>
> I have tried to add
>   name="FileName"
>   animateable="0"
>   command="SetFileName"
>   number_of_elements="1">
>   
>
>
> to the helix.xml example but
> when I load it nothing appears in the source menu.
>
> What I would like is a Python Reader example.
> If someone has this to share, I am very interested.
>
> Patrick
>
> --
> LSCE/IPSL, Laboratoire CEA-CNRS-UVSQ
> Data Analysis and Visualization Engineer
> IPSL Global Climate Modelling 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


Re: [Paraview] Python Reader

2010-10-19 Thread Aurélien Marsan
In doing so, it seems that the reader must have a "SetFileName" function.
How do you handle this with python ? Or can you avoid this ?

I do not think the integration of a python script in the GUI can be as
perfect as that of a reader writen in c++.

2010/10/19 Paul Edwards 

> You will need a separate xml file for the GUI plugin to tell paraview about
> the new format.  Look at pqReader.xml in
> "Examples/Plugins/Reader".
>
> Regards,
> Paul
>
>
>
> On 19 October 2010 14:26, Brockmann Patrick wrote:
>
>> Paul Edwards a écrit :
>>
>>  Hi Patrick,
>>>
>>> Have you tried adding a StringVectorProperty to your XML for a filename
>>> (with ) and having a GUI XML file for adding a
>>> reader?  I think someone suggested you look at the helix source xml (
>>> http://paraview.org/gitweb?p=ParaView.git;a=blob;f=Examples/Plugins/HelixSource/helix.xml;h=d6c385561d9cdffc5298ced17d700bae8bc167b6;hb=HEAD)
>>> and you can see how to add the GUI XML file in the other reader example (
>>> http://paraview.org/gitweb?p=ParaView.git;a=tree;f=Examples/Plugins/Reader;hb=HEAD
>>> )
>>>
>>>  Hi Paul,
>>
>> Thanks to share your experience on this topic.
>> As I wrote to another paraview user,
>> my python code is a small 200 lines using netCDF4, numpy
>> and its conversion is not as straightforward as it could be because I use
>> many numpy functions.
>> Of course, I can do it but the python approach is more attrative.
>>
>> I have tried to add
>>>   name="FileName"
>>   animateable="0"
>>   command="SetFileName"
>>   number_of_elements="1">
>>   
>>
>>
>> to the helix.xml example but
>> when I load it nothing appears in the source menu.
>>
>> What I would like is a Python Reader example.
>> If someone has this to share, I am very interested.
>>
>> Patrick
>>
>> --
>> LSCE/IPSL, Laboratoire CEA-CNRS-UVSQ
>> Data Analysis and Visualization Engineer
>> IPSL Global Climate Modelling 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] Fwd: Interpolation problem

2010-10-19 Thread Aurélien Marsan
Thanks for this explanation. Really interesting. I'm glad having read that
mail.
What would happen if the square were not in the (x,y) plane. The function
become a f(x,y,z) function ?
Or by writing f(x,y) you meant f(i,j) where i and j are locl coordinates ?

2010/10/15 Moreland, Kenneth 

>  If I can, I would like to expand the conversation a little bit because I
> don’t think the technical details are telling the whole story.
>
> The root of the problem is that the interpolation of a scalar field based
> on the four corners of a square (or any quadrilateral) is in general
> ill-defined.  We usually mean for field to be linearly interpolated between
> the points.  That is, find some function of the form f(x,y) = a*x + b*y + c
> that gives the correct scalar for all four points.  But, in fact, four
> points over constrain the problem and no such linear function exists.
>
> So really, the differences you are seeing are the differences between how
> the internal VTK functions resolve the interpolation and how your rendering
> hardware is doing it.  I haven’t looked at the source code, but I’m assuming
> that VTK is using something like bilinear interpolation.  Bilinear
> interpolation works by first interpolating the scalar on opposite edges and
> then interpolating again between these edges to get a point in the interior.
>  Bilinear interpolation has several advantages: it can be done independently
> of neighboring polygons and still be C0 continuous, it is easy to implement,
> it is smooth in the interior, and it gives an interpolation that intuitively
> makes sense.  Note, however, that bilinear interpolation is *not* linear.
>  This is evident by your plot (which is a parabola).
>
> Your graphics driver is much more concerned with speed.  As such, it takes
> your quadrilateral and breaks it into triangles.  This circumvents the whole
> interpolation problem because the three vertices of the triangle perfectly
> constrain the linear function.  It is also easy for the graphics hardware to
> compute the interior of the triangle.  Of course, the result is not as,
> shall we say, pleasant as bilinear interpolation.  It is not smooth: There
> is a C1 discontinuity at the line where the quadrilateral was split into
> triangles.  Also, this splitting is arbitrary.  The split could just as
> easily been made in the opposite direction.  In that case, you would see a
> red line go from upper left to lower right instead of that blue line from
> lower left to upper right.
>
> So the rendering is probably not what was indented when defining the scalar
> value on a quadrilateral.  However, ParaView allows it because correcting
> the problem would make the rendering prohibitively slow.  Furthermore, it is
> rarely even noticeable.  The square in this example is worst case.  Not only
> do no linear functions fit, they are not even close.  Thus, the different
> ways to resolve the issue are dramatically different.  In a practical
> application, this does not occur.  The scalar values tend to more closely
> fit a linear function.  If a quadrilateral like this occurred in a real data
> set, it might be indicative of a meshing problem.  Furthermore, real meshes
> have lots of facets.  If this square was a small part of a much bigger
> surface, differences in interpolation are less meaningful.
>
> In short, the interpolation your graphics hardware performs is sufficient
> for qualitative analysis (getting an overview of behavior), which is all its
> really good for anyway.  When you do qualitative analysis (showing actual
> numbers in the data) such as in your plot, the more accurate interpolation
> models of VTK are used.
>
> -Ken
>
>
>
> On 10/14/10 9:06 AM, "Andy Bauer"  wrote:
>
>
>
> 2010/10/14 小縣信也 
>
> Hi Andy,
>
> Thank you for replying.
> Do you mean that the rendering image doesn't reflect the result of
> interpolation ?
>
>
> Yes.
>
>
> If so, what is the most common usage?
> In what situation is the interpolation used ?
>
>
> If your grid uses triangles then the image should match the interpolation
> for the typical node/point based interpolation.
>
>
>
> Shinya
>
>
> 2010/10/13 Andy Bauer :
> > I think this is a rendering issue and not an interpolation issue.  From
> the
> > 2d plot you can see that it's properly interpolating the values.  I think
> > the quadrilateral is getting rendered as 2 triangles in which case the
> > diagonal values appear to be constant since the 2 end points are at the
> same
> > value.
> >
> > 2010/10/12 小縣信也 
> >>
> >> Hello
> >>
> >> I'm sending  the following  e-mail again ,because nobody answered it.
> >> Does anyone have information on my problem?
> >>
> >> Shinya
> >>
> >>
> >> -- Forwarded message --
> >> From: 小縣信也 
> >> Date: 2010/10/7
> >> Subject: Interpolation problem
> >> To: paraview@paraview.org
> >>
> >>
> >> Hello, paraview users
> >>
> >> I draw the file “Sample_inter.vtk” on ParaView. (ref:attached file)
> >> I chose “Gouraud” in Interpolation option

[Paraview] Saving Views

2010-10-19 Thread Phil Tiller
 
Hi,
 
This must be very simple in Paraview but I can't seem to work it out.
 
I'd like to save a view for one dataset so that I can then go and get
another dataset and present the new data at exactly the same viewpoint
thus making it easy to see the differences.
 
I thought I could do it using the 'save' function in the Camera
positions menu but this doesn't quite work.  When I read the next
dataset in and load the view, the zoom and positioning are wrong, even
though the actual view angle may be correct.
 
How do I do this?
 
Thanks,
 
Phil
 
 

__
This email has been scanned for viruses by www.epagency.net
If you consider this email spam, please forward it to s...@epagency.net
_
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] Fwd: Interpolation problem

2010-10-19 Thread Moreland, Kenneth
The interpolations (in VTK) are done in parametric space, so the location of 
the polygon in 3D space is inconsequential.  Although I used x,y in my 
discussion, it would be more correct to use parametric parameters u,v (or i,j 
or whatever).  I didn’t talk about parametric space because I didn’t want the 
explanation to get more complicated.

-Ken


On 10/19/10 9:48 AM, "Aurélien Marsan"  wrote:

Thanks for this explanation. Really interesting. I'm glad having read that mail.
What would happen if the square were not in the (x,y) plane. The function 
become a f(x,y,z) function ?
Or by writing f(x,y) you meant f(i,j) where i and j are locl coordinates ?

2010/10/15 Moreland, Kenneth 
If I can, I would like to expand the conversation a little bit because I don’t 
think the technical details are telling the whole story.

The root of the problem is that the interpolation of a scalar field based on 
the four corners of a square (or any quadrilateral) is in general ill-defined.  
We usually mean for field to be linearly interpolated between the points.  That 
is, find some function of the form f(x,y) = a*x + b*y + c that gives the 
correct scalar for all four points.  But, in fact, four points over constrain 
the problem and no such linear function exists.

So really, the differences you are seeing are the differences between how the 
internal VTK functions resolve the interpolation and how your rendering 
hardware is doing it.  I haven’t looked at the source code, but I’m assuming 
that VTK is using something like bilinear interpolation.  Bilinear 
interpolation works by first interpolating the scalar on opposite edges and 
then interpolating again between these edges to get a point in the interior.  
Bilinear interpolation has several advantages: it can be done independently of 
neighboring polygons and still be C0 continuous, it is easy to implement, it is 
smooth in the interior, and it gives an interpolation that intuitively makes 
sense.  Note, however, that bilinear interpolation is not linear.  This is 
evident by your plot (which is a parabola).

Your graphics driver is much more concerned with speed.  As such, it takes your 
quadrilateral and breaks it into triangles.  This circumvents the whole 
interpolation problem because the three vertices of the triangle perfectly 
constrain the linear function.  It is also easy for the graphics hardware to 
compute the interior of the triangle.  Of course, the result is not as, shall 
we say, pleasant as bilinear interpolation.  It is not smooth: There is a C1 
discontinuity at the line where the quadrilateral was split into triangles.  
Also, this splitting is arbitrary.  The split could just as easily been made in 
the opposite direction.  In that case, you would see a red line go from upper 
left to lower right instead of that blue line from lower left to upper right.

So the rendering is probably not what was indented when defining the scalar 
value on a quadrilateral.  However, ParaView allows it because correcting the 
problem would make the rendering prohibitively slow.  Furthermore, it is rarely 
even noticeable.  The square in this example is worst case.  Not only do no 
linear functions fit, they are not even close.  Thus, the different ways to 
resolve the issue are dramatically different.  In a practical application, this 
does not occur.  The scalar values tend to more closely fit a linear function.  
If a quadrilateral like this occurred in a real data set, it might be 
indicative of a meshing problem.  Furthermore, real meshes have lots of facets. 
 If this square was a small part of a much bigger surface, differences in 
interpolation are less meaningful.

In short, the interpolation your graphics hardware performs is sufficient for 
qualitative analysis (getting an overview of behavior), which is all its really 
good for anyway.  When you do qualitative analysis (showing actual numbers in 
the data) such as in your plot, the more accurate interpolation models of VTK 
are used.

-Ken



On 10/14/10 9:06 AM, "Andy Bauer" http://andy.ba...@kitware.com> > wrote:



2010/10/14 小縣信也 http://so020...@gmail.com> >
Hi Andy,

Thank you for replying.
Do you mean that the rendering image doesn't reflect the result of
interpolation ?

Yes.

If so, what is the most common usage?
In what situation is the interpolation used ?

If your grid uses triangles then the image should match the interpolation for 
the typical node/point based interpolation.


Shinya


2010/10/13 Andy Bauer http://andy.ba...@kitware.com> >:
> I think this is a rendering issue and not an interpolation issue.  From the
> 2d plot you can see that it's properly interpolating the values.  I think
> the quadrilateral is getting rendered as 2 triangles in which case the
> diagonal values appear to be constant since the 2 end points are at the same
> value.
>
> 2010/10/12 小縣信也 http://so020...@gmail.com> >
>>
>> Hello
>>
>> I'm sending  the following  e-mail again ,because nobody answered it.
>> Do

[Paraview] Probe Location

2010-10-19 Thread Phil Tiller
 
Hi,

I've been trying to use the 'probe location' filter to extract values at
certain points.  How does this work?  I find that if I bring the filter
up and enter a position then I can see the point displayed at the
position that I wanted.  When I go to the information tab, the data at
this position is not there.  I've found that I can randomly get the data
to appear on the information tab but I've not been able to work out what
I did to achieve this.  I must have refreshed the graphics or page
somehow but most times I can't get the data out.

Any ideas?

Thanks,

Phil
 
 
 
 
 
 
 
 
 
 
 
 


__
This email has been scanned for viruses by www.epagency.net
If you consider this email spam, please forward it to s...@epagency.net
__
___
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] Probe Location

2010-10-19 Thread Utkarsh Ayachit
You need to hit "Apply" after having positioned the probe filter at
the location you want. After that the "Information' tab will update.

Utkarsh

On Tue, Oct 19, 2010 at 12:16 PM, Phil Tiller  wrote:
>
> Hi,
>
> I've been trying to use the 'probe location' filter to extract values at
> certain points.  How does this work?  I find that if I bring the filter
> up and enter a position then I can see the point displayed at the
> position that I wanted.  When I go to the information tab, the data at
> this position is not there.  I've found that I can randomly get the data
> to appear on the information tab but I've not been able to work out what
> I did to achieve this.  I must have refreshed the graphics or page
> somehow but most times I can't get the data out.
>
> Any ideas?
>
> Thanks,
>
> Phil
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> __
> This email has been scanned for viruses by www.epagency.net
> If you consider this email spam, please forward it to s...@epagency.net
> __
> ___
> 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 Reader

2010-10-19 Thread Paul Edwards
Are you trying to do this without compiling anything?  I'm not even sure you
can load in a GUI plugin via XML - maybe someone else can confirm here?

Sorry I can't be more help,
Paul

On 19 October 2010 16:15, Brockmann Patrick wrote:

> Paul Edwards a écrit :
>
>  You will need a separate xml file for the GUI plugin to tell paraview
>> about the new format.  Look at pqReader.xml in
>> "Examples/Plugins/Reader".
>>
>>  OK, I see the
> pqReader.xml
> readers.xml
> files.
>
> How do you plug the reader plug into Paraview ?
> My try with Load Plugin does nothing
>
>
> Patrick
>
> --
> LSCE/IPSL, Laboratoire CEA-CNRS-UVSQ
> Data Analysis and Visualization Engineer
> IPSL Global Climate Modelling Group
> mailto:patrick.brockm...@cea.fr
> 01.69.08.32.24 --> LSCE (Orme des merisiers 712, Bureau 11)
> http://www.ipsl.jussieu.fr/~brocksce/
> --
>
>
___
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] Python command to exit ParaView question

2010-10-19 Thread Scott, W Alan
Is there a python command in a Python script that will tell ParaView to exit?

Thanks,

Alan


W. Alan Scott
ParaView Support Manager

GAITS
Sandia National Laboratories, MS 0822
Org 9326 - Building 880 A1-C
(505) 284-0932   FAX (505) 845-0833
-



___
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] Saving Views

2010-10-19 Thread Samuel Key


  
  
Phil,

For me, I do the following:

1) Read in first datum set and create view and datum display in
which I am interested.

2) Read in second datum set "on top" of the first datum set; they
now overlay with exactly the same view settings.

3) Create an identical filter sequence for the second datum set.

4) Turn on and off visibility "eyeballs" to do a visual A-B
comparisons.

There are more sophisticated ways to compare two results files, but
this should get you started.

Sam Key  

On 10/19/2010 10:12 AM, Phil Tiller wrote:

  
  
   
  Hi,
   
  This
must be very simple in Paraview but I can't seem to work it
out.
   
  I'd
like to save a view for one dataset so that I can then go
and get another dataset and present the new data at exactly
the same viewpoint thus making it easy to see the
differences.
   
  I
thought I could do it using the 'save' function in the
Camera positions menu but this doesn't quite work.  When I
read the next dataset in and load the view, the zoom and
positioning are wrong, even though the actual view angle may
be correct.
   
  How
do I do this?
   
  Thanks,
   
  Phil
   
  
   

  
  IMPORTANT: This message is
  private and confidential. If you have received this
  message in error, please notify us and remove it from your
  system. Unless otherwise stated, the statements contained
  herein are those of the individual and not the Company and
  no legal responsibility is accepted by the Company for
  such statements. Messages sent to and from us may be
  monitored.
  Registered office: Lola Cars International Limited, Glebe
  Road, Huntingdon, Cambs, PE29 7DS, UK. Registered in
  England No 3415853.

  

___
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] Saving Views

2010-10-19 Thread burlen

 Hi Phil,

Saving (and re-applying) the camera settings should do what you need.

Are the two datasets the same size?
Did you apply the saved settings after loading the second dataset?

Burlen

On 10/19/2010 09:12 AM, Phil Tiller wrote:

Hi,
This must be very simple in Paraview but I can't seem to work it out.
I'd like to save a view for one dataset so that I can then go and get 
another dataset and present the new data at exactly the same viewpoint 
thus making it easy to see the differences.
I thought I could do it using the 'save' function in the Camera 
positions menu but this doesn't quite work.  When I read the next 
dataset in and load the view, the zoom and positioning are wrong, even 
though the actual view angle may be correct.

How do I do this?
Thanks,
Phil



/IMPORTANT: This message is private and confidential. If you have 
received this message in error, please notify us and remove it from 
your system. Unless otherwise stated, the statements contained herein 
are those of the individual and not the Company and no legal 
responsibility is accepted by the Company for such statements. 
Messages sent to and from us may be monitored. Registered office: Lola 
Cars International Limited, Glebe Road, Huntingdon, Cambs, PE29 7DS, 
UK. Registered in England No 3415853./



___
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 command to exit ParaView question

2010-10-19 Thread Utkarsh Ayachit
Nope. Python is not supposed to "drive" the ParaView Qt GUI. If that's
what you indeed want, why not simply use pvpython/pvbatch?

Utkarsh

On Tue, Oct 19, 2010 at 1:20 PM, Scott, W Alan  wrote:
> Is there a python command in a Python script that will tell ParaView to
> exit?
>
> Thanks,
>
> Alan
>
> 
> W. Alan Scott
> ParaView Support Manager
>
> GAITS
> Sandia National Laboratories, MS 0822
> Org 9326 - Building 880 A1-C
> (505) 284-0932   FAX (505) 845-0833
> -
>
>
>
> ___
> 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 command to exit ParaView question

2010-10-19 Thread pat marion
Not unless you want to type something like this...

from PyQt4 import QtCore
QtCore.QCoreApplication.quit()


Pat

On Tue, Oct 19, 2010 at 1:48 PM, Utkarsh Ayachit <
utkarsh.ayac...@kitware.com> wrote:

> Nope. Python is not supposed to "drive" the ParaView Qt GUI. If that's
> what you indeed want, why not simply use pvpython/pvbatch?
>
> Utkarsh
>
> On Tue, Oct 19, 2010 at 1:20 PM, Scott, W Alan  wrote:
> > Is there a python command in a Python script that will tell ParaView to
> > exit?
> >
> > Thanks,
> >
> > Alan
> >
> > 
> > W. Alan Scott
> > ParaView Support Manager
> >
> > GAITS
> > Sandia National Laboratories, MS 0822
> > Org 9326 - Building 880 A1-C
> > (505) 284-0932   FAX (505) 845-0833
> > -
> >
> >
> >
> > ___
> > 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
>
___
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] windows build problems, cmake errors

2010-10-19 Thread m . c . wilkins

Hi,

I get an error while trying to build the make files for building
paraview on Windows.  The error is:

   Entering Z:/Utilities/VTKClientServer/Common
CMake Error at Utilities/VTKClientServer/vtkClientServer.cmake:16 (INCLUDE):
  include could not find load file:

C:/build/pv/VTK/Utilities/vtkCommonKit.cmake
Call Stack (most recent call first):
  Utilities/VTKClientServer/vtkClientServer.cmake:37 (PV_PRE_WRAP_VTK_CS)
  Utilities/VTKClientServer/Common/CMakeLists.txt:2 (PV_WRAP_VTK_CS)

   Returning to Z:/Utilities/VTKClientServer

Now for the details.  I have Cmake 2.8.2, paraview source 3.8.1 from
http://www.paraview.org/files/v3.8/ParaView-3.8.1.zip, QT 4.7.0 from
http://qt.nokia.com/downloads/windows-cpp-vs2008, visual studio 2009,
and windows XP SP3.  In cmake I have this:

   CMake Warning at CMakeLists.txt:97 (MESSAGE):
  Warning: You are using Qt 4.7.0.  Officially supported version is Qt 4.6

I don't think this can be the problem as the error isn't in any Qt
directories.

I also tried using the latest source via git using:

   git clone git://paraview.org/ParaView.git
   git submodule init
   git submodule update

but I got a similar message.

Does anyone have any clues please?

Thank you!

Matt Wilkins

___
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] windows build problems, cmake errors

2010-10-19 Thread Dave Partyka
How are your build/source directories organized? Is the source dir on the Z
drive and the build dir is on C?

On Tue, Oct 19, 2010 at 8:23 PM,  wrote:

>
> Hi,
>
> I get an error while trying to build the make files for building
> paraview on Windows.  The error is:
>
>   Entering Z:/Utilities/VTKClientServer/Common
> CMake Error at Utilities/VTKClientServer/vtkClientServer.cmake:16
> (INCLUDE):
>  include could not find load file:
>
>C:/build/pv/VTK/Utilities/vtkCommonKit.cmake
> Call Stack (most recent call first):
>  Utilities/VTKClientServer/vtkClientServer.cmake:37 (PV_PRE_WRAP_VTK_CS)
>  Utilities/VTKClientServer/Common/CMakeLists.txt:2 (PV_WRAP_VTK_CS)
>
>   Returning to Z:/Utilities/VTKClientServer
>
> Now for the details.  I have Cmake 2.8.2, paraview source 3.8.1 from
> http://www.paraview.org/files/v3.8/ParaView-3.8.1.zip, QT 4.7.0 from
> http://qt.nokia.com/downloads/windows-cpp-vs2008, visual studio 2009,
> and windows XP SP3.  In cmake I have this:
>
>   CMake Warning at CMakeLists.txt:97 (MESSAGE):
>  Warning: You are using Qt 4.7.0.  Officially supported version is Qt
> 4.6
>
> I don't think this can be the problem as the error isn't in any Qt
> directories.
>
> I also tried using the latest source via git using:
>
>   git clone git://paraview.org/ParaView.git
>   git submodule init
>   git submodule update
>
> but I got a similar message.
>
> Does anyone have any clues please?
>
> Thank you!
>
> Matt Wilkins
>
> ___
> 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] windows build problems, cmake errors

2010-10-19 Thread m . c . wilkins

Hi,

Yes, the source dir is on the Z drive and the build dir is on C.

My windows machine is running in virtualbox on my linux machine.  The
source directory, Z:, is a drive mapped through to a directory on my
linux box.  The build directory is C:/build/pv.

Thanks

Matt Wilkins

On Tue, Oct 19, 2010 at 09:10:01PM -0400, Dave Partyka wrote:
> How are your build/source directories organized? Is the source dir on the Z
> drive and the build dir is on C?
> 
> On Tue, Oct 19, 2010 at 8:23 PM,  wrote:
> 
> 
> Hi,
> 
> I get an error while trying to build the make files for building
> paraview on Windows.  The error is:
> 
>   Entering Z:/Utilities/VTKClientServer/Common
> CMake Error at Utilities/VTKClientServer/vtkClientServer.cmake:16
> (INCLUDE):
>  include could not find load file:
> 
>C:/build/pv/VTK/Utilities/vtkCommonKit.cmake
> Call Stack (most recent call first):
>  Utilities/VTKClientServer/vtkClientServer.cmake:37 (PV_PRE_WRAP_VTK_CS)
>  Utilities/VTKClientServer/Common/CMakeLists.txt:2 (PV_WRAP_VTK_CS)
> 
>   Returning to Z:/Utilities/VTKClientServer
> 
> Now for the details.  I have Cmake 2.8.2, paraview source 3.8.1 from
> http://www.paraview.org/files/v3.8/ParaView-3.8.1.zip, QT 4.7.0 from
> http://qt.nokia.com/downloads/windows-cpp-vs2008, visual studio 2009,
> and windows XP SP3.  In cmake I have this:
> 
>   CMake Warning at CMakeLists.txt:97 (MESSAGE):
>  Warning: You are using Qt 4.7.0.  Officially supported version is Qt
> 4.6
> 
> I don't think this can be the problem as the error isn't in any Qt
> directories.
> 
> I also tried using the latest source via git using:
> 
>   git clone git://paraview.org/ParaView.git
>   git submodule init
>   git submodule update
> 
> but I got a similar message.
> 
> Does anyone have any clues please?
> 
> Thank you!
> 
> Matt Wilkins
> 
> ___
> 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