Christoffer Green | 1 Sep 10:12 2011
Picon

Re: Widgets and RequestData

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.green <at> 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

<div>
<p>I have now figured out the problem, the&nbsp;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&nbsp;RequestData&nbsp;gets called.</p>
<div>
<br>
</div>
<div>This message written so that if anybody else ever has this problem they might have an easier time with it.</div>
<div><br></div>
<div>BR/ Christoffer<br><br><div class="gmail_quote">On Thu, Aug 25, 2011 at 4:31 PM, Christoffer Green <span dir="ltr">&lt;<a href="mailto:christoffer.green <at> gmail.com">christoffer.green <at> gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">Hello<div><br></div>
<div>I have created a vtk filter that has an implicit widget attached, the widget shows up in the 3d view but&nbsp;</div>
<div>it never updates the filter (the&nbsp;RequestData method is never executed in the filter after interacting with the widget). If the current</div>
<div>frame is changed the&nbsp;RequestData method does execute with the updated values from the widget though.&nbsp;Is there</div>
<div>something special that needs to be done with the widget so that this happens?</div>
<div><br></div>

<div>Here is the xml:</div>
<div><br></div>
<div><div>
<div>&nbsp; &nbsp;&lt;SourceProxy name="FourFlowVolumeTraceNormal" class="vtkFourFlowVolumeTrace" label="VolumeTrace"&gt;</div>
<div>&nbsp; &nbsp;</div>
<div>&nbsp; &nbsp; &lt;InputProperty name="Input" command="SetInputConnection"&gt;</div>

<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ProxyGroupDomain name="groups"&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Group name="sources"/&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Group name="filters"/&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/ProxyGroupDomain&gt;</div>

<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;DataTypeDomain name="input_type"&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;DataType value="vtkDataSet"/&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/DataTypeDomain&gt;</div>
<div>&nbsp; &nbsp; &nbsp;&lt;/InputProperty&gt;</div>

<div><br></div>
<div>&nbsp; &nbsp; &nbsp;&lt;ProxyProperty name="ClipFunction" command="SetClipFunction" label="Clip Type"&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;ProxyGroupDomain name="groups"&gt;</div>
<div>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;Group name="implicit_functions"/&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/ProxyGroupDomain&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;ProxyListDomain name="proxy_list"&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Proxy group="implicit_functions" name="Plane" /&gt;</div>

<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Proxy group="implicit_functions" name="Box" /&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Proxy group="implicit_functions" name="Sphere" /&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/ProxyListDomain&gt;</div>

<div>&nbsp; &nbsp; &nbsp;&lt;/ProxyProperty&gt;</div>
<div>
<span>	</span>&nbsp;</div>
<div>&nbsp; &nbsp; &nbsp; &lt;DoubleVectorProperty</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;name="ISOValue"</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;command="SetISOValue"</div>

<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;number_of_elements="1"</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;animateable="0"</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;default_values="0.02"</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;information_property="ISOValueInfo"&gt;&gt;</div>

<div>&nbsp; &nbsp; &nbsp; &lt;/DoubleVectorProperty&gt;</div>
<div><br></div>
<div>&nbsp; &nbsp; &nbsp; &lt;DoubleVectorProperty</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;name="ISOValueInfo"</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;command="GetISOValue"</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;information_only="1"&gt;</div>

<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;SimpleDoubleInformationHelper/&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &lt;/DoubleVectorProperty&gt;</div>
<div>
<span>	</span>&nbsp;</div>
<div>&nbsp; &nbsp;&lt;/SourceProxy&gt;</div>
</div></div>
<div><br></div>
<div>Thanks</div>
<div>BR/ Christoffer</div>
</blockquote>
</div>
<br>
</div>
</div>
kit | 1 Sep 10:19 2011

