Re: [Paraview] Plain text data with white space delimiters; Use raw array as axis/variables

2018-01-26 Thread Liang Wang
Thanks, Andy. That works! Now the problem is how I can use the 1d arrays to
construct 3d plots.

Now I have many 1d arrays: x, y, z, variable1, variable2, ..., etc.

Unfortunately, they are AMR data, not regularly indexed, (in fact they are
TecPlot ascii data, but ParaView could not read them correctly for some
reason, this is another issue, though).

I would like to make 3d plots, 2d slice, or at least 1d cuts. I am OK to
use Python interface but might need some instruction how to create 3d data
from these flattened 1d arrays.
I guess there are some tutorials to convert numpy array to vtk arrays, I
might start from that. Then I need to convert the row data ParaView GUI
reads in to numpy array then to vtk array?

I have attached the data if anyone can kindly try it. At least it is a
valid TecPlot file which other people tested using TecPlot.

On Fri, Jan 26, 2018 at 9:49 AM, Andy Bauer  wrote:

> Hi,
>
> ParaView should be able to handle this. Try giving the filename a .csv
> extension and then add a space for the Field Delimiter Characters options.
> Optionally, you may also want to enable the Merge Consecutive Delimiters
> option.
>
> On Fri, Jan 26, 2018 at 8:33 AM, Liang Wang  wrote:
>
>> Hi All,
>>
>> 1) Does the ParaView GUI read a plain text file with white space as
>> delimiters?
>> 2) Can ParaView use a giving 1d array as an axis?
>>
>> My problem:
>>
>> I have a plain text data file, each column is a different variable, and
>> delimiters are white space, e.g.,
>>
>> x y z variable1 variable 2
>>
>> Is there a way to read such a file and use x, y, z as coordinates of the
>> resulting variables?
>>
>> For example, in TecPlot you can read in such a file and set axises to use
>> the x, y, z (or any other named variables).
>>
>> For 1), does ParaView have an extra setting to set common options for
>> plain text data like delimiter, header, skiprow, etc.?
>>
>> For 2), it appears to me that in ParaView all field/cell data is
>> associated with a predefined axis, so it is not that straightforward to use
>> a raw array as axis or as variable, though this is possible in the
>> Python interface. Is this correct.
>>
>> Best,
>>
>> Liang
>>
>>
>>
>> ___
>> 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
>>
>>
>


test_tecplot.dat
Description: Binary data
___
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] Save Animation option in ParaView 5.4.0 vs 5.3.0

2018-01-26 Thread David E DeMarle
Hey Mark,

Looks like we took that out as part of the revamp described here:
https://gitlab.kitware.com/paraview/paraview/issues/15917

Specifically this merge request took out the "No. Frames" entry.
https://gitlab.kitware.com/paraview/paraview/merge_requests/896
because, at least at that time, apparently the control didn't do anything
at all.

A 1 commit merge request that restores the widget and hooks it up to do
what it apparently did at one time is
here. https://gitlab.kitware.com/paraview/paraview/merge_requests/2197

David E DeMarle
Kitware, Inc.
Principal Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909 <(518)%20881-4909>

On Fri, Jan 26, 2018 at 10:17 AM, Van Moer, Mark W 
wrote:

> Hello,
>
>
>
> In ParaView 5.3.0 and earlier, when Animation mode was Snap to TimeSteps,
> in the Save Animation dialog box there was an option for No. of Frames /
> timestep. This doesn’t show up in the 5.4.0 dialog box. Was this just moved
> or was it removed completely?
>
>
>
> My use case for this is a data set with 25 timesteps, each of which is on
> the order of either 5 minutes or 30 minutes apart in real world time. I’d
> render 30 frames / timestep to get a 25 second movie to show each discrete
> timestep for one second. The video should show those discrete jumps in time
> and not use interpolation.
>
>
>
> I can do the frame replication in BASH but it was handy to have that
> option.
>
>
>
> Thanks,
>
> Mark
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensou
> rce/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] OpenGL Vendor

2018-01-26 Thread Utkarsh Ayachit
To add to what Ken said, the "Client Information" tab shows you info
about OpenGL for the "paraview" executable, while the "Connection
Information" gives you info for the "pvserver", if any.

On Fri, Jan 26, 2018 at 10:54 AM, Ken Martin  wrote:
> OpenGL is loaded at runtime so what matters is the mostly the system it is
> running on as opposed to the system it was compiled on (except OSMesa see
> below).
>
> To make it a bit more complicated, if you use GLXforwarding or a similar
> OpenGL forwarding mechanism then what matters is some combination of the
> forwarding library on the system PV is running on and the OpenGL hardware of
> the system you are *displaying* on. This bites people when PV runs fine
> locally on a system but when they forward their display/remote desktop to
> another system it fails.
>
> Finally when building with OSMesa, as long as the runtime system picks up
> the OSMesa libs you built, then it really is the version of OSMesa you
> compiled against that matters.
>
> On linux I think a ldd on the PV executable can show which library is being
> picked up. (should have ogl or opengl, nvidia, mesa etc in the path) but a
> linux person might know better.
>
>
>
>
>
>
> On Thu, Jan 25, 2018 at 7:14 PM, Scott, W Alan  wrote:
>>
>> With a remote server running on a cluster, what does the Help/ About/
>> Connection Information/ OpenGL Version string mean?  Where is this found?
>> Isn’t this the version of OpenGL compiled into the pvserver?  What is the
>> name of this library, and any idea how I can find what is being used?
>>
>>
>>
>> I have a situation where my builds show OpenGL version 3.3 (and can open a
>> specific dataset), and a user’s shows 2.1 (and he cannot open a specific
>> dataset).
>>
>>
>>
>> Thanks all,
>>
>>
>>
>> Alan
>>
>>
>>
>> 
>>
>> W. Alan Scott
>>
>> ParaView Support Manager
>>
>>
>>
>> SAIC
>>
>> Sandia National Laboratories, MS 0807
>>
>> Org 9326 - Building 880 A1-K
>>
>> (505) 284-0932   FAX (505) 284-5619
>>
>>
>>
>> The most exciting phrase to hear in science
>>
>> is not "Eureka!" but "That's funny..."  -- Isaac Asimov
>>
>> -
>>
>>
>>
>>
>> ___
>> 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
>>
>
>
>
> --
> Ken Martin PhD
> Distinguished Engineer
> Kitware Inc.
> 28 Corporate Drive
> Clifton Park NY 12065
>
> This communication, including all attachments, contains confidential and
> legally privileged information, and it is intended only for the use of the
> addressee.  Access to this email by anyone else is unauthorized. If you are
> not the intended recipient, any disclosure, copying, distribution or any
> action taken in reliance on it is prohibited and may be unlawful. If you
> received this communication in error please notify us immediately and
> destroy the original message.  Thank you.
>
> ___
> 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] OpenGL Vendor

2018-01-26 Thread Ken Martin
OpenGL is loaded at runtime so what matters is the mostly the system it is
running on as opposed to the system it was compiled on (except OSMesa see
below).

To make it a bit more complicated, if you use GLXforwarding or a similar
OpenGL forwarding mechanism then what matters is some combination of the
forwarding library on the system PV is running on and the OpenGL hardware
of the system you are *displaying* on. This bites people when PV runs fine
locally on a system but when they forward their display/remote desktop to
another system it fails.

Finally when building with OSMesa, as long as the runtime system picks up
the OSMesa libs you built, then it really is the version of OSMesa you
compiled against that matters.

On linux I think a ldd on the PV executable can show which library is being
picked up. (should have ogl or opengl, nvidia, mesa etc in the path) but a
linux person might know better.






On Thu, Jan 25, 2018 at 7:14 PM, Scott, W Alan  wrote:

> With a remote server running on a cluster, what does the Help/ About/
> Connection Information/ OpenGL Version string mean?  Where is this found?
> Isn’t this the version of OpenGL compiled into the pvserver?  What is the
> name of this library, and any idea how I can find what is being used?
>
>
>
> I have a situation where my builds show OpenGL version 3.3 (and can open a
> specific dataset), and a user’s shows 2.1 (and he cannot open a specific
> dataset).
>
>
>
> Thanks all,
>
>
>
> Alan
>
>
>
> 
>
> W. Alan Scott
>
> ParaView Support Manager
>
>
>
> SAIC
>
> Sandia National Laboratories, MS 0807
>
> Org 9326 - Building 880 A1-K
>
> (505) 284-0932   FAX (505) 284-5619
>
>
>
> The most exciting phrase to hear in science
>
> is not "Eureka!" but "That's funny..."  -- Isaac Asimov
>
> -
>
>
>
> ___
> 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
>
>


-- 
Ken Martin PhD
Distinguished Engineer
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065

This communication, including all attachments, contains confidential and
legally privileged information, and it is intended only for the use of the
addressee.  Access to this email by anyone else is unauthorized. If you are
not the intended recipient, any disclosure, copying, distribution or any
action taken in reliance on it is prohibited and may be unlawful. If you
received this communication in error please notify us immediately and
destroy the original message.  Thank you.
___
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


[Paraview] Save Animation option in ParaView 5.4.0 vs 5.3.0

2018-01-26 Thread Van Moer, Mark W
Hello,

In ParaView 5.3.0 and earlier, when Animation mode was Snap to TimeSteps, in 
the Save Animation dialog box there was an option for No. of Frames / timestep. 
This doesn't show up in the 5.4.0 dialog box. Was this just moved or was it 
removed completely?

My use case for this is a data set with 25 timesteps, each of which is on the 
order of either 5 minutes or 30 minutes apart in real world time. I'd render 30 
frames / timestep to get a 25 second movie to show each discrete timestep for 
one second. The video should show those discrete jumps in time and not use 
interpolation.

I can do the frame replication in BASH but it was handy to have that option.

Thanks,
Mark
___
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] Save Animation option in ParaView 5.4.0 vs 5.3.0

2018-01-26 Thread Van Moer, Mark W
I forgot to mention that I can write out the number of frames I want if I use 
Sequence instead of Snap to TimeSteps, however, then an Annotate Time source 
will show an interpolated time based on the sequence rather than the actual 
timesteps. If there's a work around for that behavior I could do that instead.

From: Van Moer, Mark W
Sent: Friday, January 26, 2018 9:18 AM
To: ParaView 
Subject: Save Animation option in ParaView 5.4.0 vs 5.3.0

Hello,

In ParaView 5.3.0 and earlier, when Animation mode was Snap to TimeSteps, in 
the Save Animation dialog box there was an option for No. of Frames / timestep. 
This doesn't show up in the 5.4.0 dialog box. Was this just moved or was it 
removed completely?

My use case for this is a data set with 25 timesteps, each of which is on the 
order of either 5 minutes or 30 minutes apart in real world time. I'd render 30 
frames / timestep to get a 25 second movie to show each discrete timestep for 
one second. The video should show those discrete jumps in time and not use 
interpolation.

I can do the frame replication in BASH but it was handy to have that option.

Thanks,
Mark
___
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] Plain text data with white space delimiters; Use raw array as axis/variables

2018-01-26 Thread Andy Bauer
Hi,

ParaView should be able to handle this. Try giving the filename a .csv
extension and then add a space for the Field Delimiter Characters options.
Optionally, you may also want to enable the Merge Consecutive Delimiters
option.

On Fri, Jan 26, 2018 at 8:33 AM, Liang Wang  wrote:

> Hi All,
>
> 1) Does the ParaView GUI read a plain text file with white space as
> delimiters?
> 2) Can ParaView use a giving 1d array as an axis?
>
> My problem:
>
> I have a plain text data file, each column is a different variable, and
> delimiters are white space, e.g.,
>
> x y z variable1 variable 2
>
> Is there a way to read such a file and use x, y, z as coordinates of the
> resulting variables?
>
> For example, in TecPlot you can read in such a file and set axises to use
> the x, y, z (or any other named variables).
>
> For 1), does ParaView have an extra setting to set common options for
> plain text data like delimiter, header, skiprow, etc.?
>
> For 2), it appears to me that in ParaView all field/cell data is
> associated with a predefined axis, so it is not that straightforward to use
> a raw array as axis or as variable, though this is possible in the Python
> interface. Is this correct.
>
> Best,
>
> Liang
>
>
>
> ___
> 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] Multiple identical "sources" proxies in a saved XML state file (GlyphType)

