Re: [Paraview] Widgets and RequestData

2011-09-01 Thread Christoffer Green
I have now figured out the problem, the unsigned long GetMTime() function
needs to be overloaded to report a new modified time (this updated time is
in the widget/vtkImplicitFunction). When the filter has a new modified time
then RequestData gets called.

This message written so that if anybody else ever has this problem they
might have an easier time with it.

BR/ Christoffer

On Thu, Aug 25, 2011 at 4:31 PM, Christoffer Green 
christoffer.gr...@gmail.com wrote:

 Hello

 I have created a vtk filter that has an implicit widget attached, the
 widget shows up in the 3d view but
 it never updates the filter (the RequestData method is never executed in
 the filter after interacting with the widget). If the current
 frame is changed the RequestData method does execute with the updated
 values from the widget though. Is there
 something special that needs to be done with the widget so that this
 happens?

 Here is the xml:

SourceProxy name=FourFlowVolumeTraceNormal
 class=vtkFourFlowVolumeTrace label=VolumeTrace

 InputProperty name=Input command=SetInputConnection
   ProxyGroupDomain name=groups
 Group name=sources/
 Group name=filters/
   /ProxyGroupDomain
   DataTypeDomain name=input_type
 DataType value=vtkDataSet/
   /DataTypeDomain
  /InputProperty

  ProxyProperty name=ClipFunction command=SetClipFunction
 label=Clip Type
ProxyGroupDomain name=groups
Group name=implicit_functions/
/ProxyGroupDomain
ProxyListDomain name=proxy_list
   Proxy group=implicit_functions name=Plane /
   Proxy group=implicit_functions name=Box /
   Proxy group=implicit_functions name=Sphere /
/ProxyListDomain
  /ProxyProperty

   DoubleVectorProperty
  name=ISOValue
  command=SetISOValue
  number_of_elements=1
  animateable=0
  default_values=0.02
  information_property=ISOValueInfo
   /DoubleVectorProperty

   DoubleVectorProperty
  name=ISOValueInfo
  command=GetISOValue
  information_only=1
  SimpleDoubleInformationHelper/
   /DoubleVectorProperty

/SourceProxy

 Thanks
 BR/ Christoffer

___
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] Segmentation fault in 3.11.1 when saving screenshot.

2011-09-01 Thread kit
Hi All, 

I'm having some problems saving screen shots with the latest version of
Paraview (3.11.1).  This is compiled on an Ubuntu-64 bit system.
Basically Paraview crashes with a segmentation fault every time I try to
save a screen shot. The graphics card is admittedly low end, but this
worked fine in 3.10. Has anyone else had this issue? Below is some of
the output from gdb.

cheers

Kit

(gdb) back
#0  0x7fffcf4964c9 in ?? () from /usr/lib/dri/i965_dri.so
#1  0x7fffee90e2d4 in ?? () from /usr/lib/mesa/libGL.so.1
#2  0x7fffe99e9e3e in vtkXOpenGLRenderWindow::Frame (this=0x820c360)
at /ParaView-3.11.1/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:464
#3  0x761c923b in vtkSMRenderViewProxy::CaptureWindowInternal
(this=0x296a370, 
magnification=1)

at /ParaView-3.11.1/ParaViewCore/ServerManager/vtkSMRenderViewProxy.cxx:887
#4  0x761ff5b7 in vtkSMViewProxy::CaptureWindow (this=0x296a370,
magnification=1)

at /ParaView-3.11.1/ParaViewCore/ServerManager/vtkSMViewProxy.cxx:252
#5  0x770c7f66 in pqRenderView::captureImage (this=0x81c5b90,
magnification=1)
at /ParaView-3.11.1/Qt/Core/pqRenderView.cxx:286
#6  0x770fd594 in pqView::captureImage (this=0x81c5b90,
fullsize=...)
at /ParaView-3.11.1/Qt/Core/pqView.cxx:391
#7  0x77102e15 in pqRenderView::captureImage (this=0x81c5b90,
asize=...)
at/ParaView-3.11.1/Qt/Core/pqRenderView.h:92
#8  0x77b8f630 in pqSaveScreenshotReaction::saveScreenshot
(filename=..., size=..., 
quality=100, all_views=false)

at /ParaView-3.11.1/Qt/ApplicationComponents/pqSaveScreenshotReaction.cxx:195




-- 


Kit Chambers

Principal Geophysicist
Office: +44 1872 562 093
Direct: +44 1872 879 007
Mobile: +44 7816506558
Email:  kit.chamb...@rocktalkimaging.com
attachment: rocktalk_imagingsmall.png___
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] Still getting Numpy error using Paraview 2.10.1 for mac

2011-09-01 Thread Andrew.Wilkins
Hi,

I downloaded 3.10.1 (the pre-built version)  for mac osx10.7 tonight, and am 
trying to use the python calculator.  I get the error:


Traceback (most recent call last):
  File string, line 4, in module
  File 
/Users/partyd/Projects/ParaView-3.10/build/ParaView-build/Utilities/VTKPythonWrapping/site-packages/paraview/vtk/dataset_adapter.py,
 line 5, in module
RuntimeError: This module depends on the numpy module. Please makesure that it 
is installed properly.


I know paraview has its own python+numpy, but just in case it matters, i have 
multiple numpy and python installed, including ones from macports.

Can you help, please?

andy

___
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] Segmentation fault in 3.11.1 when saving screenshot.

2011-09-01 Thread Utkarsh Ayachit
Try turning off Use Offscreen Rendering for Screenshots from the Edit |
Settings | Render VIew dialog.

Utkarsh

On Thu, Sep 1, 2011 at 4:19 AM, kit kit.chamb...@rocktalkimaging.comwrote:

 **
 Hi All,

 I'm having some problems saving screen shots with the latest version of
 Paraview (3.11.1).  This is compiled on an Ubuntu-64 bit system. Basically
 Paraview crashes with a segmentation fault every time I try to save a screen
 shot. The graphics card is admittedly low end, but this worked fine in 3.10.
 Has anyone else had this issue? Below is some of the output from gdb.

 cheers

 Kit

 (gdb) back
 #0  0x7fffcf4964c9 in ?? () from /usr/lib/dri/i965_dri.so
 #1  0x7fffee90e2d4 in ?? () from /usr/lib/mesa/libGL.so.1
 #2  0x7fffe99e9e3e in vtkXOpenGLRenderWindow::Frame (this=0x820c360)
 at /ParaView-3.11.1/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:464
 #3  0x761c923b in vtkSMRenderViewProxy::CaptureWindowInternal
 (this=0x296a370,
 magnification=1)
 at
 /ParaView-3.11.1/ParaViewCore/ServerManager/vtkSMRenderViewProxy.cxx:887
 #4  0x761ff5b7 in vtkSMViewProxy::CaptureWindow (this=0x296a370,
 magnification=1)
 at /ParaView-3.11.1/ParaViewCore/ServerManager/vtkSMViewProxy.cxx:252
 #5  0x770c7f66 in pqRenderView::captureImage (this=0x81c5b90,
 magnification=1)
 at /ParaView-3.11.1/Qt/Core/pqRenderView.cxx:286
 #6  0x770fd594 in pqView::captureImage (this=0x81c5b90,
 fullsize=...)
 at /ParaView-3.11.1/Qt/Core/pqView.cxx:391
 #7  0x77102e15 in pqRenderView::captureImage (this=0x81c5b90,
 asize=...)
 at/ParaView-3.11.1/Qt/Core/pqRenderView.h:92
 #8  0x77b8f630 in pqSaveScreenshotReaction::saveScreenshot
 (filename=..., size=...,
 quality=100, all_views=false)
 at
 /ParaView-3.11.1/Qt/ApplicationComponents/pqSaveScreenshotReaction.cxx:195




   --


 *Kit Chambers*

 *Principal Geophysicist*
 Office: +44 1872 562 093
 Direct: +44 1872 879 007
 Mobile: +44 7816506558
 Email:  *kit.chamb...@rocktalkimaging.comkit.chamb...@reservoirrocktalk.com
 *

 ___
 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


rocktalk_imagingsmall.png___
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] Cosmo Reader - 64bit IDs

2011-09-01 Thread David E DeMarle
I will take a look at this tomorrow. I suspect it was hardcoded
initially but I should be able to make that configurable pretty
easily.

David E DeMarle
Kitware, Inc.
RD Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909



On Wed, Aug 31, 2011 at 10:43 AM, joseph insley ins...@mcs.anl.gov wrote:
 Hi,

 I have some large data sets in the Cosmo format that I'd like to visualize 
 with ParaView, but the format is slightly different from that expected by the 
 built-in CosmoReader.  Because the data sets I have use a very large number 
 of particles, they use a 64bit int for the ID tag, rather than the 32bit 
 expected by the reader.   Looking at the source code for the reader (and 
 HaloFinder) I see that there is an #ifdef ID_64, which if I understand 
 correctly will compile the code using 64 bits for the particle IDs, just as I 
 need.  So my first question is, is this understanding correct? If so, how do 
 I configure ParaView to build with the ID_64 defined?  Is there some place 
 that I need to add -DID_64 when running ccmake?  Also, I assume this means 
 that it will then only read datasets with the 64bit IDs.  I do also have some 
 data sets that use the standard 32bit ID format.  I was hoping there would be 
 a way (via the GUI perhaps) to specify the precision of the IDs, and use the 
 same e
  xecutable, rather than maintain two builds of ParaView to accommodate the 
 two cosmo formats.

 Any insight on any of this would be greatly appreciated.

 Thanks,
 joe.
 ___
 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] Help getting resetting cameras between batch viz runs

2011-09-01 Thread Rick Muller
I'm using the Python scripting facility in Paraview to do some batch
visualization of some semiconductor models I'm simulating. The Start/Stop
Trace feature is great, and I've already put together something quite
usable. However, I can't figure out how to reset the camera between
different simulations.

The code coming out of the Trace feature looked something like:
rv = pv.GetRenderView()
rv.CameraFocalPoint = [0.223, -0.0160,-0.334]
rv.CameraParallelScale = 1.684
rv.CenterOfRotation = [0.223, -0.0160,-0.334]
rv.CameraPosition = [0.223, -0.0160, 4.105]
rv.CameraClippingRange = [5.308, 8.033]
i.e. they already got the center of the object from some query to the
objects already in the database. What would I have to do to get this
information myself? I'm having a hard time finding info. I've tried reading
the doctext for the Outline and OutlineCorners features, and I've seen a
couple refs to a GetBounds command while googling around, but I can't find
anything that really helps.

My pipeline looks something like:
* Use the ExodusIIReader to create a reader object
* Use the aforementioned render view object to control the camera
* Create a slice object in the z-direction at a certain height
* Create a data representation and a colormap
* Render the object.
I can't tell which of the objects I would use for an Outline() or a
GetBounds() call. For example, I get the min/max values for the data in the
slice via
min,max = slice.PointData[0].GetRange()
but using s or s.PointData with Outline() or GetBounds() doesn't get me
anywhere. Can anyone nudge me in the right direction?

Thanks,
Rick

-- 
Rick Muller
rpmul...@gmail.com
505-750-7557
___
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] starting an animation before the first timestep

2011-09-01 Thread Leonie Callies
Hi,

I am trying to make a nice animation with paraview. What I would like to do is 
add, for instance, an outline, a certain geometry and maybe other sources and 
then show the timevariant dataset. But adding those sources should be part of 
the animation. So, basically, I want to start the animation before the first 
timestep of the dataset. How can I do that?
Thanks for any help!

Leonie





-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
___
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] visibility of the stream tracer

2011-09-01 Thread Leonie Callies
Hi,

I have encountered two strange behaviors of ParaView both concerning the stream 
tracer. I wanted the streamlines to be seen only at certain time steps of my 
animation. So I used the Animation View to turn off the visibility at the 
beginning and then turn it on at a certain time step. Unfortunately the 
streamlines were visible in the entire animation. 

I had another problem with the stream tracer. I set the maximum length of a 
stream line to 6 (default was 17). When I turned off the visibility of the 
stream tracer by clicking on the eye and then turned it on again, ParaView  
ignored the maximum length of 6 and used 17 instead.

Has anyone come across either of these problems? I am using ParaView 3.10.1

Leonie


-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
___
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] starting an animation before the first timestep

2011-09-01 Thread Scott, W Alan
I can think of three ways.
* Instead of save animation, use save screenshot.  Then, manually create your 
images for the movie.
* Same as above, but if you have any animations that need to be part of this, 
just write the animations down as individual images.
* You could always use the Animation View, turning visibility of these sources 
and datasets on as time runs.

Alan

-Original Message-
From: paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org] On 
Behalf Of Leonie Callies
Sent: Thursday, September 01, 2011 4:29 PM
To: paraview@paraview.org
Subject: [Paraview] starting an animation before the first timestep

Hi,

I am trying to make a nice animation with paraview. What I would like to do is 
add, for instance, an outline, a certain geometry and maybe other sources and 
then show the timevariant dataset. But adding those sources should be part of 
the animation. So, basically, I want to start the animation before the first 
timestep of the dataset. How can I do that?
Thanks for any help!

Leonie





-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
___
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] visibility of the stream tracer

2011-09-01 Thread Andy Bauer
I tried it with my own source and didn't have any problems.  Can you give
more details and maybe share your dataset?

Andy

On Thu, Sep 1, 2011 at 6:29 PM, Leonie Callies leonie.call...@gmx.dewrote:

 Hi,

 I have encountered two strange behaviors of ParaView both concerning the
 stream tracer. I wanted the streamlines to be seen only at certain time
 steps of my animation. So I used the Animation View to turn off the
 visibility at the beginning and then turn it on at a certain time step.
 Unfortunately the streamlines were visible in the entire animation.

 I had another problem with the stream tracer. I set the maximum length of a
 stream line to 6 (default was 17). When I turned off the visibility of the
 stream tracer by clicking on the eye and then turned it on again, ParaView
  ignored the maximum length of 6 and used 17 instead.

 Has anyone come across either of these problems? I am using ParaView 3.10.1

 Leonie


 --
 Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
 belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
 ___
 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