Re: [Paraview] Plot selection over time for threshold

2018-01-12 Thread Aron Helser
Hi Jairaj,
This is exactly what the 'trace' and python macro functions are for. Take a
look in the Tools menu, and choose Start Trace. If you check the 'show
incremental trace' button you can see it's recording a python script as you
take actions in the GUI. When you've completed your steps, you can choose
'save as python macro' and you'll get a button that can repeat the steps.

To go more in-depth, look for information on python scripting in Paraview!
Regards,
Aron

On Thu, Jan 11, 2018 at 7:47 PM, Jairaj Mathur 
wrote:

> Hi Ken
>
> This is EXACTLY what I wanted! Thank you so much. Is it possible to create
> a custom filter to do this, so that I dont have to follow these steps?
>
> Jairaj Mathur
> Mechanical Engineering
> Washington University in St Louis
>
> On Jan 8, 2018 2:23 PM, "Moreland, Kenneth"  wrote:
>
>> Jairaj,
>>
>>
>>
>> I’m not sure what exactly you mean by “the threshold,” but there are many
>> ways to plot the average of a threshold-selection of cells over time.
>>
>>
>>
>> The most straightforward way is to open up the Find Data dialog box,
>> select the cells you want to plot, and then create a Plot Selection Over
>> Time filter. Specifically, here are steps that will do such a plot:
>>
>>
>>
>>1. Open your data in ParaView. Apply.
>>2. Open the Find Data dialog box (Edit → Find Data or click the
>>toolbar button on the top toolbar).
>>3. In the top row, set the left combo box to either “Cell(s)” or
>>“Point(s)” depending on whether your data is cell or point data. In the
>>longer combo box to the right, make sure that your data is selected.
>>4. In the second row, set the left combo box to the field you want to
>>threshold on. Change the next combo box to say “is between”. This will
>>create to text edit boxes where you enter the minimum and maximum values 
>> of
>>your threshold range.
>>5. Click the “Run Selection Query” button. This will select all cells
>>or points matching your threshold.
>>6. Click the “Plot Selection Over Time” at the bottom of the Find
>>Data dialog box. This will create a filter in the pipeline browser.
>>7. Close the Find Data dialog box and click the Apply button.
>>
>>
>>
>> -Ken
>>
>>
>>
>> *From:* ParaView [mailto:paraview-boun...@paraview.org] *On Behalf Of *Jairaj
>> Mathur
>> *Sent:* Friday, January 5, 2018 4:53 PM
>> *To:* paraview 
>> *Subject:* [EXTERNAL] [Paraview] Plot selection over time for threshold
>>
>>
>>
>> Dear all
>>
>>
>>
>> How can I plot the average over time of only the threshold cells? It
>> should only average the cells that are within the threshold.
>>
>>
>>
>> Thanks a lot!
>>
>>
>>
>> --
>>
>> Jairaj Mathur,
>> Mechanical Engineering
>>
>> Washington University in St Louis
>>
>>
>>
>
> ___
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://paraview.org/mailman/listinfo/paraview


Re: [Paraview] Pointer graphical and actual locations misaligned

2017-12-22 Thread Aron Helser
Hi Keith,
Yes, this is a known bug in some Intel graphics drivers, on Windows, and I
believe we've seen something similar on Linux, as well.
If your lucky enough to be running an Optimus laptop, just switching
ParaView to use the nvidia card fixes the problem.
Intel has also fixed the bug in their latest drivers, but my Dell laptop
hasn't picked up the fix in the official Dell drivers yet.

Here's the bug: https://gitlab.kitware.com/paraview/paraview/issues/17499

On Thu, Dec 21, 2017 at 3:05 PM, Lewis, Keith B CTR NSWCDD, E22 <
keith.b.lewis@navy.mil> wrote:

> Hello, ParaView Community:
> I'm using version 5.4.1 64-bit on Win10. The pull-down menu bar (File,
> Edit etc.) is hidden behind the window title bar. The upper row of buttons
> (Open, Save Data, Connect, etc.) are mostly visible, but the upper portion
> of the buttons are also behind the window title bar. The pointer appears to
> be in a different location than the window thinks it is. For example, if I
> put the pointer in the center of the Open button, the button is NOT
> highlighted and the hover-over help does NOT appear. If I move the pointer
> downward, the button highlights when the pointer is right near the bottom
> of the button. If I continue moving the pointer downward, the button stays
> highlighted for about button-height distance. So the pointer looks like
> it's active about a button height above where it appears. If I move the
> pointer back up to the center of the Open button and click and hold, the
> File menu is pulled down. It seems that ParaView is confused about whether
> or not there's a title bar and where the a
>  ctive portion of the window is. Also, the window is a little bit cut off
> left and right. Anyone know of a fix?
> Thanks,
> Keith
>
> ___
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://paraview.org/mailman/listinfo/paraview


Re: [Paraview] Optimus and Windows 10

2017-12-05 Thread Aron Helser
Yes, that Intel driver bug is known to affect ParaView:
https://gitlab.kitware.com/paraview/paraview/issues/17499

Regards,
Aron

