[Paraview] wrong representation of vtkImageData in pipeline
Hi, I am creating an Image using a filter and then adding it to the pipeline. In Paraview, it is displaying a weird image like if it was corrupted. To verify that my filter was creating the image correctly, I am using the vtkTIFFWriter to output the image in tiff format. I open the tiff file using a normal picture app and it is correctly displaying it. I can even load that tiff file in ParaView and it will show it correctly. Has anyone had a similar problem? Is there a solution to this problem. thanks Michal ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
[Paraview] vtkPythonProgrammableFilter Multiple output port?
Hi, Since ParaView 5.2, vtkPythonProgrammableFilter can now accept multiple input ports. Is it possible to also have multiple output port? Thanks, Michal ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
[Paraview] Loading state file - not loading the connections to each inputs port
I have a state file which contains multiple filters, some have multiple inputs port. When I load the state file everything load correctly but every filter that uses multiple ports (input) get this error "Input port (1,2,3,4,...) of algorithm "random name" has 0 connection but is not optional. If the filter instead uses multiple connections to one port then it gets loaded correctly. Can multiple port connection be saved in the state files? thanks you Michal___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] 3D Widgets
Hi, Thanks a lot! This is exactly what I was looking for. From: Utkarsh Ayachit<mailto:utkarsh.ayac...@kitware.com> Sent: Wednesday, August 24, 2016 4:00 PM To: michal wozniak<mailto:michalwozn...@live.ca> Cc: paraview@paraview.org<mailto:paraview@paraview.org> Subject: Re: [Paraview] 3D Widgets I think this is what you want is similar to "SPHVolumeInterpolator". See : 1. https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/VTKExtensions/Points/points.xml#L671-699 2. https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/VTKExtensions/Points/points.xml#L75-128 On Wed, Aug 24, 2016 at 3:44 PM, michal wozniak <michalwozn...@live.ca> wrote: > Hi, > > I am trying to add 3D widgets to my custom filters. I am trying to find some > documentation. For eg, let's say I want to add a BoxWidget that will just > surround my input data. How do I achieve this? > I am having trouble understanding the process of linking the widget to the > filter inside the XML. > > I looked here > http://www.paraview.org/Wiki/ParaView/Properties_Panel and > ParaViewCore\ServerManager\SMApplication\Resources\3d_widgets.xml > > In 3d_widgets.XML, I see all the possible widgets available to ParaView. > What the XML syntax to access them. > > I was looking at the clip filter which is using the Box and a plane ( for > the plane clip) and saw that this part of XML is "triggering the process of > rendering the BOX with the plane" > > label="Clip Type" > name="ClipFunction"> > > > > > name="Plane" /> > name="Box" /> > name="Sphere" /> > name="Cylinder" /> > name="Scalar" /> > > > How do I customize this code, to add a different kind of 3D widgets ? > > > > ___ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview > ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
[Paraview] 3D Widgets
Hi, I am trying to add 3D widgets to my custom filters. I am trying to find some documentation. For eg, let's say I want to add a BoxWidget that will just surround my input data. How do I achieve this? I am having trouble understanding the process of linking the widget to the filter inside the XML. I looked here http://www.paraview.org/Wiki/ParaView/Properties_Panel and ParaViewCore\ServerManager\SMApplication\Resources\3d_widgets.xml In 3d_widgets.XML, I see all the possible widgets available to ParaView. What the XML syntax to access them. I was looking at the clip filter which is using the Box and a plane ( for the plane clip) and saw that this part of XML is "triggering the process of rendering the BOX with the plane" How do I customize this code, to add a different kind of 3D widgets ? ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] [Non-DoD Source] Re: Qt version support update 2016
Hi, I'm currently using qt 5.6 with vs 2015 and python 2.7 and everything is building correctly. I still didn't try QT 5.7. On Windows, you need to make sure your PATH are set correctly. Verify that your CMake PATH isn't set before your qt or else your ParaView executable will find some qt dll in the CMake folder. DLL not found - > http://www.dependencywalker.com/ This will help you track down your problems. From: shawn.wal...@kitware.com Date: Mon, 15 Aug 2016 09:06:27 -0400 To: simon.m.su@mail.mil CC: paraview@paraview.org Subject: Re: [Paraview] [Non-DoD Source] Re: Qt version support update 2016 Mega Mind, I have a project that is using ParaView with Qt 5.7 on Windows. Of course we use VS 2013 still, so that may be the difference. It still sounds like you forgot to set the PARAVIEW_QT_VERSION to 5. If this is 4 (the default), the CMake scripts will ignore Qt5. I think it may be smart enough to default to 5 when there is no Qt4 preset which may be why that build worked. Our build machine has both Qt4 and Qt5 installed and it works fine. Still, I don't know if anyone has tried Qt5 + VS 2015 Anyway, your runtime error with the dll not found? That is a Windows thing. Not found means it is not in the PATH environment variable's list of folders. Windows doesn't bake into the executable the paths to its runtime dependencies. Linux and OSX do, which is why you can typically run things from a build tree there without any problems. But to run it from Windows, you will need to add the Qt5 dll's directory to your PATH or move it to the same directory as the executable which needs it. Simon, The ParaView Superbuild uses a precompiled python 2.7 that was built with VS 2008. Python 2.x doesn't support any newer versions (maybe 2010, but we've never used that version of python). Since the API we link against is pure C, there are no ABI issues with using this prebuilt version. You should be able to look in the superbuild and find the path for the zip file with the prebuilt python and download/use that one. I know Python 3 is supported in VTK, but I'm not sure it is fully supported in ParaView yet. HTH, Shawn On Sat, Aug 13, 2016 at 6:30 PM, Su, Simon M CIV USARMY RDECOM ARL (US)wrote: you need python in the path for QT 5 to build for windows. specifically python with bz2 module both running configure and nmake the next problem you will encounter after getting past the QT 5 which I am still stuck is to build python. Python 3 will compile with vs2015 express, python 2.x will not. c++ time zone related variables changes. But I am not able to compile pv with python 3. I even tried to fix the time zone related compile but end up with linking error at the very end. because of this, i think win7 or win10 pv will only work with vs2013 express. hth -s From: ParaView [paraview-boun...@paraview.org] on behalf of Mega Mind [123megam...@gmail.com] Sent: Saturday, August 13, 2016 5:00 PM To: Shawn Waldon Cc: ParaView list Subject: [Non-DoD Source] Re: [Paraview] Qt version support update 2016 All active links contained in this email were disabled. Please verify the identity of the sender, and confirm the authenticity of all links contained within the message prior to copying and pasting the address to a Web browser. Have you or anyone successfully built and installed on Win7 64 with Visual Studio 2015? I always get errors when building or opening the paraview.exe. For Qt the 4.x versions seem to have only x86 installs but I installed 4.8 anyway. When trying Qt 5.7 I get a failed build with 3 errors and over 350 warnings. Also noted that in Cmake configure it would still reference Qt 4 even after setting Qt5_DIR Qt5Core_DIR Qt5Widgets_DIR etc and changing all paths to proper reference directories. The only fix was to uninstall Qt 4 but I was able to get a build with no errors when it was using both Qt 4 & 5 strangely but when opening paraview,exe the 'system error' message was Qt5Widgets.dll does not exist. It does though and is in "C:\Program Files (x86)\Qt\5.7\msvc2015_64\bin\" so I tried to manually change that in any Cmake config file I could find but nothing worked out. I've tried hundreds of things over the past three days and read and followed the wiki many times and I'm coming to the conclusion no one is using Win 64 which seems strange to me but I guess everyone is using Unix. On Fri, Aug 12, 2016 at 5:18 AM, Shawn Waldon > wrote: To use Qt5, you have to set the PARAVIEW_QT_VERSION variable to 5 (it still defaults to 4, which is why cmake is complaining). Note that some things may be buggy when building against Qt5, I don't know the full list of current issues, just that there are some. Also note that you have to specify the location of Qt5 differently to CMake. CMake
Re: [Paraview] Paraview Build python dependency
thanks I am currently trying the superbuild process. I usually pass pass /m:4 to my msbuild to get 4 msbuild instance. When I used to build paraview (not superbuild), the cpu utilization during the build was always at maximum but with superbuild it is always around 20%. Do I also need to pass /MP parameter to enable multi-processor build ? From: Utkarsh Ayachit<mailto:utkarsh.ayac...@kitware.com> Sent: Thursday, August 11, 2016 1:42 PM To: michal wozniak<mailto:michalwozn...@live.ca> Cc: paraview@paraview.org<mailto:paraview@paraview.org> Subject: Re: [Paraview] Paraview Build python dependency I'd suggest using ParaView Superbuild to build redistributables (https://gitlab.kitware.com/paraview/paraview-superbuild). Utkarsh On Tue, Aug 9, 2016 at 3:23 PM, michal wozniak <michalwozn...@live.ca> wrote: > Hi, > > I am building ParaView from source. When we test my release version on a > different system, we can't use any feature that uses python : trace, python > shell ... > > I installed your binary version and I saw that you provided the python27.DLL > and a Lib folder which seem to be the one from python27 installation > directory. So I copy pasted python27.dll and Lib folder into my release > folder. When I use this release folder on a different computer, Paraview is > still crashing when we try to use the trace feature which use python. > > Could someone tell me what's the correct way of deploying python with > ParaView. If only there was some python tool like windeployqt.exe which is > provided by qt. > > thanks > > Michal Wozniak > > ___ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview > ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
[Paraview] Paraview Build python dependency
Hi, I am building ParaView from source. When we test my release version on a different system, we can't use any feature that uses python : trace, python shell ... I installed your binary version and I saw that you provided the python27.DLL and a Lib folder which seem to be the one from python27 installation directory. So I copy pasted python27.dll and Lib folder into my release folder. When I use this release folder on a different computer, Paraview is still crashing when we try to use the trace feature which use python. Could someone tell me what's the correct way of deploying python with ParaView. If only there was some python tool like windeployqt.exe which is provided by qt. thanks Michal Wozniak___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] Coordinate Result from Calculator
Hi, I found out how to get my coordinates. I used a programmable filter to get my inputs and calculate the mean. I would like to be able to add that value to the properties that appear when you use the manager link (mode : property link). My objective is to be able to link my custom property which will show my mean result to a different filter ( slide for eg). So that I could link Clip->Plane->Origin to ProgrammableFIlter->CustomValue Is this possible ? Date: Wed, 8 Jun 2016 07:58:47 -0400 From: michalwozn...@live.ca To: joachim.pouder...@kitware.com CC: paraview@paraview.org Subject: Re: [Paraview] Coordinate Result from Calculator Hi, I would like to access it in a following programmable filter or for eg link the coordinate result from the calculator to the center property of a slice filter using the manager link It more about being able to access the coordinate result in another filter On Jun 8, 2016 7:48 AM, Joachim Pouderoux <joachim.pouder...@kitware.com> wrote: Michal, Maybe I did not correctly understand your question but if you want to access point coordinates in the Calculator, they are available through the (pseudo) scalar variables coordsX, coordsY and coordsZ - you will find them in the Scalars list button. Regards, Joachim Pouderoux PhD, Technical Expert Kitware SAS 2016-06-07 21:50 GMT+02:00 michal wozniak <michalwozn...@live.ca>: Hi everyone, I am calculating the mean of two source point using the python calculator. Then I use the calculator filter to get the Coordinate Result. How do I access that value? in my pipeline, my Calculator1 produce a Coordinate Result Array called "Result". What do I do to access this array to be able to use the coordinate? thanks Michal ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] Coordinate Result from Calculator
Hi, I would like to access it in a following programmable filter or for eg link the coordinate result from the calculator to the center property of a slice filter using the manager link It more about being able to access the coordinate result in another filter On Jun 8, 2016 7:48 AM, Joachim Pouderoux <joachim.pouder...@kitware.com> wrote: Michal, Maybe I did not correctly understand your question but if you want to access point coordinates in the Calculator, they are available through the (pseudo) scalar variables coordsX, coordsY and coordsZ - you will find them in the Scalars list button. Regards, Joachim Pouderoux PhD, Technical Expert Kitware SAS 2016-06-07 21:50 GMT+02:00 michal wozniak <michalwozn...@live.ca>: Hi everyone, I am calculating the mean of two source point using the python calculator. Then I use the calculator filter to get the Coordinate Result. How do I access that value? in my pipeline, my Calculator1 produce a Coordinate Result Array called "Result". What do I do to access this array to be able to use the coordinate? thanks Michal ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
[Paraview] Coordinate Result from Calculator
Hi everyone, I am calculating the mean of two source point using the python calculator. Then I use the calculator filter to get the Coordinate Result. How do I access that value? in my pipeline, my Calculator1 produce a Coordinate Result Array called "Result". What do I do to access this array to be able to use the coordinate? thanks Michal___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] Save State/adding custom property
That's exactly what I was looking for. thanks a lot for the great support !!! > Date: Mon, 30 May 2016 08:10:48 -0400 > Subject: Re: [Paraview] Save State/adding custom property > From: utkarsh.ayac...@kitware.com > To: michalwozn...@live.ca > CC: paraview@paraview.org > > There's a preexisting feature called "annotation" that vtkSMProxy > supports via the following API. Seems to me that'd map well to what > you're trying to do with the "user" property. > > void SetAnnotation (const char *key, const char *value) > const char * GetAnnotation (const char *key) > void RemoveAnnotation (const char *key) > void RemoveAllAnnotations () > bool HasAnnotation (const char *key) > int GetNumberOfAnnotations () > const char * GetAnnotationKeyAt (int index) > > Utkarsh > > On Sun, May 29, 2016 at 1:37 PM, michal wozniak <michalwozn...@live.ca> wrote: > > Hi everyone, > > > > I am trying to add a custom property to the state xml. > > > > For eg: > > > > I loaded object.stl and did a slice on it. Then, I saved the state and went > > to look at the XML. > > > > > > > > > > > > > > I want to add an extra property called "user" > > > > > > > > > > > > > > the extra property will be added during the saving of the state. I will be > > changing user property using a widget. > > I just want to know how to send the value of my variable user to be printed > > in the xml. > > > > I have been looking at a couple of classes vtkSMStateVersionController, > > vtkSMStateLoader, vtkSMProperty. > > I got confused after looking at so many classes related to this. Do i need > > to register my variable or send it using a specific function? > > Is there some documentation/tutorial for this? > > > > thanks > > > > Michal Wozniak > > > > > > > > > > ___ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at > > http://www.kitware.com/opensource/opensource.html > > > > Please keep messages on-topic and check the ParaView Wiki at: > > http://paraview.org/Wiki/ParaView > > > > Search the list archives at: http://markmail.org/search/?q=ParaView > > > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/paraview > > ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
[Paraview] Save State/adding custom property
Hi everyone, I am trying to add a custom property to the state xml. For eg: I loaded object.stl and did a slice on it. Then, I saved the state and went to look at the XML. I want to add an extra property called "user" the extra property will be added during the saving of the state. I will be changing user property using a widget. I just want to know how to send the value of my variable user to be printed in the xml. I have been looking at a couple of classes vtkSMStateVersionController, vtkSMStateLoader, vtkSMProperty. I got confused after looking at so many classes related to this. Do i need to register my variable or send it using a specific function?Is there some documentation/tutorial for this? thanks Michal Wozniak ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
[Paraview] Paraview Web 5 show Widget‏
Hi everyone,I have been trying for the past couple of day to replicate the show Widget (eg : show Plane, show Box display ) in ParaView web. In the desktop version, when you add a filter slice with Plane type, you get a red rectangle representing your widget with axes to easily move it. How do you enable this feature in ParaView web? In some old version of ParaView ( http://www.paraview.org/Wiki/ParaViewWeb_PWApp) it was possible. ThanksMichal ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview