From utkarsh.ayachit at kitware.com Fri Apr 1 10:50:26 2016 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Fri, 1 Apr 2016 10:50:26 -0400 Subject: [Paraview-developers] Changing minimum required CMake version to 3.5.1. Message-ID: Folks, I wanted to check if people have any major objections to changing the minimum required CMake version for future releases of ParaView to CMake 3.5.1. This will allow us to use newer CMake functionality as well as keep the cmake scripts cleaner and more maintainable. Note that this will only affect ParaView master builds and releases ParaView 5.1.0 onward with ParaView 5.0.1 and earlier releases remaining unaffected. Utkarsh From joachim.pouderoux at kitware.com Fri Apr 1 11:02:40 2016 From: joachim.pouderoux at kitware.com (Joachim Pouderoux) Date: Fri, 1 Apr 2016 17:02:40 +0200 Subject: [Paraview-developers] Changing minimum required CMake version to 3.5.1. In-Reply-To: References: Message-ID: Utkarsh, No objection but - I am curious - could you elaborate on the new features of CMake you are thinking about that allows to make "cmake scripts cleaner and more maintainable"? :) Thanks, Joachim *Joachim Pouderoux* *PhD, Technical Expert* *Kitware SAS * 2016-04-01 16:50 GMT+02:00 Utkarsh Ayachit : > Folks, > > I wanted to check if people have any major objections to changing the > minimum required CMake version for future releases of ParaView to > CMake 3.5.1. > > This will allow us to use newer CMake functionality as well as keep > the cmake scripts cleaner and more maintainable. Note that this will > only affect ParaView master builds and releases ParaView 5.1.0 onward > with ParaView 5.0.1 and earlier releases remaining unaffected. > > Utkarsh > _______________________________________________ > 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 Apr 1 11:42:55 2016 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Fri, 1 Apr 2016 11:42:55 -0400 Subject: [Paraview-developers] Changing minimum required CMake version to 3.5.1. In-Reply-To: References: Message-ID: > "cmake scripts cleaner and more maintainable"? A few examples: 1. we need to start using interface libraries to cleanup our module infrastructure. That depends on newer Cmake. Having code for older and newer versions of Cmake will make that cumbersome, if not impossible. 2. FindQt4 was updated in 3.2 and provides a more consistent interface with FindQt5. 3. Kits -- the nice to avoid shared library bloat by combing modules into kits -- requires newer CMake version. I want to enable that by default in ParaView, but can't until we assume a never version. I am sure there are others that Ben and others can elaborate on. From dave.demarle at kitware.com Fri Apr 1 12:00:06 2016 From: dave.demarle at kitware.com (David E DeMarle) Date: Fri, 1 Apr 2016 12:00:06 -0400 Subject: [Paraview-developers] Changing minimum required CMake version to 3.5.1. In-Reply-To: References: Message-ID: The platform module for IBM BGQ appeared in 3.something and Cray integration is drastically improved recently. Those will streamline the HPC parts of the ParaViewSuperbuild project. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Fri, Apr 1, 2016 at 11:42 AM, Utkarsh Ayachit < utkarsh.ayachit at kitware.com> wrote: > > "cmake scripts cleaner and more maintainable"? > > A few examples: > 1. we need to start using interface libraries to cleanup our module > infrastructure. That depends on newer Cmake. Having code for older and > newer versions of Cmake will make that cumbersome, if not impossible. > 2. FindQt4 was updated in 3.2 and provides a more consistent interface > with FindQt5. > 3. Kits -- the nice to avoid shared library bloat by combing modules > into kits -- requires newer CMake version. I want to enable that by > default in ParaView, but can't until we assume a never version. > > I am sure there are others that Ben and others can elaborate on. > _______________________________________________ > 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 m.schlottke-lakemper at aia.rwth-aachen.de Sat Apr 2 00:28:17 2016 From: m.schlottke-lakemper at aia.rwth-aachen.de (Schlottke-Lakemper, Michael) Date: Sat, 2 Apr 2016 04:28:17 +0000 Subject: [Paraview-developers] "Unable to build k-d tree structure" error with D3 filter and PV 4.4.0 on large datasets In-Reply-To: References: <5178E5D9-D3BB-471B-AAA1-5D22B458906F@aia.rwth-aachen.de> Message-ID: Hi Joachim, Thanks a lot, this looks like a very interesting alternative indeed! This option triggers a few more questions for me (I hope that?s ok): - The docs indicate that the filter might perform faster if global point ids are available. Can you give a ballpark estimate about how much of a speedup we?re talking here? - How can I make global point ids available that are suitable for this filter? Please note that we are using a custom reader plugin. - Is it possible to generate more than one ghost layer and if yes, is this handled transparently or do I need to configure this somewhere? - Is it possible/feasible/sensible to call this filter directly from within our custom reader plugin, such that users do not need to apply the filter manually each time? - And finally: up to how many ranks does this filter scale (or at least has been tested and found to behave satisfactorily) - could you give me a rough estimate? Sorry for the many questions - please let me know if you would rather have me send them in separate mails. At the moment we roll our own code for ghost cell generation, but the current implementation does not scale at all (we are ok for ~10 ranks but need to support 100-1000?) and I am looking forward to ditching it completely in favor of the filter developed by you. Regards, Michael > On 25 Mar 2016, at 05:36 , Joachim Pouderoux wrote: > > Michael, > > If you just intend to compute ghost cells on your unstructured grid, I would recommend you to use the new "Generate Ghost Cells" filter available in ParaView 5.0. It requires less memory than D3 and will perform faster if you don't require data redistribution. > Having it as a plugin on PV 4.4 should be straightforward as this is a single class (vtkPUnstructuredGridGhostCellsGenerator) you will have to pick in VTK 7.0. > > Best, > Joachim From utkarsh.ayachit at kitware.com Mon Apr 4 11:21:33 2016 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Mon, 4 Apr 2016 11:21:33 -0400 Subject: [Paraview-developers] CMake 3.5.1 on dashboard machines you maintain Message-ID: Folks, As ParaView is switching over to CMake 3.5.1, can you guys please update these dashboard machines you maintain to have a CMake 3.5.1 installed and then email me it's location so I can update the buildbot scripts? Dashboards that need to updated are: amber8 (Utkarsh) bigmac (Marcus) dejagore (Rob) megas (Ben) nemesis (?) (Ben) Dashboards already updated: blight miranda taanab trey Thanks Utkarsh From ben.boeckel at kitware.com Mon Apr 4 13:10:29 2016 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Mon, 4 Apr 2016 13:10:29 -0400 Subject: [Paraview-developers] CMake 3.5.1 on dashboard machines you maintain In-Reply-To: References: Message-ID: <20160404171029.GA6135@megas.khq.kitware.com> On Mon, Apr 04, 2016 at 11:21:33 -0400, Utkarsh Ayachit wrote: > megas (Ben) Installed. path is: /home/kitware/misc/root/cmake-3.5.1 > nemesis (?) (Ben) Sysadmin should get a chance to look at it this week. --Ben From marcus.hanwell at kitware.com Mon Apr 4 15:55:41 2016 From: marcus.hanwell at kitware.com (Marcus D. Hanwell) Date: Mon, 4 Apr 2016 15:55:41 -0400 Subject: [Paraview-developers] CMake 3.5.1 on dashboard machines you maintain In-Reply-To: References: Message-ID: Updated on bigmac - /usr/local/bin/cmake On Mon, Apr 4, 2016 at 11:21 AM, Utkarsh Ayachit wrote: > Folks, > > As ParaView is switching over to CMake 3.5.1, can you guys please > update these dashboard machines you maintain to have a CMake 3.5.1 > installed and then email me it's location so I can update the buildbot > scripts? > > Dashboards that need to updated are: > amber8 (Utkarsh) > bigmac (Marcus) > dejagore (Rob) > megas (Ben) > nemesis (?) (Ben) > > Dashboards already updated: > blight > miranda > taanab > trey > > Thanks > Utkarsh From utkarsh.ayachit at kitware.com Mon Apr 4 16:58:36 2016 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Mon, 4 Apr 2016 16:58:36 -0400 Subject: [Paraview-developers] CMake 3.5.1 on dashboard machines you maintain In-Reply-To: References: Message-ID: Thanks, guys. Since Rob is travelling, if anyone has access to dejagore, it'd be great if they can update the CMake , otherwise it can wait till Rob gets back. Thanks Utkarsh On Mon, Apr 4, 2016 at 3:55 PM, Marcus D. Hanwell wrote: > Updated on bigmac - /usr/local/bin/cmake > > On Mon, Apr 4, 2016 at 11:21 AM, Utkarsh Ayachit > wrote: >> Folks, >> >> As ParaView is switching over to CMake 3.5.1, can you guys please >> update these dashboard machines you maintain to have a CMake 3.5.1 >> installed and then email me it's location so I can update the buildbot >> scripts? >> >> Dashboards that need to updated are: >> amber8 (Utkarsh) >> bigmac (Marcus) >> dejagore (Rob) >> megas (Ben) >> nemesis (?) (Ben) >> >> Dashboards already updated: >> blight >> miranda >> taanab >> trey >> >> Thanks >> Utkarsh From sur.chiranjib at gmail.com Tue Apr 5 08:51:26 2016 From: sur.chiranjib at gmail.com (Chiranjib Sur) Date: Tue, 5 Apr 2016 18:21:26 +0530 Subject: [Paraview-developers] build vtk based application using paraview superbuild Message-ID: Hi, I am trying to build a stand alone VTK based application linking with ParaView superbuild. I ran the cmake command to create the Makefile linking with PV super build (-DParaView_DIR=/superbuild/install/location) However, I get the following warning and I could not use the libraries from PV CMake Warning: Manually -specified variables were not used by the project: ParaView_DIR Any pointer on how I should modify my CMakeLists.txt for this purpose? Thanks in advance, Chiranjib -------------- next part -------------- An HTML attachment was scrubbed... URL: From robert.maynard at kitware.com Tue Apr 5 10:18:18 2016 From: robert.maynard at kitware.com (Robert Maynard) Date: Tue, 5 Apr 2016 10:18:18 -0400 Subject: [Paraview-developers] CMake 3.5.1 on dashboard machines you maintain In-Reply-To: References: Message-ID: Dejagore system cmake has been updated to 3.5.1 On Mon, Apr 4, 2016 at 4:58 PM, Utkarsh Ayachit wrote: > Thanks, guys. Since Rob is travelling, if anyone has access to > dejagore, it'd be great if they can update the CMake , otherwise it > can wait till Rob gets back. > > Thanks > Utkarsh > > On Mon, Apr 4, 2016 at 3:55 PM, Marcus D. Hanwell > wrote: > > Updated on bigmac - /usr/local/bin/cmake > > > > On Mon, Apr 4, 2016 at 11:21 AM, Utkarsh Ayachit > > wrote: > >> Folks, > >> > >> As ParaView is switching over to CMake 3.5.1, can you guys please > >> update these dashboard machines you maintain to have a CMake 3.5.1 > >> installed and then email me it's location so I can update the buildbot > >> scripts? > >> > >> Dashboards that need to updated are: > >> amber8 (Utkarsh) > >> bigmac (Marcus) > >> dejagore (Rob) > >> megas (Ben) > >> nemesis (?) (Ben) > >> > >> Dashboards already updated: > >> blight > >> miranda > >> taanab > >> trey > >> > >> Thanks > >> Utkarsh > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kmorel at sandia.gov Tue Apr 5 10:36:55 2016 From: kmorel at sandia.gov (Moreland, Kenneth) Date: Tue, 5 Apr 2016 14:36:55 +0000 Subject: [Paraview-developers] build vtk based application using paraview superbuild Message-ID: <25F51218-66DC-425A-B1F6-B6187D67A98C@sandia.gov> Does the CMakeLists.txt of your VTK-based application have a command like find_package(ParaView)? If not, then the ParaView_DIR variable probably has no meaning. Do you have a command like find_package(VTK)? If so, you probably want to set VTK_DIR instead of ParaView_DIR. -Ken From: Paraview-developers on behalf of Chiranjib Sur Date: Tuesday, April 5, 2016 at 6:51 AM To: Paraview Developer Mailing list Subject: [EXTERNAL] [Paraview-developers] build vtk based application using paraview superbuild Hi, I am trying to build a stand alone VTK based application linking with ParaView superbuild. I ran the cmake command to create the Makefile linking with PV super build (-DParaView_DIR=/superbuild/install/location) However, I get the following warning and I could not use the libraries from PV CMake Warning: Manually -specified variables were not used by the project: ParaView_DIR Any pointer on how I should modify my CMakeLists.txt for this purpose? Thanks in advance, Chiranjib -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Tue Apr 5 10:46:27 2016 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Tue, 5 Apr 2016 10:46:27 -0400 Subject: [Paraview-developers] CMake 3.5.1 on dashboard machines you maintain In-Reply-To: References: Message-ID: Thanks, Rob. On Tue, Apr 5, 2016 at 10:18 AM, Robert Maynard wrote: > Dejagore system cmake has been updated to 3.5.1 > > On Mon, Apr 4, 2016 at 4:58 PM, Utkarsh Ayachit > wrote: >> >> Thanks, guys. Since Rob is travelling, if anyone has access to >> dejagore, it'd be great if they can update the CMake , otherwise it >> can wait till Rob gets back. >> >> Thanks >> Utkarsh >> >> On Mon, Apr 4, 2016 at 3:55 PM, Marcus D. Hanwell >> wrote: >> > Updated on bigmac - /usr/local/bin/cmake >> > >> > On Mon, Apr 4, 2016 at 11:21 AM, Utkarsh Ayachit >> > wrote: >> >> Folks, >> >> >> >> As ParaView is switching over to CMake 3.5.1, can you guys please >> >> update these dashboard machines you maintain to have a CMake 3.5.1 >> >> installed and then email me it's location so I can update the buildbot >> >> scripts? >> >> >> >> Dashboards that need to updated are: >> >> amber8 (Utkarsh) >> >> bigmac (Marcus) >> >> dejagore (Rob) >> >> megas (Ben) >> >> nemesis (?) (Ben) >> >> >> >> Dashboards already updated: >> >> blight >> >> miranda >> >> taanab >> >> trey >> >> >> >> Thanks >> >> Utkarsh > > From houssen at ipgp.fr Tue Apr 5 11:06:02 2016 From: houssen at ipgp.fr (houssen) Date: Tue, 05 Apr 2016 17:06:02 +0200 Subject: [Paraview-developers] =?utf-8?q?How_to_activate_=28selectively_if?= =?utf-8?q?_possible_=3F=29_debug_traces_when_using_ParaView_=3F?= Message-ID: How to activate (selectively if possible ?) debug traces when using ParaView ? I am in the process of creating new couples of HDF5 / XDMF files : for now, it is bugged, so the XDMF reader crashes when I open it in ParaView. I need to "see" why ParaView crashes : that is, I need to understand "where and/or why" my HDF5 / XDMF are bugged (and trigger later on a crash in ParaView). Ideally, I would need to activate only debug traces for xdmf reader. First, I tried to find (Google search) if a variabe like PARAVIEW_DEBUG could be set before running ParaView but it seems no such variable exists (this->DebugOn() only helps if you have a problem in one of your own filter - this is not the case here). Then, I looked in the GUI (menu, options, settings) but I didn't find any way to turn on traces. I also tried to get info from gdb but I get a low level of informations (stack and some relevant infos but no messages on problems before crashing) as my ParaView is built from source in RelWithDebInfo mode (I'd like to avoid to recompile in debug : it would take hours...). I looked around ParaView-v5.0.0-source/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfObject.h and ParaView-v5.0.0-source/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfObject.cxx (XdmfObject::GetGlobalDebug) but it doesn't help really at first glance : GetGlobalDebug is not implemented like I would have imagined (thats is in a getenv("PARAVIEW_DEBUG")-like way). More generally, is it possible to activate debug / warning / info traces according to "what I would like to do" ? (for instance, activating only shrink filter traces but not xdmf reader traces, or the opposite ?) This would help understanding / locating problems when they occur. It would be a convenient feature. FH From utkarsh.ayachit at kitware.com Tue Apr 5 19:48:00 2016 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Tue, 5 Apr 2016 19:48:00 -0400 Subject: [Paraview-developers] How to activate (selectively if possible ?) debug traces when using ParaView ? In-Reply-To: References: Message-ID: In practise, I have never found the debug message printed by setting SetDebug(1) on any vtkObject useful. Instead, I'd suggest just using a debugger, even if that means rebuilding as "Debug". Especially if it's a segfault, the call stack for the segfault is generally useful in spotting the issue. You can also try passing "--enable-bt" as a command line argument to dump out the call stack on segfault to the output terminal. On Tue, Apr 5, 2016 at 11:06 AM, houssen wrote: > How to activate (selectively if possible ?) debug traces when using ParaView > ? > > I am in the process of creating new couples of HDF5 / XDMF files : for now, > it is bugged, so the XDMF reader crashes when I open it in ParaView. I need > to "see" why ParaView crashes : that is, I need to understand "where and/or > why" my HDF5 / XDMF are bugged (and trigger later on a crash in ParaView). > Ideally, I would need to activate only debug traces for xdmf reader. > > First, I tried to find (Google search) if a variabe like PARAVIEW_DEBUG > could be set before running ParaView but it seems no such variable exists > (this->DebugOn() only helps if you have a problem in one of your own filter > - this is not the case here). Then, I looked in the GUI (menu, options, > settings) but I didn't find any way to turn on traces. I also tried to get > info from gdb but I get a low level of informations (stack and some relevant > infos but no messages on problems before crashing) as my ParaView is built > from source in RelWithDebInfo mode (I'd like to avoid to recompile in debug > : it would take hours...). I looked around > ParaView-v5.0.0-source/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfObject.h and > ParaView-v5.0.0-source/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfObject.cxx > (XdmfObject::GetGlobalDebug) but it doesn't help really at first glance : > GetGlobalDebug is not implemented like I would have imagined (thats is in a > getenv("PARAVIEW_DEBUG")-like way). > > More generally, is it possible to activate debug / warning / info traces > according to "what I would like to do" ? (for instance, activating only > shrink filter traces but not xdmf reader traces, or the opposite ?) This > would help understanding / locating problems when they occur. It would be a > convenient feature. > > FH > > _______________________________________________ > 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 houssen at ipgp.fr Wed Apr 6 03:18:08 2016 From: houssen at ipgp.fr (houssen) Date: Wed, 06 Apr 2016 09:18:08 +0200 Subject: [Paraview-developers] =?utf-8?q?How_to_activate_=28selectively_if?= =?utf-8?q?_possible_=3F=29_debug_traces_when_using_ParaView_=3F?= In-Reply-To: References: Message-ID: OK, I'll do that ! Thanks, Franck Le 2016-04-06 1:48, Utkarsh Ayachit a ?crit?: > In practise, I have never found the debug message printed by setting > SetDebug(1) on any vtkObject useful. > > Instead, I'd suggest just using a debugger, even if that means > rebuilding as "Debug". Especially if it's a segfault, the call stack > for the segfault is generally useful in spotting the issue. You can > also try passing "--enable-bt" as a command line argument to dump out > the call stack on segfault to the output terminal. > > On Tue, Apr 5, 2016 at 11:06 AM, houssen wrote: >> How to activate (selectively if possible ?) debug traces when using >> ParaView >> ? >> >> I am in the process of creating new couples of HDF5 / XDMF files : >> for now, >> it is bugged, so the XDMF reader crashes when I open it in ParaView. >> I need >> to "see" why ParaView crashes : that is, I need to understand "where >> and/or >> why" my HDF5 / XDMF are bugged (and trigger later on a crash in >> ParaView). >> Ideally, I would need to activate only debug traces for xdmf reader. >> >> First, I tried to find (Google search) if a variabe like >> PARAVIEW_DEBUG >> could be set before running ParaView but it seems no such variable >> exists >> (this->DebugOn() only helps if you have a problem in one of your own >> filter >> - this is not the case here). Then, I looked in the GUI (menu, >> options, >> settings) but I didn't find any way to turn on traces. I also tried >> to get >> info from gdb but I get a low level of informations (stack and some >> relevant >> infos but no messages on problems before crashing) as my ParaView is >> built >> from source in RelWithDebInfo mode (I'd like to avoid to recompile >> in debug >> : it would take hours...). I looked around >> >> ParaView-v5.0.0-source/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfObject.h >> and >> >> ParaView-v5.0.0-source/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfObject.cxx >> (XdmfObject::GetGlobalDebug) but it doesn't help really at first >> glance : >> GetGlobalDebug is not implemented like I would have imagined (thats >> is in a >> getenv("PARAVIEW_DEBUG")-like way). >> >> More generally, is it possible to activate debug / warning / info >> traces >> according to "what I would like to do" ? (for instance, activating >> only >> shrink filter traces but not xdmf reader traces, or the opposite ?) >> This >> would help understanding / locating problems when they occur. It >> would be a >> convenient feature. >> >> FH >> >> _______________________________________________ >> 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 sur.chiranjib at gmail.com Wed Apr 6 03:34:30 2016 From: sur.chiranjib at gmail.com (Chiranjib Sur) Date: Wed, 6 Apr 2016 13:04:30 +0530 Subject: [Paraview-developers] build vtk based application using paraview superbuild In-Reply-To: <25F51218-66DC-425A-B1F6-B6187D67A98C@sandia.gov> References: <25F51218-66DC-425A-B1F6-B6187D67A98C@sandia.gov> Message-ID: Hi Ken, Thanks for your message. I think my error was I was trying to include find_package(ParaView) and find_package(VTK) together. Once I cleaned up and just kept the include_package(Paraview), the error disappears. Finally I use the following lines find_package(ParaView ) include(${PARAVIEW_USE_FILE}) .... target_link_libraries(MyExecutable ${PARAVIEW_LIBRARIES} ${VTK_LIBRARIES} ) Thinks works perfect and my application find the required VTK packages which comes with the PV superbuild. Thanks, Chiranjib On Tue, Apr 5, 2016 at 8:06 PM, Moreland, Kenneth wrote: > Does the CMakeLists.txt of your VTK-based application have a command like > find_package(ParaView)? If not, then the ParaView_DIR variable probably > has no meaning. > > > > Do you have a command like find_package(VTK)? If so, you probably want to > set VTK_DIR instead of ParaView_DIR. > > > > -Ken > > > > > > *From: *Paraview-developers on > behalf of Chiranjib Sur > *Date: *Tuesday, April 5, 2016 at 6:51 AM > *To: *Paraview Developer Mailing list > *Subject: *[EXTERNAL] [Paraview-developers] build vtk based application > using paraview superbuild > > > > Hi, > > I am trying to build a stand alone VTK based application linking with > ParaView superbuild. > > > > I ran the cmake command to create the Makefile linking with PV super build > > (-DParaView_DIR=/superbuild/install/location) > > > > However, I get the following warning and I could not use the libraries > from PV > > > > CMake Warning: > > Manually -specified variables were not used by the project: > > > > ParaView_DIR > > > > > > Any pointer on how I should modify my CMakeLists.txt for this purpose? > > > > Thanks in advance, > > Chiranjib > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sur.chiranjib at gmail.com Wed Apr 6 03:40:06 2016 From: sur.chiranjib at gmail.com (Chiranjib Sur) Date: Wed, 6 Apr 2016 13:10:06 +0530 Subject: [Paraview-developers] accessing/reading paraview state file (.pvsm) in C++ Message-ID: Hi, Using C++, I am trying to read a paraview statefile (.pvsm) and then I want to scan all the objects the pipeline. I found some python tutorials here: http://www.cscs.ch/fileadmin/user_upload/customers/users_entry_point/HORUS_Doc/PvPython.pdf http://www.paraview.org/Wiki/ParaView/Python/Loading_and_saving_state Is there any C++ equivalent to the python "servermanager" and "LoadState" used in the example? Once I can read the .pvsm file, I can use the pqServerManagerModel to access all the individual objects. Can anyone give me some clue? Thanks, Chiranjib -------------- next part -------------- An HTML attachment was scrubbed... URL: From sur.chiranjib at gmail.com Wed Apr 6 10:58:23 2016 From: sur.chiranjib at gmail.com (Chiranjib Sur) Date: Wed, 6 Apr 2016 20:28:23 +0530 Subject: [Paraview-developers] determine points on the surface of a polydata Message-ID: Hi All, I am wondering if there is any method to determine whether a given point is on the surface of a polydata? The following example : http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PointInsideObject shows how to determine whether a point is inside or outside of a polydata surface. What I am looking for is a method to determine if the point in just on the surface? I have posted this to the VTk developer mailing list and posting here with a hope that somebody might look at this thread. Thanks much for your time and suggestions. Chiranjib -------------- next part -------------- An HTML attachment was scrubbed... URL: From kmorel at sandia.gov Wed Apr 6 11:10:28 2016 From: kmorel at sandia.gov (Moreland, Kenneth) Date: Wed, 6 Apr 2016 15:10:28 +0000 Subject: [Paraview-developers] determine points on the surface of a polydata Message-ID: <7C04E3EF-1B5D-445D-8767-A1FB53F39E8D@sandia.gov> Chiranjib, You can use either the Probe Location or the Resample With Dataset filter to find out if one or more points are in the space of a data set (including a surface). Both these filters use the same VTK filter under the covers. They just define the probing points differently. That will tell you if a point is on the surface (but not inside or outside). These filters have an output array named vtkValidPointMask that is set to 1 for points in the cells and 0 for points outside the cells. Be aware though that you might run into problems with determining whether a point is exactly in a polygon. I?m not sure how the tolerance works in these filters. -Ken From: Paraview-developers on behalf of Chiranjib Sur Date: Wednesday, April 6, 2016 at 8:58 AM To: Paraview Developer Mailing list Subject: [EXTERNAL] [Paraview-developers] determine points on the surface of a polydata Hi All, I am wondering if there is any method to determine whether a given point is on the surface of a polydata? The following example : http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PointInsideObject shows how to determine whether a point is inside or outside of a polydata surface. What I am looking for is a method to determine if the point in just on the surface? I have posted this to the VTk developer mailing list and posting here with a hope that somebody might look at this thread. Thanks much for your time and suggestions. Chiranjib -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.schlottke-lakemper at aia.rwth-aachen.de Mon Apr 11 05:20:21 2016 From: m.schlottke-lakemper at aia.rwth-aachen.de (Schlottke-Lakemper, Michael) Date: Mon, 11 Apr 2016 09:20:21 +0000 Subject: [Paraview-developers] Using vtkPUnstructuredGridGhostCellsGenerator Message-ID: <75BCEF7B-2537-4349-8ECE-A5BCC467F3F3@aia.rwth-aachen.de> Hi folks, I have a few questions about the new ghost cell generator filter (vtkPUnstructuredGridGhostCellsGenerator) that I already asked in a different context. Since I haven?t really resolved any of the issues yet, I took the liberty to post the questions here again: - The docs indicate that the filter might perform faster if global point ids are available. Does anyone have an estimate about how much faster we are talking here? - How can I make global point ids available that are suitable for this filter? - Is it possible/feasible/sensible to call this filter directly from within our custom reader plugin, such that users do not need to apply the filter manually each time? Performance is critical in our case. We use a custom reader plugin to build our unstructured VTK grids using voxels. However, when using ~600 cores to visualize a 1 billion-cell grid, the ?Generate Ghost Cells? plugin ran for >15 minutes without results, after which we aborted since it is just not feasible anymore. Therefore I am very much interested in the expected performance impact of using global point ids. Thanks a lot in advance Michael -- Michael Schlottke-Lakemper Chair of Fluid Mechanics and Institute of Aerodynamics RWTH Aachen University W?llnerstra?e 5a 52062 Aachen Germany Phone: +49 (241) 80 95188 Fax: +49 (241) 80 92257 Mail: m.schlottke-lakemper at aia.rwth-aachen.de Web: http://www.aia.rwth-aachen.de -------------- next part -------------- An HTML attachment was scrubbed... URL: From joachim.pouderoux at kitware.com Mon Apr 11 05:41:07 2016 From: joachim.pouderoux at kitware.com (Joachim Pouderoux) Date: Mon, 11 Apr 2016 11:41:07 +0200 Subject: [Paraview-developers] Using vtkPUnstructuredGridGhostCellsGenerator In-Reply-To: <75BCEF7B-2537-4349-8ECE-A5BCC467F3F3@aia.rwth-aachen.de> References: <75BCEF7B-2537-4349-8ECE-A5BCC467F3F3@aia.rwth-aachen.de> Message-ID: Hi Michael, Sorry for the delay to answer your last questions. Here are my answers: *- The docs indicate that the filter might perform faster if global point > ids are available. Does anyone have an estimate about how much faster we > are talking here?* > I don't have any number to provide here but basically providing a global point ids array avoid the algorithms to transfer point coordinates - it transfers point ids between mpi ranks and thus reduce the number of values by 3. Also, without global ids, the algorithm needs to check if a neighbor point exists on the current rank - to do that we have to create a point locator and search for points. That said, making a benchmark would be quite simple as the existing VTK test (TestPUnstructuredGridGhostCellsGenerator.cxx) exercises the algorithm with a tetrahedralized wavelet (default size of 50 can be changed to scale the test) with and without the use of the precomputer global point ids. We would be interested to know the result of this benchmark if you had to opportunity to run it on a big cluster. > * - How can I make global point ids available that are suitable for this > filter?* > D3 does that but it does lot more than that of course. So no, there is no (other) filter to compute them. In general this information is only available from the data source - see the code of the test mentionned earlier: we redefine the wavelet source to add this information as, the data being structured, it can be directly computed from the i-j-k coordinates). *- Is it possible/feasible/sensible to call this filter directly from > within our custom reader plugin, such that users do not need to apply the > filter manually each time?* > Yes sure. I would recommand to do that - call the filter at the end of your reader and let your reader produce the output of the filter. Best, Joachim *Joachim Pouderoux* *PhD, Technical Expert* *Kitware SAS * 2016-04-11 11:20 GMT+02:00 Schlottke-Lakemper, Michael < m.schlottke-lakemper at aia.rwth-aachen.de>: > Hi folks, > > I have a few questions about the new ghost cell generator filter > (vtkPUnstructuredGridGhostCellsGenerator) that I already asked in a > different context. Since I haven?t really resolved any of the issues yet, I > took the liberty to post the questions here again: > > - The docs indicate that the filter might perform faster if global point > ids are available. Does anyone have an estimate about how much faster we > are talking here? > - How can I make global point ids available that are suitable for this > filter? > - Is it possible/feasible/sensible to call this filter directly from > within our custom reader plugin, such that users do not need to apply the > filter manually each time? > > Performance is critical in our case. We use a custom reader plugin to > build our unstructured VTK grids using voxels. However, when using ~600 > cores to visualize a 1 billion-cell grid, the ?Generate Ghost Cells? plugin > ran for >15 minutes without results, after which we aborted since it is > just not feasible anymore. Therefore I am very much interested in the > expected performance impact of using global point ids. > > Thanks a lot in advance > > Michael > > > -- > Michael Schlottke-Lakemper > > Chair of Fluid Mechanics and Institute of Aerodynamics > RWTH Aachen University > W?llnerstra?e 5a > 52062 Aachen > Germany > > Phone: +49 (241) 80 95188 > Fax: +49 (241) 80 92257 > Mail: m.schlottke-lakemper at aia.rwth-aachen.de > Web: http://www.aia.rwth-aachen.de > > > _______________________________________________ > 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 m.schlottke-lakemper at aia.rwth-aachen.de Tue Apr 12 03:42:24 2016 From: m.schlottke-lakemper at aia.rwth-aachen.de (Schlottke-Lakemper, Michael) Date: Tue, 12 Apr 2016 07:42:24 +0000 Subject: [Paraview-developers] Using vtkPUnstructuredGridGhostCellsGenerator In-Reply-To: References: <75BCEF7B-2537-4349-8ECE-A5BCC467F3F3@aia.rwth-aachen.de> Message-ID: Hi Joachim, Thanks a lot for your answers. I looked at the test you mentioned and found the location where the GlobalNodeIds are generated (https://gitlab.kitware.com/vtk/vtk/blob/master/Filters/ParallelGeometry/Testing/Cxx/TestPUnstructuredGridGhostCellsGenerator.cxx#L64-80), which cleared things up a little. A few questions remain: - Am I correct in assuming that vtkIdType (used for the GlobalNodeIds array) is a long int on 64-bit systems? - Do the GlobalNodeIds have to be consecutive or is it sufficient for them to be unique? We would be interested to know the result of this benchmark if you had to opportunity to run it on a big cluster. I will see if I can make this happen. Is there an easy way for me to execute this test manually while being connected to a pvserver instance running in parallel? - Is it possible/feasible/sensible to call this filter directly from within our custom reader plugin, such that users do not need to apply the filter manually each time? Yes sure. I would recommand to do that - call the filter at the end of your reader and let your reader produce the output of the filter. Sorry for asking, but you wouldn?t know from the top of your head an example of reader that does that already (or uses another filter internally to postprocess its ouput), would you? I have done some ParaView hacking but most of my knowledge is ?look, that?s how someone else did it?-based and I haven?t found a suitable example that I can use :-/ Thanks a lot in advance! Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: From jfavre at cscs.ch Tue Apr 12 07:12:40 2016 From: jfavre at cscs.ch (Favre Jean) Date: Tue, 12 Apr 2016 11:12:40 +0000 Subject: [Paraview-developers] Using vtkPUnstructuredGridGhostCellsGenerator In-Reply-To: References: <75BCEF7B-2537-4349-8ECE-A5BCC467F3F3@aia.rwth-aachen.de> , Message-ID: <0EB9B6375711A04B820E6B6F5CCA9F68435CBF24@MBX111.d.ethz.ch> I tried running benchmarks yesterday with my reader, and a model that came close, but was not not quite as big as yours. I have several models with 300-400 millions cells. Using the GhostCellGenerator turning OFF the "use GlobalNodeIds" option would always crash, so I could not compare execution with and without it. I tried with different core counts ranging from 24x8 to 48*8 cores. Memory usage before applying the filter would show 20Gb out of 32Gb (per node) used, so I don't think I was crashing on out-of-memory errors. I have global Ids which are all consecutive, so I cannot answer your 2nd question, but my feeling is that uniqueness is the only necessary condition. ----------------- Jean M. Favre Swiss National Supercomputing Center CH-6900 Lugano Switzerland -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.schlottke-lakemper at aia.rwth-aachen.de Tue Apr 12 08:26:15 2016 From: m.schlottke-lakemper at aia.rwth-aachen.de (Schlottke-Lakemper, Michael) Date: Tue, 12 Apr 2016 12:26:15 +0000 Subject: [Paraview-developers] Using vtkPUnstructuredGridGhostCellsGenerator In-Reply-To: <0EB9B6375711A04B820E6B6F5CCA9F68435CBF24@MBX111.d.ethz.ch> References: <75BCEF7B-2537-4349-8ECE-A5BCC467F3F3@aia.rwth-aachen.de> <0EB9B6375711A04B820E6B6F5CCA9F68435CBF24@MBX111.d.ethz.ch> Message-ID: <393218C9-4F40-4193-A9E5-53EEDA60E5EB@aia.rwth-aachen.de> Hi Jean, Thanks for the feedback. Can you roughly estimate the time it took to generate the ghost cells? And was the time strongly correlated to the number of cores used? Michael On 12 Apr 2016, at 13:12 , Favre Jean > wrote: I tried running benchmarks yesterday with my reader, and a model that came close, but was not not quite as big as yours. I have several models with 300-400 millions cells. Using the GhostCellGenerator turning OFF the "use GlobalNodeIds" option would always crash, so I could not compare execution with and without it. I tried with different core counts ranging from 24x8 to 48*8 cores. Memory usage before applying the filter would show 20Gb out of 32Gb (per node) used, so I don't think I was crashing on out-of-memory errors. I have global Ids which are all consecutive, so I cannot answer your 2nd question, but my feeling is that uniqueness is the only necessary condition. ----------------- Jean M. Favre Swiss National Supercomputing Center CH-6900 Lugano Switzerland -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Wed Apr 13 13:58:16 2016 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Wed, 13 Apr 2016 13:58:16 -0400 Subject: [Paraview-developers] Upcoming ParaView releases 5.1 and 5.2 Message-ID: Folks, Just wanted to give a heads up to the development community about the ParaView release plan for the next couple of releases: ParaView 5.1 ~ June 2016 This release will be aimed at ISC (International Supercomputing Conference). ParaView 5.2 ~ November 2016 This release will be targeted for the Supercomputing Conference (SC). Utkarsh From mathieu.westphal at kitware.com Wed Apr 13 14:05:28 2016 From: mathieu.westphal at kitware.com (Mathieu Westphal) Date: Wed, 13 Apr 2016 20:05:28 +0200 Subject: [Paraview-developers] Upcoming ParaView releases 5.1 and 5.2 In-Reply-To: References: Message-ID: Thanks for the info ! Mathieu Westphal On Wed, Apr 13, 2016 at 7:58 PM, Utkarsh Ayachit < utkarsh.ayachit at kitware.com> wrote: > Folks, > > Just wanted to give a heads up to the development community about the > ParaView release plan for the next couple of releases: > > ParaView 5.1 ~ June 2016 > > This release will be aimed at ISC (International Supercomputing > Conference). > > ParaView 5.2 ~ November 2016 > > This release will be targeted for the Supercomputing Conference (SC). > > Utkarsh > _______________________________________________ > 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 sur.chiranjib at gmail.com Thu Apr 14 05:34:33 2016 From: sur.chiranjib at gmail.com (Chiranjib Sur) Date: Thu, 14 Apr 2016 15:04:33 +0530 Subject: [Paraview-developers] object not displaying in the paraview window In-Reply-To: References: Message-ID: Utkarsh and team, Here I come again with a very similar question. I am creating a object using a C++ class in ParaView. I have implemented the RequestData function in the following way but I keep getting the error message : Input port 0 of algorithm MyClass(0x4961fc0) has 0 connections but is not optional. What is going wrong here? Below is my implementation of RequestData Thanks in advance, Chiranjib int MyClass::RequestData( vtkInformation* vtkNotUsed( request ), vtkInformationVector** vtkNotUsed( inputVector ), vtkInformationVector* outputVector ) { // get the info object vtkInformation* outInfo = outputVector->GetInformationObject( 0 ); // get the output vtkPolyData* output = vtkPolyData::SafeDownCast( outInfo->Get( vtkDataObject::DATA_OBJECT())); vtkSmartPointer polydata = vtkSmartPointer::New(); vtkSmartPointer points = vtkSmartPointer::New(); points->SetDataType( VTK_DOUBLE ); // Set precision for the vtk points // generate my polydata with points etc. .... // at this stage polydata is generated output->ShallowCopy(polydata); output->Squeeze(); return 1; } On Mon, Apr 27, 2015 at 3:37 PM, Chiranjib Sur wrote: > Wow, This works like a magic ! > > Thank you very much for the solution and sorry for my delay in updating > about the problem I mentioned. > > Chiranjib > > On Fri, Apr 17, 2015 at 5:54 PM, Utkarsh Ayachit < > utkarsh.ayachit at kitware.com> wrote: > >> You're missing a call to `transformModel->Update()` before calling >> `transformModel->GetOutput()`. The filter never updated, and hence its >> output is empty. >> >> Utkarsh >> >> On Fri, Apr 17, 2015 at 6:34 AM, Chiranjib Sur >> wrote: >> > Hi All, >> > I want to apply the tranform filter while I create an object in >> paraview. TO >> > try with I have overloaded vtkCubeSource class and can create the object >> > which appears in the paraview pipeline and I can visualize the object >> in the >> > PV window. >> > >> > Now I want to apply the transformation filter (vtkTransform) to the >> objct >> > when I create it. To do that I have overloaded the RequestData function >> like >> > the following. >> > >> > The code is compiling and executing but when I create the object and >> apply >> > transform, nothing is appearing in the PV visualization window. >> > >> > Can anybody help me pointing out what is going wrong with my >> implementation. >> > >> > I cam copying my code below >> > >> > Thanks, >> > Chiranjib >> > >> > >> > ------ >> > >> > >> > >> > int MyOwnCubeSource::RequestData( vtkInformation *vtkNotUsed(request), >> > >> > vtkInformationVector **vtkNotUsed(inputVector), >> > >> > vtkInformationVector *outputVector) >> > >> > { >> > >> > // get the info object >> > >> > vtkInformation *outInfo = outputVector->GetInformationObject(0); >> > >> > >> > >> > // get the ouptut >> > >> > vtkPolyData *output = vtkPolyData::SafeDownCast( >> > >> > outInfo->Get(vtkDataObject::DATA_OBJECT())); >> > >> > .... >> > >> > .... >> > >> > >> > >> > // output (type vtkPolyData) is already ready at this stage >> > >> > >> > >> > // If I don?t appy transform operation afterwards, I can visualize the >> > object in the PV pipeline >> > >> > >> > >> > >> > >> > // -----------------------------------------------// >> > >> > >> > >> > // Implementation of vtkTransform starts here >> > >> > >> > >> > double _rotationZ = 30.0; >> > >> > >> > >> > // Define transform >> > >> > vtkSmartPointer transform = >> > vtkSmartPointer::New(); >> > >> > >> > >> > // Define transformModel : transform filter >> > >> > vtkSmartPointer transformModel = >> > vtkSmartPointer::New(); >> > >> > transformModel->SetTransform(transform); >> > >> > >> > >> > //Decoupling the pipeline and asking the transformfilter to update >> the >> > newpipeline (created out of shallowcopy) >> > >> > vtkNew cubeCopy; >> > >> > cubeCopy->ShallowCopy(output); >> > >> > transformModel->SetInputData(cubeCopy.GetPointer()); >> > >> > >> > >> > // Describe all the transform operations >> > >> > transform->PostMultiply(); >> > >> > transform->RotateZ(10*_rotationZ); >> > >> > transform->Update(); >> > >> > >> > >> > // getting the transformed output >> > >> > vtkSmartPointer transformedOutput = >> > transformModel->GetOutput(); >> > >> > >> > >> > // Shallowcopy the transformed output to the old pipeline >> > >> > >> > >> > output->ShallowCopy(transformedOutput); >> > >> > >> > >> > // A this stage "output" should be updated and the visualization >> pipeline >> > should show the transformed object >> > >> > >> > _______________________________________________ >> > 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 m.schlottke-lakemper at aia.rwth-aachen.de Thu Apr 14 08:54:17 2016 From: m.schlottke-lakemper at aia.rwth-aachen.de (Schlottke-Lakemper, Michael) Date: Thu, 14 Apr 2016 12:54:17 +0000 Subject: [Paraview-developers] Linking error with external NetCDF library when building plugins on OS X Message-ID: <8FD13E2A-6784-46AA-9EB3-D53ADEED363E@aia.rwth-aachen.de> Hi folks, I?m trying to build our custom plugins on OS X for PV 5.0.1. To avoid the fact that the ?PARAVIEW_INSTALL_DEVELOPMENT_FILES? flag is not available on OS X, I try to build the plugins against the ParaView build directory, which I remember to have worked at least once (2-3 years ago?). Usually, in our plugins we link against external versions of Parallel netCDF and NetCDF (i.e. not against vtkNetCDF etc.), which works fine on Linux. However, on OS X we always get the following error at link time: ######################################## ? [100%] Linking CXX shared library libAiaReaderUnified.dylib Undefined symbols for architecture x86_64: "_vtk_netcdf_nc_close", referenced from: vtkAiaReaderUnified::CanReadFile(char const*) in vtkAiaReaderUnified.cxx.o "_vtk_netcdf_nc_open", referenced from: vtkAiaReaderUnified::CanReadFile(char const*) in vtkAiaReaderUnified.cxx.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) ######################################## These are, I believe, the relevant lines from the plugin CMakeLists.txt: ######################################## ... find_package(NetCDF REQUIRED) find_package(PNetCDF REQUIRED) ? include_directories( SYSTEM ${NETCDF_INCLUDES} ${PNETCDF_INCLUDES} ) ? target_link_libraries(AiaReaderUnified PUBLIC ${NETCDF_LIBRARIES} ${PNETCDF_LIBRARIES}) ######################################## Any idea what I?m doing wrong? To me it seems like the wrong version of the NetCDF library is picked up somehow, but I can?t figure out what is causing this and how it is even possible that it proceeds to this point? It?s been ages since I tried to compile the plugins on OS X, and while I know I always had some troubles, I do not recall this particular error.. Regards, Michael -- Michael Schlottke-Lakemper Chair of Fluid Mechanics and Institute of Aerodynamics RWTH Aachen University W?llnerstra?e 5a 52062 Aachen Germany Phone: +49 (241) 80 95188 Fax: +49 (241) 80 92257 Mail: m.schlottke-lakemper at aia.rwth-aachen.de Web: http://www.aia.rwth-aachen.de -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Thu Apr 14 09:13:28 2016 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 14 Apr 2016 09:13:28 -0400 Subject: [Paraview-developers] object not displaying in the paraview window In-Reply-To: References: Message-ID: If this is a source, not a filter then call this->SetNumberOfInputPorts(0); in MyClass's constructor to override the default (likely 1) set by an ancestor class (vtkPolyDataAlgorithm likely). David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Thu, Apr 14, 2016 at 5:34 AM, Chiranjib Sur wrote: > Utkarsh and team, > Here I come again with a very similar question. > > I am creating a object using a C++ class in ParaView. I have implemented > the RequestData function in the following way but I keep getting the error > message : > > Input port 0 of algorithm MyClass(0x4961fc0) has 0 connections but is not > optional. > > What is going wrong here? > > Below is my implementation of RequestData > > Thanks in advance, > > Chiranjib > > > int MyClass::RequestData( vtkInformation* vtkNotUsed( request ), > vtkInformationVector** vtkNotUsed( > inputVector ), > vtkInformationVector* outputVector ) > { > // get the info object > vtkInformation* outInfo = outputVector->GetInformationObject( 0 ); > > // get the output > vtkPolyData* output = vtkPolyData::SafeDownCast( outInfo->Get( > vtkDataObject::DATA_OBJECT())); > > > > vtkSmartPointer polydata = > vtkSmartPointer::New(); > > vtkSmartPointer points = vtkSmartPointer::New(); > points->SetDataType( VTK_DOUBLE ); // Set precision for the vtk points > > // generate my polydata with points etc. > .... > // at this stage polydata is generated > > output->ShallowCopy(polydata); > output->Squeeze(); > > return 1; > } > > On Mon, Apr 27, 2015 at 3:37 PM, Chiranjib Sur > wrote: > >> Wow, This works like a magic ! >> >> Thank you very much for the solution and sorry for my delay in updating >> about the problem I mentioned. >> >> Chiranjib >> >> On Fri, Apr 17, 2015 at 5:54 PM, Utkarsh Ayachit < >> utkarsh.ayachit at kitware.com> wrote: >> >>> You're missing a call to `transformModel->Update()` before calling >>> `transformModel->GetOutput()`. The filter never updated, and hence its >>> output is empty. >>> >>> Utkarsh >>> >>> On Fri, Apr 17, 2015 at 6:34 AM, Chiranjib Sur >>> wrote: >>> > Hi All, >>> > I want to apply the tranform filter while I create an object in >>> paraview. TO >>> > try with I have overloaded vtkCubeSource class and can create the >>> object >>> > which appears in the paraview pipeline and I can visualize the object >>> in the >>> > PV window. >>> > >>> > Now I want to apply the transformation filter (vtkTransform) to the >>> objct >>> > when I create it. To do that I have overloaded the RequestData >>> function like >>> > the following. >>> > >>> > The code is compiling and executing but when I create the object and >>> apply >>> > transform, nothing is appearing in the PV visualization window. >>> > >>> > Can anybody help me pointing out what is going wrong with my >>> implementation. >>> > >>> > I cam copying my code below >>> > >>> > Thanks, >>> > Chiranjib >>> > >>> > >>> > ------ >>> > >>> > >>> > >>> > int MyOwnCubeSource::RequestData( vtkInformation *vtkNotUsed(request), >>> > >>> > vtkInformationVector **vtkNotUsed(inputVector), >>> > >>> > vtkInformationVector *outputVector) >>> > >>> > { >>> > >>> > // get the info object >>> > >>> > vtkInformation *outInfo = outputVector->GetInformationObject(0); >>> > >>> > >>> > >>> > // get the ouptut >>> > >>> > vtkPolyData *output = vtkPolyData::SafeDownCast( >>> > >>> > outInfo->Get(vtkDataObject::DATA_OBJECT())); >>> > >>> > .... >>> > >>> > .... >>> > >>> > >>> > >>> > // output (type vtkPolyData) is already ready at this stage >>> > >>> > >>> > >>> > // If I don?t appy transform operation afterwards, I can visualize the >>> > object in the PV pipeline >>> > >>> > >>> > >>> > >>> > >>> > // -----------------------------------------------// >>> > >>> > >>> > >>> > // Implementation of vtkTransform starts here >>> > >>> > >>> > >>> > double _rotationZ = 30.0; >>> > >>> > >>> > >>> > // Define transform >>> > >>> > vtkSmartPointer transform = >>> > vtkSmartPointer::New(); >>> > >>> > >>> > >>> > // Define transformModel : transform filter >>> > >>> > vtkSmartPointer transformModel = >>> > vtkSmartPointer::New(); >>> > >>> > transformModel->SetTransform(transform); >>> > >>> > >>> > >>> > //Decoupling the pipeline and asking the transformfilter to update >>> the >>> > newpipeline (created out of shallowcopy) >>> > >>> > vtkNew cubeCopy; >>> > >>> > cubeCopy->ShallowCopy(output); >>> > >>> > transformModel->SetInputData(cubeCopy.GetPointer()); >>> > >>> > >>> > >>> > // Describe all the transform operations >>> > >>> > transform->PostMultiply(); >>> > >>> > transform->RotateZ(10*_rotationZ); >>> > >>> > transform->Update(); >>> > >>> > >>> > >>> > // getting the transformed output >>> > >>> > vtkSmartPointer transformedOutput = >>> > transformModel->GetOutput(); >>> > >>> > >>> > >>> > // Shallowcopy the transformed output to the old pipeline >>> > >>> > >>> > >>> > output->ShallowCopy(transformedOutput); >>> > >>> > >>> > >>> > // A this stage "output" should be updated and the visualization >>> pipeline >>> > should show the transformed object >>> > >>> > >>> > _______________________________________________ >>> > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Thu Apr 14 17:26:15 2016 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Thu, 14 Apr 2016 15:26:15 -0600 Subject: [Paraview-developers] Upcoming ParaView releases 5.1 and 5.2 Message-ID: Folks, Following the update from Utkarsh regarding the time frame of the 5.1 and 5.2 releases of ParaView, I wanted to add some news regarding the Web section of ParaView. We've been working on replacing our current JavaScript code base that comes along with ParaView with more modern technologies and capabilities. And for that we want to remove the current JavaScript code from the ParaView repository and use dedicated repositories for the different Web pieces. So the plan is to start that migration *after 5.1* and enable* 5.2 with a new version of Visualizer* which will still be bundled within our distributed binaries but the code will be managed and packaged elsewhere. For those who are eager to follow our progress, you can look at our repositories on Github: - ParaViewWeb library: https://github.com/Kitware/paraviewweb - Visualizer application: https://github.com/Kitware/visualizer Beware that until the ParaView 5.2 release, the ParaViewWeb/Visualizer documentation could still have some inconsistencies due to the transition. Sebastien -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.schlottke-lakemper at aia.rwth-aachen.de Fri Apr 15 00:59:29 2016 From: m.schlottke-lakemper at aia.rwth-aachen.de (Schlottke-Lakemper, Michael) Date: Fri, 15 Apr 2016 04:59:29 +0000 Subject: [Paraview-developers] Linking error with external NetCDF library when building plugins on OS X In-Reply-To: <8FD13E2A-6784-46AA-9EB3-D53ADEED363E@aia.rwth-aachen.de> References: <8FD13E2A-6784-46AA-9EB3-D53ADEED363E@aia.rwth-aachen.de> Message-ID: Hi everyone, Inspired from the CDIReader sources and feeling a bit hackish, I managed a workaround by adding the following lines to CMakeLists.txt: ? # Only load VTK NetCDF on OS X if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") vtk_module_load(vtknetcdf) endif() ? # Only load VTK NetCDF on OS X if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") include_directories(${VTK_INCLUDE_DIRS}) endif() ? # Only link VTK NetCDF on OS X if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") target_link_libraries(AiaReaderUnified LINK_PRIVATE ${vtknetcdf_LIBRARIES}) endif() I don?t know why it works and I?m still interested in an actual solution, but I thought I?d post this anyway for others with similar issues. Michael On 14 Apr 2016, at 14:54 , Michael Schlottke-Lakemper > wrote: Hi folks, I?m trying to build our custom plugins on OS X for PV 5.0.1. To avoid the fact that the ?PARAVIEW_INSTALL_DEVELOPMENT_FILES? flag is not available on OS X, I try to build the plugins against the ParaView build directory, which I remember to have worked at least once (2-3 years ago?). Usually, in our plugins we link against external versions of Parallel netCDF and NetCDF (i.e. not against vtkNetCDF etc.), which works fine on Linux. However, on OS X we always get the following error at link time: ######################################## ? [100%] Linking CXX shared library libAiaReaderUnified.dylib Undefined symbols for architecture x86_64: "_vtk_netcdf_nc_close", referenced from: vtkAiaReaderUnified::CanReadFile(char const*) in vtkAiaReaderUnified.cxx.o "_vtk_netcdf_nc_open", referenced from: vtkAiaReaderUnified::CanReadFile(char const*) in vtkAiaReaderUnified.cxx.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) ######################################## These are, I believe, the relevant lines from the plugin CMakeLists.txt: ######################################## ... find_package(NetCDF REQUIRED) find_package(PNetCDF REQUIRED) ? include_directories( SYSTEM ${NETCDF_INCLUDES} ${PNETCDF_INCLUDES} ) ? target_link_libraries(AiaReaderUnified PUBLIC ${NETCDF_LIBRARIES} ${PNETCDF_LIBRARIES}) ######################################## Any idea what I?m doing wrong? To me it seems like the wrong version of the NetCDF library is picked up somehow, but I can?t figure out what is causing this and how it is even possible that it proceeds to this point? It?s been ages since I tried to compile the plugins on OS X, and while I know I always had some troubles, I do not recall this particular error.. Regards, Michael -- Michael Schlottke-Lakemper Chair of Fluid Mechanics and Institute of Aerodynamics RWTH Aachen University W?llnerstra?e 5a 52062 Aachen Germany Phone: +49 (241) 80 95188 Fax: +49 (241) 80 92257 Mail: m.schlottke-lakemper at aia.rwth-aachen.de Web: http://www.aia.rwth-aachen.de -------------- next part -------------- An HTML attachment was scrubbed... URL: From sur.chiranjib at gmail.com Fri Apr 15 01:34:03 2016 From: sur.chiranjib at gmail.com (Chiranjib Sur) Date: Fri, 15 Apr 2016 11:04:03 +0530 Subject: [Paraview-developers] object not displaying in the paraview window In-Reply-To: References: Message-ID: Perfect! Thank you very much for your quick reply David. Chiranjib On Thu, Apr 14, 2016 at 6:43 PM, David E DeMarle wrote: > If this is a source, not a filter then call > this->SetNumberOfInputPorts(0); > in MyClass's constructor to override the default (likely 1) set by an > ancestor class (vtkPolyDataAlgorithm likely). > > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Thu, Apr 14, 2016 at 5:34 AM, Chiranjib Sur > wrote: > >> Utkarsh and team, >> Here I come again with a very similar question. >> >> I am creating a object using a C++ class in ParaView. I have implemented >> the RequestData function in the following way but I keep getting the error >> message : >> >> Input port 0 of algorithm MyClass(0x4961fc0) has 0 connections but is not >> optional. >> >> What is going wrong here? >> >> Below is my implementation of RequestData >> >> Thanks in advance, >> >> Chiranjib >> >> >> int MyClass::RequestData( vtkInformation* vtkNotUsed( request ), >> vtkInformationVector** vtkNotUsed( >> inputVector ), >> vtkInformationVector* outputVector ) >> { >> // get the info object >> vtkInformation* outInfo = outputVector->GetInformationObject( 0 ); >> >> // get the output >> vtkPolyData* output = vtkPolyData::SafeDownCast( outInfo->Get( >> vtkDataObject::DATA_OBJECT())); >> >> >> >> vtkSmartPointer polydata = >> vtkSmartPointer::New(); >> >> vtkSmartPointer points = vtkSmartPointer::New(); >> points->SetDataType( VTK_DOUBLE ); // Set precision for the vtk points >> >> // generate my polydata with points etc. >> .... >> // at this stage polydata is generated >> >> output->ShallowCopy(polydata); >> output->Squeeze(); >> >> return 1; >> } >> >> On Mon, Apr 27, 2015 at 3:37 PM, Chiranjib Sur >> wrote: >> >>> Wow, This works like a magic ! >>> >>> Thank you very much for the solution and sorry for my delay in updating >>> about the problem I mentioned. >>> >>> Chiranjib >>> >>> On Fri, Apr 17, 2015 at 5:54 PM, Utkarsh Ayachit < >>> utkarsh.ayachit at kitware.com> wrote: >>> >>>> You're missing a call to `transformModel->Update()` before calling >>>> `transformModel->GetOutput()`. The filter never updated, and hence its >>>> output is empty. >>>> >>>> Utkarsh >>>> >>>> On Fri, Apr 17, 2015 at 6:34 AM, Chiranjib Sur >>>> wrote: >>>> > Hi All, >>>> > I want to apply the tranform filter while I create an object in >>>> paraview. TO >>>> > try with I have overloaded vtkCubeSource class and can create the >>>> object >>>> > which appears in the paraview pipeline and I can visualize the object >>>> in the >>>> > PV window. >>>> > >>>> > Now I want to apply the transformation filter (vtkTransform) to the >>>> objct >>>> > when I create it. To do that I have overloaded the RequestData >>>> function like >>>> > the following. >>>> > >>>> > The code is compiling and executing but when I create the object and >>>> apply >>>> > transform, nothing is appearing in the PV visualization window. >>>> > >>>> > Can anybody help me pointing out what is going wrong with my >>>> implementation. >>>> > >>>> > I cam copying my code below >>>> > >>>> > Thanks, >>>> > Chiranjib >>>> > >>>> > >>>> > ------ >>>> > >>>> > >>>> > >>>> > int MyOwnCubeSource::RequestData( vtkInformation *vtkNotUsed(request), >>>> > >>>> > vtkInformationVector **vtkNotUsed(inputVector), >>>> > >>>> > vtkInformationVector *outputVector) >>>> > >>>> > { >>>> > >>>> > // get the info object >>>> > >>>> > vtkInformation *outInfo = outputVector->GetInformationObject(0); >>>> > >>>> > >>>> > >>>> > // get the ouptut >>>> > >>>> > vtkPolyData *output = vtkPolyData::SafeDownCast( >>>> > >>>> > outInfo->Get(vtkDataObject::DATA_OBJECT())); >>>> > >>>> > .... >>>> > >>>> > .... >>>> > >>>> > >>>> > >>>> > // output (type vtkPolyData) is already ready at this stage >>>> > >>>> > >>>> > >>>> > // If I don?t appy transform operation afterwards, I can visualize the >>>> > object in the PV pipeline >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > // -----------------------------------------------// >>>> > >>>> > >>>> > >>>> > // Implementation of vtkTransform starts here >>>> > >>>> > >>>> > >>>> > double _rotationZ = 30.0; >>>> > >>>> > >>>> > >>>> > // Define transform >>>> > >>>> > vtkSmartPointer transform = >>>> > vtkSmartPointer::New(); >>>> > >>>> > >>>> > >>>> > // Define transformModel : transform filter >>>> > >>>> > vtkSmartPointer transformModel = >>>> > vtkSmartPointer::New(); >>>> > >>>> > transformModel->SetTransform(transform); >>>> > >>>> > >>>> > >>>> > //Decoupling the pipeline and asking the transformfilter to >>>> update the >>>> > newpipeline (created out of shallowcopy) >>>> > >>>> > vtkNew cubeCopy; >>>> > >>>> > cubeCopy->ShallowCopy(output); >>>> > >>>> > transformModel->SetInputData(cubeCopy.GetPointer()); >>>> > >>>> > >>>> > >>>> > // Describe all the transform operations >>>> > >>>> > transform->PostMultiply(); >>>> > >>>> > transform->RotateZ(10*_rotationZ); >>>> > >>>> > transform->Update(); >>>> > >>>> > >>>> > >>>> > // getting the transformed output >>>> > >>>> > vtkSmartPointer transformedOutput = >>>> > transformModel->GetOutput(); >>>> > >>>> > >>>> > >>>> > // Shallowcopy the transformed output to the old pipeline >>>> > >>>> > >>>> > >>>> > output->ShallowCopy(transformedOutput); >>>> > >>>> > >>>> > >>>> > // A this stage "output" should be updated and the visualization >>>> pipeline >>>> > should show the transformed object >>>> > >>>> > >>>> > _______________________________________________ >>>> > 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 >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Fri Apr 15 08:38:46 2016 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Fri, 15 Apr 2016 08:38:46 -0400 Subject: [Paraview-developers] Linking error with external NetCDF library when building plugins on OS X In-Reply-To: References: <8FD13E2A-6784-46AA-9EB3-D53ADEED363E@aia.rwth-aachen.de> Message-ID: Michael, To confirm, you didn't build ParaView to with VTK_USE_SYSTEM_NETCDF, but you're making the plugin use a system one -- is that correct? In theory that should have been fine since netcdf is mangled in VTK. I suspect the include path setup when you include the ParaView package erroneously adds includes for the mangled headers or something like that and your plugin ends up seeing them and wanting to link against them. Can you try reverting your fix and then doing a "make VERBOSE=1" and share the output? Thanks Utkarsh On Fri, Apr 15, 2016 at 12:59 AM, Schlottke-Lakemper, Michael wrote: > Hi everyone, > > Inspired from the CDIReader sources and feeling a bit hackish, I managed a > workaround by adding the following lines to CMakeLists.txt: > > ? > # Only load VTK NetCDF on OS X > if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") > vtk_module_load(vtknetcdf) > endif() > ? > # Only load VTK NetCDF on OS X > if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") > include_directories(${VTK_INCLUDE_DIRS}) > endif() > ? > # Only link VTK NetCDF on OS X > if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") > target_link_libraries(AiaReaderUnified LINK_PRIVATE > ${vtknetcdf_LIBRARIES}) > endif() > > I don?t know why it works and I?m still interested in an actual solution, > but I thought I?d post this anyway for others with similar issues. > > Michael > > On 14 Apr 2016, at 14:54 , Michael Schlottke-Lakemper > wrote: > > Hi folks, > > I?m trying to build our custom plugins on OS X for PV 5.0.1. To avoid the > fact that the ?PARAVIEW_INSTALL_DEVELOPMENT_FILES? flag is not available on > OS X, I try to build the plugins against the ParaView build directory, which > I remember to have worked at least once (2-3 years ago?). > > Usually, in our plugins we link against external versions of Parallel netCDF > and NetCDF (i.e. not against vtkNetCDF etc.), which works fine on Linux. > However, on OS X we always get the following error at link time: > > ######################################## > ? > [100%] Linking CXX shared library libAiaReaderUnified.dylib > Undefined symbols for architecture x86_64: > "_vtk_netcdf_nc_close", referenced from: > vtkAiaReaderUnified::CanReadFile(char const*) in > vtkAiaReaderUnified.cxx.o > "_vtk_netcdf_nc_open", referenced from: > vtkAiaReaderUnified::CanReadFile(char const*) in > vtkAiaReaderUnified.cxx.o > ld: symbol(s) not found for architecture x86_64 > clang: error: linker command failed with exit code 1 (use -v to see > invocation) > ######################################## > > These are, I believe, the relevant lines from the plugin CMakeLists.txt: > > ######################################## > ... > find_package(NetCDF REQUIRED) > find_package(PNetCDF REQUIRED) > ? > include_directories( > SYSTEM > ${NETCDF_INCLUDES} > ${PNETCDF_INCLUDES} > ) > ? > target_link_libraries(AiaReaderUnified > PUBLIC ${NETCDF_LIBRARIES} ${PNETCDF_LIBRARIES}) > ######################################## > > Any idea what I?m doing wrong? To me it seems like the wrong version of the > NetCDF library is picked up somehow, but I can?t figure out what is causing > this and how it is even possible that it proceeds to this point? It?s been > ages since I tried to compile the plugins on OS X, and while I know I always > had some troubles, I do not recall this particular error.. > > Regards, > > Michael > > -- > Michael Schlottke-Lakemper > > Chair of Fluid Mechanics and Institute of Aerodynamics > RWTH Aachen University > W?llnerstra?e 5a > 52062 Aachen > Germany > > Phone: +49 (241) 80 95188 > Fax: +49 (241) 80 92257 > Mail: m.schlottke-lakemper at aia.rwth-aachen.de > Web: http://www.aia.rwth-aachen.de > > > > _______________________________________________ > 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 sara.p.rimer at gmail.com Fri Apr 15 15:52:06 2016 From: sara.p.rimer at gmail.com (Sara Rimer) Date: Fri, 15 Apr 2016 15:52:06 -0400 Subject: [Paraview-developers] Viewing a scatter plot of points overlayed on my paraFoam flow visualization Message-ID: Hello, I have a very simple simulation setup in which I am controlling fluid flow around some pre-defined stationary points in a two-dimensional domain. I am currently using Paraview to visualize this flow; however, I have not yet figured out how to add in these points so that they are viewable along with the contour filter. It seems like there must be a trivial answer how to do this. I would just like to read in a list of points into Paraview, and then plot those points as an overlay on my domain. Can any of you give me guidance on how to go about doing this? I have attached an image to this message to show what exactly it is that I am trying to do. You will notice the red dots in the center of the domain are the points. Also, in the future, the location of these points will be changing with different timesteps. Thanks for your help. Sincerely, Sara -- Sara Rimer University of Michigan Graduate Student Department of Civil and Environmental Engineering srimer at umich.edu sara.p.rimer at gmail.com 269.483.6334 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Picture1.png Type: image/png Size: 110567 bytes Desc: not available URL: From dave.demarle at kitware.com Fri Apr 15 16:02:31 2016 From: dave.demarle at kitware.com (David E DeMarle) Date: Fri, 15 Apr 2016 16:02:31 -0400 Subject: [Paraview-developers] Viewing a scatter plot of points overlayed on my paraFoam flow visualization In-Reply-To: References: Message-ID: Try this, Format that set of points into a comma separated values text file. i.e. points.txt is 0,0,0 1,1,1 ... File->OPen to get that into paraview. Filters->Table To Points to make it into something that ParaView will render for you. Filters->Glyph or DisplayTab->Point Size to make the points stand out. hth David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Fri, Apr 15, 2016 at 3:52 PM, Sara Rimer wrote: > Hello, > > I have a very simple simulation setup in which I am controlling fluid flow > around some pre-defined stationary points in a two-dimensional domain. I am > currently using Paraview to visualize this flow; however, I have not yet > figured out how to add in these points so that they are viewable along with > the contour filter. It seems like there must be a trivial answer how to do > this. I would just like to read in a list of points into Paraview, and then > plot those points as an overlay on my domain. Can any of you give me > guidance on how to go about doing this? > > I have attached an image to this message to show what exactly it is that I > am trying to do. You will notice the red dots in the center of the domain > are the points. Also, in the future, the location of these points will be > changing with different timesteps. > > Thanks for your help. > > Sincerely, > Sara > > -- > Sara Rimer > University of Michigan Graduate Student > Department of Civil and Environmental Engineering > srimer at umich.edu > sara.p.rimer at gmail.com > 269.483.6334 > > > > > > _______________________________________________ > 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 Sun Apr 17 12:48:04 2016 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Sun, 17 Apr 2016 12:48:04 -0400 Subject: [Paraview-developers] Changing minimum required CMake version to 3.5.1. In-Reply-To: References: Message-ID: Folks, This is now in motion and if there are no major roadblocks, will be merged in time for 5.1 release. https://gitlab.kitware.com/paraview/paraview/merge_requests/740 https://gitlab.kitware.com/paraview/paraview-superbuild/merge_requests/105 Utkarsh From utkarsh.ayachit at kitware.com Mon Apr 18 14:41:25 2016 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Mon, 18 Apr 2016 14:41:25 -0400 Subject: [Paraview-developers] Removing Cube Axes support from ParaView Message-ID: Folks, The "Axes Grid" [1] has been around for over a year now and being used with reasonable success as a replacement for the cube axes. Are there any objections to removing support for the cube axes entirely from future releases of ParaView? If I don't hear any dissenting voices, we'll go ahead and remove the cube axes in 5.1. If people are still using it, we can let it hang out for a release or two longer. Thanks, Utkarsh [1] https://blog.kitware.com/new-in-paraview-axes-grid-annotation/ From wascott at sandia.gov Mon Apr 18 14:48:52 2016 From: wascott at sandia.gov (Scott, W Alan) Date: Mon, 18 Apr 2016 18:48:52 +0000 Subject: [Paraview-developers] [EXTERNAL] Removing Cube Axes support from ParaView In-Reply-To: References: Message-ID: <940e3b7bfff84820ba609eb75aaeea61@ES01AMSNLNT.srn.sandia.gov> Note that you can get the same look as the "Axes Grid" (i.e., draw axes in front) by going "Edit Axes Grid", Advanced, then switch Cull front face/ back face. Alan -----Original Message----- From: Paraview-developers [mailto:paraview-developers-bounces at paraview.org] On Behalf Of Utkarsh Ayachit Sent: Monday, April 18, 2016 12:41 PM To: ParaView Developers Subject: [EXTERNAL] [Paraview-developers] Removing Cube Axes support from ParaView Folks, The "Axes Grid" [1] has been around for over a year now and being used with reasonable success as a replacement for the cube axes. Are there any objections to removing support for the cube axes entirely from future releases of ParaView? If I don't hear any dissenting voices, we'll go ahead and remove the cube axes in 5.1. If people are still using it, we can let it hang out for a release or two longer. Thanks, Utkarsh [1] https://blog.kitware.com/new-in-paraview-axes-grid-annotation/ _______________________________________________ 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 vogtpeter5 at gmail.com Wed Apr 20 10:34:58 2016 From: vogtpeter5 at gmail.com (Peter Vogt) Date: Wed, 20 Apr 2016 16:34:58 +0200 Subject: [Paraview-developers] establish client connection to pvserver from C++ Message-ID: Hello, we aim at implementing an image processing application that interpretes the rendered images from a remote parallel visualization of large datasets. For this purpose we need to connect to a running pvserver, send a few commands to set up the visualization pipeline, and receive a sequence of rendered images. If possible, we would use the core classes without a necessity to include the Qt framework. I am currently stuck with the first step, how to connect to a remote pvserver. My first attempt failed: ... int main(){ vtkSMSessionClient *session=vtkSMSessionClient::New(); session->Connect("cs://"); } These lines segfault as follows: Warning: vtkPVServerInformation (0x239ff50): ProcessModule is not available. Warning: vtkPVSessionBase (0x239deb0): No vtkMultiProcessController for Session. The session won't work correctly. Segmentation fault (core dumped) May I ask, if somebody can send me a working C++ code snippet or explain in words, how to 1. connect a client to a remote pvserver 2. let the client create a sphere or any other data source on the server 3. receive a rendered image from the server (I might be able to figure this out myself if I have a solution for steps 1. and 2.) Thank you Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Wed Apr 20 10:52:16 2016 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Wed, 20 Apr 2016 08:52:16 -0600 Subject: [Paraview-developers] establish client connection to pvserver from C++ In-Reply-To: References: Message-ID: I would go with Python instead of C++ and use the same principal as ParaViewWeb but in a script mode instead. On a Mac here is what I did $ cd /Applications/paraview.app/Contents/ $ ./bin/pvserver $ cd /Applications/paraview.app/Contents/ $ ./bin/pvpython ~/Desktop/demo.py Hope that helps, Seb On Wed, Apr 20, 2016 at 8:34 AM, Peter Vogt wrote: > Hello, > we aim at implementing an image processing application that interpretes > the rendered images from a remote parallel visualization of large datasets. > > For this purpose we need to connect to a running pvserver, send a few > commands to set up the visualization pipeline, and receive a sequence of > rendered images. If possible, we would use the core classes without a > necessity to include the Qt framework. > > I am currently stuck with the first step, how to connect to a remote > pvserver. > My first attempt failed: > ... > int main(){ > vtkSMSessionClient *session=vtkSMSessionClient::New(); > session->Connect("cs://"); > } > > These lines segfault as follows: > Warning: vtkPVServerInformation (0x239ff50): ProcessModule is not > available. > Warning: vtkPVSessionBase (0x239deb0): No vtkMultiProcessController for > Session. The session won't work correctly. > Segmentation fault (core dumped) > > May I ask, if somebody can send me a working C++ code snippet or explain > in words, how to > 1. connect a client to a remote pvserver > 2. let the client create a sphere or any other data source on the server > 3. receive a rendered image from the server (I might be able to figure > this out myself if I have a solution for steps 1. and 2.) > > Thank you > Peter > > _______________________________________________ > 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: demo.py Type: text/x-python-script Size: 444 bytes Desc: not available URL: From vogtpeter5 at gmail.com Wed Apr 20 11:06:01 2016 From: vogtpeter5 at gmail.com (Peter Vogt) Date: Wed, 20 Apr 2016 17:06:01 +0200 Subject: [Paraview-developers] establish client connection to pvserver from C++ In-Reply-To: References: Message-ID: Thank you, but we need a pure C++ solution. There is plenty of information how this is done with python scripting, but I can't find anything for C++. I really need nothing more than a minimal example. Peter On Wed, Apr 20, 2016 at 4:52 PM, Sebastien Jourdain < sebastien.jourdain at kitware.com> wrote: > I would go with Python instead of C++ and use the same principal as > ParaViewWeb but in a script mode instead. > > On a Mac here is what I did > > $ cd /Applications/paraview.app/Contents/ > $ ./bin/pvserver > > $ cd /Applications/paraview.app/Contents/ > $ ./bin/pvpython ~/Desktop/demo.py > > Hope that helps, > > Seb > > On Wed, Apr 20, 2016 at 8:34 AM, Peter Vogt wrote: > >> Hello, >> we aim at implementing an image processing application that interpretes >> the rendered images from a remote parallel visualization of large datasets. >> >> For this purpose we need to connect to a running pvserver, send a few >> commands to set up the visualization pipeline, and receive a sequence of >> rendered images. If possible, we would use the core classes without a >> necessity to include the Qt framework. >> >> I am currently stuck with the first step, how to connect to a remote >> pvserver. >> My first attempt failed: >> ... >> int main(){ >> vtkSMSessionClient *session=vtkSMSessionClient::New(); >> session->Connect("cs://"); >> } >> >> These lines segfault as follows: >> Warning: vtkPVServerInformation (0x239ff50): ProcessModule is not >> available. >> Warning: vtkPVSessionBase (0x239deb0): No vtkMultiProcessController for >> Session. The session won't work correctly. >> Segmentation fault (core dumped) >> >> May I ask, if somebody can send me a working C++ code snippet or explain >> in words, how to >> 1. connect a client to a remote pvserver >> 2. let the client create a sphere or any other data source on the server >> 3. receive a rendered image from the server (I might be able to figure >> this out myself if I have a solution for steps 1. and 2.) >> >> Thank you >> Peter >> >> _______________________________________________ >> 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 sebastien.jourdain at kitware.com Wed Apr 20 11:09:28 2016 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Wed, 20 Apr 2016 09:09:28 -0600 Subject: [Paraview-developers] establish client connection to pvserver from C++ In-Reply-To: References: Message-ID: The python code do call the C++ layer underneath, so if you follow the path of the calls you could figure out the C++ part of it. Unless someone else provide a C++ example. Seb On Wed, Apr 20, 2016 at 9:06 AM, Peter Vogt wrote: > Thank you, but we need a pure C++ solution. There is plenty of information > how this is done with python scripting, but I can't find anything for C++. > I really need nothing more than a minimal example. > > Peter > > On Wed, Apr 20, 2016 at 4:52 PM, Sebastien Jourdain < > sebastien.jourdain at kitware.com> wrote: > >> I would go with Python instead of C++ and use the same principal as >> ParaViewWeb but in a script mode instead. >> >> On a Mac here is what I did >> >> $ cd /Applications/paraview.app/Contents/ >> $ ./bin/pvserver >> >> $ cd /Applications/paraview.app/Contents/ >> $ ./bin/pvpython ~/Desktop/demo.py >> >> Hope that helps, >> >> Seb >> >> On Wed, Apr 20, 2016 at 8:34 AM, Peter Vogt wrote: >> >>> Hello, >>> we aim at implementing an image processing application that interpretes >>> the rendered images from a remote parallel visualization of large datasets. >>> >>> For this purpose we need to connect to a running pvserver, send a few >>> commands to set up the visualization pipeline, and receive a sequence of >>> rendered images. If possible, we would use the core classes without a >>> necessity to include the Qt framework. >>> >>> I am currently stuck with the first step, how to connect to a remote >>> pvserver. >>> My first attempt failed: >>> ... >>> int main(){ >>> vtkSMSessionClient *session=vtkSMSessionClient::New(); >>> session->Connect("cs://"); >>> } >>> >>> These lines segfault as follows: >>> Warning: vtkPVServerInformation (0x239ff50): ProcessModule is not >>> available. >>> Warning: vtkPVSessionBase (0x239deb0): No vtkMultiProcessController >>> for Session. The session won't work correctly. >>> Segmentation fault (core dumped) >>> >>> May I ask, if somebody can send me a working C++ code snippet or explain >>> in words, how to >>> 1. connect a client to a remote pvserver >>> 2. let the client create a sphere or any other data source on the server >>> 3. receive a rendered image from the server (I might be able to figure >>> this out myself if I have a solution for steps 1. and 2.) >>> >>> Thank you >>> Peter >>> >>> _______________________________________________ >>> 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 vogtpeter5 at gmail.com Wed Apr 20 11:25:16 2016 From: vogtpeter5 at gmail.com (Peter Vogt) Date: Wed, 20 Apr 2016 17:25:16 +0200 Subject: [Paraview-developers] establish client connection to pvserver from C++ In-Reply-To: References: Message-ID: Yes, I have tried already for a few days to figure out what is going on in the python wrappers. I didn't get too far, because the architecture of the wrappers and their generation is not documented. So, please, if you can quickly derive a working C++ solution from the python code, I will highly appreciate it. Otherwise I would hope that somebody else will answer my question. Thanks Peter On Wed, Apr 20, 2016 at 5:09 PM, Sebastien Jourdain < sebastien.jourdain at kitware.com> wrote: > The python code do call the C++ layer underneath, so if you follow the > path of the calls you could figure out the C++ part of it. > Unless someone else provide a C++ example. > > Seb > > On Wed, Apr 20, 2016 at 9:06 AM, Peter Vogt wrote: > >> Thank you, but we need a pure C++ solution. There is plenty of >> information how this is done with python scripting, but I can't find >> anything for C++. >> I really need nothing more than a minimal example. >> >> Peter >> >> On Wed, Apr 20, 2016 at 4:52 PM, Sebastien Jourdain < >> sebastien.jourdain at kitware.com> wrote: >> >>> I would go with Python instead of C++ and use the same principal as >>> ParaViewWeb but in a script mode instead. >>> >>> On a Mac here is what I did >>> >>> $ cd /Applications/paraview.app/Contents/ >>> $ ./bin/pvserver >>> >>> $ cd /Applications/paraview.app/Contents/ >>> $ ./bin/pvpython ~/Desktop/demo.py >>> >>> Hope that helps, >>> >>> Seb >>> >>> On Wed, Apr 20, 2016 at 8:34 AM, Peter Vogt >>> wrote: >>> >>>> Hello, >>>> we aim at implementing an image processing application that interpretes >>>> the rendered images from a remote parallel visualization of large datasets. >>>> >>>> For this purpose we need to connect to a running pvserver, send a few >>>> commands to set up the visualization pipeline, and receive a sequence of >>>> rendered images. If possible, we would use the core classes without a >>>> necessity to include the Qt framework. >>>> >>>> I am currently stuck with the first step, how to connect to a remote >>>> pvserver. >>>> My first attempt failed: >>>> ... >>>> int main(){ >>>> vtkSMSessionClient *session=vtkSMSessionClient::New(); >>>> session->Connect("cs://"); >>>> } >>>> >>>> These lines segfault as follows: >>>> Warning: vtkPVServerInformation (0x239ff50): ProcessModule is not >>>> available. >>>> Warning: vtkPVSessionBase (0x239deb0): No vtkMultiProcessController >>>> for Session. The session won't work correctly. >>>> Segmentation fault (core dumped) >>>> >>>> May I ask, if somebody can send me a working C++ code snippet or >>>> explain in words, how to >>>> 1. connect a client to a remote pvserver >>>> 2. let the client create a sphere or any other data source on the server >>>> 3. receive a rendered image from the server (I might be able to figure >>>> this out myself if I have a solution for steps 1. and 2.) >>>> >>>> Thank you >>>> Peter >>>> >>>> _______________________________________________ >>>> 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 Apr 20 11:26:56 2016 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Wed, 20 Apr 2016 11:26:56 -0400 Subject: [Paraview-developers] establish client connection to pvserver from C++ In-Reply-To: References: Message-ID: > Thank you, but we need a pure C++ solution. There is plenty of information > how this is done with python scripting, but I can't find anything for C++. > I really need nothing more than a minimal example. Peter, look at TestComparativeAnimationCueProxy.cxx[1] file in the ParaView source. It demonstrates how the initialization needs to happen. If you have further questions on how to use anything specific in this application, feel free to holler :). [1] https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/ServerManager/Default/Testing/Cxx/TestComparativeAnimationCueProxy.cxx Utkarsh From vogtpeter5 at gmail.com Wed Apr 20 11:42:52 2016 From: vogtpeter5 at gmail.com (Peter Vogt) Date: Wed, 20 Apr 2016 17:42:52 +0200 Subject: [Paraview-developers] establish client connection to pvserver from C++ In-Reply-To: References: Message-ID: Thank you, the TestComparativeAnimationCueProxy.cxx explains everything. Peter On Wed, Apr 20, 2016 at 5:26 PM, Utkarsh Ayachit < utkarsh.ayachit at kitware.com> wrote: > > Thank you, but we need a pure C++ solution. There is plenty of > information > > how this is done with python scripting, but I can't find anything for > C++. > > I really need nothing more than a minimal example. > > Peter, look at TestComparativeAnimationCueProxy.cxx[1] file in the > ParaView source. It demonstrates how the initialization needs to > happen. If you have further questions on how to use anything specific > in this application, feel free to holler :). > > [1] > https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/ServerManager/Default/Testing/Cxx/TestComparativeAnimationCueProxy.cxx > > Utkarsh > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogtpeter5 at gmail.com Thu Apr 21 08:49:12 2016 From: vogtpeter5 at gmail.com (Peter Vogt) Date: Thu, 21 Apr 2016 14:49:12 +0200 Subject: [Paraview-developers] establish client connection to pvserver from C++ In-Reply-To: References: Message-ID: Hello again, thanks to your help, I was able to establish a connection to a pvserver and create a SphereSource proxy. Now I cannot figure out how to view the rendered scene on the client. My attempt, "TestConnection.cxx", is attached below. I have tried three alternatives, which I have marked in the code: Alternative 1 calls "view->StillRender()", which shows the greyish background, maybe because the sphere is outside the viewport? Alternative 2 calls "view->ResetCamera()" before the StillRender(), but ResetCamera crashes with the following output: >ERROR: In /opt/ParaView-v5.0.1-source/ParaViewCore/ServerImplementation/Core/vtkPVSessionCoreInterpreterHelper.cxx, line 63 >vtkPVSessionCoreInterpreterHelper (0x976950): No vtkSIProxy for id : 257 > >ERROR: In /opt/ParaView-v5.0.1-source/ParaViewCore/ServerImplementation/Core/vtkPVSessionCore.cxx, line 390 >vtkPVSessionCore (0x8ca480): Wrapper function not found for class "(vtk object is NULL)". >while processing >Message 0 = Invoke > Argument 0 = stream_value { > Message 0 = Invoke > Argument 0 = id_value {1} > Argument 1 = string_value {GetVTKObject} > Argument 2 = uint32_value {257} > } > Argument 1 = string_value {ResetCamera} > > >ERROR: In /opt/ParaView-v5.0.1-source/ParaViewCore/ServerImplementation/Core/vtkPVSessionCore.cxx, line 391 >vtkPVSessionCore (0x8ca480): Aborting execution for debugging purposes. > >############ ABORT ############# >Wrong tag but don't know how to handle it... 188971 >Aborted (core dumped) Alternative 3 tries to show an interactive RenderWindow, but crashes, because view->GetInteractor() returns NULL. Apparently I am missing some important step. Can somebody point out how to modify the example (below) in order to render the sphere source visible? Thank you Peter TestConnection.cxx: #include "vtkInitializationHelper.h" #include "vtkProcessModule.h" #include "vtkPVOptions.h" #include "vtkSMProxyManager.h" #include "vtkSMSession.h" #include "vtkSMSessionClient.h" #include "vtkSMSessionProxyManager.h" #include "vtkSMSourceProxy.h" #include "vtkSMProperty.h" #include "vtkSMRenderViewProxy.h" #include "vtkRenderWindow.h" #include "vtkRenderWindowInteractor.h" int main(int argc, char* argv[]) { // Initialization vtkPVOptions* options = vtkPVOptions::New(); vtkInitializationHelper::Initialize(argc, argv, vtkProcessModule::PROCESS_CLIENT, options); vtkSMSessionClient* session = vtkSMSessionClient::New(); vtkProcessModule::GetProcessModule()->RegisterSession(session); session->Connect(options->GetServerURL()); cout<<"Connected to: "<GetServerURL()<GetSessionProxyManager(); vtkSMProxy *sphere = pxm->NewProxy("sources", "SphereSource"); cout<<"SphereSource created."<NewProxy("views", "RenderView"); cout<<"RenderView created."<CreateDefaultRepresentation(sphere,0); cout<<"DefaultRepresentation created."<StillRender(); while(1); //no crash, but only background visible. //Alternative 2: /* view->ResetCamera(); //crash here view->StillRender(); while(1); */ //Alternative 3: /* view->InteractiveRender(); view->GetInteractor()->Initialize(); //crash here, because view->GetInteractor()==NULL view->GetInteractor()->Start(); */ //TODO: clean up stuff } On Wed, Apr 20, 2016 at 5:26 PM, Utkarsh Ayachit < utkarsh.ayachit at kitware.com> wrote: > > Thank you, but we need a pure C++ solution. There is plenty of > information > > how this is done with python scripting, but I can't find anything for > C++. > > I really need nothing more than a minimal example. > > Peter, look at TestComparativeAnimationCueProxy.cxx[1] file in the > ParaView source. It demonstrates how the initialization needs to > happen. If you have further questions on how to use anything specific > in this application, feel free to holler :). > > [1] > https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/ServerManager/Default/Testing/Cxx/TestComparativeAnimationCueProxy.cxx > > Utkarsh > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogtpeter5 at gmail.com Thu Apr 21 09:40:22 2016 From: vogtpeter5 at gmail.com (Peter Vogt) Date: Thu, 21 Apr 2016 15:40:22 +0200 Subject: [Paraview-developers] establish client connection to pvserver from C++ In-Reply-To: References: Message-ID: One more update, after calling view->UpdateVTKObjects() and view->MakeRenderWindowInteractor(), the example below runs without errors. But still, the sphere source is not visible, only the grey background. What is missing to show the sphere in the view? #include "vtkInitializationHelper.h" #include "vtkProcessModule.h" #include "vtkPVOptions.h" #include "vtkSMProxyManager.h" #include "vtkSMSession.h" #include "vtkSMSessionClient.h" #include "vtkSMSessionProxyManager.h" #include "vtkSMSourceProxy.h" #include "vtkSMProperty.h" #include "vtkSMRenderViewProxy.h" #include "vtkRenderWindow.h" #include "vtkRenderWindowInteractor.h" int main(int argc, char* argv[]) { // Initialization vtkPVOptions* options = vtkPVOptions::New(); vtkInitializationHelper::Initialize(argc, argv, vtkProcessModule::PROCESS_CLIENT, options); vtkSMSessionClient* session = vtkSMSessionClient::New(); vtkProcessModule::GetProcessModule()->RegisterSession(session); session->Connect(options->GetServerURL()); cout<<"Connected to: "<GetServerURL()<GetSessionProxyManager(); vtkSMProxy *sphere = pxm->NewProxy("sources", "SphereSource"); cout<<"SphereSource created."<NewProxy("views", "RenderView"); bool ok=view->MakeRenderWindowInteractor(false); cout<<"RenderView created. "<CreateDefaultRepresentation(sphere,0); view->UpdateVTKObjects(); cout<<"DefaultRepresentation created."<ResetCamera(); //no crash, but only background visible. view->StillRender(); while(1); */ //Alternative 3: view->InteractiveRender(); view->GetInteractor()->Initialize(); view->GetInteractor()->Start(); //TODO: clean up stuff } On Thu, Apr 21, 2016 at 2:49 PM, Peter Vogt wrote: > Hello again, > thanks to your help, I was able to establish a connection to a pvserver > and create a SphereSource proxy. Now I cannot figure out how to view the > rendered scene on the client. > > My attempt, "TestConnection.cxx", is attached below. I have tried three > alternatives, which I have marked in the code: > Alternative 1 calls "view->StillRender()", which shows the greyish > background, maybe because the sphere is outside the viewport? > Alternative 2 calls "view->ResetCamera()" before the StillRender(), but > ResetCamera crashes with the following output: > >ERROR: In > /opt/ParaView-v5.0.1-source/ParaViewCore/ServerImplementation/Core/vtkPVSessionCoreInterpreterHelper.cxx, > line 63 > >vtkPVSessionCoreInterpreterHelper (0x976950): No vtkSIProxy for id : 257 > > > >ERROR: In > /opt/ParaView-v5.0.1-source/ParaViewCore/ServerImplementation/Core/vtkPVSessionCore.cxx, > line 390 > >vtkPVSessionCore (0x8ca480): Wrapper function not found for class "(vtk > object is NULL)". > >while processing > >Message 0 = Invoke > > Argument 0 = stream_value { > > Message 0 = Invoke > > Argument 0 = id_value {1} > > Argument 1 = string_value {GetVTKObject} > > Argument 2 = uint32_value {257} > > } > > Argument 1 = string_value {ResetCamera} > > > > > >ERROR: In > /opt/ParaView-v5.0.1-source/ParaViewCore/ServerImplementation/Core/vtkPVSessionCore.cxx, > line 391 > >vtkPVSessionCore (0x8ca480): Aborting execution for debugging purposes. > > > >############ ABORT ############# > >Wrong tag but don't know how to handle it... 188971 > >Aborted (core dumped) > Alternative 3 tries to show an interactive RenderWindow, but crashes, > because view->GetInteractor() returns NULL. > > Apparently I am missing some important step. Can somebody point out how to > modify the example (below) in order to render the sphere source visible? > > Thank you > Peter > > TestConnection.cxx: > > #include "vtkInitializationHelper.h" > #include "vtkProcessModule.h" > #include "vtkPVOptions.h" > #include "vtkSMProxyManager.h" > #include "vtkSMSession.h" > #include "vtkSMSessionClient.h" > #include "vtkSMSessionProxyManager.h" > #include "vtkSMSourceProxy.h" > #include "vtkSMProperty.h" > #include "vtkSMRenderViewProxy.h" > > #include "vtkRenderWindow.h" > #include "vtkRenderWindowInteractor.h" > > int main(int argc, char* argv[]) > { > // Initialization > vtkPVOptions* options = vtkPVOptions::New(); > vtkInitializationHelper::Initialize(argc, argv, > vtkProcessModule::PROCESS_CLIENT, > options); > > vtkSMSessionClient* session = vtkSMSessionClient::New(); > vtkProcessModule::GetProcessModule()->RegisterSession(session); > session->Connect(options->GetServerURL()); > cout<<"Connected to: "<GetServerURL()< > vtkSMSessionProxyManager *pxm = session->GetSessionProxyManager(); > vtkSMProxy *sphere = pxm->NewProxy("sources", "SphereSource"); > cout<<"SphereSource created."< vtkSMRenderViewProxy* view=(vtkSMRenderViewProxy*)pxm->NewProxy("views", > "RenderView"); > cout<<"RenderView created."< vtkSMRepresentationProxy* > repr=view->CreateDefaultRepresentation(sphere,0); > cout<<"DefaultRepresentation created."< > //Alternative 1: > view->StillRender(); while(1); //no crash, but only background visible. > > //Alternative 2: > /* > view->ResetCamera(); //crash here > view->StillRender(); while(1); > */ > > //Alternative 3: > /* > view->InteractiveRender(); > view->GetInteractor()->Initialize(); //crash here, because > view->GetInteractor()==NULL > view->GetInteractor()->Start(); > */ > //TODO: clean up stuff > } > > On Wed, Apr 20, 2016 at 5:26 PM, Utkarsh Ayachit < > utkarsh.ayachit at kitware.com> wrote: > >> > Thank you, but we need a pure C++ solution. There is plenty of >> information >> > how this is done with python scripting, but I can't find anything for >> C++. >> > I really need nothing more than a minimal example. >> >> Peter, look at TestComparativeAnimationCueProxy.cxx[1] file in the >> ParaView source. It demonstrates how the initialization needs to >> happen. If you have further questions on how to use anything specific >> in this application, feel free to holler :). >> >> [1] >> https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/ServerManager/Default/Testing/Cxx/TestComparativeAnimationCueProxy.cxx >> >> Utkarsh >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Thu Apr 21 09:42:16 2016 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Thu, 21 Apr 2016 09:42:16 -0400 Subject: [Paraview-developers] establish client connection to pvserver from C++ In-Reply-To: References: Message-ID: Peter, After a proxy is created or after any of its properties are changed, one must call "vtkSMProxy::UpdateVTKObject()" to push the changes made locally to the server or the underlying VTK objects. Try putting a call to this method the NewProxy(...) calls. You're also missing adding the Sphere source's representation to the View proxy's "Representations" property. Other option is to use the vtkSMParaViewPipleineControllerWithRendering. Give me a few hours, and I can put together an example that uses the controller to create a view and show something in it to get you started. Utkarsh On Thu, Apr 21, 2016 at 8:49 AM, Peter Vogt wrote: > Hello again, > thanks to your help, I was able to establish a connection to a pvserver and > create a SphereSource proxy. Now I cannot figure out how to view the > rendered scene on the client. > > My attempt, "TestConnection.cxx", is attached below. I have tried three > alternatives, which I have marked in the code: > Alternative 1 calls "view->StillRender()", which shows the greyish > background, maybe because the sphere is outside the viewport? > Alternative 2 calls "view->ResetCamera()" before the StillRender(), but > ResetCamera crashes with the following output: >>ERROR: In >> /opt/ParaView-v5.0.1-source/ParaViewCore/ServerImplementation/Core/vtkPVSessionCoreInterpreterHelper.cxx, >> line 63 >>vtkPVSessionCoreInterpreterHelper (0x976950): No vtkSIProxy for id : 257 >> >>ERROR: In >> /opt/ParaView-v5.0.1-source/ParaViewCore/ServerImplementation/Core/vtkPVSessionCore.cxx, >> line 390 >>vtkPVSessionCore (0x8ca480): Wrapper function not found for class "(vtk >> object is NULL)". >>while processing >>Message 0 = Invoke >> Argument 0 = stream_value { >> Message 0 = Invoke >> Argument 0 = id_value {1} >> Argument 1 = string_value {GetVTKObject} >> Argument 2 = uint32_value {257} >> } >> Argument 1 = string_value {ResetCamera} >> >> >>ERROR: In >> /opt/ParaView-v5.0.1-source/ParaViewCore/ServerImplementation/Core/vtkPVSessionCore.cxx, >> line 391 >>vtkPVSessionCore (0x8ca480): Aborting execution for debugging purposes. >> >>############ ABORT ############# >>Wrong tag but don't know how to handle it... 188971 >>Aborted (core dumped) > Alternative 3 tries to show an interactive RenderWindow, but crashes, > because view->GetInteractor() returns NULL. > > Apparently I am missing some important step. Can somebody point out how to > modify the example (below) in order to render the sphere source visible? > > Thank you > Peter > > TestConnection.cxx: > > #include "vtkInitializationHelper.h" > #include "vtkProcessModule.h" > #include "vtkPVOptions.h" > #include "vtkSMProxyManager.h" > #include "vtkSMSession.h" > #include "vtkSMSessionClient.h" > #include "vtkSMSessionProxyManager.h" > #include "vtkSMSourceProxy.h" > #include "vtkSMProperty.h" > #include "vtkSMRenderViewProxy.h" > > #include "vtkRenderWindow.h" > #include "vtkRenderWindowInteractor.h" > > int main(int argc, char* argv[]) > { > // Initialization > vtkPVOptions* options = vtkPVOptions::New(); > vtkInitializationHelper::Initialize(argc, argv, > vtkProcessModule::PROCESS_CLIENT, > options); > > vtkSMSessionClient* session = vtkSMSessionClient::New(); > vtkProcessModule::GetProcessModule()->RegisterSession(session); > session->Connect(options->GetServerURL()); > cout<<"Connected to: "<GetServerURL()< > vtkSMSessionProxyManager *pxm = session->GetSessionProxyManager(); > vtkSMProxy *sphere = pxm->NewProxy("sources", "SphereSource"); > cout<<"SphereSource created."< vtkSMRenderViewProxy* view=(vtkSMRenderViewProxy*)pxm->NewProxy("views", > "RenderView"); > cout<<"RenderView created."< vtkSMRepresentationProxy* > repr=view->CreateDefaultRepresentation(sphere,0); > cout<<"DefaultRepresentation created."< > //Alternative 1: > view->StillRender(); while(1); //no crash, but only background visible. > > //Alternative 2: > /* > view->ResetCamera(); //crash here > view->StillRender(); while(1); > */ > > //Alternative 3: > /* > view->InteractiveRender(); > view->GetInteractor()->Initialize(); //crash here, because > view->GetInteractor()==NULL > view->GetInteractor()->Start(); > */ > //TODO: clean up stuff > } > > On Wed, Apr 20, 2016 at 5:26 PM, Utkarsh Ayachit > wrote: >> >> > Thank you, but we need a pure C++ solution. There is plenty of >> > information >> > how this is done with python scripting, but I can't find anything for >> > C++. >> > I really need nothing more than a minimal example. >> >> Peter, look at TestComparativeAnimationCueProxy.cxx[1] file in the >> ParaView source. It demonstrates how the initialization needs to >> happen. If you have further questions on how to use anything specific >> in this application, feel free to holler :). >> >> [1] >> https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/ServerManager/Default/Testing/Cxx/TestComparativeAnimationCueProxy.cxx >> >> Utkarsh > > From vogtpeter5 at gmail.com Thu Apr 21 09:57:38 2016 From: vogtpeter5 at gmail.com (Peter Vogt) Date: Thu, 21 Apr 2016 15:57:38 +0200 Subject: [Paraview-developers] establish client connection to pvserver from C++ In-Reply-To: References: Message-ID: Thank you, Utkarsh, the time for writing our last posts has overlapped. I had fixed the missing UpdateVTKObjects() call in between, and I think the only missing step is to add the sphere's representation to the view proxy. But how do I add it to the Representations "property"? Neither vtkSMViewProxy nor vtkSMRenderViewProxy have a method like GetRepresentations() or InsertRepresentation(). Getting this final step right will certainly help me understand the programming principle. If the vtkSMParaViewPipleineControllerWithRendering is the recommended way of remotely rendering objects, I'll definitely appreciate an example using this class, if it doesn't cost you too much time. Thanks Peter On Thu, Apr 21, 2016 at 3:42 PM, Utkarsh Ayachit < utkarsh.ayachit at kitware.com> wrote: > Peter, > > After a proxy is created or after any of its properties are changed, > one must call "vtkSMProxy::UpdateVTKObject()" to push the changes made > locally to the server or the underlying VTK objects. Try putting a > call to this method the NewProxy(...) calls. You're also missing > adding the Sphere source's representation to the View proxy's > "Representations" property. Other option is to use the > vtkSMParaViewPipleineControllerWithRendering. > > Give me a few hours, and I can put together an example that uses the > controller to create a view and show something in it to get you > started. > > Utkarsh > > > > On Thu, Apr 21, 2016 at 8:49 AM, Peter Vogt wrote: > > Hello again, > > thanks to your help, I was able to establish a connection to a pvserver > and > > create a SphereSource proxy. Now I cannot figure out how to view the > > rendered scene on the client. > > > > My attempt, "TestConnection.cxx", is attached below. I have tried three > > alternatives, which I have marked in the code: > > Alternative 1 calls "view->StillRender()", which shows the greyish > > background, maybe because the sphere is outside the viewport? > > Alternative 2 calls "view->ResetCamera()" before the StillRender(), but > > ResetCamera crashes with the following output: > >>ERROR: In > >> > /opt/ParaView-v5.0.1-source/ParaViewCore/ServerImplementation/Core/vtkPVSessionCoreInterpreterHelper.cxx, > >> line 63 > >>vtkPVSessionCoreInterpreterHelper (0x976950): No vtkSIProxy for id : 257 > >> > >>ERROR: In > >> > /opt/ParaView-v5.0.1-source/ParaViewCore/ServerImplementation/Core/vtkPVSessionCore.cxx, > >> line 390 > >>vtkPVSessionCore (0x8ca480): Wrapper function not found for class "(vtk > >> object is NULL)". > >>while processing > >>Message 0 = Invoke > >> Argument 0 = stream_value { > >> Message 0 = Invoke > >> Argument 0 = id_value {1} > >> Argument 1 = string_value {GetVTKObject} > >> Argument 2 = uint32_value {257} > >> } > >> Argument 1 = string_value {ResetCamera} > >> > >> > >>ERROR: In > >> > /opt/ParaView-v5.0.1-source/ParaViewCore/ServerImplementation/Core/vtkPVSessionCore.cxx, > >> line 391 > >>vtkPVSessionCore (0x8ca480): Aborting execution for debugging purposes. > >> > >>############ ABORT ############# > >>Wrong tag but don't know how to handle it... 188971 > >>Aborted (core dumped) > > Alternative 3 tries to show an interactive RenderWindow, but crashes, > > because view->GetInteractor() returns NULL. > > > > Apparently I am missing some important step. Can somebody point out how > to > > modify the example (below) in order to render the sphere source visible? > > > > Thank you > > Peter > > > > TestConnection.cxx: > > > > #include "vtkInitializationHelper.h" > > #include "vtkProcessModule.h" > > #include "vtkPVOptions.h" > > #include "vtkSMProxyManager.h" > > #include "vtkSMSession.h" > > #include "vtkSMSessionClient.h" > > #include "vtkSMSessionProxyManager.h" > > #include "vtkSMSourceProxy.h" > > #include "vtkSMProperty.h" > > #include "vtkSMRenderViewProxy.h" > > > > #include "vtkRenderWindow.h" > > #include "vtkRenderWindowInteractor.h" > > > > int main(int argc, char* argv[]) > > { > > // Initialization > > vtkPVOptions* options = vtkPVOptions::New(); > > vtkInitializationHelper::Initialize(argc, argv, > > vtkProcessModule::PROCESS_CLIENT, > > options); > > > > vtkSMSessionClient* session = vtkSMSessionClient::New(); > > vtkProcessModule::GetProcessModule()->RegisterSession(session); > > session->Connect(options->GetServerURL()); > > cout<<"Connected to: "<GetServerURL()< > > > vtkSMSessionProxyManager *pxm = session->GetSessionProxyManager(); > > vtkSMProxy *sphere = pxm->NewProxy("sources", "SphereSource"); > > cout<<"SphereSource created."< > vtkSMRenderViewProxy* > view=(vtkSMRenderViewProxy*)pxm->NewProxy("views", > > "RenderView"); > > cout<<"RenderView created."< > vtkSMRepresentationProxy* > > repr=view->CreateDefaultRepresentation(sphere,0); > > cout<<"DefaultRepresentation created."< > > > //Alternative 1: > > view->StillRender(); while(1); //no crash, but only background visible. > > > > //Alternative 2: > > /* > > view->ResetCamera(); //crash here > > view->StillRender(); while(1); > > */ > > > > //Alternative 3: > > /* > > view->InteractiveRender(); > > view->GetInteractor()->Initialize(); //crash here, because > > view->GetInteractor()==NULL > > view->GetInteractor()->Start(); > > */ > > //TODO: clean up stuff > > } > > > > On Wed, Apr 20, 2016 at 5:26 PM, Utkarsh Ayachit > > wrote: > >> > >> > Thank you, but we need a pure C++ solution. There is plenty of > >> > information > >> > how this is done with python scripting, but I can't find anything for > >> > C++. > >> > I really need nothing more than a minimal example. > >> > >> Peter, look at TestComparativeAnimationCueProxy.cxx[1] file in the > >> ParaView source. It demonstrates how the initialization needs to > >> happen. If you have further questions on how to use anything specific > >> in this application, feel free to holler :). > >> > >> [1] > >> > https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/ServerManager/Default/Testing/Cxx/TestComparativeAnimationCueProxy.cxx > >> > >> Utkarsh > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Thu Apr 21 10:49:10 2016 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Thu, 21 Apr 2016 10:49:10 -0400 Subject: [Paraview-developers] establish client connection to pvserver from C++ In-Reply-To: References: Message-ID: Peter, Here's an example: https://gitlab.kitware.com/paraview/paraview/merge_requests/747/diffs Utkarsh On Thu, Apr 21, 2016 at 9:57 AM, Peter Vogt wrote: > Thank you, Utkarsh, > the time for writing our last posts has overlapped. I had fixed the missing > UpdateVTKObjects() call in between, and I think the only missing step is to > add the sphere's representation to the view proxy. > But how do I add it to the Representations "property"? Neither > vtkSMViewProxy nor vtkSMRenderViewProxy have a method like > GetRepresentations() or InsertRepresentation(). Getting this final step > right will certainly help me understand the programming principle. > > If the vtkSMParaViewPipleineControllerWithRendering is the recommended way > of remotely rendering objects, I'll definitely appreciate an example using > this class, if it doesn't cost you too much time. > > Thanks > Peter > > > On Thu, Apr 21, 2016 at 3:42 PM, Utkarsh Ayachit > wrote: >> >> Peter, >> >> After a proxy is created or after any of its properties are changed, >> one must call "vtkSMProxy::UpdateVTKObject()" to push the changes made >> locally to the server or the underlying VTK objects. Try putting a >> call to this method the NewProxy(...) calls. You're also missing >> adding the Sphere source's representation to the View proxy's >> "Representations" property. Other option is to use the >> vtkSMParaViewPipleineControllerWithRendering. >> >> Give me a few hours, and I can put together an example that uses the >> controller to create a view and show something in it to get you >> started. >> >> Utkarsh >> >> >> >> On Thu, Apr 21, 2016 at 8:49 AM, Peter Vogt wrote: >> > Hello again, >> > thanks to your help, I was able to establish a connection to a pvserver >> > and >> > create a SphereSource proxy. Now I cannot figure out how to view the >> > rendered scene on the client. >> > >> > My attempt, "TestConnection.cxx", is attached below. I have tried three >> > alternatives, which I have marked in the code: >> > Alternative 1 calls "view->StillRender()", which shows the greyish >> > background, maybe because the sphere is outside the viewport? >> > Alternative 2 calls "view->ResetCamera()" before the StillRender(), but >> > ResetCamera crashes with the following output: >> >>ERROR: In >> >> >> >> /opt/ParaView-v5.0.1-source/ParaViewCore/ServerImplementation/Core/vtkPVSessionCoreInterpreterHelper.cxx, >> >> line 63 >> >>vtkPVSessionCoreInterpreterHelper (0x976950): No vtkSIProxy for id : 257 >> >> >> >>ERROR: In >> >> >> >> /opt/ParaView-v5.0.1-source/ParaViewCore/ServerImplementation/Core/vtkPVSessionCore.cxx, >> >> line 390 >> >>vtkPVSessionCore (0x8ca480): Wrapper function not found for class "(vtk >> >> object is NULL)". >> >>while processing >> >>Message 0 = Invoke >> >> Argument 0 = stream_value { >> >> Message 0 = Invoke >> >> Argument 0 = id_value {1} >> >> Argument 1 = string_value {GetVTKObject} >> >> Argument 2 = uint32_value {257} >> >> } >> >> Argument 1 = string_value {ResetCamera} >> >> >> >> >> >>ERROR: In >> >> >> >> /opt/ParaView-v5.0.1-source/ParaViewCore/ServerImplementation/Core/vtkPVSessionCore.cxx, >> >> line 391 >> >>vtkPVSessionCore (0x8ca480): Aborting execution for debugging purposes. >> >> >> >>############ ABORT ############# >> >>Wrong tag but don't know how to handle it... 188971 >> >>Aborted (core dumped) >> > Alternative 3 tries to show an interactive RenderWindow, but crashes, >> > because view->GetInteractor() returns NULL. >> > >> > Apparently I am missing some important step. Can somebody point out how >> > to >> > modify the example (below) in order to render the sphere source visible? >> > >> > Thank you >> > Peter >> > >> > TestConnection.cxx: >> > >> > #include "vtkInitializationHelper.h" >> > #include "vtkProcessModule.h" >> > #include "vtkPVOptions.h" >> > #include "vtkSMProxyManager.h" >> > #include "vtkSMSession.h" >> > #include "vtkSMSessionClient.h" >> > #include "vtkSMSessionProxyManager.h" >> > #include "vtkSMSourceProxy.h" >> > #include "vtkSMProperty.h" >> > #include "vtkSMRenderViewProxy.h" >> > >> > #include "vtkRenderWindow.h" >> > #include "vtkRenderWindowInteractor.h" >> > >> > int main(int argc, char* argv[]) >> > { >> > // Initialization >> > vtkPVOptions* options = vtkPVOptions::New(); >> > vtkInitializationHelper::Initialize(argc, argv, >> > vtkProcessModule::PROCESS_CLIENT, >> > options); >> > >> > vtkSMSessionClient* session = vtkSMSessionClient::New(); >> > vtkProcessModule::GetProcessModule()->RegisterSession(session); >> > session->Connect(options->GetServerURL()); >> > cout<<"Connected to: "<GetServerURL()<> > >> > vtkSMSessionProxyManager *pxm = session->GetSessionProxyManager(); >> > vtkSMProxy *sphere = pxm->NewProxy("sources", "SphereSource"); >> > cout<<"SphereSource created."<> > vtkSMRenderViewProxy* >> > view=(vtkSMRenderViewProxy*)pxm->NewProxy("views", >> > "RenderView"); >> > cout<<"RenderView created."<> > vtkSMRepresentationProxy* >> > repr=view->CreateDefaultRepresentation(sphere,0); >> > cout<<"DefaultRepresentation created."<> > >> > //Alternative 1: >> > view->StillRender(); while(1); //no crash, but only background >> > visible. >> > >> > //Alternative 2: >> > /* >> > view->ResetCamera(); //crash here >> > view->StillRender(); while(1); >> > */ >> > >> > //Alternative 3: >> > /* >> > view->InteractiveRender(); >> > view->GetInteractor()->Initialize(); //crash here, because >> > view->GetInteractor()==NULL >> > view->GetInteractor()->Start(); >> > */ >> > //TODO: clean up stuff >> > } >> > >> > On Wed, Apr 20, 2016 at 5:26 PM, Utkarsh Ayachit >> > wrote: >> >> >> >> > Thank you, but we need a pure C++ solution. There is plenty of >> >> > information >> >> > how this is done with python scripting, but I can't find anything for >> >> > C++. >> >> > I really need nothing more than a minimal example. >> >> >> >> Peter, look at TestComparativeAnimationCueProxy.cxx[1] file in the >> >> ParaView source. It demonstrates how the initialization needs to >> >> happen. If you have further questions on how to use anything specific >> >> in this application, feel free to holler :). >> >> >> >> [1] >> >> >> >> https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/ServerManager/Default/Testing/Cxx/TestComparativeAnimationCueProxy.cxx >> >> >> >> Utkarsh >> > >> > > > From vogtpeter5 at gmail.com Thu Apr 21 11:47:16 2016 From: vogtpeter5 at gmail.com (Peter Vogt) Date: Thu, 21 Apr 2016 17:47:16 +0200 Subject: [Paraview-developers] establish client connection to pvserver from C++ In-Reply-To: References: Message-ID: Thank you! Your example runs fine. The controller's sources also helped me to sort out what was missing in my example, and what you meant by adding the representation to the corresponding property of the view. Basically I missed two calls "vtkSMPropertyHelper(repr, "Input").Set(sphere, 0);" and "vtkSMPropertyHelper(view, "Representations").Add(repr);" and a few "UpdateVTKObjects()." I include my working example below, and I think we can consider my question solved :) By the way, is it ok to ask this kind of questions on the developers list? I tried some other paraview coding years ago and didn't get any reply on the users mailing list. Thanks Peter my working solution: #include "vtkInitializationHelper.h" #include "vtkProcessModule.h" #include "vtkPVOptions.h" #include "vtkSMProxyManager.h" #include "vtkSMSession.h" #include "vtkSMSessionClient.h" #include "vtkSMSessionProxyManager.h" #include "vtkSMSourceProxy.h" #include "vtkSMProperty.h" #include "vtkSMRenderViewProxy.h" #include "vtkRenderWindow.h" #include "vtkRenderWindowInteractor.h" #include "vtkSMRepresentationProxy.h" #include "vtkSMPropertyHelper.h" int main(int argc, char* argv[]) { // Initialization vtkPVOptions* options = vtkPVOptions::New(); vtkInitializationHelper::Initialize(argc, argv, vtkProcessModule::PROCESS_CLIENT, options); vtkSMSessionClient* session = vtkSMSessionClient::New(); vtkProcessModule::GetProcessModule()->RegisterSession(session); session->Connect(options->GetServerURL()); cout<<"Connected to: "<GetServerURL()<GetSessionProxyManager(); vtkSMProxy *sphere = pxm->NewProxy("sources", "SphereSource"); sphere->UpdateVTKObjects(); cout<<"SphereSource created."<NewProxy("views", "RenderView"); bool ok=view->MakeRenderWindowInteractor(false); cout<<"RenderView created. "<CreateDefaultRepresentation(sphere,0); cout<<"DefaultRepresentation created."<UpdateVTKObjects(); view->UpdateVTKObjects(); view->GetInteractor()->Initialize(); view->GetInteractor()->Start(); //TODO: clean up stuff } On Thu, Apr 21, 2016 at 4:49 PM, Utkarsh Ayachit < utkarsh.ayachit at kitware.com> wrote: > Peter, > > Here's an example: > > https://gitlab.kitware.com/paraview/paraview/merge_requests/747/diffs > > Utkarsh > > On Thu, Apr 21, 2016 at 9:57 AM, Peter Vogt wrote: > > Thank you, Utkarsh, > > the time for writing our last posts has overlapped. I had fixed the > missing > > UpdateVTKObjects() call in between, and I think the only missing step is > to > > add the sphere's representation to the view proxy. > > But how do I add it to the Representations "property"? Neither > > vtkSMViewProxy nor vtkSMRenderViewProxy have a method like > > GetRepresentations() or InsertRepresentation(). Getting this final step > > right will certainly help me understand the programming principle. > > > > If the vtkSMParaViewPipleineControllerWithRendering is the recommended > way > > of remotely rendering objects, I'll definitely appreciate an example > using > > this class, if it doesn't cost you too much time. > > > > Thanks > > Peter > > > > > > On Thu, Apr 21, 2016 at 3:42 PM, Utkarsh Ayachit > > wrote: > >> > >> Peter, > >> > >> After a proxy is created or after any of its properties are changed, > >> one must call "vtkSMProxy::UpdateVTKObject()" to push the changes made > >> locally to the server or the underlying VTK objects. Try putting a > >> call to this method the NewProxy(...) calls. You're also missing > >> adding the Sphere source's representation to the View proxy's > >> "Representations" property. Other option is to use the > >> vtkSMParaViewPipleineControllerWithRendering. > >> > >> Give me a few hours, and I can put together an example that uses the > >> controller to create a view and show something in it to get you > >> started. > >> > >> Utkarsh > >> > >> > >> > >> On Thu, Apr 21, 2016 at 8:49 AM, Peter Vogt > wrote: > >> > Hello again, > >> > thanks to your help, I was able to establish a connection to a > pvserver > >> > and > >> > create a SphereSource proxy. Now I cannot figure out how to view the > >> > rendered scene on the client. > >> > > >> > My attempt, "TestConnection.cxx", is attached below. I have tried > three > >> > alternatives, which I have marked in the code: > >> > Alternative 1 calls "view->StillRender()", which shows the greyish > >> > background, maybe because the sphere is outside the viewport? > >> > Alternative 2 calls "view->ResetCamera()" before the StillRender(), > but > >> > ResetCamera crashes with the following output: > >> >>ERROR: In > >> >> > >> >> > /opt/ParaView-v5.0.1-source/ParaViewCore/ServerImplementation/Core/vtkPVSessionCoreInterpreterHelper.cxx, > >> >> line 63 > >> >>vtkPVSessionCoreInterpreterHelper (0x976950): No vtkSIProxy for id : > 257 > >> >> > >> >>ERROR: In > >> >> > >> >> > /opt/ParaView-v5.0.1-source/ParaViewCore/ServerImplementation/Core/vtkPVSessionCore.cxx, > >> >> line 390 > >> >>vtkPVSessionCore (0x8ca480): Wrapper function not found for class > "(vtk > >> >> object is NULL)". > >> >>while processing > >> >>Message 0 = Invoke > >> >> Argument 0 = stream_value { > >> >> Message 0 = Invoke > >> >> Argument 0 = id_value {1} > >> >> Argument 1 = string_value {GetVTKObject} > >> >> Argument 2 = uint32_value {257} > >> >> } > >> >> Argument 1 = string_value {ResetCamera} > >> >> > >> >> > >> >>ERROR: In > >> >> > >> >> > /opt/ParaView-v5.0.1-source/ParaViewCore/ServerImplementation/Core/vtkPVSessionCore.cxx, > >> >> line 391 > >> >>vtkPVSessionCore (0x8ca480): Aborting execution for debugging > purposes. > >> >> > >> >>############ ABORT ############# > >> >>Wrong tag but don't know how to handle it... 188971 > >> >>Aborted (core dumped) > >> > Alternative 3 tries to show an interactive RenderWindow, but crashes, > >> > because view->GetInteractor() returns NULL. > >> > > >> > Apparently I am missing some important step. Can somebody point out > how > >> > to > >> > modify the example (below) in order to render the sphere source > visible? > >> > > >> > Thank you > >> > Peter > >> > > >> > TestConnection.cxx: > >> > > >> > #include "vtkInitializationHelper.h" > >> > #include "vtkProcessModule.h" > >> > #include "vtkPVOptions.h" > >> > #include "vtkSMProxyManager.h" > >> > #include "vtkSMSession.h" > >> > #include "vtkSMSessionClient.h" > >> > #include "vtkSMSessionProxyManager.h" > >> > #include "vtkSMSourceProxy.h" > >> > #include "vtkSMProperty.h" > >> > #include "vtkSMRenderViewProxy.h" > >> > > >> > #include "vtkRenderWindow.h" > >> > #include "vtkRenderWindowInteractor.h" > >> > > >> > int main(int argc, char* argv[]) > >> > { > >> > // Initialization > >> > vtkPVOptions* options = vtkPVOptions::New(); > >> > vtkInitializationHelper::Initialize(argc, argv, > >> > > vtkProcessModule::PROCESS_CLIENT, > >> > options); > >> > > >> > vtkSMSessionClient* session = vtkSMSessionClient::New(); > >> > vtkProcessModule::GetProcessModule()->RegisterSession(session); > >> > session->Connect(options->GetServerURL()); > >> > cout<<"Connected to: "<GetServerURL()< >> > > >> > vtkSMSessionProxyManager *pxm = session->GetSessionProxyManager(); > >> > vtkSMProxy *sphere = pxm->NewProxy("sources", "SphereSource"); > >> > cout<<"SphereSource created."< >> > vtkSMRenderViewProxy* > >> > view=(vtkSMRenderViewProxy*)pxm->NewProxy("views", > >> > "RenderView"); > >> > cout<<"RenderView created."< >> > vtkSMRepresentationProxy* > >> > repr=view->CreateDefaultRepresentation(sphere,0); > >> > cout<<"DefaultRepresentation created."< >> > > >> > //Alternative 1: > >> > view->StillRender(); while(1); //no crash, but only background > >> > visible. > >> > > >> > //Alternative 2: > >> > /* > >> > view->ResetCamera(); //crash here > >> > view->StillRender(); while(1); > >> > */ > >> > > >> > //Alternative 3: > >> > /* > >> > view->InteractiveRender(); > >> > view->GetInteractor()->Initialize(); //crash here, because > >> > view->GetInteractor()==NULL > >> > view->GetInteractor()->Start(); > >> > */ > >> > //TODO: clean up stuff > >> > } > >> > > >> > On Wed, Apr 20, 2016 at 5:26 PM, Utkarsh Ayachit > >> > wrote: > >> >> > >> >> > Thank you, but we need a pure C++ solution. There is plenty of > >> >> > information > >> >> > how this is done with python scripting, but I can't find anything > for > >> >> > C++. > >> >> > I really need nothing more than a minimal example. > >> >> > >> >> Peter, look at TestComparativeAnimationCueProxy.cxx[1] file in the > >> >> ParaView source. It demonstrates how the initialization needs to > >> >> happen. If you have further questions on how to use anything specific > >> >> in this application, feel free to holler :). > >> >> > >> >> [1] > >> >> > >> >> > https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/ServerManager/Default/Testing/Cxx/TestComparativeAnimationCueProxy.cxx > >> >> > >> >> Utkarsh > >> > > >> > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From utkarsh.ayachit at kitware.com Thu Apr 21 13:50:15 2016 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Thu, 21 Apr 2016 13:50:15 -0400 Subject: [Paraview-developers] establish client connection to pvserver from C++ In-Reply-To: References: Message-ID: > By the way, is it ok to ask this kind of questions on the developers list? I > tried some other paraview coding years ago and didn't get any reply on the > users mailing list. Either list is fine. I don't think anyone will not respond to an email just because it's not on the right list :). From ellonpaiva at gmail.com Fri Apr 22 09:27:14 2016 From: ellonpaiva at gmail.com (Ellon Paiva) Date: Fri, 22 Apr 2016 15:27:14 +0200 Subject: [Paraview-developers] Reader for point cloud stored on custom binary file Message-ID: <571A26B2.8050005@gmail.com> Hello all, I'm trying to create a Reader that reads a point cloud stored in a binary file, where each point consists into 4 floats (x,y,z,reflectance). Firstly I tried the Programable source with the code in the attached file. The drawback is having to change the path by hand everytime, but that was the solution I found at the moment. It worked ok for some files, but for others it didn't. You can download the files where it worked and where it didn't here: worked , didntwork_01 , didntwork_02 When it didn't work at times it looked like I had two different point clouds oriented perpendicular each other or I was reading one component wrongly (reflectance as x). Does anyone knows what's going wrong? Also, this code creates a single cell with all vertices. How could I do it with one cell per vertex? Best regards, Ellon -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: programable_filter.py Type: text/x-python Size: 1261 bytes Desc: not available URL: From jfavre at cscs.ch Fri Apr 22 10:15:13 2016 From: jfavre at cscs.ch (Favre Jean) Date: Fri, 22 Apr 2016 14:15:13 +0000 Subject: [Paraview-developers] Reader for point cloud stored on custom binary file In-Reply-To: <571A26B2.8050005@gmail.com> References: <571A26B2.8050005@gmail.com> Message-ID: <0EB9B6375711A04B820E6B6F5CCA9F68435E36E4@MBX211.d.ethz.ch> my suggestion would be to use some more numpy-oriented features. Your "points" array is already a numpy array, you can feed it to the vtkPolyData with a simple reshaping. Same for your reflectance array. No need for a for-loop I'd replace your code with this: filename = "worked.bin" points = load_velodyne_points(filename) N=points.shape[1] # use "output" as the pre-defined vtkPolyData object output.Points = points[0:3,].reshape(N, 3) output.PointData.append(points[3,], "reflectance") I usually skip building up cells, because I use a PointGaussian representation mode. But your needs might differ. Anyway, with the changes above, I can read all 3 files without any problem. ----------------- Jean -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Fri Apr 22 10:35:02 2016 From: dave.demarle at kitware.com (David E DeMarle) Date: Fri, 22 Apr 2016 10:35:02 -0400 Subject: [Paraview-developers] Reader for point cloud stored on custom binary file In-Reply-To: <0EB9B6375711A04B820E6B6F5CCA9F68435E36E4@MBX211.d.ethz.ch> References: <571A26B2.8050005@gmail.com> <0EB9B6375711A04B820E6B6F5CCA9F68435E36E4@MBX211.d.ethz.ch> Message-ID: You can turn your python programmable source into a standard reader. Then you don't have to edit the script manually as File->Ooen will know how to use it. For details: http://markmail.org/thread/2pnrmzkbx5n2u3ke David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Fri, Apr 22, 2016 at 10:15 AM, Favre Jean wrote: > > my suggestion would be to use some more numpy-oriented features. Your > "points" array is already a numpy array, you can feed it to the vtkPolyData > with a simple reshaping. Same for your reflectance array. No need for a > for-loop > > I'd replace your code with this: > > filename = "worked.bin" > > points = load_velodyne_points(filename) > N=points.shape[1] > # use "output" as the pre-defined vtkPolyData object > output.Points = points[0:3,].reshape(N, 3) > output.PointData.append(points[3,], "reflectance") > > I usually skip building up cells, because I use a PointGaussian > representation mode. But your needs might differ. Anyway, with the changes > above, I can read all 3 files without any problem. > > ----------------- > Jean > > _______________________________________________ > 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 ellonpaiva at gmail.com Fri Apr 22 11:10:54 2016 From: ellonpaiva at gmail.com (Ellon Paiva) Date: Fri, 22 Apr 2016 17:10:54 +0200 Subject: [Paraview-developers] Reader for point cloud stored on custom binary file In-Reply-To: <0EB9B6375711A04B820E6B6F5CCA9F68435E36E4@MBX211.d.ethz.ch> References: <571A26B2.8050005@gmail.com> <0EB9B6375711A04B820E6B6F5CCA9F68435E36E4@MBX211.d.ethz.ch> Message-ID: <571A3EFE.5090806@gmail.com> Jean, I tried your code and I got the following error: Traceback (most recent call last): File "", line 19, in File "", line 18, in RequestData AttributeError: can't set attribute Here's my source code: from struct import unpack_from from os import stat import numpy as np def load_velodyne_points(filename): num_points = stat(filename).st_size/16 points = np.zeros((4, num_points)) with open(filename, "rb") as f: # Read all points, convert to floats and assign to # a column-wise flat view of points points.T.flat[:] = unpack_from('f'*num_points, f.read()) return points filename = "worked.bin" points = load_velodyne_points(filename) N = points.shape[1] output.Points = points[0:3,].reshape(N, 3) output.PointData.append(points[3,], "reflectance") Which version of paraview are you using? I'm using the 4.0.1 64bit installed from apt-get on Ubuntu 14.04.4 LTS. Ellon On 04/22/2016 04:15 PM, Favre Jean wrote: > > my suggestion would be to use some more numpy-oriented features. Your > "points" array is already a numpy array, you can feed it to the > vtkPolyData with a simple reshaping. Same for your reflectance array. > No need for a for-loop > > I'd replace your code with this: > > filename = "worked.bin" > > points = load_velodyne_points(filename) > N=points.shape[1] > # use "output" as the pre-defined vtkPolyData object > output.Points = points[0:3,].reshape(N, 3) > output.PointData.append(points[3,], "reflectance") > > I usually skip building up cells, because I use a PointGaussian > representation mode. But your needs might differ. Anyway, with the > changes above, I can read all 3 files without any problem. > > ----------------- > Jean -------------- next part -------------- An HTML attachment was scrubbed... URL: From Matthew.Czech at pfizer.com Fri Apr 22 13:44:02 2016 From: Matthew.Czech at pfizer.com (Czech, Matthew) Date: Fri, 22 Apr 2016 17:44:02 +0000 Subject: [Paraview-developers] Paraview for Data Display Over Time Message-ID: Hello, I work at Pfizer and we are trying to use Paraview to display data related to network connectivity in the brain. We are trying to display points as colored boxes that change scalar value over time. I have tried to write a programmable filter that adds box glyphs to data points and will change the scalar value of the data point based on the time point. Specifically I am trying to return a value for the current time point and use that value to grab certain scalar weights within a text file. I can?t quite get it to work though and I have two big questions: 1. Is there script I can write within a programmable filter to create glyph boxes for the data points? 2. Is script I wrote below on the right track to have the filter return a value for the current time point and then use this value to parse through a text file and choose the scalar value corresponding to that time point? Below I included a simplified example of what I have at the moment for just one point with 4 scalar values (txt file attached). I am getting an error with the filter that does not occur with just the source saying list indices must be integers not float. Any information would be greatly appreciated. Many thanks, Matt #Programmable Source Script import vtk import numpy as np coordinate = np.array([[0,0,0]]) node_file = open(??/pointWeights_test.txt', 'r') data = node_file.readlines() timePoint = 0 pointWeight = float(data[timePoint]) node_file.close() output.Points = coordinate output.Allocate(1) output.PointData.append(pointWeight, "Point Weight") #Programmable Source RequestInformation timeSteps = range(4) outInfo = self.GetOutputInformation(0) timeRange = [timeSteps[0], timeSteps[-1]] outInfo.Set(vtk.vtkStreamingDemandDrivenPipeline.TIME_RANGE(), timeRange, 2) outInfo.Set(vtk.vtkStreamingDemandDrivenPipeline.TIME_STEPS(), timeSteps, len(timeSteps)) #Programmable Filter Script import vtk import numpy as np outInfo = self.GetOutputInformation(0) if outInfo.Has(vtk.vtkStreamingDemandDrivenPipeline.UPDATE_TIME_STEP()): time = outInfo.Get(vtk.vtkStreamingDemandDrivenPipeline.UPDATE_TIME_STEP()) else: time = 0 coordinate = np.array([[0,0,0]]) node_file = open(??/pointWeights_test.txt', 'r') data = node_file.readlines() pointWeight = float(data[time]) node_file.close() output.Points = coordinate output.Allocate(1) output.PointData.append(pointWeight, "Point Weight") -------------- next part -------------- An HTML attachment was scrubbed... URL: From jfavre at cscs.ch Fri Apr 22 16:10:07 2016 From: jfavre at cscs.ch (Favre Jean) Date: Fri, 22 Apr 2016 20:10:07 +0000 Subject: [Paraview-developers] Reader for point cloud stored on custom binary file In-Reply-To: <571A3EFE.5090806@gmail.com> References: <571A26B2.8050005@gmail.com> <0EB9B6375711A04B820E6B6F5CCA9F68435E36E4@MBX211.d.ethz.ch>, <571A3EFE.5090806@gmail.com> Message-ID: <0EB9B6375711A04B820E6B6F5CCA9F68435E38B3@MBX211.d.ethz.ch> I tested the code using version 5.0.1. I had no idea you were using a much older version. I encourage you to move to 5.0. The numpy support is much improved and makes your life easier. Jean -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kevin.Hallock at pfizer.com Mon Apr 25 11:41:38 2016 From: Kevin.Hallock at pfizer.com (Hallock, Kevin) Date: Mon, 25 Apr 2016 15:41:38 +0000 Subject: [Paraview-developers] Affine transformations in Paraview 5.0.0 Message-ID: Hi, I am trying to display PLY objects that were created from NIFTI files and I know in other software (DSI Studio) the NIFTI images are co-registered by using the header information in the NIFTI file. The matrices that contain the co-registration information of the two brain atlases are: AATG atlas srow_x [-1,0,0,78] srow_y [0,-1,0,76] srow_z [0,0,1,-50] MNI atlas srow_x [-1,0,0,90] srow_y [0,1,0,-126] srow_z [0,0,1,-72] These transforms are supposed to be applied in the following way: The (x,y,z) coordinates are given by a general affine transformation of the (i,j,k) indexes: x = srow_x[0] * i + srow_x[1] * j + srow_x[2] * k + srow_x[3] y = srow_y[0] * i + srow_y[1] * j + srow_y[2] * k + srow_y[3] z = srow_z[0] * i + srow_z[1] * j + srow_z[2] * k + srow_z[3] I thought I would be able to co-register them by applying the above information via the Transform option under Properties, but the result appears to be missing at least one rotation so I am wondering if there is another way to do the affine transformation. Thanks, Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From kmorel at sandia.gov Mon Apr 25 12:30:08 2016 From: kmorel at sandia.gov (Moreland, Kenneth) Date: Mon, 25 Apr 2016 16:30:08 +0000 Subject: [Paraview-developers] Affine transformations in Paraview 5.0.0 Message-ID: Kevin, You could try the Transform filter. The interface is similar to the transform options in properties, but the results are more stable. You can also run the Image Data to Point Set filter to convert to a curvilinear grid and then run the calculator filter with the Coordinate Results option checked and an equation for the transformation set as the expression. -Ken From: Paraview-developers > on behalf of "Hallock, Kevin" > Date: Monday, April 25, 2016 at 9:41 AM To: "paraview-developers at paraview.org" > Subject: [EXTERNAL] [Paraview-developers] Affine transformations in Paraview 5.0.0 Hi, I am trying to display PLY objects that were created from NIFTI files and I know in other software (DSI Studio) the NIFTI images are co-registered by using the header information in the NIFTI file. The matrices that contain the co-registration information of the two brain atlases are: AATG atlas srow_x [-1,0,0,78] srow_y [0,-1,0,76] srow_z [0,0,1,-50] MNI atlas srow_x [-1,0,0,90] srow_y [0,1,0,-126] srow_z [0,0,1,-72] These transforms are supposed to be applied in the following way: The (x,y,z) coordinates are given by a general affine transformation of the (i,j,k) indexes: x = srow_x[0] * i + srow_x[1] * j + srow_x[2] * k + srow_x[3] y = srow_y[0] * i + srow_y[1] * j + srow_y[2] * k + srow_y[3] z = srow_z[0] * i + srow_z[1] * j + srow_z[2] * k + srow_z[3] I thought I would be able to co-register them by applying the above information via the Transform option under Properties, but the result appears to be missing at least one rotation so I am wondering if there is another way to do the affine transformation. Thanks, Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kevin.Hallock at pfizer.com Mon Apr 25 13:10:11 2016 From: Kevin.Hallock at pfizer.com (Hallock, Kevin) Date: Mon, 25 Apr 2016 17:10:11 +0000 Subject: [Paraview-developers] Affine transformations in Paraview 5.0.0 In-Reply-To: References: Message-ID: Do you know the order in which the transformations are applied? Is scaling applied before translation? If I apply a ?1 scaling to x, does that reflect the points across the y-z plane? Thanks, Kevin From: "Moreland, Kenneth" > Date: Monday, April 25, 2016 at 12:30 PM To: Kevin Hallock >, "paraview-developers at paraview.org" > Subject: Re: [Paraview-developers] Affine transformations in Paraview 5.0.0 Kevin, You could try the Transform filter. The interface is similar to the transform options in properties, but the results are more stable. You can also run the Image Data to Point Set filter to convert to a curvilinear grid and then run the calculator filter with the Coordinate Results option checked and an equation for the transformation set as the expression. -Ken From: Paraview-developers > on behalf of "Hallock, Kevin" > Date: Monday, April 25, 2016 at 9:41 AM To: "paraview-developers at paraview.org" > Subject: [EXTERNAL] [Paraview-developers] Affine transformations in Paraview 5.0.0 Hi, I am trying to display PLY objects that were created from NIFTI files and I know in other software (DSI Studio) the NIFTI images are co-registered by using the header information in the NIFTI file. The matrices that contain the co-registration information of the two brain atlases are: AATG atlas srow_x [-1,0,0,78] srow_y [0,-1,0,76] srow_z [0,0,1,-50] MNI atlas srow_x [-1,0,0,90] srow_y [0,1,0,-126] srow_z [0,0,1,-72] These transforms are supposed to be applied in the following way: The (x,y,z) coordinates are given by a general affine transformation of the (i,j,k) indexes: x = srow_x[0] * i + srow_x[1] * j + srow_x[2] * k + srow_x[3] y = srow_y[0] * i + srow_y[1] * j + srow_y[2] * k + srow_y[3] z = srow_z[0] * i + srow_z[1] * j + srow_z[2] * k + srow_z[3] I thought I would be able to co-register them by applying the above information via the Transform option under Properties, but the result appears to be missing at least one rotation so I am wondering if there is another way to do the affine transformation. Thanks, Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From ellonpaiva at gmail.com Mon Apr 25 15:35:27 2016 From: ellonpaiva at gmail.com (Ellon Paiva) Date: Mon, 25 Apr 2016 21:35:27 +0200 Subject: [Paraview-developers] Reader for point cloud stored on custom binary file In-Reply-To: <0EB9B6375711A04B820E6B6F5CCA9F68435E36E4@MBX211.d.ethz.ch> References: <571A26B2.8050005@gmail.com> <0EB9B6375711A04B820E6B6F5CCA9F68435E36E4@MBX211.d.ethz.ch> Message-ID: <571E717F.10007@gmail.com> I decided to follow your advice and installed paraview 5.0.1 from source. The code seemed to work, but I don't see any point in the screen. I can see in the information tab that all points were loaded, but the vtkPolyData has zero cells. How can I add the the points to cells? Specifically, I would like to have one point per cell. Ellon On 04/22/2016 04:15 PM, Favre Jean wrote: > > my suggestion would be to use some more numpy-oriented features. Your > "points" array is already a numpy array, you can feed it to the > vtkPolyData with a simple reshaping. Same for your reflectance array. > No need for a for-loop > > I'd replace your code with this: > > filename = "worked.bin" > > points = load_velodyne_points(filename) > N=points.shape[1] > # use "output" as the pre-defined vtkPolyData object > output.Points = points[0:3,].reshape(N, 3) > output.PointData.append(points[3,], "reflectance") > > I usually skip building up cells, because I use a PointGaussian > representation mode. But your needs might differ. Anyway, with the > changes above, I can read all 3 files without any problem. > > ----------------- > Jean -------------- next part -------------- An HTML attachment was scrubbed... URL: From jfavre at cscs.ch Mon Apr 25 16:25:28 2016 From: jfavre at cscs.ch (Favre Jean) Date: Mon, 25 Apr 2016 20:25:28 +0000 Subject: [Paraview-developers] Reader for point cloud stored on custom binary file In-Reply-To: <571E717F.10007@gmail.com> References: <571A26B2.8050005@gmail.com> <0EB9B6375711A04B820E6B6F5CCA9F68435E36E4@MBX211.d.ethz.ch>, <571E717F.10007@gmail.com> Message-ID: <0EB9B6375711A04B820E6B6F5CCA9F68435E457B@MBX211.d.ethz.ch> Ellon by default, the representation for vtkPolyData is "Surface". That is why you have an empty screen. Toggle the representation mode to "Points", or better yet, to "Gaussian Points", and your vertices will appear. (U might need to reset the camera) if you really need cells, you should follow the same reasoning and create a numpy array, which you can give to the vtkPolyData object all at once. I don't have ParaView on my current device to try the exact syntax, but it will be one of the SetCells() call. ----------------- Jean -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kevin.Hallock at pfizer.com Mon Apr 25 16:26:23 2016 From: Kevin.Hallock at pfizer.com (Hallock, Kevin) Date: Mon, 25 Apr 2016 20:26:23 +0000 Subject: [Paraview-developers] Line of arrowheads Message-ID: Hi, I have a line object connecting two regions of a brain atlas and would like to have several arrowheads or cones running along the line to reflect the flow of information between those regions. I have played around with glyphs, but cannot find a way to make them parallel to the line?s direction. Is there a way to create such a visualization? Thanks, Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From ellonpaiva at gmail.com Wed Apr 27 09:35:26 2016 From: ellonpaiva at gmail.com (Ellon Paiva) Date: Wed, 27 Apr 2016 15:35:26 +0200 Subject: [Paraview-developers] Reader for point cloud stored on custom binary file In-Reply-To: <0EB9B6375711A04B820E6B6F5CCA9F68435E457B@MBX211.d.ethz.ch> References: <571A26B2.8050005@gmail.com> <0EB9B6375711A04B820E6B6F5CCA9F68435E36E4@MBX211.d.ethz.ch> <571E717F.10007@gmail.com> <0EB9B6375711A04B820E6B6F5CCA9F68435E457B@MBX211.d.ethz.ch> Message-ID: <5720C01E.5080702@gmail.com> Jean, David, I finally managed to have the programmable source for my binary file working and converted into a standard reader. Thank you for your help! Best, Ellon On 04/25/2016 10:25 PM, Favre Jean wrote: > Ellon > > by default, the representation for vtkPolyData is "Surface". That is > why you have an empty screen. Toggle the representation mode to > "Points", or better yet, to "Gaussian Points", and your vertices will > appear. (U might need to reset the camera) > > if you really need cells, you should follow the same reasoning and > create a numpy array, which you can give to the vtkPolyData object all > at once. I don't have ParaView on my current device to try the exact > syntax, but it will be one of the SetCells() call. > > ----------------- > Jean -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kevin.Hallock at pfizer.com Wed Apr 27 10:09:53 2016 From: Kevin.Hallock at pfizer.com (Hallock, Kevin) Date: Wed, 27 Apr 2016 14:09:53 +0000 Subject: [Paraview-developers] Generate Ids filters and color schemes Message-ID: Hi, I have created several lines, applied tube filters to the line, and applied a GenerateID filter to the tube so I can color each tube. I would like for each tube to have a different color scheme, but when I change one of the color schemes all of them change so they are identical. Is there a way to alter each color scheme individually? Thanks, Kevin -- Kevin Hallock Visualization and Modeling, Quantitative Medicine Neuroscience and Pain Research Unit Worldwide Research and Development Pfizer Inc 610 Main Street Cambridge, MA 02139 Email: kevin.hallock at pfizer.com Fax: 845-474-4001 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.westphal at kitware.com Wed Apr 27 10:17:15 2016 From: mathieu.westphal at kitware.com (Mathieu Westphal) Date: Wed, 27 Apr 2016 16:17:15 +0200 Subject: [Paraview-developers] Generate Ids filters and color schemes In-Reply-To: References: Message-ID: Hello If by color scheme, you mean color map, as set in the color map editor, there is no easy way to do that. You would need to seperate all your tubes in different dataset, it could be done via multiple use of extract selection, then you would need to rename each array you are using to color your tube, each one with a different name ! you could use the calculator to do that. If you need to do that only once for a presentation, that could be done, but if this is in your workflow or if there is a lot of tubes, it does not look like a good idea. Mathieu Westphal On Wed, Apr 27, 2016 at 4:09 PM, Hallock, Kevin wrote: > Hi, > > I have created several lines, applied tube filters to the line, and > applied a GenerateID filter to the tube so I can color each tube. I would > like for each tube to have a different color scheme, but when I change one > of the color schemes all of them change so they are identical. Is there a > way to alter each color scheme individually? > > Thanks, > > Kevin > > -- > Kevin Hallock > Visualization and Modeling, Quantitative Medicine > Neuroscience and Pain Research Unit > Worldwide Research and Development > Pfizer Inc > 610 Main Street > Cambridge, MA 02139 > Email: kevin.hallock at pfizer.com > Fax: 845-474-4001 > > _______________________________________________ > 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 Kevin.Hallock at pfizer.com Wed Apr 27 10:25:30 2016 From: Kevin.Hallock at pfizer.com (Hallock, Kevin) Date: Wed, 27 Apr 2016 14:25:30 +0000 Subject: [Paraview-developers] Generate Ids filters and color schemes In-Reply-To: References: Message-ID: Is there another way to apply different color maps to different objects? It seems odd that every object has to use the same color map. Thanks, Kevin From: Mathieu Westphal > Date: Wednesday, April 27, 2016 at 10:17 AM To: Kevin Hallock > Cc: "paraview-developers at paraview.org" > Subject: Re: [Paraview-developers] Generate Ids filters and color schemes Hello If by color scheme, you mean color map, as set in the color map editor, there is no easy way to do that. You would need to seperate all your tubes in different dataset, it could be done via multiple use of extract selection, then you would need to rename each array you are using to color your tube, each one with a different name ! you could use the calculator to do that. If you need to do that only once for a presentation, that could be done, but if this is in your workflow or if there is a lot of tubes, it does not look like a good idea. Mathieu Westphal On Wed, Apr 27, 2016 at 4:09 PM, Hallock, Kevin > wrote: Hi, I have created several lines, applied tube filters to the line, and applied a GenerateID filter to the tube so I can color each tube. I would like for each tube to have a different color scheme, but when I change one of the color schemes all of them change so they are identical. Is there a way to alter each color scheme individually? Thanks, Kevin -- Kevin Hallock Visualization and Modeling, Quantitative Medicine Neuroscience and Pain Research Unit Worldwide Research and Development Pfizer Inc 610 Main Street Cambridge, MA 02139 Email: kevin.hallock at pfizer.com Fax: 845-474-4001 _______________________________________________ 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 mathieu.westphal at kitware.com Wed Apr 27 10:26:50 2016 From: mathieu.westphal at kitware.com (Mathieu Westphal) Date: Wed, 27 Apr 2016 16:26:50 +0200 Subject: [Paraview-developers] Generate Ids filters and color schemes In-Reply-To: References: Message-ID: Actually, in paraview, one object is colored by one array, and color map are shared for array *having the same name.* Mathieu Westphal On Wed, Apr 27, 2016 at 4:25 PM, Hallock, Kevin wrote: > Is there another way to apply different color maps to different objects? > It seems odd that every object has to use the same color map. > > Thanks, > > Kevin > > From: Mathieu Westphal > Date: Wednesday, April 27, 2016 at 10:17 AM > To: Kevin Hallock > Cc: "paraview-developers at paraview.org" > Subject: Re: [Paraview-developers] Generate Ids filters and color schemes > > Hello > > If by color scheme, you mean color map, as set in the color map editor, > there is no easy way to do that. > You would need to seperate all your tubes in different dataset, it could > be done via multiple use of extract selection, > then you would need to rename each array you are using to color your tube, > each one with a different name ! > you could use the calculator to do that. > > If you need to do that only once for a presentation, that could be done, > but if this is in your workflow or if there is a lot of tubes, it does not > look like a good idea. > > > Mathieu Westphal > > On Wed, Apr 27, 2016 at 4:09 PM, Hallock, Kevin > wrote: > >> Hi, >> >> I have created several lines, applied tube filters to the line, and >> applied a GenerateID filter to the tube so I can color each tube. I would >> like for each tube to have a different color scheme, but when I change one >> of the color schemes all of them change so they are identical. Is there a >> way to alter each color scheme individually? >> >> Thanks, >> >> Kevin >> >> -- >> Kevin Hallock >> Visualization and Modeling, Quantitative Medicine >> Neuroscience and Pain Research Unit >> Worldwide Research and Development >> Pfizer Inc >> 610 Main Street >> Cambridge, MA 02139 >> Email: kevin.hallock at pfizer.com >> Fax: 845-474-4001 >> >> _______________________________________________ >> 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 Kevin.Hallock at pfizer.com Wed Apr 27 10:32:41 2016 From: Kevin.Hallock at pfizer.com (Hallock, Kevin) Date: Wed, 27 Apr 2016 14:32:41 +0000 Subject: [Paraview-developers] Generate Ids filters and color schemes In-Reply-To: References: Message-ID: Thanks. Where is the name of the array assigned? I have different line objects at the root of each of these tubes so I am uncertain why they would have arrays with identical names. Kevin From: Mathieu Westphal > Date: Wednesday, April 27, 2016 at 10:26 AM To: Kevin Hallock > Cc: "paraview-developers at paraview.org" > Subject: Re: [Paraview-developers] Generate Ids filters and color schemes Actually, in paraview, one object is colored by one array, and color map are shared for array having the same name. Mathieu Westphal On Wed, Apr 27, 2016 at 4:25 PM, Hallock, Kevin > wrote: Is there another way to apply different color maps to different objects? It seems odd that every object has to use the same color map. Thanks, Kevin From: Mathieu Westphal > Date: Wednesday, April 27, 2016 at 10:17 AM To: Kevin Hallock > Cc: "paraview-developers at paraview.org" > Subject: Re: [Paraview-developers] Generate Ids filters and color schemes Hello If by color scheme, you mean color map, as set in the color map editor, there is no easy way to do that. You would need to seperate all your tubes in different dataset, it could be done via multiple use of extract selection, then you would need to rename each array you are using to color your tube, each one with a different name ! you could use the calculator to do that. If you need to do that only once for a presentation, that could be done, but if this is in your workflow or if there is a lot of tubes, it does not look like a good idea. Mathieu Westphal On Wed, Apr 27, 2016 at 4:09 PM, Hallock, Kevin > wrote: Hi, I have created several lines, applied tube filters to the line, and applied a GenerateID filter to the tube so I can color each tube. I would like for each tube to have a different color scheme, but when I change one of the color schemes all of them change so they are identical. Is there a way to alter each color scheme individually? Thanks, Kevin -- Kevin Hallock Visualization and Modeling, Quantitative Medicine Neuroscience and Pain Research Unit Worldwide Research and Development Pfizer Inc 610 Main Street Cambridge, MA 02139 Email: kevin.hallock at pfizer.com Fax: 845-474-4001 _______________________________________________ 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 mathieu.westphal at kitware.com Wed Apr 27 10:34:49 2016 From: mathieu.westphal at kitware.com (Mathieu Westphal) Date: Wed, 27 Apr 2016 16:34:49 +0200 Subject: [Paraview-developers] Generate Ids filters and color schemes In-Reply-To: References: Message-ID: It depends on where does the line came from ( a reader? a filter?). you can inspect the data using a spreadsheet view on the lines. Mathieu Westphal On Wed, Apr 27, 2016 at 4:32 PM, Hallock, Kevin wrote: > Thanks. Where is the name of the array assigned? I have different line > objects at the root of each of these tubes so I am uncertain why they would > have arrays with identical names. > > Kevin > > From: Mathieu Westphal > Date: Wednesday, April 27, 2016 at 10:26 AM > > To: Kevin Hallock > Cc: "paraview-developers at paraview.org" > Subject: Re: [Paraview-developers] Generate Ids filters and color schemes > > Actually, in paraview, one object is colored by one array, and color map > are shared for array *having the same name.* > > > > Mathieu Westphal > > On Wed, Apr 27, 2016 at 4:25 PM, Hallock, Kevin > wrote: > >> Is there another way to apply different color maps to different objects? >> It seems odd that every object has to use the same color map. >> >> Thanks, >> >> Kevin >> >> From: Mathieu Westphal >> Date: Wednesday, April 27, 2016 at 10:17 AM >> To: Kevin Hallock >> Cc: "paraview-developers at paraview.org" >> Subject: Re: [Paraview-developers] Generate Ids filters and color schemes >> >> Hello >> >> If by color scheme, you mean color map, as set in the color map editor, >> there is no easy way to do that. >> You would need to seperate all your tubes in different dataset, it could >> be done via multiple use of extract selection, >> then you would need to rename each array you are using to color your >> tube, each one with a different name ! >> you could use the calculator to do that. >> >> If you need to do that only once for a presentation, that could be done, >> but if this is in your workflow or if there is a lot of tubes, it does >> not look like a good idea. >> >> >> Mathieu Westphal >> >> On Wed, Apr 27, 2016 at 4:09 PM, Hallock, Kevin > > wrote: >> >>> Hi, >>> >>> I have created several lines, applied tube filters to the line, and >>> applied a GenerateID filter to the tube so I can color each tube. I would >>> like for each tube to have a different color scheme, but when I change one >>> of the color schemes all of them change so they are identical. Is there a >>> way to alter each color scheme individually? >>> >>> Thanks, >>> >>> Kevin >>> >>> -- >>> Kevin Hallock >>> Visualization and Modeling, Quantitative Medicine >>> Neuroscience and Pain Research Unit >>> Worldwide Research and Development >>> Pfizer Inc >>> 610 Main Street >>> Cambridge, MA 02139 >>> Email: kevin.hallock at pfizer.com >>> Fax: 845-474-4001 >>> >>> _______________________________________________ >>> 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 Kevin.Hallock at pfizer.com Wed Apr 27 10:38:03 2016 From: Kevin.Hallock at pfizer.com (Hallock, Kevin) Date: Wed, 27 Apr 2016 14:38:03 +0000 Subject: [Paraview-developers] Generate Ids filters and color schemes In-Reply-To: References: Message-ID: They come from the created line source in Paraview (Sources -> Line). They have different beginning and ending coordinates so their spreadsheet coordinates are also different. Kevin From: Mathieu Westphal > Date: Wednesday, April 27, 2016 at 10:34 AM To: Kevin Hallock > Cc: "paraview-developers at paraview.org" > Subject: Re: [Paraview-developers] Generate Ids filters and color schemes It depends on where does the line came from ( a reader? a filter?). you can inspect the data using a spreadsheet view on the lines. Mathieu Westphal On Wed, Apr 27, 2016 at 4:32 PM, Hallock, Kevin > wrote: Thanks. Where is the name of the array assigned? I have different line objects at the root of each of these tubes so I am uncertain why they would have arrays with identical names. Kevin From: Mathieu Westphal > Date: Wednesday, April 27, 2016 at 10:26 AM To: Kevin Hallock > Cc: "paraview-developers at paraview.org" > Subject: Re: [Paraview-developers] Generate Ids filters and color schemes Actually, in paraview, one object is colored by one array, and color map are shared for array having the same name. Mathieu Westphal On Wed, Apr 27, 2016 at 4:25 PM, Hallock, Kevin > wrote: Is there another way to apply different color maps to different objects? It seems odd that every object has to use the same color map. Thanks, Kevin From: Mathieu Westphal > Date: Wednesday, April 27, 2016 at 10:17 AM To: Kevin Hallock > Cc: "paraview-developers at paraview.org" > Subject: Re: [Paraview-developers] Generate Ids filters and color schemes Hello If by color scheme, you mean color map, as set in the color map editor, there is no easy way to do that. You would need to seperate all your tubes in different dataset, it could be done via multiple use of extract selection, then you would need to rename each array you are using to color your tube, each one with a different name ! you could use the calculator to do that. If you need to do that only once for a presentation, that could be done, but if this is in your workflow or if there is a lot of tubes, it does not look like a good idea. Mathieu Westphal On Wed, Apr 27, 2016 at 4:09 PM, Hallock, Kevin > wrote: Hi, I have created several lines, applied tube filters to the line, and applied a GenerateID filter to the tube so I can color each tube. I would like for each tube to have a different color scheme, but when I change one of the color schemes all of them change so they are identical. Is there a way to alter each color scheme individually? Thanks, Kevin -- Kevin Hallock Visualization and Modeling, Quantitative Medicine Neuroscience and Pain Research Unit Worldwide Research and Development Pfizer Inc 610 Main Street Cambridge, MA 02139 Email: kevin.hallock at pfizer.com Fax: 845-474-4001 _______________________________________________ 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 cory.quammen at kitware.com Wed Apr 27 10:39:05 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 27 Apr 2016 10:39:05 -0400 Subject: [Paraview-developers] Generate Ids filters and color schemes In-Reply-To: References: Message-ID: Hi Kevin, The GenerateID filter determines the array name. You can change it in each object by changing the "Array Name" option in the GenerateID filter properties. With different names, you should be able to set different color maps on your line objects. - Cory On Wed, Apr 27, 2016 at 10:34 AM, Mathieu Westphal wrote: > It depends on where does the line came from ( a reader? a filter?). you can > inspect the data using a spreadsheet view on the lines. > > Mathieu Westphal > > On Wed, Apr 27, 2016 at 4:32 PM, Hallock, Kevin > wrote: >> >> Thanks. Where is the name of the array assigned? I have different line >> objects at the root of each of these tubes so I am uncertain why they would >> have arrays with identical names. >> >> Kevin >> >> From: Mathieu Westphal >> Date: Wednesday, April 27, 2016 at 10:26 AM >> >> To: Kevin Hallock >> Cc: "paraview-developers at paraview.org" >> Subject: Re: [Paraview-developers] Generate Ids filters and color schemes >> >> Actually, in paraview, one object is colored by one array, and color map >> are shared for array having the same name. >> >> >> >> Mathieu Westphal >> >> On Wed, Apr 27, 2016 at 4:25 PM, Hallock, Kevin >> wrote: >>> >>> Is there another way to apply different color maps to different objects? >>> It seems odd that every object has to use the same color map. >>> >>> Thanks, >>> >>> Kevin >>> >>> From: Mathieu Westphal >>> Date: Wednesday, April 27, 2016 at 10:17 AM >>> To: Kevin Hallock >>> Cc: "paraview-developers at paraview.org" >>> Subject: Re: [Paraview-developers] Generate Ids filters and color schemes >>> >>> Hello >>> >>> If by color scheme, you mean color map, as set in the color map editor, >>> there is no easy way to do that. >>> You would need to seperate all your tubes in different dataset, it could >>> be done via multiple use of extract selection, >>> then you would need to rename each array you are using to color your >>> tube, each one with a different name ! >>> you could use the calculator to do that. >>> >>> If you need to do that only once for a presentation, that could be done, >>> but if this is in your workflow or if there is a lot of tubes, it does >>> not look like a good idea. >>> >>> >>> Mathieu Westphal >>> >>> On Wed, Apr 27, 2016 at 4:09 PM, Hallock, Kevin >>> wrote: >>>> >>>> Hi, >>>> >>>> I have created several lines, applied tube filters to the line, and >>>> applied a GenerateID filter to the tube so I can color each tube. I would >>>> like for each tube to have a different color scheme, but when I change one >>>> of the color schemes all of them change so they are identical. Is there a >>>> way to alter each color scheme individually? >>>> >>>> Thanks, >>>> >>>> Kevin >>>> >>>> -- >>>> Kevin Hallock >>>> Visualization and Modeling, Quantitative Medicine >>>> Neuroscience and Pain Research Unit >>>> Worldwide Research and Development >>>> Pfizer Inc >>>> 610 Main Street >>>> Cambridge, MA 02139 >>>> Email: kevin.hallock at pfizer.com >>>> Fax: 845-474-4001 >>>> >>>> _______________________________________________ >>>> 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 > -- Cory Quammen R&D Engineer Kitware, Inc. From cory.quammen at kitware.com Wed Apr 27 10:46:28 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 27 Apr 2016 10:46:28 -0400 Subject: [Paraview-developers] Line of arrowheads In-Reply-To: References: Message-ID: Kevin, As a quick and dirty way, you can set up some rotations in the Glyph Transform properties to make the arrows line up with your lines. A better way involves defining a vector point data array that defines a 3D orientation, then use this vector array as the Vectors setting in the Active Attributes section. The orientation at each point should be the same. You can use a Programmable Filter to compute and add this array. HTH, Cory On Mon, Apr 25, 2016 at 4:26 PM, Hallock, Kevin wrote: > Hi, > > I have a line object connecting two regions of a brain atlas and would like > to have several arrowheads or cones running along the line to reflect the > flow of information between those regions. I have played around with glyphs, > but cannot find a way to make them parallel to the line?s direction. Is > there a way to create such a visualization? > > Thanks, > > Kevin > > _______________________________________________ > 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. From cory.quammen at kitware.com Wed Apr 27 11:06:27 2016 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 27 Apr 2016 11:06:27 -0400 Subject: [Paraview-developers] Paraview for Data Display Over Time In-Reply-To: References: Message-ID: Hi Matthew, It looks like you solved your problem over on StackOverflow. http://stackoverflow.com/questions/36843331/paraview-for-data-display-over-time Is everything working for you now? - Cory On Fri, Apr 22, 2016 at 1:44 PM, Czech, Matthew wrote: > Hello, > > I work at Pfizer and we are trying to use Paraview to display data related > to network connectivity in the brain. We are trying to display points as > colored boxes that change scalar value over time. I have tried to write a > programmable filter that adds box glyphs to data points and will change the > scalar value of the data point based on the time point. Specifically I am > trying to return a value for the current time point and use that value to > grab certain scalar weights within a text file. I can?t quite get it to work > though and I have two big questions: > > Is there script I can write within a programmable filter to create glyph > boxes for the data points? > Is script I wrote below on the right track to have the filter return a value > for the current time point and then use this value to parse through a text > file and choose the scalar value corresponding to that time point? > > Below I included a simplified example of what I have at the moment for just > one point with 4 scalar values (txt file attached). I am getting an error > with the filter that does not occur with just the source saying list indices > must be integers not float. > > Any information would be greatly appreciated. > > Many thanks, > Matt > > #Programmable Source Script > import vtk > import numpy as np > > coordinate = np.array([[0,0,0]]) > > node_file = open(??/pointWeights_test.txt', 'r') > data = node_file.readlines() > > timePoint = 0 > pointWeight = float(data[timePoint]) > > node_file.close() > > output.Points = coordinate > > output.Allocate(1) > > output.PointData.append(pointWeight, "Point Weight") > > > #Programmable Source RequestInformation > timeSteps = range(4) > > outInfo = self.GetOutputInformation(0) > > timeRange = [timeSteps[0], timeSteps[-1]] > outInfo.Set(vtk.vtkStreamingDemandDrivenPipeline.TIME_RANGE(), timeRange, 2) > outInfo.Set(vtk.vtkStreamingDemandDrivenPipeline.TIME_STEPS(), timeSteps, > len(timeSteps)) > > > #Programmable Filter Script > import vtk > import numpy as np > > outInfo = self.GetOutputInformation(0) > if outInfo.Has(vtk.vtkStreamingDemandDrivenPipeline.UPDATE_TIME_STEP()): > time = > outInfo.Get(vtk.vtkStreamingDemandDrivenPipeline.UPDATE_TIME_STEP()) > else: > time = 0 > > coordinate = np.array([[0,0,0]]) > > node_file = open(??/pointWeights_test.txt', 'r') > data = node_file.readlines() > > pointWeight = float(data[time]) > > node_file.close() > > output.Points = coordinate > > output.Allocate(1) > > output.PointData.append(pointWeight, "Point Weight") > > _______________________________________________ > 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. From Matthew.Czech at pfizer.com Wed Apr 27 12:42:26 2016 From: Matthew.Czech at pfizer.com (Czech, Matthew) Date: Wed, 27 Apr 2016 16:42:26 +0000 Subject: [Paraview-developers] Paraview for Data Display Over Time In-Reply-To: References: Message-ID: Yes thanks Cory I figured it out. Matt On 4/27/16, 11:06 AM, "Cory Quammen" wrote: >Hi Matthew, > >It looks like you solved your problem over on StackOverflow. > >http://stackoverflow.com/questions/36843331/paraview-for-data-display-over >-time > >Is everything working for you now? > >- Cory > >On Fri, Apr 22, 2016 at 1:44 PM, Czech, Matthew > wrote: >> Hello, >> >> I work at Pfizer and we are trying to use Paraview to display data >>related >> to network connectivity in the brain. We are trying to display points as >> colored boxes that change scalar value over time. I have tried to write >>a >> programmable filter that adds box glyphs to data points and will change >>the >> scalar value of the data point based on the time point. Specifically I >>am >> trying to return a value for the current time point and use that value >>to >> grab certain scalar weights within a text file. I can?t quite get it to >>work >> though and I have two big questions: >> >> Is there script I can write within a programmable filter to create glyph >> boxes for the data points? >> Is script I wrote below on the right track to have the filter return a >>value >> for the current time point and then use this value to parse through a >>text >> file and choose the scalar value corresponding to that time point? >> >> Below I included a simplified example of what I have at the moment for >>just >> one point with 4 scalar values (txt file attached). I am getting an >>error >> with the filter that does not occur with just the source saying list >>indices >> must be integers not float. >> >> Any information would be greatly appreciated. >> >> Many thanks, >> Matt >> >> #Programmable Source Script >> import vtk >> import numpy as np >> >> coordinate = np.array([[0,0,0]]) >> >> node_file = open(??/pointWeights_test.txt', 'r') >> data = node_file.readlines() >> >> timePoint = 0 >> pointWeight = float(data[timePoint]) >> >> node_file.close() >> >> output.Points = coordinate >> >> output.Allocate(1) >> >> output.PointData.append(pointWeight, "Point Weight") >> >> >> #Programmable Source RequestInformation >> timeSteps = range(4) >> >> outInfo = self.GetOutputInformation(0) >> >> timeRange = [timeSteps[0], timeSteps[-1]] >> outInfo.Set(vtk.vtkStreamingDemandDrivenPipeline.TIME_RANGE(), >>timeRange, 2) >> outInfo.Set(vtk.vtkStreamingDemandDrivenPipeline.TIME_STEPS(), >>timeSteps, >> len(timeSteps)) >> >> >> #Programmable Filter Script >> import vtk >> import numpy as np >> >> outInfo = self.GetOutputInformation(0) >> if outInfo.Has(vtk.vtkStreamingDemandDrivenPipeline.UPDATE_TIME_STEP()): >> time = >> outInfo.Get(vtk.vtkStreamingDemandDrivenPipeline.UPDATE_TIME_STEP()) >> else: >> time = 0 >> >> coordinate = np.array([[0,0,0]]) >> >> node_file = open(??/pointWeights_test.txt', 'r') >> data = node_file.readlines() >> >> pointWeight = float(data[time]) >> >> node_file.close() >> >> output.Points = coordinate >> >> output.Allocate(1) >> >> output.PointData.append(pointWeight, "Point Weight") >> >> _______________________________________________ >> 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. From Kevin.Hallock at pfizer.com Thu Apr 28 07:48:30 2016 From: Kevin.Hallock at pfizer.com (Hallock, Kevin) Date: Thu, 28 Apr 2016 11:48:30 +0000 Subject: [Paraview-developers] Saving a PVSM "package" and transferring it to another computer Message-ID: Hi, Is there a way to save an entire PVSM file in a way that copies all of the individual files required by the PVSM into a single folder to make it easier to transfer PVSM files between computers? Amira has an option called ?Pack and Go? that does this, but I didn?t find this option in Paraview. Thanks, Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.westphal at kitware.com Thu Apr 28 09:23:21 2016 From: mathieu.westphal at kitware.com (Mathieu Westphal) Date: Thu, 28 Apr 2016 15:23:21 +0200 Subject: [Paraview-developers] Saving a PVSM "package" and transferring it to another computer In-Reply-To: References: Message-ID: No this feature does not exist, but could be done manually : Save : Copy all the files you plan to open in a directory with a recognizable name Open the files in paraview, save a pvsm alongside the files send directory to another computer Open: Edit pvsm search and replace path to the directory with the correct one load pvsm file in paraview I know it is not perfect. Mathieu Westphal On Thu, Apr 28, 2016 at 1:48 PM, Hallock, Kevin wrote: > Hi, > > Is there a way to save an entire PVSM file in a way that copies all of the > individual files required by the PVSM into a single folder to make it > easier to transfer PVSM files between computers? Amira has an option > called ?Pack and Go? that does this, but I didn?t find this option in > Paraview. > > Thanks, > > Kevin > > _______________________________________________ > 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 Kevin.Hallock at pfizer.com Thu Apr 28 11:42:03 2016 From: Kevin.Hallock at pfizer.com (Hallock, Kevin) Date: Thu, 28 Apr 2016 15:42:03 +0000 Subject: [Paraview-developers] Saving a PVSM "package" and transferring it to another computer In-Reply-To: References: Message-ID: Is there a way to have Paraview look for a directory in the same directory as the PVSM file using a $HOME type statement? We would still need to manually find and replace all of the directories once, but after that, it would be a lot smoother. Thanks, Kevin From: Mathieu Westphal > Date: Thursday, April 28, 2016 at 9:23 AM To: Kevin Hallock > Cc: "paraview-developers at paraview.org" > Subject: Re: [Paraview-developers] Saving a PVSM "package" and transferring it to another computer No this feature does not exist, but could be done manually : Save : Copy all the files you plan to open in a directory with a recognizable name Open the files in paraview, save a pvsm alongside the files send directory to another computer Open: Edit pvsm search and replace path to the directory with the correct one load pvsm file in paraview I know it is not perfect. Mathieu Westphal On Thu, Apr 28, 2016 at 1:48 PM, Hallock, Kevin > wrote: Hi, Is there a way to save an entire PVSM file in a way that copies all of the individual files required by the PVSM into a single folder to make it easier to transfer PVSM files between computers? Amira has an option called ?Pack and Go? that does this, but I didn?t find this option in Paraview. Thanks, Kevin _______________________________________________ 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 mathieu.westphal at kitware.com Fri Apr 29 03:04:56 2016 From: mathieu.westphal at kitware.com (Mathieu Westphal) Date: Fri, 29 Apr 2016 09:04:56 +0200 Subject: [Paraview-developers] Saving a PVSM "package" and transferring it to another computer In-Reply-To: References: Message-ID: Sorry, there is (not yet) support for relative path in state file, it's feature that have been asked for years by user. Let's hope it come in soon ! You are more than welcome to take a look to the source and provide a patch if you are a programmer yourself. Regards, Mathieu Westphal On Thu, Apr 28, 2016 at 5:42 PM, Hallock, Kevin wrote: > Is there a way to have Paraview look for a directory in the same directory > as the PVSM file using a $HOME type statement? We would still need to > manually find and replace all of the directories once, but after that, it > would be a lot smoother. > > Thanks, > > Kevin > > From: Mathieu Westphal > Date: Thursday, April 28, 2016 at 9:23 AM > To: Kevin Hallock > Cc: "paraview-developers at paraview.org" > Subject: Re: [Paraview-developers] Saving a PVSM "package" and > transferring it to another computer > > > No this feature does not exist, but could be done manually : > > Save : > Copy all the files you plan to open in a directory with a recognizable name > Open the files in paraview, save a pvsm alongside the files > > send directory to another computer > > Open: > Edit pvsm search and replace path to the directory with the correct one > load pvsm file in paraview > > I know it is not perfect. > > > Mathieu Westphal > > On Thu, Apr 28, 2016 at 1:48 PM, Hallock, Kevin > wrote: > >> Hi, >> >> Is there a way to save an entire PVSM file in a way that copies all of >> the individual files required by the PVSM into a single folder to make it >> easier to transfer PVSM files between computers? Amira has an option >> called ?Pack and Go? that does this, but I didn?t find this option in >> Paraview. >> >> Thanks, >> >> Kevin >> >> _______________________________________________ >> 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 Kevin.Hallock at pfizer.com Fri Apr 29 08:28:40 2016 From: Kevin.Hallock at pfizer.com (Hallock, Kevin) Date: Fri, 29 Apr 2016 12:28:40 +0000 Subject: [Paraview-developers] Saving a PVSM "package" and transferring it to another computer In-Reply-To: References: Message-ID: Thanks for the info! The find-and-replace method will work for now. Kevin From: Mathieu Westphal > Date: Friday, April 29, 2016 at 3:04 AM To: Kevin Hallock > Cc: "paraview-developers at paraview.org" > Subject: Re: [Paraview-developers] Saving a PVSM "package" and transferring it to another computer Sorry, there is (not yet) support for relative path in state file, it's feature that have been asked for years by user. Let's hope it come in soon ! You are more than welcome to take a look to the source and provide a patch if you are a programmer yourself. Regards, Mathieu Westphal On Thu, Apr 28, 2016 at 5:42 PM, Hallock, Kevin > wrote: Is there a way to have Paraview look for a directory in the same directory as the PVSM file using a $HOME type statement? We would still need to manually find and replace all of the directories once, but after that, it would be a lot smoother. Thanks, Kevin From: Mathieu Westphal > Date: Thursday, April 28, 2016 at 9:23 AM To: Kevin Hallock > Cc: "paraview-developers at paraview.org" > Subject: Re: [Paraview-developers] Saving a PVSM "package" and transferring it to another computer No this feature does not exist, but could be done manually : Save : Copy all the files you plan to open in a directory with a recognizable name Open the files in paraview, save a pvsm alongside the files send directory to another computer Open: Edit pvsm search and replace path to the directory with the correct one load pvsm file in paraview I know it is not perfect. Mathieu Westphal On Thu, Apr 28, 2016 at 1:48 PM, Hallock, Kevin > wrote: Hi, Is there a way to save an entire PVSM file in a way that copies all of the individual files required by the PVSM into a single folder to make it easier to transfer PVSM files between computers? Amira has an option called ?Pack and Go? that does this, but I didn?t find this option in Paraview. Thanks, Kevin _______________________________________________ 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 mathieu.westphal at kitware.com Fri Apr 29 10:07:28 2016 From: mathieu.westphal at kitware.com (Mathieu Westphal) Date: Fri, 29 Apr 2016 16:07:28 +0200 Subject: [Paraview-developers] VTK/Paraview Courses in June Message-ID: Hello Kitware will be holding a 2-day Advanced VTK and Advanced ParaView course on June 22th and 23th 2016 in Lyon, France. Please visit our web site for more information and registration details at Advanced VTK (English) : http://training.kitware.fr/browse/126 Advanced VTK (French) : http://formations.kitware.fr/browse/126 Advanced ParaView (English) : http://training.kitware.fr/browse/127 Advanced ParaView (French) : http://formations.kitware.fr/browse/127 Note that the course will be taught in English. If you have any question, please contact us at formations at http://www.kitware.fr Thank you, Mathieu Westphal -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kevin.Hallock at pfizer.com Fri Apr 29 11:27:58 2016 From: Kevin.Hallock at pfizer.com (Hallock, Kevin) Date: Fri, 29 Apr 2016 15:27:58 +0000 Subject: [Paraview-developers] Line drawing code works in 32-bit but not 64-bit Message-ID: Hi everyone, The following code works when used in a Programmable Source in 32-bit Paraview on Windows, but not in the 64-bit version: from paraview import vtk line = paraview.simple.Line() paraview.simple.SetProperties(Point1=[1, 1, 0],Point2=[0, 0, 1]) tube = paraview.simple.Tube(line) paraview.simple.SetProperties(Radius=0.01) generateIds = paraview.simple.GenerateIds(tube) paraview.simple.Show() The error is: AttributeError: ?module? object has not object ?simple? Any suggestions? Thanks, Kevin -- Kevin Hallock Visualization and Modeling, Quantitative Medicine Neuroscience and Pain Research Unit Worldwide Research and Development Pfizer Inc 610 Main Street Cambridge, MA 02139 Email: kevin.hallock at pfizer.com Fax: 845-474-4001 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.westphal at kitware.com Fri Apr 29 11:34:54 2016 From: mathieu.westphal at kitware.com (Mathieu Westphal) Date: Fri, 29 Apr 2016 17:34:54 +0200 Subject: [Paraview-developers] Line drawing code works in 32-bit but not 64-bit In-Reply-To: References: Message-ID: Hello This code is not suposed to be written inside a programmable source, but has a paraview python script. You are never suposed to import any paraview python module inside a programmable python source or filter. Unless you mean python shell ? Mathieu Westphal On Fri, Apr 29, 2016 at 5:27 PM, Hallock, Kevin wrote: > Hi everyone, > > The following code works when used in a Programmable Source in 32-bit > Paraview on Windows, but not in the 64-bit version: > > from paraview import vtk > line = paraview.simple.Line() > paraview.simple.SetProperties(Point1=[1, 1, 0],Point2=[0, 0, 1]) > tube = paraview.simple.Tube(line) > paraview.simple.SetProperties(Radius=0.01) > generateIds = paraview.simple.GenerateIds(tube) > paraview.simple.Show() > > The error is: > > AttributeError: ?module? object has not object ?simple? > > Any suggestions? > > Thanks, > > Kevin > > -- > Kevin Hallock > Visualization and Modeling, Quantitative Medicine > Neuroscience and Pain Research Unit > Worldwide Research and Development > Pfizer Inc > 610 Main Street > Cambridge, MA 02139 > Email: kevin.hallock at pfizer.com > Fax: 845-474-4001 > > _______________________________________________ > 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 wascott at sandia.gov Fri Apr 29 14:05:02 2016 From: wascott at sandia.gov (Scott, W Alan) Date: Fri, 29 Apr 2016 18:05:02 +0000 Subject: [Paraview-developers] [EXTERNAL] Re: Saving a PVSM "package" and transferring it to another computer In-Reply-To: References: Message-ID: I liked this idea enough I wrote it up. Let me know if I messed it up, and I will correct it. ? http://www.paraview.org/Bug/view.php?id=16104 Alan From: Paraview-developers [mailto:paraview-developers-bounces at paraview.org] On Behalf Of Mathieu Westphal Sent: Friday, April 29, 2016 1:05 AM To: Hallock, Kevin Cc: paraview-developers at paraview.org Subject: [EXTERNAL] Re: [Paraview-developers] Saving a PVSM "package" and transferring it to another computer Sorry, there is (not yet) support for relative path in state file, it's feature that have been asked for years by user. Let's hope it come in soon ! You are more than welcome to take a look to the source and provide a patch if you are a programmer yourself. Regards, Mathieu Westphal On Thu, Apr 28, 2016 at 5:42 PM, Hallock, Kevin > wrote: Is there a way to have Paraview look for a directory in the same directory as the PVSM file using a $HOME type statement? We would still need to manually find and replace all of the directories once, but after that, it would be a lot smoother. Thanks, Kevin From: Mathieu Westphal > Date: Thursday, April 28, 2016 at 9:23 AM To: Kevin Hallock > Cc: "paraview-developers at paraview.org" > Subject: Re: [Paraview-developers] Saving a PVSM "package" and transferring it to another computer No this feature does not exist, but could be done manually : Save : Copy all the files you plan to open in a directory with a recognizable name Open the files in paraview, save a pvsm alongside the files send directory to another computer Open: Edit pvsm search and replace path to the directory with the correct one load pvsm file in paraview I know it is not perfect. Mathieu Westphal On Thu, Apr 28, 2016 at 1:48 PM, Hallock, Kevin > wrote: Hi, Is there a way to save an entire PVSM file in a way that copies all of the individual files required by the PVSM into a single folder to make it easier to transfer PVSM files between computers? Amira has an option called ?Pack and Go? that does this, but I didn?t find this option in Paraview. Thanks, Kevin _______________________________________________ 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: