>From your description, I'm not entirely sure what you are intending to do.  
>What do you mean by "plot the distances"?  Do you mean use the ruler filter?

At any rate, what you want to do might not be very straightforward.  First, 
there is an intentional disconnect between filter operations and camera view.  
There is no straightforward way to change the behavior of a filter based on the 
current camera view.  However, it is possible in your Python script to get the 
current camera, query it, and based off of that change the parameters of the 
filters.

That said, it still might not be straightforward because if your camera is in a 
perspective projection (the default), then the dimensions of the viewing plane 
(which I assume is what you mean by x and y axis in your description) is not 
well established.  They change based on how far from the camera you consider 
the viewing plane to be.  If you are viewing something flat at a known 
distance, then you can figure it out.  Also, you could change to parallel 
projection, although that would remove the foreshortening that gives vital 
visual cues in the rendering.

-Ken

From: Alex Evanovic 
<[email protected]<mailto:[email protected]>>
Date: Thu, 23 Feb 2012 19:11:02 +0100
To: <[email protected]<mailto:[email protected]>>
Subject: [EXTERNAL] [Paraview] Plotting Distances in Zoomed View

Hi,

I am new to paraview python scripting. I wrote a script which can automate 
visualization of my .vtu file. Additionally, it can zoom into the view (which I 
need). Now, I need to plot the distances in x-axis & y-axis only for this 
zoomed part (not the whole domain). For example, if the domain is from -10 to 
10, I need to plot the distances only for the -2 to 2 part. Can someone please 
tell me how to go about this (in a python script)?

Thanks & Regards,
Alex

_______________________________________________ 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

Reply via email to