Segmentation fault in 3.11.1 when saving screenshot.

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  0x00007fffcf4964c9 in ?? () from /usr/lib/dri/i965_dri.so
#1  0x00007fffee90e2d4 in ?? () from /usr/lib/mesa/libGL.so.1
#2  0x00007fffe99e9e3e in vtkXOpenGLRenderWindow::Frame (this=0x820c360)
    at /ParaView-3.11.1/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:464
#3  0x00007ffff61c923b in vtkSMRenderViewProxy::CaptureWindowInternal (this=0x296a370,
    magnification=1)
    at /ParaView-3.11.1/ParaViewCore/ServerManager/vtkSMRenderViewProxy.cxx:887
#4  0x00007ffff61ff5b7 in vtkSMViewProxy::CaptureWindow (this=0x296a370, magnification=1)
    at /ParaView-3.11.1/ParaViewCore/ServerManager/vtkSMViewProxy.cxx:252
#5  0x00007ffff70c7f66 in pqRenderView::captureImage (this=0x81c5b90, magnification=1)
    at /ParaView-3.11.1/Qt/Core/pqRenderView.cxx:286
#6  0x00007ffff70fd594 in pqView::captureImage (this=0x81c5b90, fullsize=...)
    at /ParaView-3.11.1/Qt/Core/pqView.cxx:391
#7  0x00007ffff7102e15 in pqRenderView::captureImage (this=0x81c5b90, asize=...)
    at/ParaView-3.11.1/Qt/Core/pqRenderView.h:92
#8  0x00007ffff7b8f630 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.chambers <at> rocktalkimaging.com
<div>
Hi All, <br><br>
I'm having some problems saving screen shots with the latest version of Paraview (3.11.1).&nbsp; 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.<br><br>
cheers<br><br>
Kit<br><br>
(gdb) back<br>
#0&nbsp; 0x00007fffcf4964c9 in ?? () from /usr/lib/dri/i965_dri.so<br>
#1&nbsp; 0x00007fffee90e2d4 in ?? () from /usr/lib/mesa/libGL.so.1<br>
#2&nbsp; 0x00007fffe99e9e3e in vtkXOpenGLRenderWindow::Frame (this=0x820c360)<br>
&nbsp;&nbsp;&nbsp; at /ParaView-3.11.1/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:464<br>
#3&nbsp; 0x00007ffff61c923b in vtkSMRenderViewProxy::CaptureWindowInternal (this=0x296a370, <br>
&nbsp;&nbsp;&nbsp; magnification=1)<br>
&nbsp;&nbsp;&nbsp; at /ParaView-3.11.1/ParaViewCore/ServerManager/vtkSMRenderViewProxy.cxx:887<br>
#4&nbsp; 0x00007ffff61ff5b7 in vtkSMViewProxy::CaptureWindow (this=0x296a370, magnification=1)<br>
&nbsp;&nbsp;&nbsp; at /ParaView-3.11.1/ParaViewCore/ServerManager/vtkSMViewProxy.cxx:252<br>
#5&nbsp; 0x00007ffff70c7f66 in pqRenderView::captureImage (this=0x81c5b90, magnification=1)<br>
&nbsp;&nbsp;&nbsp; at /ParaView-3.11.1/Qt/Core/pqRenderView.cxx:286<br>
#6&nbsp; 0x00007ffff70fd594 in pqView::captureImage (this=0x81c5b90, fullsize=...)<br>
&nbsp;&nbsp;&nbsp; at /ParaView-3.11.1/Qt/Core/pqView.cxx:391<br>
#7&nbsp; 0x00007ffff7102e15 in pqRenderView::captureImage (this=0x81c5b90, asize=...)<br>
&nbsp;&nbsp;&nbsp; at/ParaView-3.11.1/Qt/Core/pqRenderView.h:92<br>
#8&nbsp; 0x00007ffff7b8f630 in pqSaveScreenshotReaction::saveScreenshot (filename=..., size=..., <br>
&nbsp;&nbsp;&nbsp; quality=100, all_views=false)<br>
&nbsp;&nbsp;&nbsp; at /ParaView-3.11.1/Qt/ApplicationComponents/pqSaveScreenshotReaction.cxx:195<br><br><br><br><br><table cellspacing="0" cellpadding="0" width="100%"><tr>
<td>
-- <br><br><br>Kit Chambers<br><br>Principal Geophysicist<br>
Office: +44 1872 562 093<br>
Direct: +44 1872 879 007<br>
Mobile: +44 7816506558<br>
Email:&nbsp; <a href="mailto:kit.chambers <at> reservoirrocktalk.com">kit.chambers <at> rocktalkimaging.com</a>
</td>
</tr></table>
</div>
Andrew.Wilkins | 1 Sep 12:57 2011
Picon
Picon

Still getting Numpy error using Paraview 2.10.1 for mac

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

Utkarsh Ayachit | 1 Sep 15:36 2011

Re: Segmentation fault in 3.11.1 when saving screenshot.

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.chambers <at> rocktalkimaging.com> wrote:
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  0x00007fffcf4964c9 in ?? () from /usr/lib/dri/i965_dri.so
#1  0x00007fffee90e2d4 in ?? () from /usr/lib/mesa/libGL.so.1
#2  0x00007fffe99e9e3e in vtkXOpenGLRenderWindow::Frame (this=0x820c360)
    at /ParaView-3.11.1/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:464
#3  0x00007ffff61c923b in vtkSMRenderViewProxy::CaptureWindowInternal (this=0x296a370,
    magnification=1)
    at /ParaView-3.11.1/ParaViewCore/ServerManager/vtkSMRenderViewProxy.cxx:887
#4  0x00007ffff61ff5b7 in vtkSMViewProxy::CaptureWindow (this=0x296a370, magnification=1)
    at /ParaView-3.11.1/ParaViewCore/ServerManager/vtkSMViewProxy.cxx:252
#5  0x00007ffff70c7f66 in pqRenderView::captureImage (this=0x81c5b90, magnification=1)
    at /ParaView-3.11.1/Qt/Core/pqRenderView.cxx:286
#6  0x00007ffff70fd594 in pqView::captureImage (this=0x81c5b90, fullsize=...)
    at /ParaView-3.11.1/Qt/Core/pqView.cxx:391
#7  0x00007ffff7102e15 in pqRenderView::captureImage (this=0x81c5b90, asize=...)
    at/ParaView-3.11.1/Qt/Core/pqRenderView.h:92
#8  0x00007ffff7b8f630 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.chambers <at> rocktalkimaging.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


<div>
<p>Try turning off "Use Offscreen Rendering for Screenshots" from the Edit | Settings | "Render VIew" dialog.</p>
<div><br></div>
<div>Utkarsh<br><br><div class="gmail_quote">On Thu, Sep 1, 2011 at 4:19 AM, kit <span dir="ltr">&lt;<a href="mailto:kit.chambers <at> rocktalkimaging.com">kit.chambers <at> rocktalkimaging.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">

<div>
Hi All, <br><br>
I'm having some problems saving screen shots with the latest version of Paraview (3.11.1).&nbsp; 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.<br><br>
cheers<br><br>
Kit<br><br>
(gdb) back<br>
#0&nbsp; 0x00007fffcf4964c9 in ?? () from /usr/lib/dri/i965_dri.so<br>
#1&nbsp; 0x00007fffee90e2d4 in ?? () from /usr/lib/mesa/libGL.so.1<br>
#2&nbsp; 0x00007fffe99e9e3e in vtkXOpenGLRenderWindow::Frame (this=0x820c360)<br>
&nbsp;&nbsp;&nbsp; at /ParaView-3.11.1/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:464<br>
#3&nbsp; 0x00007ffff61c923b in vtkSMRenderViewProxy::CaptureWindowInternal (this=0x296a370, <br>
&nbsp;&nbsp;&nbsp; magnification=1)<br>
&nbsp;&nbsp;&nbsp; at /ParaView-3.11.1/ParaViewCore/ServerManager/vtkSMRenderViewProxy.cxx:887<br>
#4&nbsp; 0x00007ffff61ff5b7 in vtkSMViewProxy::CaptureWindow (this=0x296a370, magnification=1)<br>
&nbsp;&nbsp;&nbsp; at /ParaView-3.11.1/ParaViewCore/ServerManager/vtkSMViewProxy.cxx:252<br>
#5&nbsp; 0x00007ffff70c7f66 in pqRenderView::captureImage (this=0x81c5b90, magnification=1)<br>
&nbsp;&nbsp;&nbsp; at /ParaView-3.11.1/Qt/Core/pqRenderView.cxx:286<br>
#6&nbsp; 0x00007ffff70fd594 in pqView::captureImage (this=0x81c5b90, fullsize=...)<br>
&nbsp;&nbsp;&nbsp; at /ParaView-3.11.1/Qt/Core/pqView.cxx:391<br>
#7&nbsp; 0x00007ffff7102e15 in pqRenderView::captureImage (this=0x81c5b90, asize=...)<br>
&nbsp;&nbsp;&nbsp; at/ParaView-3.11.1/Qt/Core/pqRenderView.h:92<br>
#8&nbsp; 0x00007ffff7b8f630 in pqSaveScreenshotReaction::saveScreenshot (filename=..., size=..., <br>
&nbsp;&nbsp;&nbsp; quality=100, all_views=false)<br>
&nbsp;&nbsp;&nbsp; at /ParaView-3.11.1/Qt/ApplicationComponents/pqSaveScreenshotReaction.cxx:195<br><br><br><br><br><table cellspacing="0" cellpadding="0" width="100%"><tr>
<td>
-- <br><br><br>Kit Chambers<br><br>Principal Geophysicist<br>
Office: <a href="tel:%2B44%201872%20562%20093" value="+441872562093" target="_blank">+44 1872 562 093</a><br>
Direct: <a href="tel:%2B44%201872%20879%20007" value="+441872879007" target="_blank">+44 1872 879 007</a><br>
Mobile: <a href="tel:%2B44%207816506558" value="+447816506558" target="_blank">+44 7816506558</a><br>
Email:&nbsp; <a href="mailto:kit.chambers <at> reservoirrocktalk.com" target="_blank">kit.chambers <at> rocktalkimaging.com</a>
</td>
</tr></table>
</div>

<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br><br>
Follow this link to subscribe/unsubscribe:<br><a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br><br>
</blockquote>
</div>
<br>
</div>
</div>
kit | 1 Sep 15:41 2011

Re: Segmentation fault in 3.11.1 when saving screenshot.


Thanks. That seems to do the trick.



On Thu, 2011-09-01 at 09:36 -0400, Utkarsh Ayachit wrote:
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.chambers <at> rocktalkimaging.com> wrote:
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  0x00007fffcf4964c9 in ?? () from /usr/lib/dri/i965_dri.so
#1  0x00007fffee90e2d4 in ?? () from /usr/lib/mesa/libGL.so.1
#2  0x00007fffe99e9e3e in vtkXOpenGLRenderWindow::Frame (this=0x820c360)
    at /ParaView-3.11.1/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:464
#3  0x00007ffff61c923b in vtkSMRenderViewProxy::CaptureWindowInternal (this=0x296a370,
    magnification=1)
    at /ParaView-3.11.1/ParaViewCore/ServerManager/vtkSMRenderViewProxy.cxx:887
#4  0x00007ffff61ff5b7 in vtkSMViewProxy::CaptureWindow (this=0x296a370, magnification=1)
    at /ParaView-3.11.1/ParaViewCore/ServerManager/vtkSMViewProxy.cxx:252
#5  0x00007ffff70c7f66 in pqRenderView::captureImage (this=0x81c5b90, magnification=1)
    at /ParaView-3.11.1/Qt/Core/pqRenderView.cxx:286
#6  0x00007ffff70fd594 in pqView::captureImage (this=0x81c5b90, fullsize=...)
    at /ParaView-3.11.1/Qt/Core/pqView.cxx:391
#7  0x00007ffff7102e15 in pqRenderView::captureImage (this=0x81c5b90, asize=...)
    at/ParaView-3.11.1/Qt/Core/pqRenderView.h:92
#8  0x00007ffff7b8f630 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.chambers <at> rocktalkimaging.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




--


Kit Chambers

Principal Geophysicist
Office: +44 1872 562 093
Direct: +44 1872 879 007
Mobile: +44 7816506558
Email:  kit.chambers <at> rocktalkimaging.com
<div>
<br>
Thanks. That seems to do the trick.<br><br><br><br>
On Thu, 2011-09-01 at 09:36 -0400, Utkarsh Ayachit wrote:<br><blockquote type="CITE">
    Try turning off "Use Offscreen Rendering for Screenshots" from the Edit | Settings | "Render VIew" dialog.
</blockquote>
<blockquote type="CITE">
    <br><br>
</blockquote>
<blockquote type="CITE">
    Utkarsh<br><br>
</blockquote>
<blockquote type="CITE">
    On Thu, Sep 1, 2011 at 4:19 AM, kit &lt;<a href="mailto:kit.chambers <at> rocktalkimaging.com">kit.chambers <at> rocktalkimaging.com</a>&gt; wrote:
</blockquote>
<blockquote type="CITE">
    <blockquote>
        Hi All, <br><br>
        I'm having some problems saving screen shots with the latest version of Paraview (3.11.1).&nbsp; 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.<br><br>
        cheers<br><br>
        Kit<br><br>
        (gdb) back<br>
        #0&nbsp; 0x00007fffcf4964c9 in ?? () from /usr/lib/dri/i965_dri.so<br>
        #1&nbsp; 0x00007fffee90e2d4 in ?? () from /usr/lib/mesa/libGL.so.1<br>
        #2&nbsp; 0x00007fffe99e9e3e in vtkXOpenGLRenderWindow::Frame (this=0x820c360)<br>
        &nbsp;&nbsp;&nbsp; at /ParaView-3.11.1/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:464<br>
        #3&nbsp; 0x00007ffff61c923b in vtkSMRenderViewProxy::CaptureWindowInternal (this=0x296a370, <br>
        &nbsp;&nbsp;&nbsp; magnification=1)<br>
        &nbsp;&nbsp;&nbsp; at /ParaView-3.11.1/ParaViewCore/ServerManager/vtkSMRenderViewProxy.cxx:887<br>
        #4&nbsp; 0x00007ffff61ff5b7 in vtkSMViewProxy::CaptureWindow (this=0x296a370, magnification=1)<br>
        &nbsp;&nbsp;&nbsp; at /ParaView-3.11.1/ParaViewCore/ServerManager/vtkSMViewProxy.cxx:252<br>
        #5&nbsp; 0x00007ffff70c7f66 in pqRenderView::captureImage (this=0x81c5b90, magnification=1)<br>
        &nbsp;&nbsp;&nbsp; at /ParaView-3.11.1/Qt/Core/pqRenderView.cxx:286<br>
        #6&nbsp; 0x00007ffff70fd594 in pqView::captureImage (this=0x81c5b90, fullsize=...)<br>
        &nbsp;&nbsp;&nbsp; at /ParaView-3.11.1/Qt/Core/pqView.cxx:391<br>
        #7&nbsp; 0x00007ffff7102e15 in pqRenderView::captureImage (this=0x81c5b90, asize=...)<br>
        &nbsp;&nbsp;&nbsp; at/ParaView-3.11.1/Qt/Core/pqRenderView.h:92<br>
        #8&nbsp; 0x00007ffff7b8f630 in pqSaveScreenshotReaction::saveScreenshot (filename=..., size=..., <br>
        &nbsp;&nbsp;&nbsp; quality=100, all_views=false)<br>
        &nbsp;&nbsp;&nbsp; at /ParaView-3.11.1/Qt/ApplicationComponents/pqSaveScreenshotReaction.cxx:195<br><br><br><br><br><table cellspacing="0" cellpadding="0" width="100%"><tr>
<td>
-- <br><br><br>Kit Chambers<br><br>Principal Geophysicist<br>
Office: <a href="tel:%2B44%201872%20562%20093">+44 1872 562 093</a><br>
Direct: <a href="tel:%2B44%201872%20879%20007">+44 1872 879 007</a><br>
Mobile: <a href="tel:%2B44%207816506558">+44 7816506558</a><br>
Email:&nbsp; <a href="mailto:kit.chambers <at> reservoirrocktalk.com">kit.chambers <at> rocktalkimaging.com</a>
</td>
</tr></table>
</blockquote>
</blockquote>
<blockquote type="CITE">
    <blockquote>
        <br>
        _______________________________________________<br>
        Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>
        Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>
        Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><br><br>
        Follow this link to subscribe/unsubscribe:<br><a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><br><br>
</blockquote>
</blockquote>
<blockquote type="CITE">
    <br><br>
</blockquote>
<br><table cellspacing="0" cellpadding="0" width="100%"><tr>
<td>
-- <br><br><br>Kit Chambers<br><br>Principal Geophysicist<br>
Office: +44 1872 562 093<br>
Direct: +44 1872 879 007<br>
Mobile: +44 7816506558<br>
Email:&nbsp; <a href="mailto:kit.chambers <at> reservoirrocktalk.com">kit.chambers <at> rocktalkimaging.com</a>
</td>
</tr></table>
</div>
David E DeMarle | 1 Sep 22:46 2011

Re: Cosmo Reader - 64bit IDs

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.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Wed, Aug 31, 2011 at 10:43 AM, joseph insley <insley <at> 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
>
Rick Muller | 1 Sep 23:46 2011
Picon

Help getting resetting cameras between batch viz runs

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
rpmuller <at> gmail.com
505-750-7557

<div><p>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.<br><br>The code coming out of the Trace feature looked something like:<br>&nbsp;&nbsp;&nbsp; rv = pv.GetRenderView()<br>&nbsp;&nbsp;&nbsp; rv.CameraFocalPoint = [0.223, -0.0160,-0.334]<br>&nbsp;&nbsp;&nbsp; rv.CameraParallelScale = 1.684<br>&nbsp;&nbsp;&nbsp; rv.CenterOfRotation = [0.223, -0.0160,-0.334]<br>
&nbsp;&nbsp;&nbsp; rv.CameraPosition = [0.223, -0.0160, 4.105]<br>&nbsp;&nbsp;&nbsp; rv.CameraClippingRange = [5.308, 8.033]<br>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.<br><br>My pipeline looks something like:<br>* Use the ExodusIIReader to create a reader object<br>* Use the aforementioned render view object to control the camera<br>* Create a slice object in the z-direction at a certain height<br>
* Create a data representation and a colormap<br>* Render the object.<br>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 <br>
&nbsp;&nbsp;&nbsp; min,max = slice.PointData[0].GetRange()<br>but using s or s.PointData with Outline() or GetBounds() doesn't get me anywhere. Can anyone nudge me in the right direction?<br><br>Thanks,<br>Rick<br clear="all"><br>-- <br>
Rick Muller<br><a href="mailto:rpmuller <at> gmail.com">rpmuller <at> gmail.com</a><br>505-750-7557<br><br></p></div>
Leonie Callies | 2 Sep 00:28 2011
Picon
Picon

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
Leonie Callies | 2 Sep 00:29 2011
Picon
Picon

visibility of the stream tracer

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
Scott, W Alan | 2 Sep 01:51 2011
Picon

Re: starting an animation before the first timestep

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-bounces <at> paraview.org [mailto:paraview-bounces <at> paraview.org] On Behalf Of Leonie Callies
Sent: Thursday, September 01, 2011 4:29 PM
To: paraview <at> 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


Gmane