2018-01-26 Thread Utkarsh Ayachit
Artem,

You raise good points. In reality, only saving the state of the
currently selected proxy from proxy-list domain should be sufficient.
There are challenges to doing that given the current implementation,
however. Let me try to figure out a viable solution and get back to
you.

Utkarsh

On Fri, Jan 26, 2018 at 6:51 AM, Artem Bodrin  wrote:
> Hello, dear developers.
>
> I have issued this question on a bug tracker, but will duplicate it here, if
> you do not mind
> https://gitlab.kitware.com/paraview/paraview/issues/17957
>
>
> I'm not sure if this is a bug, but I have noticed, that saved xml state file
> contains many identical proxies, that belongs to group "sources". These
> proxies are actual source proxies, and participating in property  of every
> saved "GeometryRepresentation" proxy.
>
> So every "GeometryRepresentation" have it's own bunch of GlyphType source
> proxy instances (listed in proxy_list Domain), and all of them are saved to
> a state file.
>
> I can understand, that saving all of them can be explained by "unified
> approach" to saving proxy to state file, but I have trouble with resulting
> state file - we tracking it's change with VCS (git, if it matters), and so
> many unnecessary (cause they are identical, except GlobalId) proxies saved
> gives us additional pain.
>
> As an additional side effect we have increased state loading time. This
> issue might be related to appearance of saved GlyphType proxies in a state
> file:
> https://gitlab.kitware.com/paraview/paraview/issues/17768
>
> Please, correct me if I'm wrong, but one can not change the Domain type at
> runtime, so this proxy_list will be constant until changed in a
> views_and_representations.xml. If so, than maybe there is a way to save
> GlyphType proxies to state file only once (or not at all) and reference
> their GlobalIds from any other GeometryRepresentation?
>
> Thanks in advance,
> Artem Bodrin.
>
> ___
> 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


[Paraview] Plain text data with white space delimiters; Use raw array as axis/variables

2018-01-26 Thread Liang Wang
Hi All,

1) Does the ParaView GUI read a plain text file with white space as
delimiters?
2) Can ParaView use a giving 1d array as an axis?

My problem:

I have a plain text data file, each column is a different variable, and
delimiters are white space, e.g.,

x y z variable1 variable 2

Is there a way to read such a file and use x, y, z as coordinates of the
resulting variables?

For example, in TecPlot you can read in such a file and set axises to use
the x, y, z (or any other named variables).

For 1), does ParaView have an extra setting to set common options for plain
text data like delimiter, header, skiprow, etc.?

For 2), it appears to me that in ParaView all field/cell data is associated
with a predefined axis, so it is not that straightforward to use a raw
array as axis or as variable, though this is possible in the Python
interface. Is this correct.

Best,

Liang
___
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] Extracting data on the surface of a block?

2018-01-26 Thread Steytler, Louis Louw
Utkarsh,

I forget, meant to say blocks 1 and 2 represent the drop. I actually extracted 
and merged these two in ParaView.

Will send a state file soon, apologies for late, I have been traveling the past 
two days.

Thanks again,

Louis Steytler
Department of Mechanical Science and Engineering
University of Illinois at Urbana-Champaign
1206 West Green Street
Urbana, IL 61801
steyt...@illinois.edu

On 24 Jan 2018 8:50 AM, Utkarsh Ayachit  wrote:
Louis,

Can you also attach a state file for the vis you're generating
currently, so I get a starting point? I am not sure which block is the
oil drop.

Thanks,
Utkarsh

On Tue, Jan 23, 2018 at 8:12 PM, Steytler, Louis Louw
 wrote:
> Hi Utkarsh,
>
> My data file is rather large, but here is a link to the data:
>
> https://uofi.box.com/s/u4hpipt8kbo0u3oxhz92xeya75kzf6kd
>
> Please let me know if this is too large and I can try to send a smaller 
> version.
>
> I have been using "save data". It seems I have data sets under the "Composite 
> Data Set Index" list in the PlotOnIntersection pipeline.
>
> How is "Chart View" selected again? I didn't find it in the "View" drop down 
> menu at the top, but I was able to open a new layout and select 
> "SpreadSheetView".
>
> Thanks again,
>
> Louis Steytler
> Department of Mechanical Science and Engineering
> University of Illinois at Urbana-Champaign
> 1206 West Green Street
> Urbana, Il 61801
> steyt...@illinois.edu
> 
> From: Utkarsh Ayachit [utkarsh.ayac...@kitware.com]
> Sent: 23 January 2018 09:32 AM
> To: Steytler, Louis Louw
> Cc: paraview@paraview.org
> Subject: Re: [Paraview] Extracting data on the surface of a block?
>
> By "Export View", I meant "Export Scene" under the "File" menu.
>
> On Tue, Jan 23, 2018 at 10:31 AM, Utkarsh Ayachit
>  wrote:
>> Louis,
>>
>>> This seemed to produce reasonable looking results, but I was not able to
>>> specify the number of points along the arc where data was extracted.
>>
>> PlotOnIntersectionCurves essentially slices the dataset using a
>> implicit plane. The points you get are indeed the insection points
>> between your polydata and the plane and hence there's no control over
>> how many points there can be, besides what's determined by your mesh.
>>
>> If you can share the sample data (feel free to do it off the list,if
>> you'd like), I can see what other options may work.
>>
>>>Also,  upon saving, three files were produced file0.csv, file1.csv, 
>>>file2.csv, and
>>> file3.csv. Not sure why I am not getting just one file?
>>
>> Are you using "save data"? I'd suggest selecting the "Chart View" and
>> then using "Export View" option to export the curves. That will give
>> you a since CSV for the fields you've selected.
>>
>> 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:
https://paraview.org/mailman/listinfo/paraview


[Paraview] Multiple identical "sources" proxies in a saved XML state file (GlyphType)

2018-01-26 Thread Artem Bodrin
Hello, dear developers.

I have issued this question on a bug tracker, but will duplicate it here, if 
you do not mind
https://gitlab.kitware.com/paraview/paraview/issues/17957 



I'm not sure if this is a bug, but I have noticed, that saved xml state file 
contains many identical proxies, that belongs to group "sources". These proxies 
are actual source proxies, and participating in property  of every saved 
"GeometryRepresentation" proxy. 

So every "GeometryRepresentation" have it's own bunch of GlyphType source proxy 
instances (listed in proxy_list Domain), and all of them are saved to a state 
file.

I can understand, that saving all of them can be explained by "unified 
approach" to saving proxy to state file, but I have trouble with resulting 
state file - we tracking it's change with VCS (git, if it matters), and so many 
unnecessary (cause they are identical, except GlobalId) proxies saved gives us 
additional pain.

As an additional side effect we have increased state loading time. This issue 
might be related to appearance of saved GlyphType proxies in a state file: 
https://gitlab.kitware.com/paraview/paraview/issues/17768

Please, correct me if I'm wrong, but one can not change the Domain type at 
runtime, so this proxy_list will be constant until changed in a 
views_and_representations.xml. If so, than maybe there is a way to save 
GlyphType proxies to state file only once (or not at all) and reference their 
GlobalIds from any other GeometryRepresentation?

Thanks in advance, 
Artem Bodrin.___
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] custom view plugin - minimal example needed

2018-01-26 Thread Mathieu Westphal
Hi Kolja

Inheriting directly from vtkPVView is not possible as there is specific
code dedicated to managing each type of base view. Even if it was possible,
it would not allow you to add QtWidget anywhere in the view.
This is not possible due to design.
However, there are possibilities to add Qt widgets in the properties panel,
in the view tool items and in any dedicated QDockWidget or QToolbar you may
want to add in your plugin.

Also please keep in mind this mailing list is a volontary Q, We do offer
consulting services [1] if you want to work with ParaView development team
directly.

Best,



Mathieu Westphal

[1] https://www.kitware.com/what-we-offer/#consulting

On Fri, Jan 26, 2018 at 7:31 AM, Kolja Petersen 
wrote:

> Dear Mathieu,
> I may be missing the point of your suggested code. I asked whether plugins
> can provide views beyond the existing RenderViews, on 15 January I sent a
> code snippet to the list to show my successful attempts that implement a
> new RenderView and ask how to replace it with a generic view containing
> other Qt widgets, and now you reproduced another version of the
> functionality from my snippet.
>
> Why?
>
>
> On Tue, Jan 23, 2018 at 10:45 AM, Mathieu Westphal <
> mathieu.westp...@kitware.com> wrote:
>
>> Hello
>>
>> Here is a minimal example for creating a new type of view within a plugin.
>> You actually cannot inherit directly from vtkPVView, you must inherit for
>> a base view, which can be :
>>  - vtkPVRenderView
>>  - vtkPVContextView
>>  - vtkPythonView
>>  - vtkSpreadSheetView
>> (https://www.paraview.org/ParaView/Doc/Nightly/www/cxx-doc/
>> classvtkPVView.html)
>>
>> This choice is also visible in the associated xml files where you precise
>> which kind of proxy you want to create.
>>
>> In the attached example, I demonstrated how to add a clone of the Render
>> View, called Render View 2.
>>
>> Hope it helps,
>>
>> Best,
>>
>>
>> Mathieu Westphal
>>
>> On Mon, Jan 22, 2018 at 7:08 PM, Kolja Petersen 
>> wrote:
>>
>>> Thank you, Mathieu,
>>> any update on this?
>>> All my research seems to point to a few hardcoded views that are
>>> accessible. I simply can't find a solution to implement a new view and open
>>> it from a plugin.
>>> Thanks
>>> Kolja
>>>
>>>
>>> On Wed, Jan 17, 2018 at 9:55 AM, Mathieu Westphal <
>>> mathieu.westp...@kitware.com> wrote:
>>>
 Hi Kolja

 I have a simple view plugin project ongoing that I should be able to
 scale down for your needs.
 I will try to find the time to do it before the end fo the week.

 Best,

 Mathieu Westphal

 On Tue, Jan 16, 2018 at 8:38 PM, Kolja Petersen <
 petersenko...@gmail.com> wrote:

> Is it possible to write a plugin that derives from vtkPVView instead
> of vtkPVRenderView?
>
> I don't know how I can further shorten my question. The answer is
> quite important to decide whether we can continue our ParaView 
> developments.
> Thank you
> Kolja
>
>
> 
>  Virenfrei.
> www.avast.com
> 
> <#m_4251073414689478039_m_-8381060019648724713_m_-7533380727799637296_m_63782262572172547_m_2726909845290941008_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> On Mon, Jan 15, 2018 at 7:32 PM, Kolja Petersen <
> petersenko...@gmail.com> wrote:
>
>> I have stripped down Plugin/MantaView until all compilation problems
>> disappear. What is left, is basically a plugin for a vtkOpenGLRenderer.
>> The code, consisting of only two minimal classes, is attached and can
>> be built using:
>> unzip snippet-viewplugin.zip && mkdir build && cd build && cmake &&
>> make
>> (tested with ParaView 5.4.1)
>>
>> This brings me back to my initial question. I'd like to show a custom
>> view, made of a number of Qt widgets (buttons and text) to show important
>> statistics.
>> In SnippetView.xml, the view is declared as:
>> > base_proxygroup="views" base_proxyname="RenderView" ...
>>
>> How can I replace 'base_proxyname="RenderView"' by some generic view,
>> to be filled with widgets? "View" or "ViewBase" are not recognized as 
>> base
>> proxies.
>> Thank you
>> Kolja
>>
>>
>> On Sun, Jan 14, 2018 at 5:05 PM, Kolja Petersen <
>> petersenko...@gmail.com> wrote:
>>
>>> Dear plugin developers,
>>> I need to implement a custom view to present datasets in a detailed
>>> editable format.
>>>
>>> This link says that the plugin tutorial is obsolete for the view
>>> part:
>>> https://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Adding_a
>>> _custom_view_.2A_obsolete_.2A
>>>
>>> The