On Tue, Dec 5, 2017 at 6:40 AM, Jonathan Borduas <
jonathan.bord...@caboma.com> wrote:

> Was the laptop running with the intel gpu ? If so, it might be related to
> an Intel driver bug that was reported on the QT and Intel websites.
>
> https://bugreports.qt.io/browse/QTBUG-40485
>
> https://software.intel.com/en-us/node/744153
>
> Jonathan Borduas
>
> _
> From: Paul Melis 
> Sent: Tuesday, December 5, 2017 04:16
> Subject: [Paraview] Optimus and Windows 10
> To: 
>
>
>
> Hi,
>
> In our paraview course two weeks ago we had a student that had trouble
> running Paraview 5.4.1 (official windows 64-bit binaries) under windows
> 10. The symptoms were that the main menu bar was invisible and that the
> mouse cursor did not match up with the position of the click event,
> making it very hard to do anything. It seemed the menu bar somehow had
> shifted under the window title bar, causing the misalignment.
>
> As this laptop was an optimus system we figured it might have something
> to do with that. After some fiddling we found that right-clicking on
> paraview.exe and picking Run with graphics processor -> High-performance
> NVIDIA processor solved the problem.
>
> Is this a known issue?
>
> Regards,
> Paul
>
> --
>
> Paul Melis
> | Visualization group leader & developer | SURFsara |
> | Science Park 140 | 1098 XG Amsterdam |
> | T 020 800 1312 | paul.me...@surfsara.nl | www.surfsara.nl |
> ___
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Importing paraview.simple in external python environment

2017-11-12 Thread Aron Helser
Hi,
If you set your PYTHONPATH and PATH environment variables correctly, you'll
be good. This wiki gives some pointers on how to do it:
https://www.paraview.org/Wiki/ParaView/Python_Scripting#Getting_Started

Regards,
Aron

On Sat, Nov 11, 2017 at 2:55 PM, Ke Gao  wrote:

> Does anyone know how to setup Windows in order to use Paraview python
> library under external python environmental such as Anaconda?
>
> Many thanks.
>
> --
> 
> 
> ..
> Ke Gao
>
> ___
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaView session state

2017-09-26 Thread Aron Helser
Hi Eduardo,
I think you've basically got it, but the state is more complicated than you
think. Basically everything has a vtkSMProxy, and those proxies contain the
state of the pipeline, representation, and views. Anything that is modified
from the defaults gets saved in the state file. The vtkSMSessionProxyManager
is the root of a session, as you've found.
The input data is saved in the state file as absolute paths, and you do
need the input data. When you read state, it has that intelligent option to
search for the data files in another directory...

I've just been learning this stuff trying to add dynamic lights to
ParaView, so hopefully I'm close :)

HTH, Regards,
Aron

On Tue, Sep 26, 2017 at 12:33 PM,  wrote:

> Hello list,
>
> Where is the data structure(s) in the code where all the objects for *the
> state* of a particular ParaView session are kept while it is running?. I
> have been reading the code, and I think it should be in the "internals" of
> vtkSMSessionProxyManager, but I am unsure. As far as I understand, the
> state (which can be saved to XML) is all it takes to recreate a session (Am
> I right here? Probably you need the input data as well, right?).
>
> Thanks for the help!,
> Eduardo.
>
> P.S.: Are my emails going to SPAM? Can someone respond ("hi") to this
> email to confirm otherwise? Thanks !.
>
>
> ___
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Paraview Web bug on windows

2017-09-26 Thread Aron Helser
I can confirm that the bug still exists on Windows with the ParaView 5.4.1
binaries downloaded from paraview.org.

To fix it, you can do a little patch to your installation of ParaView.

In the file
{ParaViewInstallDir}\bin\Lib\site-packages\paraview\web\protocols.py,
around line 1070, add these two lines:

# Use the vtk data encoder to base-64 encode the image as png,
using no compression
encoder = vtkDataEncoder()
+# two calls in a row crash on Windows - bald timing hack to avoid
the crash.
+time.sleep(0.01);
b64Str = encoder.EncodeAsBase64Png(imgData, 0)

This should get you going again!
Regards,
Aron

On Tue, Sep 26, 2017 at 11:37 AM, Sebastien Jourdain <
sebastien.jourd...@kitware.com> wrote:

> It was probably not back ported to the release branch of 5.4 when Aron
> fixed it.
>
> On Tue, Sep 26, 2017 at 9:31 AM, Daniel Zuidinga 
> wrote:
>
>> it works with the nightly build of pv
>>
>>
>> Am 26.09.2017 um 15:23 schrieb Sebastien Jourdain:
>>
>> This might be related to https://github.com/Kitware/visualizer/issues/34
>>
>> On Tue, Sep 26, 2017 at 1:34 AM, Daniel Zuidinga 
>> wrote:
>>
>>> Hi,
>>>
>>> as soon as I select a dataset to colorize pvpython stops working (see
>>> attached screenshot).
>>>
>>> I use the latest 5.4.1 windows 64bit pv.
>>>
>>> This happens with all example datasets.
>>>
>>> best regards
>>>
>>> --
>>> Daniel Zuidinga
>>> Dipl.-Ing.
>>>
>>> SEO Aachen
>>> Passstr. 5
>>> 52070 Aachen
>>>
>>> Tel   : 0241 / 450 912 67
>>> E-Mail: i...@seoaachen.de
>>> Web   : http://www.seoaachen.de
>>> Blog  : https://zuidinga.de
>>> Xing  : https://www.xing.com/profile/Daniel_Zuidinga
>>>
>>> Easy to use CAE, Finite Element Analysis in the browser and in the cloud:
>>> https://simulaton.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
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/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
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] build pv5.3 on windows 10 with visual studio 15 2017

2017-04-20 Thread Aron Helser
That definitely makes me think it was due to compatibility between the
compiler used for QT and the compiler used for ParaView - they need to be
the same. I'm surprised you got ParaView to link with the newer version of
VisualStudio - there may be a way to make that work which is eluding us.
Glad you are up and running,
Aron

On Thu, Apr 20, 2017 at 10:14 AM, Claire Guilbaud  wrote:

> unfortunately I don't have cmake in my path …
>
> I just re-install visual studio 2015, I didn't change anything in my
> environment (same qt5.6, same path). And now I'm able to launch paraview
> (in debug mode). That's great !
>
> I don't know which component put the environment in such a mess, but there
> is one (or more).
>
> Thank for your help
>
> Claire
>
>
>
> 2017-04-19 20:21 GMT-06:00 Utkarsh Ayachit :
>
>> > Using Dependancy walker, some qt5 dll are in my qt bin dir but others
>> (those
>> > defined in cmake options like qt5widgets) are in the cmake bin dir. Is
>> it
>> > nolmal ? I'm currently using cmake 3.8 rc4.
>>
>> That's bad. I'd stay away from putting CMake in the PATH, if that's the
>> case.
>>
>> > So what's the simplest thing to have paraview running: compile qt from
>> > sources with the patch on cmake file or go back to a previous version of
>> > visual studio (it will be sad because I'm using the cmake capabilities
>> of
>> > the new version for other projects).
>>
>> Both are reasonably simple, depends on  your comfort level with
>> building Qt really. However, the issue you have with your current
>> build with Qt 5.6 seems to be only environment related. I'd suggest
>> cleaning your PATH (using dependency walker as a guide to remove
>> unnecessary/conflicting PATHs)  and you may be able to get your
>> existing build working without any issues.
>>
>> Utkarsh
>>
>
>
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] build pv5.3 on windows 10 with visual studio 15 2017

2017-04-19 Thread Aron Helser
Claire,
To launch ParaView that I build on Windows, I had to explicitly add the QT
bin directory to my path, for example C:/Qt/Qt5.8.0/5.8/msvc2015_64/bin
I'm not sure QT has provided binaries for the latest VisualStudio, have
they? I'm using VS2015, which is VS 14.0, I believe. You may have to match
your VS version to the one used to build the QT binaries.
BTW, the fix for QT 5.8.0 is one line in one cmake file, so it's easy to
fix after you install it.
Regards,
Aron

On Wed, Apr 19, 2017 at 3:59 PM, Utkarsh Ayachit <
utkarsh.ayac...@kitware.com> wrote:

> I suspect your environment is messed up with mutliple Qt versions
> showing up. Use Dependency Walker (http://www.dependencywalker.com/)
> to make sure the dlls loaded are indeed the dlls you expect for Qt and
> other external dependencies.
>
> On Wed, Apr 19, 2017 at 3:45 PM, Claire Guilbaud
>  wrote:
> > Hi all,
> >
> > I'm struggling to launch paraview build on the last version of visual
> studio
> > (15.1 26407.3).
> > I follow this documentation
> > http://www.paraview.org/Wiki/ParaView:Build_And_Install.
> >
> > I use Qt 5, and just enable paraview python (miniconda2).
> >
> > I tried first to build with the last Qt 5 version (5.8.0), it failed due
> to
> > const expr error in qt (it's a known issue). So I switch to Qt 5.6.2.
> >
> > I follow the instructions from the documentation: set path variable,
> modify
> > environment variable in the configuration properties for paraview
> project.
> > The Debug generation failed: qt and paraview don't have the same
> debugging
> > level …
> >
> > The RefWithDebInfo generation succeeds. But I'm not able to launch
> paraview
> > (from visual studio - start without debugging or from file explorer).
> > There are missing symbols in paraview.exe :
> > ?toLatin1@QString@@QEGBA?AVQByteArray@@XZ (same with toLower, toUtf8).
> >
> > Does anyone have an idea on how to fix it ?
> >
> > For information:
> > - I don't use the cmake capabilities of visual studio: I use cmake-gui,
> > configure, and generate.Then I open the paraview solution.
> > - I try with Qt4 version, it failed. I reinstall Qt several times.
> > - All my environment is in french
> >
> >
> > Thanks for help.
> >
> > Claire
> >
> >
> >
> > ___
> > 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
> >
> > Search the list archives at: http://markmail.org/search/?q=ParaView
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview