From felipe.bordeu at ec-nantes.fr Mon Jun 1 09:11:17 2015 From: felipe.bordeu at ec-nantes.fr (Felipe Bordeu) Date: Mon, 01 Jun 2015 15:11:17 +0200 Subject: [Paraview-developers] add property dynamicaly to a reader In-Reply-To: References: <55521BCD.50704@ec-nantes.fr> <5565770B.1080906@ec-nantes.fr> Message-ID: <556C59F5.1070103@ec-nantes.fr> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 finally with the new python script in the animation view, I can call a small script to change the value of the properties of my reader. Thanks again. Felipe Le 29/05/2015 17:51, Utkarsh Ayachit a ?crit : > Felipe, > > Adding properties dynamically to filters, I am afraid, is not supported. > > Utkarsh > > On Wed, May 27, 2015 at 3:52 AM Felipe Bordeu > wrote: > > > Any insight, on who to add a property to my reader (c++) so it is visible in the animation View, (comparative View) at run time??? > > > > Le 12/05/2015 17:27, Felipe Bordeu a ?crit : > > > hi, > > > I have custom reader for multidimensional data (4D-5D...). Normally I > > associate 3 dimensions to the X-Y-Z of the 3D view, and one dimension to > > time, and fix all the rest. This way I can visualise a 4Dimensional > > slice of my NDimensional data. With this a can animate the slice using > > the time of paraview. but now I want to animate the others dimensions... > > The problem is that the names and the number of dimension is file > > dependent. So my question is, Can I dynamically (and how ) add > > properties to the filters so Paraview will show it in the Animation View > > (comparative view) ??? (using latest git version, c++). > > > > Thanks > > > > > _______________________________________________ > > Powered by www.kitware.com > > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > > Search the list archives at: http://markmail.org/search/?q=Paraview-developers > > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/paraview-developers > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=Paraview-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview-developers > - -- Felipe Bordeu Weldt Ing?nieur de Recherche - ------------------------------------- T?l. : 33 (0)2 40 37 16 57 Fax. : 33 (0)2 40 74 74 06 Felipe.Bordeu at ec-nantes.fr Institut GeM - UMR CNRS 6183 ?cole Centrale Nantes 1 Rue de La No?, 44321 Nantes, FRANCE - ------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQEcBAEBAgAGBQJVbFn1AAoJEE/fMfNgU9/Do18H/Ai60YS6Anm5OEGi2ux27ibv mVA3A3vk2O2gdypnHpeaIb+88gb6z4y0Cg4nsWshOwBgLjfubgeKgaf2jWGASN0n 0dwKm4KCIplJj3yWF+PcISCSPvsudtdbLlFfe9GHJfmHppY0QXVgpD9MMfzaZngz 8eDnnavvOwQ+D8XBH74dpcppVKeqJl01tk9AqwRgVKCOW9TjjOqlV+SM/a9f/8xu Hr1Jl/uRFXyOR6hM/j9ukXNibc8j9WZtOc9M9l/QxUd93SPgkyahFQcA1A/LlZsF HXockt/CD4B7qJZEYTj+WbPfyVIs1ATeMbUx2lkSKXF69c8DbLXCtEAcxyMoeao= =QeKa -----END PGP SIGNATURE----- -------------- next part -------------- An HTML attachment was scrubbed... URL: From brad.king at kitware.com Mon Jun 1 14:09:20 2015 From: brad.king at kitware.com (Brad King) Date: Mon, 01 Jun 2015 14:09:20 -0400 Subject: [Paraview-developers] gitlab.kitware.com maintenance at 4pm EDT 2015-06-01 Message-ID: <556C9FD0.6040707@kitware.com> Hi Folks, We will be shutting down gitlab.kitware.com for a little while at 4pm EDT in order to upgrade the GitLab version. I will post again when normal service is restored. -Brad From utkarsh.ayachit at kitware.com Mon Jun 1 16:05:37 2015 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Mon, 01 Jun 2015 20:05:37 +0000 Subject: [Paraview-developers] gitlab.kitware.com maintenance at 4pm EDT 2015-06-01 In-Reply-To: <556C9FD0.6040707@kitware.com> References: <556C9FD0.6040707@kitware.com> Message-ID: Since Gitlab is down for maintenance, I've stopped the buildbot server as well to avoid failed dashboard builds. I'll restart the buildbot server once Gitlab server comes online. Utkarsh On Mon, Jun 1, 2015 at 2:09 PM Brad King wrote: > Hi Folks, > > We will be shutting down gitlab.kitware.com for a little while at > 4pm EDT in order to upgrade the GitLab version. I will post again > when normal service is restored. > > -Brad > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Search the list archives at: > http://markmail.org/search/?q=Paraview-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview-developers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brad.king at kitware.com Mon Jun 1 16:21:14 2015 From: brad.king at kitware.com (Brad King) Date: Mon, 01 Jun 2015 16:21:14 -0400 Subject: [Paraview-developers] gitlab.kitware.com maintenance at 4pm EDT 2015-06-01 In-Reply-To: <556C9FD0.6040707@kitware.com> References: <556C9FD0.6040707@kitware.com> Message-ID: <556CBEBA.3090909@kitware.com> On 06/01/2015 02:09 PM, Brad King wrote: > We will be shutting down gitlab.kitware.com for a little while at > 4pm EDT in order to upgrade the GitLab version. I will post again > when normal service is restored. Done. -Brad From utkarsh.ayachit at kitware.com Mon Jun 1 16:36:54 2015 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Mon, 01 Jun 2015 20:36:54 +0000 Subject: [Paraview-developers] gitlab.kitware.com maintenance at 4pm EDT 2015-06-01 In-Reply-To: References: <556C9FD0.6040707@kitware.com> Message-ID: > > I'll restart the buildbot server once Gitlab server comes online. > Buildbot server has been restarted as well. Utkarsh -------------- next part -------------- An HTML attachment was scrubbed... URL: From shawn.waldon at kitware.com Tue Jun 2 10:42:29 2015 From: shawn.waldon at kitware.com (Shawn Waldon) Date: Tue, 2 Jun 2015 10:42:29 -0400 Subject: [Paraview-developers] [vtk-developers] merging In-Reply-To: References: <6d72d6d031aead90a34ab44eb2c4fa68@mail.gmail.com> Message-ID: The buildbot master runs on the same machine and so it will also be offline until the problem is solved. --Shawn On Tue, Jun 2, 2015 at 10:12 AM, Utkarsh Ayachit < utkarsh.ayachit at kitware.com> wrote: > The good sysadmins are on it. We'll hear back soon. The issue started > after upgrading Gitlab. > > Utkarsh > > On Tue, Jun 2, 2015 at 9:44 AM Mathieu Westphal < > mathieu.westphal at kitware.com> wrote: > >> Same problem here: >> https://gitlab.kitware.com/vtk/vtk/merge_requests/263 >> >> Mathieu Westphal >> >> On Tue, Jun 2, 2015 at 3:35 PM, Ken Martin >> wrote: >> >>> I think something may be off with merging in gitlab since the upgrade >>> (or I lack the required patience). See >>> >>> >>> >>> https://gitlab.kitware.com/vtk/vtk/merge_requests/265 >>> >>> >>> >>> I even tried ... >>> >>> >>> >>> Do: merge_this_one_for_me_bro_really >>> >>> >>> >>> and that did not work and that always works ;-) >>> >>> >>> >>> Ken Martin PhD >>> >>> Chairman & CFO >>> >>> Kitware Inc. >>> >>> 28 Corporate Drive >>> >>> Clifton Park NY 12065 >>> >>> ken.martin at kitware.com >>> >>> 518 881-4901 (w) >>> >>> 518 371-4573 (f) >>> >>> >>> >>> 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 >>> >>> Search the list archives at: >>> http://markmail.org/search/?q=vtk-developers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtk-developers >>> >>> >>> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: http://markmail.org/search/?q=vtk-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtk-developers >> >> > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Tue Jun 2 11:15:50 2015 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Tue, 02 Jun 2015 15:15:50 +0000 Subject: [Paraview-developers] Merging changes in temporarily offline Message-ID: Folks, As many of you may know, we upgraded our GitLab installation yesterday. As with many things one doesn't expect to have any issues, we have had some issues :). While we figure things out, merging branches will be temporarily offline. Things should be back online by tomorrow. The following things will be affected: + Do:check, Do: merge will not work. + Pushing new baselines or data files (using the gitlab-push) will not work. For now, if you are intending to push a branch/commit that changes baselines or data files, it may be better to just hold on to it and push it after things are working again. Folks should still be able to do manual reviews and solicit feedback from your peers. Also, Buildbot will be online, so you can request tests on your merge requests (as long as no new baselines/data files are being added). Thanks for your patience. Utkarsh -------------- next part -------------- An HTML attachment was scrubbed... URL: From berk.geveci at kitware.com Tue Jun 2 15:46:49 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Tue, 2 Jun 2015 15:46:49 -0400 Subject: [Paraview-developers] Call For Papers: LDAV 2015, The 5th IEEE Symposium on Large Data Analysis and Visualization Message-ID: Subject: Call For Papers: LDAV 2015, The 5th IEEE Symposium on Large Data Analysis and Visualization LDAV 2015 The 5th IEEE Symposium on Large Data Analysis and Visualization, co-located with IEEE VIS 2015, October 25-26, 2015, Chicago, Illinois, USA http://www.ldav.org/ Contact: papers at ldav.org Modern large-scale scientific simulations, sensor networks, and experiments are generating enormous datasets, with some projects approaching the multiple exabyte range in the near term. Managing and analyzing large data in order to transform it into insight is critical for a variety of disciplines including climate science, nuclear physics, security, materials design, transportation, and urban planning. This is currently referred to as the Big Data Challenge. The tools and approaches needed to mine, analyze, and visualize data at extreme scales can be fully realized only if we have end-to-end solutions, which demands collective, interdisciplinary efforts. The 5th IEEE Large Scale Data Analysis and Visualization (LDAV) symposium, to be held in conjunction with IEEE VIS 2015, is specifically targeting possible end-to-end solutions. The LDAV symposium will bring together domain scientists, data analysts, visualization researchers, users, designers and artists, to foster common ground for solving both near- and long-term problems. Scope: We are looking for original research contributions on a broad-range of topics related to collection, analysis, manipulation or visualization of large-scale data. We also welcome position papers on these topics. Topics of interest include, but are not limited to: * Data collection, management and curation * Innovative approaches combining information visualization, visual analytics, and scientific visualization * Streaming methods for analysis, collection and visualization * Novel, extreme or innovative methods for understanding and interacting with data * Advanced hardware for data handling or visualization * Distributed, parallel or multi-threaded approaches * MapReduce-based and database-related methods, algorithms or approaches * Hierarchical data storage, retrieval or rendering * Collaboration or co-design of data analysis with domain scientists * Topics in cognitive issues specific to manipulating and understanding large data * Application case studies * Industry solutions for big data * End-to-end system solutions Submission Instructions: Submitted manuscripts may not exceed 8 pages. The manuscripts can be 4-8 pages, with the authors determining length based on the content. The manuscripts should be formatted according to guidelines from IEEE VGTC. Submission site note: Go to the submission site ( https://precisionconference.com/~vgtc), log in, go to 'new submissions', and select 'LDAV 2015 Papers'. Proceedings: The proceedings of the symposium will be published together with the VIS proceedings and via the IEEE Xplore Digital Library. Best Paper: The LDAV Program Committee will present a Best Paper award to the authors whose submission is deemed the strongest according to the reviewing criteria. This award will be announced in conjunction with VIS 2015. Important Dates: (Please note the abstract and paper deadlines are firm and no extensions will be granted). Abstract Deadline (firm): June 17, 2015 Paper Submission (firm): June 24, 2015 11:59 PM (AOE) Author Notification: August 13, 2015 Camera-Ready Deadline: August 21, 2015 -------------- next part -------------- An HTML attachment was scrubbed... URL: From brad.king at kitware.com Wed Jun 3 10:26:44 2015 From: brad.king at kitware.com (Brad King) Date: Wed, 03 Jun 2015 10:26:44 -0400 Subject: [Paraview-developers] [vtk-developers] Merging changes in temporarily offline In-Reply-To: References: Message-ID: <556F0EA4.1050001@kitware.com> On 06/02/2015 11:15 AM, Utkarsh Ayachit wrote: > As many of you may know, we upgraded our GitLab installation yesterday. > As with many things one doesn't expect to have any issues, we have had > some issues :). While we figure things out, merging branches will be > temporarily offline. Things should be back online by tomorrow. Service should be back to normal now. For those interested, the problem was that the new GitLab version (incorrectly) ignores some remote API query parameters that the old version (correctly) honored, but it only mattered in certain cases. This is why some actions worked and others didn't. We've taught our client to tolerate this bug. -Brad From utkarsh.ayachit at kitware.com Wed Jun 3 10:28:00 2015 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Wed, 03 Jun 2015 14:28:00 +0000 Subject: [Paraview-developers] [vtk-developers] Merging changes in temporarily offline In-Reply-To: <556F0EA4.1050001@kitware.com> References: <556F0EA4.1050001@kitware.com> Message-ID: Awesome! Thanks for the fix, Brad. Utkarsh On Wed, Jun 3, 2015 at 10:26 AM Brad King wrote: > On 06/02/2015 11:15 AM, Utkarsh Ayachit wrote: > > As many of you may know, we upgraded our GitLab installation yesterday. > > As with many things one doesn't expect to have any issues, we have had > > some issues :). While we figure things out, merging branches will be > > temporarily offline. Things should be back online by tomorrow. > > Service should be back to normal now. > > For those interested, the problem was that the new GitLab version > (incorrectly) ignores some remote API query parameters that the old > version (correctly) honored, but it only mattered in certain cases. > This is why some actions worked and others didn't. We've taught our > client to tolerate this bug. > > -Brad > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From guohanqi at gmail.com Thu Jun 4 11:19:21 2015 From: guohanqi at gmail.com (Hanqi Guo) Date: Thu, 4 Jun 2015 10:19:21 -0500 Subject: [Paraview-developers] Additional attributes for vtkImageData Message-ID: Hi, I've written a paraview reader plugin, and I need to further attach several global attributes (e.g. several simulation parameters) to vtkImageData. What is the best way to do this? Thanks. -- Hanqi Guo -------------- next part -------------- An HTML attachment was scrubbed... URL: From shawn.waldon at kitware.com Thu Jun 4 11:23:36 2015 From: shawn.waldon at kitware.com (Shawn Waldon) Date: Thu, 4 Jun 2015 11:23:36 -0400 Subject: [Paraview-developers] Additional attributes for vtkImageData In-Reply-To: References: Message-ID: Typically you attach global values as field data on vtk objects. vtkFieldData can contain data arrays of any length, so you would just create a data array with one tuple. HTH, Shawn On Thu, Jun 4, 2015 at 11:19 AM, Hanqi Guo wrote: > Hi, > > I've written a paraview reader plugin, and I need to further attach > several global attributes (e.g. several simulation parameters) to > vtkImageData. What is the best way to do this? Thanks. > > -- > Hanqi Guo > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Search the list archives at: > http://markmail.org/search/?q=Paraview-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview-developers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From anton.piccardo-selg at stfc.ac.uk Thu Jun 4 11:23:44 2015 From: anton.piccardo-selg at stfc.ac.uk (anton.piccardo-selg at stfc.ac.uk) Date: Thu, 4 Jun 2015 15:23:44 +0000 Subject: [Paraview-developers] ActiveSource changes when window focus is changed Message-ID: <593AFCE559F11049B8F268BE84170A0DC5A896@EXCHMBX03.fed.cclrc.ac.uk> Hi, I have been working on a customization of PV. Recently we switched from PV3.981. to PV4.3.1 and found an odd migration issue. We produce a simple linear chain of a source and a filter where the filter is the ActiveSource and visible and the underlying source is invisible. Once we change the focus from the window containing the render view to another window and back again, the ActiveSource is reset to the underlying source (which remains invisible). I realise this is quite vague, but maybe somebody has seen something like this. If so, please let me know. Many thanks and best regards, Anton From utkarsh.ayachit at kitware.com Thu Jun 4 14:44:49 2015 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Thu, 04 Jun 2015 18:44:49 +0000 Subject: [Paraview-developers] ActiveSource changes when window focus is changed In-Reply-To: <593AFCE559F11049B8F268BE84170A0DC5A896@EXCHMBX03.fed.cclrc.ac.uk> References: <593AFCE559F11049B8F268BE84170A0DC5A896@EXCHMBX03.fed.cclrc.ac.uk> Message-ID: Anton, The easiest way to debug this is put a break point in pqActiveObjects::sourceChanged() signal. Something/someone is changing the active source, changing views doesn't result in changing the active source in ParaView. Utkarsh On Thu, Jun 4, 2015 at 1:57 PM wrote: > Hi, > > I have been working on a customization of PV. Recently we switched from > PV3.981. to PV4.3.1 and found an odd migration issue. > > We produce a simple linear chain of a source and a filter where the filter > is the ActiveSource and visible and the underlying source is invisible. > Once we change the focus from the window containing the render view to > another window and back again, the ActiveSource is reset to the underlying > source (which remains invisible). > > I realise this is quite vague, but maybe somebody has seen something like > this. If so, please let me know. > > Many thanks and best regards, > > Anton > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Search the list archives at: > http://markmail.org/search/?q=Paraview-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview-developers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From guohanqi at gmail.com Thu Jun 4 15:34:44 2015 From: guohanqi at gmail.com (Hanqi Guo) Date: Thu, 4 Jun 2015 14:34:44 -0500 Subject: [Paraview-developers] Loading file sequences in reader plugins Message-ID: Hi, I've written a reader plugin, which works fine for loading single files right now. I would like to further load a sequence and animate them. In the dataset, each time frame is stored in a separate file, e.g. GL3D_Xfieldramp_inter_0000_cop.dat GL3D_Xfieldramp_inter_0001_cop.dat .. GL3D_Xfieldramp_inter_1000_cop.dat Each file also has the wall time of the simulation. Seems ParaView can automatically detect the file patterns as "GL3D_Xfieldramp_inter_.._cop.dat". I notice that there is an "animateable" option in the plugin configuration. Are there any examples, or what is the canonical way to load file sequences? Thanks. Best, Hanqi Guo -- Hanqi Guo -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Thu Jun 4 16:16:16 2015 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Thu, 04 Jun 2015 20:16:16 +0000 Subject: [Paraview-developers] Loading file sequences in reader plugins In-Reply-To: References: Message-ID: Hanqi, Look at this [1]. We do the same for *.vtk file reader. You can simply setup the XML that user your reader as the internal reader to use for reading the file series. Utkarsh [1] https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/ServerManager/SMApplication/Resources/readers.xml#L4042-4089 On Thu, Jun 4, 2015 at 3:34 PM Hanqi Guo wrote: > Hi, > > I've written a reader plugin, which works fine for loading single files > right now. I would like to further load a sequence and animate them. In the > dataset, each time frame is stored in a separate file, e.g. > > GL3D_Xfieldramp_inter_0000_cop.dat > GL3D_Xfieldramp_inter_0001_cop.dat > .. > GL3D_Xfieldramp_inter_1000_cop.dat > > Each file also has the wall time of the simulation. Seems ParaView can > automatically detect the file patterns as > "GL3D_Xfieldramp_inter_.._cop.dat". I notice that there is an "animateable" > option in the plugin configuration. Are there any examples, or what is the > canonical way to load file sequences? Thanks. > > Best, > Hanqi Guo > > -- > Hanqi Guo > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Search the list archives at: > http://markmail.org/search/?q=Paraview-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview-developers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Fri Jun 5 01:18:33 2015 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Fri, 05 Jun 2015 05:18:33 +0000 Subject: [Paraview-developers] ActiveSource changes when window focus is changed In-Reply-To: References: <593AFCE559F11049B8F268BE84170A0DC5A896@EXCHMBX03.fed.cclrc.ac.uk> Message-ID: One possibility is this [1]. It adds support to make the "clicked" object the active source. [1] http://www.paraview.org/ParaView/Doc/Nightly/www/cxx-doc/classpqObjectPickingBehavior.html On Thu, Jun 4, 2015 at 2:44 PM Utkarsh Ayachit wrote: > Anton, > > The easiest way to debug this is put a break point in > pqActiveObjects::sourceChanged() signal. Something/someone is changing the > active source, changing views doesn't result in changing the active source > in ParaView. > > Utkarsh > > On Thu, Jun 4, 2015 at 1:57 PM wrote: > >> Hi, >> >> I have been working on a customization of PV. Recently we switched from >> PV3.981. to PV4.3.1 and found an odd migration issue. >> >> We produce a simple linear chain of a source and a filter where the >> filter is the ActiveSource and visible and the underlying source is >> invisible. Once we change the focus from the window containing the render >> view to another window and back again, the ActiveSource is reset to the >> underlying source (which remains invisible). >> >> I realise this is quite vague, but maybe somebody has seen something like >> this. If so, please let me know. >> >> Many thanks and best regards, >> >> Anton >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: >> http://markmail.org/search/?q=Paraview-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/paraview-developers >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From timo.oster at ovgu.de Fri Jun 5 05:05:39 2015 From: timo.oster at ovgu.de (Timo Oster) Date: Fri, 05 Jun 2015 11:05:39 +0200 Subject: [Paraview-developers] Usage of ColorAttributeType in Python Soprocessing Script Message-ID: <55716663.6000000@ovgu.de> Hi ParaView Developers, I have noticed a problem with using scripts generated with the coprocessing script exporter for rendering screen shots in-situ. The script generator generates code for coloring surfaces like so: slice1Display.ColorArrayName = ['POINTS', 'temperature'] This is the 'new' way of specifying the coloring. When I add this script to a coprocessor that is executed during a simulation, I will get an error that stems from this portion of code in Wrapping/Python/paraview/coprocessing.py (line 381): input = rep.Input input.UpdatePipeline(time) #make sure range is up-to-date lut = rep.LookupTable if rep.ColorAttributeType == 'POINT_DATA': datainformation = input.GetPointDataInformation() elif rep.ColorAttributeType == 'CELL_DATA': datainformation = input.GetCellDataInformation() else: print 'something strange with color attribute type', rep.ColorAttributeType This portion of code still uses the 'old' way of using ColorAttributeType and ColorArrayName, and, on top of that, still uses POINT_DATA and CELL_DATA instead of POINTS and CELLS. The code following this also uses ColorArrayName in the old way, assuming it is not a list. If the usage of the old way here is intentional, then somewhere, something that is supposed to ensure backwards compatibility is not working correctly. The client I'm using for generating the script is the exact same ParaView version as the server evaluating it. I have changed the code in coprocessing.py to use the new way, and everything now seems to work correctly. However, there might be other instances in the code that were missed when ColorArrayName was updated. Perhaps somebody more experienced with the code might want to take a look at this? Regards, Timo From utkarsh.ayachit at kitware.com Fri Jun 5 08:54:46 2015 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Fri, 05 Jun 2015 12:54:46 +0000 Subject: [Paraview-developers] Usage of ColorAttributeType in Python Soprocessing Script In-Reply-To: <55716663.6000000@ovgu.de> References: <55716663.6000000@ovgu.de> Message-ID: Thanks for pointing that out, Timo. I'll take a look. Utkarsh On Fri, Jun 5, 2015 at 5:15 AM Timo Oster wrote: > Hi ParaView Developers, > > I have noticed a problem with using scripts generated with the > coprocessing script exporter for rendering screen shots in-situ. The > script generator generates code for coloring surfaces like so: > > slice1Display.ColorArrayName = ['POINTS', 'temperature'] > > This is the 'new' way of specifying the coloring. > > When I add this script to a coprocessor that is executed during a > simulation, I will get an error that stems from this portion of code in > Wrapping/Python/paraview/coprocessing.py (line 381): > > input = rep.Input > input.UpdatePipeline(time) #make sure range is up-to-date > lut = rep.LookupTable > if rep.ColorAttributeType == 'POINT_DATA': > datainformation = input.GetPointDataInformation() > elif rep.ColorAttributeType == 'CELL_DATA': > datainformation = input.GetCellDataInformation() > else: > print 'something strange with color attribute type', > rep.ColorAttributeType > > This portion of code still uses the 'old' way of using > ColorAttributeType and ColorArrayName, and, on top of that, still uses > POINT_DATA and CELL_DATA instead of POINTS and CELLS. The code following > this also uses ColorArrayName in the old way, assuming it is not a list. > If the usage of the old way here is intentional, then somewhere, > something that is supposed to ensure backwards compatibility is not > working correctly. > > The client I'm using for generating the script is the exact same > ParaView version as the server evaluating it. > > I have changed the code in coprocessing.py to use the new way, and > everything now seems to work correctly. However, there might be other > instances in the code that were missed when ColorArrayName was updated. > Perhaps somebody more experienced with the code might want to take a > look at this? > > Regards, > > Timo > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Search the list archives at: > http://markmail.org/search/?q=Paraview-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview-developers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicolas.forsberg at gmail.com Mon Jun 8 05:52:25 2015 From: nicolas.forsberg at gmail.com (Nicolas Edh) Date: Mon, 8 Jun 2015 11:52:25 +0200 Subject: [Paraview-developers] CGNS reader fails with hdf5 files Message-ID: Hi, I've noticed that the ParaView crashes when I read a CGNS file which uses hdf5 format. If the files is stored using CGNS own ADF they are read just fine. The only error message I get is a segmentation fault. Example files from CGNS are available at http://cgns.sourceforge.net/CGNSFiles.html . I've built paraview from superbuild commit cbf5643cbf5e35c77c2cce308c3e5d6048d404da. On Ubuntu 14.04. I had ENABLE_cgns=ON and ENABLE_visitbridge=OFF and i looks like the I use the internal reader, not the one from Visit. Has CGNS files been tested when they used HDF5 or is this a bug in the reader? On a side note. Is there any one working on polyhedra support in the reader using NGON_n and FACE_n element_t types? Best Regards Nicolas -------------- next part -------------- An HTML attachment was scrubbed... URL: From mickey.phy at gmail.com Mon Jun 8 06:18:22 2015 From: mickey.phy at gmail.com (Mickael PHILIT) Date: Mon, 8 Jun 2015 12:18:22 +0200 Subject: [Paraview-developers] CGNS reader fails with hdf5 files In-Reply-To: References: Message-ID: Hello, thanks for taking the time to report your problem. On my computer CGNS files stored in HDF5 format work just fine. When you compiled, there might be an option to enable hdf5 support with CGNS that was not taken into account. NGON_n and FACE_n elements type are not supported. You are welcome to add their support. Best Regards Mickael On Mon, Jun 8, 2015 at 11:52 AM, Nicolas Edh wrote: > Hi, > > I've noticed that the ParaView crashes when I read a CGNS file which uses > hdf5 format. If the files is stored using CGNS own ADF they are read just > fine. The only error message I get is a segmentation fault. > > Example files from CGNS are available at > http://cgns.sourceforge.net/CGNSFiles.html . > > I've built paraview from superbuild commit > cbf5643cbf5e35c77c2cce308c3e5d6048d404da. On Ubuntu 14.04. > > I had ENABLE_cgns=ON and ENABLE_visitbridge=OFF and i looks like the I use > the internal reader, not the one from Visit. > > Has CGNS files been tested when they used HDF5 or is this a bug in the > reader? > > On a side note. Is there any one working on polyhedra support in the > reader using NGON_n and FACE_n element_t types? > > Best Regards > Nicolas > > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Search the list archives at: > http://markmail.org/search/?q=Paraview-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview-developers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicolas.forsberg at gmail.com Mon Jun 8 06:36:07 2015 From: nicolas.forsberg at gmail.com (Nicolas Edh) Date: Mon, 8 Jun 2015 12:36:07 +0200 Subject: [Paraview-developers] CGNS reader fails with hdf5 files In-Reply-To: References: Message-ID: Hi, Thank you for your reply! It's good to hear that the CGNS and HDF5 works! Then it's something on my end. I did however set ENABLE_HDF5 and disabled USE_SYSTEM_HDF5. ldd tells me that libcgns.so is using the hdf from superbuild. ldd install/lib/paraview-4.3/libcgns.so.3.1 linux-vdso.so.1 => (0x00007ffe749a2000) libhdf5.so.8.0.2 => /home/nico/OpenFOAM/paraview*/build*/install/lib/libhdf5.so.8.0.2 (0x00007f3ce69c9000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3ce65da000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f3ce62d3000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f3ce60cf000) libz.so.1 => /home/nico/OpenFOAM/paraview/*build/*install/lib/libz.so.1 (0x00007f3ce5eb3000) libsz.so.2 => /home/nico/OpenFOAM/paraview*/build*/install/lib/libsz.so.2 (0x00007f3ce5c9e000) /lib64/ld-linux-x86-64.so.2 (0x00007f3ce729d000) Is it normal that installed library, libcgns, linking to libraries in the build dir? I might try to do something about polyhedras and CGNS. I'll let the list know if I have any progress. Just wanted to know if someone was already working on it. Best Regards Nicolas 2015-06-08 12:18 GMT+02:00 Mickael PHILIT : > Hello, > > thanks for taking the time to report your problem. > On my computer CGNS files stored in HDF5 format work just fine. When you > compiled, there might be an option to enable hdf5 support with CGNS that > was not taken into account. > > NGON_n and FACE_n elements type are not supported. You are welcome to add > their support. > > Best Regards > > Mickael > > > On Mon, Jun 8, 2015 at 11:52 AM, Nicolas Edh > wrote: > >> Hi, >> >> I've noticed that the ParaView crashes when I read a CGNS file which uses >> hdf5 format. If the files is stored using CGNS own ADF they are read just >> fine. The only error message I get is a segmentation fault. >> >> Example files from CGNS are available at >> http://cgns.sourceforge.net/CGNSFiles.html . >> >> I've built paraview from superbuild commit >> cbf5643cbf5e35c77c2cce308c3e5d6048d404da. On Ubuntu 14.04. >> >> I had ENABLE_cgns=ON and ENABLE_visitbridge=OFF and i looks like the I >> use the internal reader, not the one from Visit. >> >> Has CGNS files been tested when they used HDF5 or is this a bug in the >> reader? >> >> On a side note. Is there any one working on polyhedra support in the >> reader using NGON_n and FACE_n element_t types? >> >> Best Regards >> Nicolas >> >> >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: >> http://markmail.org/search/?q=Paraview-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/paraview-developers >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Orlando.RIVERA at mtu.de Wed Jun 10 09:09:12 2015 From: Orlando.RIVERA at mtu.de (RIVERA ROLDAN, Jorge Orlando) Date: Wed, 10 Jun 2015 13:09:12 +0000 Subject: [Paraview-developers] Sending a vector from GUI to Server Message-ID: Dear Mailing list I was developing a reader for 3.98 and I want to port into 4.3.1. A short description follows: I use a vtkSMIntVectorProperty selProp to store a vector with 1 or 0 (true or false ) . This vector selPro is l filled when in the GUI I call the accepted property (Apply in Pipeline Browser:: Properties ) . This selPro is connected to a function ActivateSelVec on the server , that fills another vector (vtkIntArray) selVec. When the RequestData is called selVec should be already filled with 1s and 0s. (the same values of selPro ) In 3.98 RequestData (the whole sequence in fact ) is called twice when I press Apply, Don?t know how ? but I see it with the debugger. The order in which the functions are called are: 1st call SetActivateSelVec (Server: fills selVec ? with zeros only since accepted was not executed -- ) Accepted (Gui fills selPro with 1 and 0 depending on the state of qtree) RequestData (Does nothing since selVec is all 0 ) 2nd call SetActivateSelVec (Server: fills selVec ? this time correctly since Accepted was already call in the first call and selPro has correct values ) Accepted (Gui fills selPro with 1 and 0 depending on the state of qtree , which is the same as the 1st call ) RequestData (Works since selVec has 1 and 0 from ActivateSelVec in the second call ) In 4.3.1 does not work because the sequence is called once !! 1st call SetActivateSelVec (Server: fills selVec ? with zeros only since accepted was not executed -- ) Accepted (Gui fills selPro with 1 and 0 depending on the state of qtree) RequestData (Does nothing since selVec is all 0 ) !!!! The problem is that in 4.3.1 This sequence is called only once . Another reformulation of my question will be : How can I send values to RequestData from the GUI ? Any help will be greatly appreciated Regards Orlando Rivera PS My files look like this -------------------------- pqReader.cxx: pqReader::pqReader //GUI constructor { this->selPro=vtkSMIntVectorProperty::SafeDownCast(this->proxy()->GetProperty( "ActivateSelVec" )); } ----------------------------- Reader.xml: ?. ----------------- vtkReader.cxx void vtkReader:: SetActivateSelVe (int idx, int flag); { selPro->InsertTuple1(idx,flag); } Int vtkReader::RequesData(?) { /* getData using selPro */ } -- MTU Aero Engines AG Vorstand/Board of Management: Reiner Winkler, Vorsitzender/CEO; Dr. Rainer Martens, Michael Schreyoegg Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Klaus Eberhardt Sitz der Gesellschaft/Registered Office: Muenchen Handelsregister/Commercial Register: Muenchen HRB 157206 Diese E-Mail sowie ihre Anhaenge enthalten MTU-eigene vertrauliche oder rechtlich geschuetzte Informationen. Wenn Sie nicht der beabsichtigte Empfaenger sind, informieren Sie bitte den Absender und loeschen Sie diese E-Mail sowie die Anhaenge. Das unbefugte Speichern, Kopieren oder Weiterleiten ist nicht gestattet. This e-mail and any attached documents are proprietary to MTU, confidential or protected by law. If you are not the intended recipient, please advise the sender and delete this message and its attachments. Any unauthorised storing, copying or distribution is prohibited. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.pulverail at sogeti.com Wed Jun 10 12:11:16 2015 From: sebastien.pulverail at sogeti.com (PULVERAIL, Sebastien) Date: Wed, 10 Jun 2015 16:11:16 +0000 Subject: [Paraview-developers] Help to create a textsource proxy and to display it in C++ Message-ID: Hello, I'm trying to display a label in my render scene programmatically speaking. Let's assume that the label to display is my scene title. If I'm right, the first step is to create my source proxy : vtkSMProxyManager* proxyManager = vtkSMProxyManager::GetProxyManager(); vtkSMSessionProxyManager* sessionProxyManager = proxyManager->GetActiveSessionProxyManager(); vtkSmartPointer title; title.TakeReference(vtkSMSourceProxy::SafeDownCast(sessionProxyManager->NewProxy("sources", "TextSource"))); vtkSMPropertyHelper(title, "Text").Set("MyTitle"); Then I assume that I have to create a TextSourceRepresentation and to tell my application that there is a new representation to render. I don't know how to do the last two steps. Can you please help me to make this work? Thank you in advance. S?bastien. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.pulverail at sogeti.com Wed Jun 10 12:14:15 2015 From: sebastien.pulverail at sogeti.com (PULVERAIL, Sebastien) Date: Wed, 10 Jun 2015 16:14:15 +0000 Subject: [Paraview-developers] Error loading my own plugin in custom application based on ParaView In-Reply-To: References: Message-ID: Thank you for answer. It is working fine, I am now able to load my own plugin :) Sebastien | -----Message d'origine----- | De?: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com] | Envoy??: jeudi 28 mai 2015 13:09 | ??: PULVERAIL, Sebastien | Cc?: paraview-developers at paraview.org | Objet?: Re: [Paraview-developers] Error loading my own plugin in custom | application based on ParaView | | Looks like extraforException.h (and may be more) headers are not VTK | classes. Try removing them from the the SOURCES list entirely. | | On Wed, May 27, 2015 at 5:18 AM, PULVERAIL, Sebastien | wrote: | > Hello, | > | > | > | > I have made my own custom application based on ParaView. As with | > ParaView, I am using a plugin manager to let the user adding their | own readers. | > | > All compile fine but when I load (or autoload) one of the plugin I | > create, I get the following error when launching the binary: | > | > | > | > ./bin/Extrafor: symbol lookup error: | > /data/samba/spulvera/EXTRAFOR/STELIA- | EXTRAFOR/build/bin/../lib//libExtraforReaders.so: | > undefined symbol: | > _Z22extraforException_InitP26vtkClientServerInterpreter | > | > | > | > Here is the CMakeLists.txt I use for my plugin: | > | > | > | > #-------------------------------------------------------------------- | - | > --------- | > | > # Find and Use ParaView | > | > #-------------------------------------------------------------------- | - | > --------- | > | > IF(PARAVIEW_BUILD_QT_GUI) | > | > IF(PARAVIEW_QT_VERSION VERSION_GREATER "4") | > | > SET (Qt5_FIND_COMPONENTS Widgets) | > | > INCLUDE (ParaViewQt5) | > | > ELSE() | > | > INCLUDE(${QT_USE_FILE}) | > | > ENDIF() | > | > ENDIF() | > | > | > | > #-------------------------------------------------------------------- | - | > --------- | > | > # Define source and header files to be compile | > | > #-------------------------------------------------------------------- | - | > --------- | > | > set (SOURCES | > | > Common/extraforException.h | > | > Common/extraforTypes.h | > | > Common/jsonReader.cxx | > | > Common/jsonReader.h | > | > Common/streamReader.cxx | > | > Common/streamReader.h | > | > NastranReader/coordinateSystems.cxx | > | > NastranReader/coordinateSystems.h | > | > NastranReader/nastranReader.cxx | > | > NastranReader/nastranReader.h | > | > NastranReader/pvExtraforNastranReader.cxx | > | > NastranReader/pvExtraforNastranReader.h | > | > JExtpointReader/jextpointReader.cxx | > | > JExtpointReader/jextpointReader.h | > | > JExtpointReader/pvExtraforJExtPointReader.cxx | > | > JExtpointReader/pvExtraforJExtPointReader.h | > | > JLoadsReader/jloadsReader.cxx | > | > JLoadsReader/jloadsReader.h | > | > JLoadsReader/pvExtraforJLoadsReader.cxx | > | > JLoadsReader/pvExtraforJLoadsReader.h | > | > ) | > | > | > | > #-------------------------------------------------------------------- | - | > --------- | > | > # Add directories where to find headers to be included | > | > #-------------------------------------------------------------------- | - | > --------- | > | > include_directories ( Common ) | > | > include_directories ( NastranReader ) | > | > include_directories ( JExtpointReader ) | > | > include_directories ( JLoadsReader ) | > | > include_directories ( ${Boost_INCLUDE_DIR} ) | > | > include_directories ( ${Jansson_INCLUDE_DIR} ) | > | > | > | > #-------------------------------------------------------------------- | - | > --------- | > | > # Add directories where to find libraries to be linked | > | > #-------------------------------------------------------------------- | - | > --------- | > | > link_directories ( ${Boost_LIBRARY_DIR} ) | > | > link_directories ( ${Jansson_LIBRARY_DIR} ) | > | > | > | > # | > --------------------------------------------------------------------- | - | > ----- | > | > # Combined plugin | > | > # | > --------------------------------------------------------------------- | - | > ------- | > | > if (PARAVIEW_BUILD_QT_GUI) | > | > add_paraview_plugin(ExtraforReaders "1.0" | > | > REQUIRED_ON_SERVER | > | > SERVER_MANAGER_SOURCES ${SOURCES} | > | > ) | > | > else() | > | > add_paraview_plugin(ExtraforReaders "1.0" | > | > REQUIRED_ON_SERVER | > | > SERVER_MANAGER_SOURCES ${SOURCES} | > | > ) | > | > endif() | > | > | > | > #-------------------------------------------------------------------- | - | > --------- | > | > # | > | > #-------------------------------------------------------------------- | - | > --------- | > | > target_link_libraries( ExtraforReaders LINK_PRIVATE -ljansson | > -lboost_system | > ) | > | > | > | > Did I miss something? | > | > Tell me if you need extra information to help me fix this problem. | > | > | > | > Thanks in advance. | > | > | > | > S?bastien | > | > This message contains information that may be privileged or | > confidential and is the property of the Capgemini Group. It is | > intended only for the person to whom it is addressed. If you are not | > the intended recipient, you are not authorized to read, print, | retain, | > copy, disseminate, distribute, or use this message or any part | > thereof. If you receive this message in error, please notify the | sender immediately and delete all copies of this message. | > | > _______________________________________________ | > Powered by www.kitware.com | > | > Visit other Kitware open-source projects at | > http://www.kitware.com/opensource/opensource.html | > | > Search the list archives at: | > http://markmail.org/search/?q=Paraview-developers | > | > Follow this link to subscribe/unsubscribe: | > http://public.kitware.com/mailman/listinfo/paraview-developers | > This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. From utkarsh.ayachit at kitware.com Wed Jun 10 13:46:18 2015 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Wed, 10 Jun 2015 17:46:18 +0000 Subject: [Paraview-developers] Help to create a textsource proxy and to display it in C++ In-Reply-To: References: Message-ID: Something like following should do the trick: vtkSMProxy* labelRepresentation = sessionProxyManager->NewProxy("representations", "DataLabelRepresentation"); vtkSMPropertyHelper(labelRepresentation, "Input").Set(title); vtkSMPropertyHelper(labelRepresentation, "PointLabelMode").Set("IDs"); vtkSMPropertyHelper(labelRepresentation, "PointLabelVisibility").Set(1); labelRepresentation->UpdateVTKObjects(); vtkSMPropertyHelper(renderView, "Representations").Add(labelRepresentation); renderView->UpdateVTKObjects(); On Wed, Jun 10, 2015 at 12:11 PM PULVERAIL, Sebastien < sebastien.pulverail at sogeti.com> wrote: > Hello, > > > > I?m trying to display a label in my render scene programmatically speaking. > > Let?s assume that the label to display is my scene title. > > > > If I?m right, the first step is to create my source proxy : > > vtkSMProxyManager* proxyManager = > vtkSMProxyManager::GetProxyManager(); > > vtkSMSessionProxyManager* sessionProxyManager = > proxyManager->GetActiveSessionProxyManager(); > > > > vtkSmartPointer title; > > > title.TakeReference(vtkSMSourceProxy::SafeDownCast(sessionProxyManager->NewProxy("sources", > "TextSource"))); > > vtkSMPropertyHelper(title, "Text").Set("MyTitle"); > > > > Then I assume that I have to create a TextSourceRepresentation and to tell > my application that there is a new representation to render. > > I don?t know how to do the last two steps. > > > > Can you please help me to make this work? > > > > Thank you in advance. > > > > S?bastien. > This message contains information that may be privileged or confidential > and is the property of the Capgemini Group. It is intended only for the > person to whom it is addressed. If you are not the intended recipient, you > are not authorized to read, print, retain, copy, disseminate, distribute, > or use this message or any part thereof. If you receive this message in > error, please notify the sender immediately and delete all copies of this > message. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Search the list archives at: > http://markmail.org/search/?q=Paraview-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview-developers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Wed Jun 10 13:46:49 2015 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Wed, 10 Jun 2015 17:46:49 +0000 Subject: [Paraview-developers] Help to create a textsource proxy and to display it in C++ In-Reply-To: References: Message-ID: Oops...use "TextSourceRepresentation" instead of "DataLabelRepresentation". Utkarsh On Wed, Jun 10, 2015 at 1:46 PM Utkarsh Ayachit wrote: > Something like following should do the trick: > > vtkSMProxy* labelRepresentation = sessionProxyManager->NewProxy("representations", > "DataLabelRepresentation"); > vtkSMPropertyHelper(labelRepresentation, "Input").Set(title); > vtkSMPropertyHelper(labelRepresentation, > "PointLabelMode").Set("IDs"); > vtkSMPropertyHelper(labelRepresentation, > "PointLabelVisibility").Set(1); > labelRepresentation->UpdateVTKObjects(); > vtkSMPropertyHelper(renderView, > "Representations").Add(labelRepresentation); > renderView->UpdateVTKObjects(); > > > > > On Wed, Jun 10, 2015 at 12:11 PM PULVERAIL, Sebastien < > sebastien.pulverail at sogeti.com> wrote: > >> Hello, >> >> >> >> I?m trying to display a label in my render scene programmatically >> speaking. >> >> Let?s assume that the label to display is my scene title. >> >> >> >> If I?m right, the first step is to create my source proxy : >> >> vtkSMProxyManager* proxyManager = >> vtkSMProxyManager::GetProxyManager(); >> >> vtkSMSessionProxyManager* sessionProxyManager = >> proxyManager->GetActiveSessionProxyManager(); >> >> >> >> vtkSmartPointer title; >> >> >> title.TakeReference(vtkSMSourceProxy::SafeDownCast(sessionProxyManager->NewProxy("sources", >> "TextSource"))); >> >> vtkSMPropertyHelper(title, "Text").Set("MyTitle"); >> >> >> >> Then I assume that I have to create a TextSourceRepresentation and to >> tell my application that there is a new representation to render. >> >> I don?t know how to do the last two steps. >> >> >> >> Can you please help me to make this work? >> >> >> >> Thank you in advance. >> >> >> >> S?bastien. >> This message contains information that may be privileged or >> confidential and is the property of the Capgemini Group. It is intended >> only for the person to whom it is addressed. If you are not the intended >> recipient, you are not authorized to read, print, retain, copy, >> disseminate, distribute, or use this message or any part thereof. If you >> receive this message in error, please notify the sender immediately and >> delete all copies of this message. >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Search the list archives at: >> http://markmail.org/search/?q=Paraview-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/paraview-developers >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Wed Jun 10 15:17:41 2015 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Wed, 10 Jun 2015 19:17:41 +0000 Subject: [Paraview-developers] Sending a vector from GUI to Server In-Reply-To: References: Message-ID: Not entirely sure where your code is failing, but attached is a sample. Since I let ParaView create the default widget, I can entire arbitrary int values in the UI and they seem to get propagated to the source as expected. Utkarsh On Wed, Jun 10, 2015 at 9:19 AM RIVERA ROLDAN, Jorge Orlando < Orlando.RIVERA at mtu.de> wrote: > Dear Mailing list > > > > I was developing a reader for 3.98 and I want to port into 4.3.1. A > short description follows: > > > > I use a vtkSMIntVectorProperty *selProp* to store a vector with 1 or 0 > (true or false ) . This vector *selPro* is l filled when in the > GUI I call the accepted property (Apply in Pipeline Browser:: Properties > ) . This selPro is connected to a function ActivateSelVec on the server > , that fills another vector (vtkIntArray) *selVec*. > > > > When the RequestData is called selVec should be already filled with 1s > and 0s. (the same values of selPro ) > > > > In 3.98 RequestData (the whole sequence in fact ) is called twice when > I press Apply, Don?t know how ? but I see it with the debugger. > > > > The order in which the functions are called are: > > > > 1st call > > *SetActivateSelVec* (Server: fills *selVec* ? with zeros only since > accepted was not executed -- ) > > *Accepted* (Gui fills *selPro* with 1 and 0 depending on > the state of qtree) > > *RequestData* (Does nothing since *selVec* is all 0 ) > > > > 2nd call > > SetActivateSelVec (Server: fills *selVec* ? this time correctly > since Accepted was already call in the first call and *selPro* has > correct values ) > > Accepted (Gui fills *selPro* with 1 and 0 depending on > the state of qtree , which is the same as the 1st call ) > > RequestData (Works since *selVec* has 1 and 0 from > ActivateSelVec in the second call ) > > > > > > > > In 4.3.1 does not work because the sequence is called once !! > > > > 1st call > > SetActivateSelVec (Server: fills *selVec* ? with zeros only since > accepted was not executed -- ) > > Accepted (Gui fills *selPro* with 1 and 0 depending on > the state of qtree) > > RequestData (Does nothing since *selVec* is all 0 ) *!!!!* > > > > > > The problem is that in 4.3.1 This sequence is called only once . > > > > Another reformulation of my question will be : How can I send values > to RequestData from the GUI ? > > > > > > Any help will be greatly appreciated > > > > Regards > > > > Orlando Rivera > > > > PS My files look like this > > > > -------------------------- > > > > pqReader.cxx: > > > > pqReader::pqReader //GUI constructor > > { > > this->selPro=vtkSMIntVectorProperty::SafeDownCast(this->proxy()->GetProperty( > "ActivateSelVec" )); > > } > > > > > > > > ----------------------------- > > Reader.xml: > > > > > > > > ?. > > > > > command="SetActivateSelVec > > number_of_elements="0" > > repeat_command="1" > > number_of_elements_per_command="1" > > use_index="1" > > default_values="0" > > label="ActivateStructure"> > > > > > > > > > > > > > > > > ----------------- > > > > vtkReader.cxx > > > > void vtkReader:: SetActivateSelVe (int idx, int flag); > > { > > selPro->InsertTuple1(idx,flag); > > } > > > > > > Int vtkReader::RequesData(?) > > { > > /* getData using selPro */ > > } > -- > *MTU Aero Engines AG* > Vorstand/Board of Management: Reiner Winkler, Vorsitzender/CEO; Dr. Rainer > Martens, Michael Schreyoegg > Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Klaus > Eberhardt > Sitz der Gesellschaft/Registered Office: Muenchen > Handelsregister/Commercial Register: Muenchen HRB 157206 > > Diese E-Mail sowie ihre Anhaenge enthalten MTU-eigene vertrauliche oder > rechtlich geschuetzte Informationen. > Wenn Sie nicht der beabsichtigte Empfaenger sind, informieren Sie bitte > den Absender und loeschen Sie diese > E-Mail sowie die Anhaenge. Das unbefugte Speichern, Kopieren oder > Weiterleiten ist nicht gestattet. > > This e-mail and any attached documents are proprietary to MTU, > confidential or protected by law. > If you are not the intended recipient, please advise the sender and delete > this message and its attachments. > Any unauthorised storing, copying or distribution is prohibited. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Search the list archives at: > http://markmail.org/search/?q=Paraview-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview-developers > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: sample.tar.gz Type: application/gzip Size: 2364 bytes Desc: not available URL: From sebastien.pulverail at sogeti.com Thu Jun 11 04:21:16 2015 From: sebastien.pulverail at sogeti.com (PULVERAIL, Sebastien) Date: Thu, 11 Jun 2015 08:21:16 +0000 Subject: [Paraview-developers] Help to create a textsource proxy and to display it in C++ In-Reply-To: References: Message-ID: Hello, Thank you for your help. I have two questions about the piece of code you gave me : 1/ Where can I find the property helper to set for a given proxy? 2/ You are using a variable renderView. I assume that it matches to the current active render view. How can I get it? With something like pqActiveObjects::instance().activeView()?? Thank you in advance. S?bastien De : Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com] Envoy? : mercredi 10 juin 2015 19:47 ? : PULVERAIL, Sebastien; paraview-developers at paraview.org Objet : Re: [Paraview-developers] Help to create a textsource proxy and to display it in C++ Oops...use "TextSourceRepresentation" instead of "DataLabelRepresentation". Utkarsh On Wed, Jun 10, 2015 at 1:46 PM Utkarsh Ayachit > wrote: Something like following should do the trick: vtkSMProxy* labelRepresentation = sessionProxyManager->NewProxy("representations", "DataLabelRepresentation"); vtkSMPropertyHelper(labelRepresentation, "Input").Set(title); vtkSMPropertyHelper(labelRepresentation, "PointLabelMode").Set("IDs"); vtkSMPropertyHelper(labelRepresentation, "PointLabelVisibility").Set(1); labelRepresentation->UpdateVTKObjects(); vtkSMPropertyHelper(renderView, "Representations").Add(labelRepresentation); renderView->UpdateVTKObjects(); On Wed, Jun 10, 2015 at 12:11 PM PULVERAIL, Sebastien > wrote: Hello, I?m trying to display a label in my render scene programmatically speaking. Let?s assume that the label to display is my scene title. If I?m right, the first step is to create my source proxy : vtkSMProxyManager* proxyManager = vtkSMProxyManager::GetProxyManager(); vtkSMSessionProxyManager* sessionProxyManager = proxyManager->GetActiveSessionProxyManager(); vtkSmartPointer title; title.TakeReference(vtkSMSourceProxy::SafeDownCast(sessionProxyManager->NewProxy("sources", "TextSource"))); vtkSMPropertyHelper(title, "Text").Set("MyTitle"); Then I assume that I have to create a TextSourceRepresentation and to tell my application that there is a new representation to render. I don?t know how to do the last two steps. Can you please help me to make this work? Thank you in advance. S?bastien. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Search the list archives at: http://markmail.org/search/?q=Paraview-developers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview-developers This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. -------------- next part -------------- An HTML attachment was scrubbed... URL: From houssen at ipgp.fr Thu Jun 11 10:16:48 2015 From: houssen at ipgp.fr (houssen) Date: Thu, 11 Jun 2015 16:16:48 +0200 Subject: [Paraview-developers] =?utf-8?q?How_to_plug_into_paraview_his_own?= =?utf-8?q?_writer_=3F?= Message-ID: <7bd9f2281ded0d5b9f8b961182bb3823@imap.ipgp.fr> I followed 2 tutorials (http://www.itk.org/Wiki/ParaView/Plugin_HowTo#Writing_Plugins, http://www.kitware.com/media/html/WritingAParaViewReaderPlug-in.html) but I feel like I missed some steps : this is not working. I need to "catch" data (I can see in 2D/3D paraview viewer) to write them into a specific file format. I am looking for the minimal (simplest) way to do this : the only writer input is the file name, then I would like to understand how to "get data from" paraview (from inside a vtk object I guess ?), then I just will have to do the easy part which is to write data to a specific format. My understanding is that, first I need a CMakeLists.txt like : ~> more CMakeLists.txt FIND_PACKAGE ( ParaView REQUIRED ) INCLUDE ( ${PARAVIEW_USE_FILE} ) ADD_PARAVIEW_PLUGIN ( myWriter "1.0" SERVER_MANAGER_XML myWriter.xml SERVER_MANAGER_SOURCES myWriter.cpp ) In the same directory, I need a (minimal) myWriter.xml file that looks like : ~> more myWrite.xml My understanding is that somehow the xml subscribes my for a specific callback I am called back on the "save data" button is cliked in the GUI. Still, in this same directory, I have myWriter.cpp and myWriter.hpp : how to implement them ? 1. The myWriter class must define and implement a SetFileName method because of the xml tag in myWriter.xml : right ? wrong ? This is the file name (including file path) one sets in the GUI : right ? wrong ? 2. myWriter is supposed to derive from another class : which one ? where to find it ? 3. How the myWriter implementation will "catch" data in paraview ? Which method to override / re-implement ? When I am called from paraview (triggered by the click on "save data" button), I guess I am called on a specific method "myWriter::cbMethod ( vtkXXX * pDataInParaviewViewer )" What is this method ? Also, at this step, I export PV_PLUGIN_PATH=/mnt/users/houssen/Documents/solve-rel/paraview. When I run paraview and use the "save data" button I get this : Generic Warning: In /.../Programs/ParaView/ParaView-v4.3.1-source/ParaViewCore/ServerManager/Core/vtkSMWriterFactory.cxx, line 135 writers : myWriter has no input property. ... But I have an tag in the xml : what's wrong ? Can somebody help me on this ? Franck Note : I run Ubuntu and paraview-4.3 -------------- next part -------------- An HTML attachment was scrubbed... URL: From prashant.v at quest-global.com Thu Jun 11 21:37:55 2015 From: prashant.v at quest-global.com (Prashant V) Date: Fri, 12 Jun 2015 01:37:55 +0000 Subject: [Paraview-developers] Paraview Runtime Segfault when linking with external c++ library Message-ID: Hi, I have developed a paraview source plugin. This source plugin needs to call few functions which are outside of Paraview. These functions are in C++ and compiled with intel compiler. I am trying to add a library (having these functions) in Paraview to solve my purpose. In CMakeLists.txt file of my source plugin, I add two statements: 1) INCLUDE_DIRECTORIES() 2) TARGET_LINK_LIBRARIES(MyPlugin LINK_PUBLIC ) After doing this, Paraview compiles successfully. But when I try to launch Paraview, it crashes with segmentation fault. When I comment out the external function call in my source plugin code, then Paraview launches successfully. Paraview is compiled with G++ compiler. Is it a linker problem because my external library is compiled through ICPC(intel c++) but Paraview is compiled with G++? I am working with Ubuntu 12.04. I have tried adding both static (.a) and shared (.so) libraries, but in vain. Do I need to do anything additional in CMakeLists.txt file. Can anybody help here? Thanks, Prashant ---Disclaimer------------------------------ This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Opinions, conclusions and other information in this transmission that do not relate to the official business of QuEST Global and/or its subsidiaries, shall be understood as neither given nor endorsed by it. Any statements made herein that are tantamount to contractual obligations, promises, claims or commitments shall not be binding on the Company unless followed by written confirmation by an authorized signatory of the Company. ----------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Thu Jun 11 22:50:32 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 11 Jun 2015 22:50:32 -0400 Subject: [Paraview-developers] Paraview Runtime Segfault when linking with external c++ library In-Reply-To: References: Message-ID: Mixing gcc and icc compiled code is generally OK. What does the stack trace/debugger say about what happened? On Thursday, June 11, 2015, Prashant V wrote: > Hi, > > > > I have developed a paraview source plugin. This source plugin needs to > call few functions which are outside of Paraview. These functions are in > C++ and compiled with intel compiler. I am trying to add a library (having > these functions) in Paraview to solve my purpose. > > In CMakeLists.txt file of my source plugin, I add two statements: > > 1) INCLUDE_DIRECTORIES() > 2) TARGET_LINK_LIBRARIES(MyPlugin LINK_PUBLIC name>) > > > > After doing this, Paraview *compiles successfully*. But when I try to > launch Paraview, it *crashes with segmentation fault*. > > > When I comment out the external function call in my source plugin code, > then Paraview launches successfully. > > > > Paraview is compiled with G++ compiler. Is it a linker problem because my > external library is compiled through ICPC(intel c++) but Paraview is > compiled with G++? I am working with Ubuntu 12.04. I have tried adding both > static (.a) and shared (.so) libraries, but in vain. > > > > Do I need to do anything additional in CMakeLists.txt file. Can anybody > help here? > > > > Thanks, > Prashant > ---Disclaimer------------------------------ This e-mail contains > PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the > addressee(s). If you are not the intended recipient, please notify the > sender by e-mail and delete the original message. Opinions, conclusions and > other information in this transmission that do not relate to the official > business of QuEST Global and/or its subsidiaries, shall be understood as > neither given nor endorsed by it. Any statements made herein that are > tantamount to contractual obligations, promises, claims or commitments > shall not be binding on the Company unless followed by written confirmation > by an authorized signatory of the Company. > ----------------------------------------------------------------------------------- > > -- David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 -------------- next part -------------- An HTML attachment was scrubbed... URL: From houssen at ipgp.fr Sat Jun 13 10:54:28 2015 From: houssen at ipgp.fr (houssen) Date: Sat, 13 Jun 2015 16:54:28 +0200 Subject: [Paraview-developers] =?utf-8?q?Fwd=3A_How_to_plug_into_paraview_?= =?utf-8?q?his_own_writer_=3F?= Message-ID: <86347d91c723cd90b081325c08b678ec@imap.ipgp.fr> I followed 2 writer examples (cpp, hpp) : Xdmf writer and OpenFOAM writer. Complexity is high, still difficult to extract basic needs out of them. Question 1 : how to write myWriter.xml ? 1.1. seems I must set in myWriter.xml. Does this means I will also have to implement myWriter::SetInputConnection ? 1.2. seems I must set in myWriter.xml. Does this means I will also have to implement myWriter::SetFileName ? I am correct ? Question 2 : how to implement a vtk object ? From here http://www.vtk.org/Wiki/VTK/Examples/Developers/vtkObject, it seems that 2.1. in myWriter.cpp, I need to have : #include "vtkObjectFactory.h" // vtkStandardNewMacro vtkStandardNewMacro ( myWriter ); // use vtkStandardNewMacro : 1 only allowed constructor, omit the copy constructor and operator= + suppress copy constructor and operator= 2.2 in myWriter.hpp, I need to derive from a vtkObject this way (like XdmfWriter.cpp does) : class myWriter : public vtkDataObjectAlgorithm { public: static myWriter * New (); // Needed to be plugged into paraview vtkTypeMacro ( myWriter, vtkDataObjectAlgorithm ); // Needed to be plugged into paraview + suppress copy constructor and operator= Am I correct ? Question 3 : in myWriter.cpp, on which method I am supposed to be called back (to get focus back) when I click the "save data" button ? Here, how can I get data to be saved (data that I can see in paraview viewer before to click the save button - I guess this data will be a vtk*). Finally, myWriter.xml seems OK. myWriter.*pp compile OK. Paraview finds myWriter.xml at run time (exporting PV_PLUGIN_PATH) and loads libmywriter.so without problem. I see the writer in the "save data" GUI (drop down list with different save formats). I save with myWriter, I get a (basic) GUI with file name only (no extra parameter) : I crash when I click "OK, save" with this error message : ERROR: In /.../ParaView-v4.3.1-source/ParaViewCore/ServerImplementation/Core/vtkSIProxy.cxx, line 307 vtkSIWriterProxy (0x30143d0): Failed to create myWriter. Aborting for debugging purposes. vtkSIWriterProxy does this at line 303 : vtkObjectBase* obj = this->Interpreter->NewInstance(className); but obj is NULL. I get obj is NULL because I missed something in myWriter implementation : what did I miss ? Can somebody help ? Or even get me some clue ? FH -------- Message original -------- Objet: How to plug into paraview his own writer ? Date: 2015-06-12 15:54 De: houssen ?: I followed 2 tutorials (http://www.itk.org/Wiki/ParaView/Plugin_HowTo#Writing_Plugins, http://www.kitware.com/media/html/WritingAParaViewReaderPlug-in.html) but I feel like I missed some steps : this is not working. I need to "catch" data (I can see in 2D/3D paraview viewer) to write them into a specific file format. I am looking for the minimal (simplest) way to do this : the only writer input is the file name, then I would like to understand how to "get data from" paraview (from inside a vtk object I guess ?), then I just will have to do the easy part which is to write data to a specific format. My understanding is that, first I need a CMakeLists.txt like : ~> more CMakeLists.txt FIND_PACKAGE ( ParaView REQUIRED ) INCLUDE ( ${PARAVIEW_USE_FILE} ) ADD_PARAVIEW_PLUGIN ( myWriter "1.0" SERVER_MANAGER_XML myWriter.xml SERVER_MANAGER_SOURCES myWriter.cpp ) In the same directory, I need a (minimal) myWriter.xml file that looks like : ~> more myWrite.xml My understanding is that somehow the xml subscribes my for a specific callback I am called back on the "save data" button is cliked in the GUI. Still, in this same directory, I have myWriter.cpp and myWriter.hpp : how to implement them ? 1. The myWriter class must define and implement a SetFileName method because of the xml tag in myWriter.xml : right ? wrong ? This is the file name (including file path) one sets in the GUI : right ? wrong ? 2. myWriter is supposed to derive from another class : which one ? where to find it ? 3. How the myWriter implementation will "catch" data in paraview ? Which method to override / re-implement ? When I am called from paraview (triggered by the click on "save data" button), I guess I am called on a specific method "myWriter::cbMethod ( vtkXXX * pDataInParaviewViewer )" What is this method ? Also, at this step, I export PV_PLUGIN_PATH=/mnt/users/houssen/Documents/solve-rel/paraview. When I run paraview and use the "save data" button I get this : Generic Warning: In /.../Programs/ParaView/ParaView-v4.3.1-source/ParaViewCore/ServerManager/Core/vtkSMWriterFactory.cxx, line 135 writers : myWriter has no input property. ... But I have an tag in the xml : what's wrong ? Can somebody help me on this ? Franck Note : I run Ubuntu and paraview-4.3 From Orlando.RIVERA at mtu.de Mon Jun 15 03:29:00 2015 From: Orlando.RIVERA at mtu.de (RIVERA ROLDAN, Jorge Orlando) Date: Mon, 15 Jun 2015 07:29:00 +0000 Subject: [Paraview-developers] Sending a vector from GUI to Server In-Reply-To: References: Message-ID: Dear Utkarsh Thanks for you example, It turned out that in the GUI I was missing in my overwritten updateInformationDomains a call to vtkSMProxy ::UpdateProperty(? ActivateSelVec?) And it seems to be working now , for 3.98 I did not have to call this. I think it is better now since RequestData is called only once and not twice (3.98) . Any pointer to how vtkSMProxy works I would like to understand this better Regards Orlando Von: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com] Gesendet: Wednesday, 10. June 2015 21:18 An: RIVERA ROLDAN, Jorge Orlando; Paraview Developers Betreff: Re: [Paraview-developers] Sending a vector from GUI to Server Not entirely sure where your code is failing, but attached is a sample. Since I let ParaView create the default widget, I can entire arbitrary int values in the UI and they seem to get propagated to the source as expected. Utkarsh On Wed, Jun 10, 2015 at 9:19 AM RIVERA ROLDAN, Jorge Orlando > wrote: Dear Mailing list I was developing a reader for 3.98 and I want to port into 4.3.1. A short description follows: I use a vtkSMIntVectorProperty selProp to store a vector with 1 or 0 (true or false ) . This vector selPro is l filled when in the GUI I call the accepted property (Apply in Pipeline Browser:: Properties ) . This selPro is connected to a function ActivateSelVec on the server , that fills another vector (vtkIntArray) selVec. When the RequestData is called selVec should be already filled with 1s and 0s. (the same values of selPro ) In 3.98 RequestData (the whole sequence in fact ) is called twice when I press Apply, Don?t know how ? but I see it with the debugger. The order in which the functions are called are: 1st call SetActivateSelVec (Server: fills selVec ? with zeros only since accepted was not executed -- ) Accepted (Gui fills selPro with 1 and 0 depending on the state of qtree) RequestData (Does nothing since selVec is all 0 ) 2nd call SetActivateSelVec (Server: fills selVec ? this time correctly since Accepted was already call in the first call and selPro has correct values ) Accepted (Gui fills selPro with 1 and 0 depending on the state of qtree , which is the same as the 1st call ) RequestData (Works since selVec has 1 and 0 from ActivateSelVec in the second call ) In 4.3.1 does not work because the sequence is called once !! 1st call SetActivateSelVec (Server: fills selVec ? with zeros only since accepted was not executed -- ) Accepted (Gui fills selPro with 1 and 0 depending on the state of qtree) RequestData (Does nothing since selVec is all 0 ) !!!! The problem is that in 4.3.1 This sequence is called only once . Another reformulation of my question will be : How can I send values to RequestData from the GUI ? Any help will be greatly appreciated Regards Orlando Rivera PS My files look like this -------------------------- pqReader.cxx: pqReader::pqReader //GUI constructor { this->selPro=vtkSMIntVectorProperty::SafeDownCast(this->proxy()->GetProperty( "ActivateSelVec" )); } ----------------------------- Reader.xml: ?. ----------------- vtkReader.cxx void vtkReader:: SetActivateSelVe (int idx, int flag); { selPro->InsertTuple1(idx,flag); } Int vtkReader::RequesData(?) { /* getData using selPro */ } -- MTU Aero Engines AG Vorstand/Board of Management: Reiner Winkler, Vorsitzender/CEO; Dr. Rainer Martens, Michael Schreyoegg Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Klaus Eberhardt Sitz der Gesellschaft/Registered Office: Muenchen Handelsregister/Commercial Register: Muenchen HRB 157206 Diese E-Mail sowie ihre Anhaenge enthalten MTU-eigene vertrauliche oder rechtlich geschuetzte Informationen. Wenn Sie nicht der beabsichtigte Empfaenger sind, informieren Sie bitte den Absender und loeschen Sie diese E-Mail sowie die Anhaenge. Das unbefugte Speichern, Kopieren oder Weiterleiten ist nicht gestattet. This e-mail and any attached documents are proprietary to MTU, confidential or protected by law. If you are not the intended recipient, please advise the sender and delete this message and its attachments. Any unauthorised storing, copying or distribution is prohibited. _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Search the list archives at: http://markmail.org/search/?q=Paraview-developers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview-developers -- MTU Aero Engines AG Vorstand/Board of Management: Reiner Winkler, Vorsitzender/CEO; Dr. Rainer Martens, Michael Schreyoegg Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Klaus Eberhardt Sitz der Gesellschaft/Registered Office: Muenchen Handelsregister/Commercial Register: Muenchen HRB 157206 Diese E-Mail sowie ihre Anhaenge enthalten MTU-eigene vertrauliche oder rechtlich geschuetzte Informationen. Wenn Sie nicht der beabsichtigte Empfaenger sind, informieren Sie bitte den Absender und loeschen Sie diese E-Mail sowie die Anhaenge. Das unbefugte Speichern, Kopieren oder Weiterleiten ist nicht gestattet. This e-mail and any attached documents are proprietary to MTU, confidential or protected by law. If you are not the intended recipient, please advise the sender and delete this message and its attachments. Any unauthorised storing, copying or distribution is prohibited. -------------- next part -------------- An HTML attachment was scrubbed... URL: From anton.piccardo-selg at stfc.ac.uk Mon Jun 15 09:46:17 2015 From: anton.piccardo-selg at stfc.ac.uk (anton.piccardo-selg at stfc.ac.uk) Date: Mon, 15 Jun 2015 13:46:17 +0000 Subject: [Paraview-developers] Is there a way to distinguish user interaction fom prgrammatic changes in PV's lookup table? Message-ID: <593AFCE559F11049B8F268BE84170A0DC5BCDC@EXCHMBX03.fed.cclrc.ac.uk> Hi, I am currently working on a customization of PV 4.3.1. Currently our users can alter the color scale by either interacting with PV's CustomEditorPanel or by using our custom widget. Our synchronization between the two consists of observers which listen to vtkCommand::ModifiedEvent of the the RGBPoints property of the representation's lookup table. As expected, this will pick up all user-induced changes, such as the user clicking the "Rescale to All" button in theColorMapEditor as well as programmatic changes. I was therefore wondering if there are signatures to distinguish if the lookup table was actively changed by the user or programmatically (eg are there other, distinct eventIds which might get emitted)? Many thanks and best regards, Anton From utkarsh.ayachit at kitware.com Mon Jun 15 11:24:29 2015 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Mon, 15 Jun 2015 15:24:29 +0000 Subject: [Paraview-developers] Is there a way to distinguish user interaction fom prgrammatic changes in PV's lookup table? In-Reply-To: <593AFCE559F11049B8F268BE84170A0DC5BCDC@EXCHMBX03.fed.cclrc.ac.uk> References: <593AFCE559F11049B8F268BE84170A0DC5BCDC@EXCHMBX03.fed.cclrc.ac.uk> Message-ID: Anton, Not really. I can't think of an easy way to distinguish the two. Utkarsh On Mon, Jun 15, 2015 at 9:57 AM wrote: > Hi, > > I am currently working on a customization of PV 4.3.1. Currently our > users can alter the color scale by either interacting with PV's > CustomEditorPanel or by using our custom widget. Our synchronization > between the two consists of observers which listen to > vtkCommand::ModifiedEvent of the the RGBPoints property of the > representation's lookup table. > > As expected, this will pick up all user-induced changes, such as the user > clicking the "Rescale to All" button in theColorMapEditor as well as > programmatic changes. I was therefore wondering if there are signatures to > distinguish if the lookup table was actively changed by the user or > programmatically (eg are there other, distinct eventIds which might get > emitted)? > > Many thanks and best regards, > > Anton > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Search the list archives at: > http://markmail.org/search/?q=Paraview-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview-developers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From anton.piccardo-selg at stfc.ac.uk Mon Jun 15 11:27:50 2015 From: anton.piccardo-selg at stfc.ac.uk (anton.piccardo-selg at stfc.ac.uk) Date: Mon, 15 Jun 2015 15:27:50 +0000 Subject: [Paraview-developers] Is there a way to distinguish user interaction fom prgrammatic changes in PV's lookup table? In-Reply-To: References: <593AFCE559F11049B8F268BE84170A0DC5BCDC@EXCHMBX03.fed.cclrc.ac.uk>, Message-ID: <593AFCE559F11049B8F268BE84170A0DC5BCF9@EXCHMBX03.fed.cclrc.ac.uk> Hi Utkarsh, Thanks for the info. I will try to find a way on our side of things then. Thanks again and best regards, Anton ________________________________ From: Utkarsh Ayachit [utkarsh.ayachit at kitware.com] Sent: 15 June 2015 16:24 To: Piccardo-Selg, Anton (-,RAL,ISIS); paraview-developers at paraview.org Subject: Re: [Paraview-developers] Is there a way to distinguish user interaction fom prgrammatic changes in PV's lookup table? Anton, Not really. I can't think of an easy way to distinguish the two. Utkarsh On Mon, Jun 15, 2015 at 9:57 AM > wrote: Hi, I am currently working on a customization of PV 4.3.1. Currently our users can alter the color scale by either interacting with PV's CustomEditorPanel or by using our custom widget. Our synchronization between the two consists of observers which listen to vtkCommand::ModifiedEvent of the the RGBPoints property of the representation's lookup table. As expected, this will pick up all user-induced changes, such as the user clicking the "Rescale to All" button in theColorMapEditor as well as programmatic changes. I was therefore wondering if there are signatures to distinguish if the lookup table was actively changed by the user or programmatically (eg are there other, distinct eventIds which might get emitted)? Many thanks and best regards, Anton _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Search the list archives at: http://markmail.org/search/?q=Paraview-developers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview-developers From anton.piccardo-selg at stfc.ac.uk Tue Jun 23 12:14:00 2015 From: anton.piccardo-selg at stfc.ac.uk (anton.piccardo-selg at stfc.ac.uk) Date: Tue, 23 Jun 2015 16:14:00 +0000 Subject: [Paraview-developers] "LabelRangeForX" not available in ParaView 4.3.1? Message-ID: <593AFCE559F11049B8F268BE84170A0DC5BFE1@EXCHMBX03.fed.cclrc.ac.uk> Hi, Our group migrated recently from PV 3.98.1 to PV 4.3.1. We found a migration issue relating to vtkFieldData which is produced by one of our plugins. The field data makes use of "LabelRangeForX" , "LabelRangeActiveFlag", "LinearTransformForX" , etc. We use these properties to set the range of the axes in our application. We have something like this: ... double boundingBox[6]; m_inputData->GetBounds(boundingBox); vtkFieldData *fieldData = m_outputData->GetFieldData(); ... vtkNew uLabelRange; uLabelRange->SetNumberOfComponents(2); uLabelRange->SetNumberOfTuples(1); uLabelRange->SetName("LabelRangeForX"); double labelRangeX[2] = {boundingBox[0], boundingBox[1]}; uLabelRange->SetTuple(0, labelRangeX); fieldData->AddArray(uLabelRange.GetPointer()); ... A grep showed that PV3.98.1 contains references to these properties (e.g. in vtkCubeAxesRepresentation.cxx) while PV4.3.1 does not seem to contain this any longer. What are the appropriate properties in PV4.3.1? Or is it not possible to apply this kind of mechanism in PV4.3.1? Many thanks and best regards, Anton From sebastien.pulverail at sogeti.com Wed Jun 24 04:32:22 2015 From: sebastien.pulverail at sogeti.com (PULVERAIL, Sebastien) Date: Wed, 24 Jun 2015 08:32:22 +0000 Subject: [Paraview-developers] Help to create a textsource proxy and to display it in C++ References: Message-ID: Hi Utkarsh, Do you have the answer to my question about the renderView variable ? Or anyone else has it ? Thank you for your help. S?bastien. De : PULVERAIL, Sebastien Envoy? : jeudi 11 juin 2015 10:21 ? : 'Utkarsh Ayachit'; paraview-developers at paraview.org Objet : RE: [Paraview-developers] Help to create a textsource proxy and to display it in C++ Hello, Thank you for your help. I have two questions about the piece of code you gave me : 1/ Where can I find the property helper to set for a given proxy? 2/ You are using a variable renderView. I assume that it matches to the current active render view. How can I get it? With something like pqActiveObjects::instance().activeView()?? Thank you in advance. S?bastien De : Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com] Envoy? : mercredi 10 juin 2015 19:47 ? : PULVERAIL, Sebastien; paraview-developers at paraview.org Objet : Re: [Paraview-developers] Help to create a textsource proxy and to display it in C++ Oops...use "TextSourceRepresentation" instead of "DataLabelRepresentation". Utkarsh On Wed, Jun 10, 2015 at 1:46 PM Utkarsh Ayachit > wrote: Something like following should do the trick: vtkSMProxy* labelRepresentation = sessionProxyManager->NewProxy("representations", "DataLabelRepresentation"); vtkSMPropertyHelper(labelRepresentation, "Input").Set(title); vtkSMPropertyHelper(labelRepresentation, "PointLabelMode").Set("IDs"); vtkSMPropertyHelper(labelRepresentation, "PointLabelVisibility").Set(1); labelRepresentation->UpdateVTKObjects(); vtkSMPropertyHelper(renderView, "Representations").Add(labelRepresentation); renderView->UpdateVTKObjects(); On Wed, Jun 10, 2015 at 12:11 PM PULVERAIL, Sebastien > wrote: Hello, I?m trying to display a label in my render scene programmatically speaking. Let?s assume that the label to display is my scene title. If I?m right, the first step is to create my source proxy : vtkSMProxyManager* proxyManager = vtkSMProxyManager::GetProxyManager(); vtkSMSessionProxyManager* sessionProxyManager = proxyManager->GetActiveSessionProxyManager(); vtkSmartPointer title; title.TakeReference(vtkSMSourceProxy::SafeDownCast(sessionProxyManager->NewProxy("sources", "TextSource"))); vtkSMPropertyHelper(title, "Text").Set("MyTitle"); Then I assume that I have to create a TextSourceRepresentation and to tell my application that there is a new representation to render. I don?t know how to do the last two steps. Can you please help me to make this work? Thank you in advance. S?bastien. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Search the list archives at: http://markmail.org/search/?q=Paraview-developers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview-developers This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. -------------- next part -------------- An HTML attachment was scrubbed... URL: From anton.piccardo-selg at stfc.ac.uk Wed Jun 24 05:50:35 2015 From: anton.piccardo-selg at stfc.ac.uk (anton.piccardo-selg at stfc.ac.uk) Date: Wed, 24 Jun 2015 09:50:35 +0000 Subject: [Paraview-developers] "LabelRangeForX" not available in ParaView 4.3.1? In-Reply-To: <593AFCE559F11049B8F268BE84170A0DC5BFE1@EXCHMBX03.fed.cclrc.ac.uk> References: <593AFCE559F11049B8F268BE84170A0DC5BFE1@EXCHMBX03.fed.cclrc.ac.uk> Message-ID: <593AFCE559F11049B8F268BE84170A0DC5C00E@EXCHMBX03.fed.cclrc.ac.uk> Hi, We figured it out. So, just for reference: We needed to create a Change-of-Basis-Matrix as well as a Bounding-Box-In-Basis and add that to the output data using the functions provided by vtkPVChangeOfBasisHelper. Thanks and best regards, Anton ________________________________ From: Piccardo-Selg, Anton (-,RAL,ISIS) Sent: 23 June 2015 17:14 To: paraview-developers at paraview.org Subject: "LabelRangeForX" not available in ParaView 4.3.1? Hi, Our group migrated recently from PV 3.98.1 to PV 4.3.1. We found a migration issue relating to vtkFieldData which is produced by one of our plugins. The field data makes use of "LabelRangeForX" , "LabelRangeActiveFlag", "LinearTransformForX" , etc. We use these properties to set the range of the axes in our application. We have something like this: ... double boundingBox[6]; m_inputData->GetBounds(boundingBox); vtkFieldData *fieldData = m_outputData->GetFieldData(); ... vtkNew uLabelRange; uLabelRange->SetNumberOfComponents(2); uLabelRange->SetNumberOfTuples(1); uLabelRange->SetName("LabelRangeForX"); double labelRangeX[2] = {boundingBox[0], boundingBox[1]}; uLabelRange->SetTuple(0, labelRangeX); fieldData->AddArray(uLabelRange.GetPointer()); ... A grep showed that PV3.98.1 contains references to these properties (e.g. in vtkCubeAxesRepresentation.cxx) while PV4.3.1 does not seem to contain this any longer. What are the appropriate properties in PV4.3.1? Or is it not possible to apply this kind of mechanism in PV4.3.1? Many thanks and best regards, Anton From utkarsh.ayachit at kitware.com Wed Jun 24 08:09:51 2015 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Wed, 24 Jun 2015 12:09:51 +0000 Subject: [Paraview-developers] Help to create a textsource proxy and to display it in C++ In-Reply-To: References: Message-ID: Sebastien, 1/ Where can I find the property helper to set for a given proxy? > > Include the header vtkSMPropertyHelper [1]. > > > 2/ You are using a variable renderView. I assume that it matches to the > current active render view. > > How can I get it? With something like > pqActiveObjects::instance().activeView()?? > That's right. vtkSMPropertyHelper works on vtkSMProxy, so you can do something as follows: vtkSMProxy* renderView = pqActiveObjects::instance().activeView()->getProxy(); Utkarsh [1] http://www.paraview.org/ParaView/Doc/Nightly/www/cxx-doc/classvtkSMPropertyHelper.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From biddisco at cscs.ch Thu Jun 25 05:58:49 2015 From: biddisco at cscs.ch (Biddiscombe, John A.) Date: Thu, 25 Jun 2015 09:58:49 +0000 Subject: [Paraview-developers] QtGUI in pvserver? Message-ID: <50320452A334BD42A5EC72BAD21450993C64671D@MBX110.d.ethz.ch> When compiling paraview this morning, my build failed with /scratch/daint/abkumar/build/pv4/lib/libvtkGUISupportQt-pv4.3.so.1: undefined reference to `QAbstractProxyModel::setItemData(QModelIndex const&, QMap const&)' /usr/bin/ld.x: link errors found, deleting executable `../bin/pvserver' and I had to manually link pvserver adding the extra lib /apps/daint/5.2.UP02/qt/4.8.3/linux-x86_64_gcc-4.9/lib/libQtGui.so.4.8.3 This seems odd to me, 1) that pvserver requires Qt (yes, I'm building the paraview GUI), and that 2) it is not linked automatically if it actually needs it. I couldn't find this listed as a bug, or any other people reporting it. Is it a known 'thing'? ta JB -- John Biddiscombe, email:biddisco @.at.@ cscs.ch http://www.cscs.ch/ CSCS, Swiss National Supercomputing Centre | Tel: +41 (91) 610.82.07 Via Trevano 131, 6900 Lugano, Switzerland | Fax: +41 (91) 610.82.82 -------------- next part -------------- An HTML attachment was scrubbed... URL: From timrunkel at gmx.net Thu Jun 25 11:58:34 2015 From: timrunkel at gmx.net (damuzo) Date: Thu, 25 Jun 2015 08:58:34 -0700 (PDT) Subject: [Paraview-developers] .vtu 3D format output Message-ID: <1435247914947-3850.post@n6.nabble.com> Hello guys, I am pretty new to paraview. My task seems realy simple, but I am near desperation now. I have written a fortran file to visualize a microstructure which is create and evolved in a FEM programme. It is a simple cube with a various number of cells. (I will attach my .vtu file below this message.) The generation of the geometry works fine, but I cannot see any variables in paraview. I try to use a voxel type Element. Does anybody know why this happens? Regards, Tim .vtu file below ___________________________________________________________________________ 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.10000000E+01 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.10000000E+01 0.00000000E+00 0.10000000E+01 0.10000000E+01 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.10000000E+01 0.10000000E+01 0.00000000E+00 0.10000000E+01 0.00000000E+00 0.10000000E+01 0.10000000E+01 0.10000000E+01 0.10000000E+01 0.10000000E+01 0 1 2 3 4 5 6 7 8 11 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 -- View this message in context: http://the-unofficial-paraview-developers-forum.34153.x6.nabble.com/vtu-3D-format-output-tp3850.html Sent from the The Unofficial ParaView Developers Forum mailing list archive at Nabble.com. From cgrow4 at gmail.com Thu Jun 25 14:00:13 2015 From: cgrow4 at gmail.com (Charles Grow) Date: Thu, 25 Jun 2015 11:00:13 -0700 (PDT) Subject: [Paraview-developers] Adding data to points Python Programmable filter Message-ID: <1435255213560-3851.post@n6.nabble.com> Hello, I am a bit new to ParaView, I'm working on developing a plugin using the programable filters as described here "http://www.kitware.com/blog/home/post/534". Is there anymore info/examples on this other then that post and the one wiki page? I cant seem to find how to add data to points or do anything with other data really. Any help is appreciated! -- View this message in context: http://the-unofficial-paraview-developers-forum.34153.x6.nabble.com/Adding-data-to-points-Python-Programmable-filter-tp3851.html Sent from the The Unofficial ParaView Developers Forum mailing list archive at Nabble.com. From dragon.prog at gmail.com Mon Jun 29 10:20:20 2015 From: dragon.prog at gmail.com (Laura Masse) Date: Mon, 29 Jun 2015 07:20:20 -0700 (PDT) Subject: [Paraview-developers] Volume calculation cloud points Message-ID: <1435587620865-3852.post@n6.nabble.com> Hi all, I have a doubt about distances and volumes with my 3d image and I hope anyone can help me. My 3d image is composed by about 8000 points, the shape is more or less like a half sphere, (see image below) I would like to calculate the volume, so If I apply the "Delaunay3D" and "integrated variables" Filters the volume I get is not correct. In the same way if I try to measure distances with the Source Ruler the distances I get are wrong. I think I'm doing something wrong but I don?t know what. Anyone knows some method to do this ? Advanced thanks -- View this message in context: http://the-unofficial-paraview-developers-forum.34153.x6.nabble.com/Volume-calculation-cloud-points-tp3852.html Sent from the The Unofficial ParaView Developers Forum mailing list archive at Nabble.com. From cory.quammen at kitware.com Mon Jun 29 23:05:39 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 29 Jun 2015 23:05:39 -0400 Subject: [Paraview-developers] Adding data to points Python Programmable filter In-Reply-To: <1435255213560-3851.post@n6.nabble.com> References: <1435255213560-3851.post@n6.nabble.com> Message-ID: Hi Charles, Are you trying to add a point data array? If so, you can add something like the following to your script: myArray = vtk.vtkFloatArray() myArray.SetName("MyDataArray") myArray.SetNumberOfComponents(1) myArray.SetNumberOfTuples(numPts) ... self.GetOutputDataObject(0).GetPointData().AddArray(myArray) Best, Cory On Thu, Jun 25, 2015 at 2:00 PM, Charles Grow wrote: > Hello, > I am a bit new to ParaView, I'm working on developing a plugin > using > the programable filters as described here > "http://www.kitware.com/blog/home/post/534". Is there anymore > info/examples > on this other then that post and the one wiki page? > I cant seem to find how to add data to points or do anything with > other data really. > > Any help is appreciated! > > > > -- > View this message in context: > http://the-unofficial-paraview-developers-forum.34153.x6.nabble.com/Adding-data-to-points-Python-Programmable-filter-tp3851.html > Sent from the The Unofficial ParaView Developers Forum mailing list > archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Search the list archives at: > http://markmail.org/search/?q=Paraview-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview-developers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Mon Jun 29 23:16:45 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 29 Jun 2015 23:16:45 -0400 Subject: [Paraview-developers] .vtu 3D format output In-Reply-To: <1435247914947-3850.post@n6.nabble.com> References: <1435247914947-3850.post@n6.nabble.com> Message-ID: Tim, In the file you provided, I changed to and to and was able to load the data arrays. Let us know if that didn't help. Thanks, Cory On Thu, Jun 25, 2015 at 11:58 AM, damuzo wrote: > Hello guys, > > I am pretty new to paraview. My task seems realy simple, but I am near > desperation now. > I have written a fortran file to visualize a microstructure which is create > and evolved in a FEM programme. > > It is a simple cube with a various number of cells. (I will attach my .vtu > file below this message.) The generation of the geometry works fine, but I > cannot see any variables in paraview. I try to use a voxel type Element. > > Does anybody know why this happens? > > Regards, > Tim > > .vtu file below > ___________________________________________________________________________ > > > > > > > format="ascii"> > 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.10000000E+01 > 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.10000000E+01 > 0.00000000E+00 0.10000000E+01 0.10000000E+01 0.00000000E+00 > 0.00000000E+00 0.00000000E+00 0.10000000E+01 0.10000000E+01 > 0.00000000E+00 0.10000000E+01 0.00000000E+00 0.10000000E+01 > 0.10000000E+01 0.10000000E+01 0.10000000E+01 0.10000000E+01 > > > format="ascii"> > 0 1 2 3 4 5 6 7 > > format="ascii"> > 8 > format="ascii"> > 11 > > > format="ascii"> > 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 > 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 > 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 > 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 > 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 > 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 > > > NumberOfComponents=" 6" format="ascii"> > 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 > 0.00000000E+00 0.00000000E+00 > NumberOfComponents=" 1" format="ascii"> > 0.00000000E+00 > NumberOfComponents=" 1" format="ascii"> > 0.00000000E+00 > NumberOfComponents=" 1" format="ascii"> > 0.00000000E+00 > NumberOfComponents=" 1" format="ascii"> > 0.00000000E+00 > > > > > > > > > > > > > > -- > View this message in context: > http://the-unofficial-paraview-developers-forum.34153.x6.nabble.com/vtu-3D-format-output-tp3850.html > Sent from the The Unofficial ParaView Developers Forum mailing list > archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Search the list archives at: > http://markmail.org/search/?q=Paraview-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview-developers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Mon Jun 29 23:19:04 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 29 Jun 2015 23:19:04 -0400 Subject: [Paraview-developers] QtGUI in pvserver? In-Reply-To: <50320452A334BD42A5EC72BAD21450993C64671D@MBX110.d.ethz.ch> References: <50320452A334BD42A5EC72BAD21450993C64671D@MBX110.d.ethz.ch> Message-ID: Hi John, Indeed the server should not be linked against any of the Qt libraries. I haven't heard others report this problem and the dashboards appear clean. Would you mind filing a bug report? Thanks, Cory On Thu, Jun 25, 2015 at 5:58 AM, Biddiscombe, John A. wrote: > When compiling paraview this morning, my build failed with > > > > /scratch/daint/abkumar/build/pv4/lib/libvtkGUISupportQt-pv4.3.so.1: > undefined reference to `QAbstractProxyModel::setItemData(QModelIndex > const&, QMap const&)' > > /usr/bin/ld.x: link errors found, deleting executable `../bin/pvserver' > > > > and I had to manually link pvserver adding the extra lib > > > > /apps/daint/5.2.UP02/qt/4.8.3/linux-x86_64_gcc-4.9/lib/libQtGui.so.4.8.3 > > > > This seems odd to me, 1) that pvserver requires Qt (yes, I?m building the > paraview GUI), and that 2) it is not linked automatically if it actually > needs it. > > > > I couldn?t find this listed as a bug, or any other people reporting it. Is > it a known ?thing?? > > > > ta > > > > JB > > > > -- > > John Biddiscombe, email:biddisco @.at.@ cscs.ch > > http://www.cscs.ch/ > > CSCS, Swiss National Supercomputing Centre | Tel: +41 (91) 610.82.07 > > Via Trevano 131, 6900 Lugano, Switzerland | Fax: +41 (91) 610.82.82 > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Search the list archives at: > http://markmail.org/search/?q=Paraview-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview-developers > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Mon Jun 29 23:19:39 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 29 Jun 2015 23:19:39 -0400 Subject: [Paraview-developers] "LabelRangeForX" not available in ParaView 4.3.1? In-Reply-To: <593AFCE559F11049B8F268BE84170A0DC5C00E@EXCHMBX03.fed.cclrc.ac.uk> References: <593AFCE559F11049B8F268BE84170A0DC5BFE1@EXCHMBX03.fed.cclrc.ac.uk> <593AFCE559F11049B8F268BE84170A0DC5C00E@EXCHMBX03.fed.cclrc.ac.uk> Message-ID: Anton, Thank you for letting us know the problem resolution. Best, Cory On Wed, Jun 24, 2015 at 5:50 AM, wrote: > Hi, > > We figured it out. So, just for reference: We needed to create a > Change-of-Basis-Matrix as well as a Bounding-Box-In-Basis and add that to > the output data using the functions provided by vtkPVChangeOfBasisHelper. > > Thanks and best regards, > > Anton > > ________________________________ > From: Piccardo-Selg, Anton (-,RAL,ISIS) > Sent: 23 June 2015 17:14 > To: paraview-developers at paraview.org > Subject: "LabelRangeForX" not available in ParaView 4.3.1? > > Hi, > > Our group migrated recently from PV 3.98.1 to PV 4.3.1. We found a > migration issue relating to vtkFieldData which is produced by one of our > plugins. > > The field data makes use of "LabelRangeForX" , "LabelRangeActiveFlag", > "LinearTransformForX" , etc. We use these properties to set the range of > the axes in our application. > > We have something like this: > ... > double boundingBox[6]; > m_inputData->GetBounds(boundingBox); > vtkFieldData *fieldData = m_outputData->GetFieldData(); > ... > vtkNew uLabelRange; > uLabelRange->SetNumberOfComponents(2); > uLabelRange->SetNumberOfTuples(1); > uLabelRange->SetName("LabelRangeForX"); > double labelRangeX[2] = {boundingBox[0], boundingBox[1]}; > uLabelRange->SetTuple(0, labelRangeX); > fieldData->AddArray(uLabelRange.GetPointer()); > ... > > > A grep showed that PV3.98.1 contains references to these properties (e.g. > in vtkCubeAxesRepresentation.cxx) while PV4.3.1 does not seem to contain > this any longer. > > What are the appropriate properties in PV4.3.1? Or is it not possible to > apply this kind of mechanism in PV4.3.1? > > Many thanks and best regards, > > Anton > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Search the list archives at: > http://markmail.org/search/?q=Paraview-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview-developers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Tue Jun 30 00:08:00 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 30 Jun 2015 00:08:00 -0400 Subject: [Paraview-developers] [Paraview] Fwd: How to plug into paraview his own writer ? In-Reply-To: <86347d91c723cd90b081325c08b678ec@imap.ipgp.fr> References: <86347d91c723cd90b081325c08b678ec@imap.ipgp.fr> Message-ID: Hi Franck, It looks like you've been making progress, so I'll answer your questions from your second email. > Question 1 : how to write myWriter.xml ? > > 1.1. seems I must set name="Input"> in myWriter.xml. Does this means I will also have to > implement myWriter::SetInputConnection ? > No. Your writer will inherit from subclass of vtkAlgorithm, the class that defines "SetInputConnection", and you should not need to override it. XdmfWriter inherits from vtkDataObjectAlgorithm, which itself inherits vtkAlgorithm. > > 1.2. seems I must set command="SetFileName"> in myWriter.xml. Does this means I will also have to > implement myWriter::SetFileName ? > Yes, like vtkXdmfWriter. > Question 2 : how to implement a vtk object ? From here > http://www.vtk.org/Wiki/VTK/Examples/Developers/vtkObject, it seems that > > 2.1. in myWriter.cpp, I need to have : > #include "vtkObjectFactory.h" // vtkStandardNewMacro > vtkStandardNewMacro ( myWriter ); // use vtkStandardNewMacro : 1 only > allowed constructor, omit the copy constructor and operator= > + suppress copy constructor and operator= > Yes. 2.2 in myWriter.hpp, I need to derive from a vtkObject this way (like > XdmfWriter.cpp does) : > class myWriter : public vtkDataObjectAlgorithm { > public: > static myWriter * New (); // Needed to be plugged into paraview > vtkTypeMacro ( myWriter, vtkDataObjectAlgorithm ); // Needed to be > plugged into paraview > + suppress copy constructor and operator= > > Am I correct ? > Yes. Question 3 : in myWriter.cpp, on which method I am supposed to be called > back (to get focus back) when I click the "save data" button ? Here, how > can I get data to be saved (data that I can see in paraview viewer before > to click the save button - I guess this data will be a vtk*). > In ParaView, when you choose, File -> Save Data, the data from the selected Pipeline Browser object will be saved. This will have some kind of data type, e.g., vtkImageData, vtkPolyData, etc. What kind of data type would you like your writer to support? The data should be available in the member function myWriter::RequestData(). This is where you should write your data. Finally, myWriter.xml seems OK. myWriter.*pp compile OK. Paraview finds > myWriter.xml at run time (exporting PV_PLUGIN_PATH) and loads > libmywriter.so without problem. I see the writer in the "save data" GUI > (drop down list with different save formats). I save with myWriter, I get a > (basic) GUI with file name only (no extra parameter) : I crash when I click > "OK, save" with this error message : > ERROR: In > /.../ParaView-v4.3.1-source/ParaViewCore/ServerImplementation/Core/vtkSIProxy.cxx, > line 307 > vtkSIWriterProxy (0x30143d0): Failed to create myWriter. Aborting for > debugging purposes. > > vtkSIWriterProxy does this at line 303 : > vtkObjectBase* obj = this->Interpreter->NewInstance(className); > but obj is NULL. > > I get obj is NULL because I missed something in myWriter implementation : > what did I miss ? > Are you running pvserver separately and connecting to it with the client? If so, make sure PV_PLUGIN_PATH is defined in the environment in which pvserver is run. Have you tried to load your plugin through the Tools -> Manage Plugins... dialog? I hope that helps get you further in writing your data files. Thanks, Cory > > Can somebody help ? Or even get me some clue ? > > FH > > -------- Message original -------- > Objet: How to plug into paraview his own writer ? > Date: 2015-06-12 15:54 > De: houssen > ?: > > > I followed 2 tutorials ( > http://www.itk.org/Wiki/ParaView/Plugin_HowTo#Writing_Plugins, > http://www.kitware.com/media/html/WritingAParaViewReaderPlug-in.html) but > I feel like I missed some steps : this is not working. > > I need to "catch" data (I can see in 2D/3D paraview viewer) to write them > into a specific file format. I am looking for the minimal (simplest) way to > do this : the only writer input is the file name, then I would like to > understand how to "get data from" paraview (from inside a vtk object I > guess ?), then I just will have to do the easy part which is to write data > to a specific format. > > My understanding is that, first I need a CMakeLists.txt like : > ~> more CMakeLists.txt > FIND_PACKAGE ( ParaView REQUIRED ) > INCLUDE ( ${PARAVIEW_USE_FILE} ) > ADD_PARAVIEW_PLUGIN ( myWriter "1.0" SERVER_MANAGER_XML myWriter.xml > SERVER_MANAGER_SOURCES myWriter.cpp ) > > In the same directory, I need a (minimal) myWriter.xml file that looks > like : > ~> more myWrite.xml > > > > > > number_of_elements="1"/> > > > > > > > > My understanding is that somehow the xml subscribes my for a specific > callback I am called back on the "save data" button is cliked in the GUI. > > Still, in this same directory, I have myWriter.cpp and myWriter.hpp : > how to implement them ? > 1. The myWriter class must define and implement a SetFileName method > because of the xml tag in myWriter.xml : right ? > wrong ? > This is the file name (including file path) one sets in the GUI : right > ? wrong ? > 2. myWriter is supposed to derive from another class : which one ? where > to find it ? > 3. How the myWriter implementation will "catch" data in paraview ? Which > method to override / re-implement ? > When I am called from paraview (triggered by the click on "save data" > button), I guess I am called on a specific method "myWriter::cbMethod ( > vtkXXX * pDataInParaviewViewer )" > What is this method ? > > Also, at this step, I export > PV_PLUGIN_PATH=/mnt/users/houssen/Documents/solve-rel/paraview. When I run > paraview and use the "save data" button I get this : > Generic Warning: In > /.../Programs/ParaView/ParaView-v4.3.1-source/ParaViewCore/ServerManager/Core/vtkSMWriterFactory.cxx, > line 135 > writers : myWriter has no input property. > ... But I have an tag in the xml : what's wrong ? > > Can somebody help me on this ? > > Franck > > Note : I run Ubuntu and paraview-4.3 > > _______________________________________________ > 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 > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From timrunkel at gmx.net Tue Jun 30 07:35:30 2015 From: timrunkel at gmx.net (damuzo) Date: Tue, 30 Jun 2015 04:35:30 -0700 (PDT) Subject: [Paraview-developers] .vtu 3D format output In-Reply-To: References: <1435247914947-3850.post@n6.nabble.com> Message-ID: <1435664130104-3858.post@n6.nabble.com> Thank you very much Cory, such an embarrassing mistake. Everything works out fine now. Problem solved. Thank you again for the quick response. Regards, Tim -- View this message in context: http://the-unofficial-paraview-developers-forum.34153.x6.nabble.com/vtu-3D-format-output-tp3850p3858.html Sent from the The Unofficial ParaView Developers Forum mailing list archive at Nabble.com. From utkarsh.ayachit at kitware.com Tue Jun 30 22:06:57 2015 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Wed, 01 Jul 2015 02:06:57 +0000 Subject: [Paraview-developers] Sending a vector from GUI to Server In-Reply-To: References: Message-ID: > Any pointer to how vtkSMProxy works I would like to understand this > better > > > That's a really complicated question :). I am planning to write blog posts that describe the design details if people would find it useful. Now to just find the time..:). I found this old doc that I wrote a long time ago for refactoring the server manager : http://www.paraview.org/ParaView/index.php/ServerManager_2.0 This may at least provide some introduction for now. Utkarsh -------------- next part -------------- An HTML attachment was scrubbed... URL: