Re: [Paraview] Does anyone know of a paraview version where Clip Closed Surface actually worked?
I've reported a bug here: http://www.paraview.org/Bug/view.php?id=13764 On Mon, Dec 31, 2012 at 12:02 PM, Robert Akers rob.ak...@gmail.com wrote: In my previous version of paraview (3.10?) Clip Closed Surface sort of worked, however it was hit and miss as to whether you'd get a nice closure of the clipped surface. i.e. moving the clipping plane slightly would lead to unpredictable holes in the closure surface. So I have downloaded the latest version to see if things have improved. Clip Closed Surface now causes paraview to crash. It does so on very simple geometries (e.g. try making a sphere form source then apply clip closed surface.). If someone does know of a version where this filter worked, I'd be very grateful Bob. ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] ParaView from git, make fail on OpenSUSE 12.2
You may want to turn off FFMPEG for starters (by turning of PARAVIEW_ENABLE_FFMPEG cmake variable). Utkarsh On Tue, Jan 1, 2013 at 8:14 PM, Pei-Ying Hsieh phsieh2...@yahoo.com wrote: Dear ParaView experts, I just got the latest Paraview source code from git and tried to compile on OpenSUSE 12.2 64 bit OS. But, got the following errors: [ 94%] Built target pqApplicationComponents Linking CXX executable ../../../../bin/pqPipelineApp /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_small_strptime@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_dict_count@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_timecode_check_frame_rate@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `av_image_fill_arrays@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `avpriv_float_dsp_init@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `av_image_get_buffer_size@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `av_image_copy_to_buffer@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_gettime@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_opt_set_bin@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_usleep@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `av_timecode_adjust_ntsc_framenum2@LIBAVUTIL_51' collect2: error: ld returned 1 exit status make[2]: *** [bin/pqPipelineApp] Error 1 make[1]: *** [Qt/Components/Testing/Cxx/CMakeFiles/pqPipelineApp.dir/all] Error 2 make: *** [all] Error 2 -- I do have libavuitl installed. I am wondering how I can fix these errors. Thanks! Pei-Ying ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] How to change the Representation within a Plugin ?
Try calling the following before src-updatePipeline() before attempting to create the representation. The reader hasn't been executed yet and hence it doesn't provide any information about what type of data it will produce and hence createDataRepresentation() cannot create any data-representation for it. updatePipeline() forces the reader to execute i.e. it's RequestData() will get called and then the rest should work as expected. Utkarsh On Tue, Jan 1, 2013 at 5:50 AM, Christian Richter christian.rich...@ovgu.de wrote: Hi, I've written a Plugin to use Paraview as LiveView for our simulation Data. With a QFileSystemWatcher the Plugin updates the filenames of the fileseries-reader everytime a new result-file was written to disk. Now I want to change the Representation from Point to Point Sprite automaticly after the source is created and set some standard properties. In Pythion I used: xreader=liggghts_Reader(guiName=liggghts_dump) xreader.FileNames=files SetDisplayProperties(xreader, Representation=Point Sprite) DataRepresentation1 = Show() DataRepresentation1.PointSpriteDefaultsInitialized = 1 DataRepresentation1.Texture = [] DataRepresentation1.RadiusTransferFunctionEnabled = 1 DataRepresentation1.RadiusMode = 'Scalar' DataRepresentation1.Representation = 'Point Sprite' DataRepresentation1.RadiusArray = [None, 'radius'] DataRepresentation1.RadiusIsProportional = 1 And I tried this in my C++Plugin: src = builder-createReader(QString(sources),type, files, s); //works src-rename(type); pqActiveView myActiveView=pqActiveView::instance(); this-RenderView=myActiveView.current(); pqDataRepresentation *repr = builder-createDataRepresentation(src-getOutputPort(0), this-RenderView); vtkSMPropertyHelper(repr-getProxy(),Representation).Set(Point Sprite); //segfault but get segfault at last line because repr is still NULL. I attached the code and here is a video where you can see the Plugin working. http://youtu.be/5CGGf-kPcEQ best, Christian ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Connecting glyph filter with data
Hi, I have a plugin which I'm trying to get working in ParaView 3.98. The source code for the plugin can be found here: http://github.com/mantidproject/mantid/blob/6315_build_pv_398/Code/Mantid/Vates/ParaviewPlugins/ParaViewReaders/PeaksReader/vtkPeaksReader.cxx. https://github.com/mantidproject/mantid/blob/6315_build_pv_398/Code/Mantid/Vates/ParaviewPlugins/ParaViewReaders/PeaksReader/vtkPeaksReader.cxx After fixing function calls on the vtkPVGlyphFilter to get it to compile (lines 96 and 97), the plugin crashes at the vtkGlyphFilter::Update() call on vtkPoints::GetNumberOfPoints(). I checked the structuredMesh (it's actually a vtkUnstructuredGrid) object used in the vtkGlyphFilter::SetInputData() call and found that it does contain data points (40 for the particular file I'm looking at). I did some digging about the vtkGlyphFilter::SetInputData() and found that it no longer sets up a pipeline connection. I think this might be the cause of the glyph filter not finding any data, but I'm unsure. However, I'm having trouble figuring out how to use vtkGlyphFilter::SetInputConnection() and the structuredMesh object. Is there anyway to make this work using the structuredMesh object or is the best thing to make another plugin to create the structuredMesh and then do vtkGlyphFilter::SetInputConnection(newPlugin-GetOutputPort()) and remove the vtkGlyphFilter::SetInputData() call? Thanks, M -- Dr. Michael Reuter Data Analaysis and Visualization Group Neutron Data Analysis and Visualization Division Oak Ridge National Laboratory Office: 1-865-241-7216 Fax: 1-865-574-6080 Email:reute...@ornl.gov ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Display integration point centered data
Hi Eduardo, You could visualize data on quadrature points, see http://www.vtk.org/Wiki/File:VTK-Quadrature-Point-Design-Doc.pdf for some details. There is a ctest that demonstrates the functionality, and those filters are found in ParaView. There may be some newer features that I don't know of, but this should get you started. Burlen On 01/02/2013 06:07 AM, Eduardo wrote: Hi all, I am looking for how I can display data that is centered at integration quadrature point of elements in a mesh. Is that possible or I can only display data that is centered at vertices and elements? Can someone give some pointers on how I can do that. I couldn't find googling the web. Thanks in advance, Eduardo ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] ParaView from git, make fail on OpenSUSE 12.2
Hi, Utkarsh, Thanks for the reply! make was successful when I turned off ffmpeg. But, I got segmention fault when I ran paraview. ERROR: In /home/phsieh/projects/ParaView/ParaView/VTK/GUISupport/Qt/vtkEventQtSlotConnect.cxx, line 68 vtkEventQtSlotConnect (0x1c82420): Cannot connect NULL objects. Segmentation fault --- Any suggestion? Pei-Ying From: Utkarsh Ayachit utkarsh.ayac...@kitware.com To: Pei-Ying Hsieh phsieh2...@yahoo.com Cc: paraview paraview@paraview.org Sent: Wednesday, January 2, 2013 8:55 AM Subject: Re: [Paraview] ParaView from git, make fail on OpenSUSE 12.2 You may want to turn off FFMPEG for starters (by turning of PARAVIEW_ENABLE_FFMPEG cmake variable). Utkarsh On Tue, Jan 1, 2013 at 8:14 PM, Pei-Ying Hsieh phsieh2...@yahoo.com wrote: Dear ParaView experts, I just got the latest Paraview source code from git and tried to compile on OpenSUSE 12.2 64 bit OS. But, got the following errors: [ 94%] Built target pqApplicationComponents Linking CXX executable ../../../../bin/pqPipelineApp /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_small_strptime@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_dict_count@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_timecode_check_frame_rate@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `av_image_fill_arrays@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `avpriv_float_dsp_init@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `av_image_get_buffer_size@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `av_image_copy_to_buffer@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_gettime@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_opt_set_bin@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_usleep@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `av_timecode_adjust_ntsc_framenum2@LIBAVUTIL_51' collect2: error: ld returned 1 exit status make[2]: *** [bin/pqPipelineApp] Error 1 make[1]: *** [Qt/Components/Testing/Cxx/CMakeFiles/pqPipelineApp.dir/all] Error 2 make: *** [all] Error 2 -- I do have libavuitl installed. I am wondering how I can fix these errors. Thanks! Pei-Ying ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] ParaView from git, make fail on OpenSUSE 12.2
Is this a debug build? If so, can you attach a debugger and post the stack trace? Utkarsh On Wed, Jan 2, 2013 at 1:36 PM, Pei-Ying Hsieh phsieh2...@yahoo.com wrote: Hi, Utkarsh, Thanks for the reply! make was successful when I turned off ffmpeg. But, I got segmention fault when I ran paraview. ERROR: In /home/phsieh/projects/ParaView/ParaView/VTK/GUISupport/Qt/vtkEventQtSlotConnect.cxx, line 68 vtkEventQtSlotConnect (0x1c82420): Cannot connect NULL objects. Segmentation fault --- Any suggestion? Pei-Ying From: Utkarsh Ayachit utkarsh.ayac...@kitware.com To: Pei-Ying Hsieh phsieh2...@yahoo.com Cc: paraview paraview@paraview.org Sent: Wednesday, January 2, 2013 8:55 AM Subject: Re: [Paraview] ParaView from git, make fail on OpenSUSE 12.2 You may want to turn off FFMPEG for starters (by turning of PARAVIEW_ENABLE_FFMPEG cmake variable). Utkarsh On Tue, Jan 1, 2013 at 8:14 PM, Pei-Ying Hsieh phsieh2...@yahoo.com wrote: Dear ParaView experts, I just got the latest Paraview source code from git and tried to compile on OpenSUSE 12.2 64 bit OS. But, got the following errors: [ 94%] Built target pqApplicationComponents Linking CXX executable ../../../../bin/pqPipelineApp /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_small_strptime@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_dict_count@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_timecode_check_frame_rate@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `av_image_fill_arrays@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `avpriv_float_dsp_init@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `av_image_get_buffer_size@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `av_image_copy_to_buffer@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_gettime@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_opt_set_bin@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_usleep@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `av_timecode_adjust_ntsc_framenum2@LIBAVUTIL_51' collect2: error: ld returned 1 exit status make[2]: *** [bin/pqPipelineApp] Error 1 make[1]: *** [Qt/Components/Testing/Cxx/CMakeFiles/pqPipelineApp.dir/all] Error 2 make: *** [all] Error 2 -- I do have libavuitl installed. I am wondering how I can fix these errors. Thanks! Pei-Ying ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] ParaView from git, make fail on OpenSUSE 12.2
Hi, Utkarsh, No, this is a release build. I do not know how to attach the debugger and the stack trace. Pei-Ying From: Utkarsh Ayachit utkarsh.ayac...@kitware.com To: Pei-Ying Hsieh phsieh2...@yahoo.com Cc: paraview paraview@paraview.org Sent: Wednesday, January 2, 2013 1:37 PM Subject: Re: [Paraview] ParaView from git, make fail on OpenSUSE 12.2 Is this a debug build? If so, can you attach a debugger and post the stack trace? Utkarsh On Wed, Jan 2, 2013 at 1:36 PM, Pei-Ying Hsieh phsieh2...@yahoo.com wrote: Hi, Utkarsh, Thanks for the reply! make was successful when I turned off ffmpeg. But, I got segmention fault when I ran paraview. ERROR: In /home/phsieh/projects/ParaView/ParaView/VTK/GUISupport/Qt/vtkEventQtSlotConnect.cxx, line 68 vtkEventQtSlotConnect (0x1c82420): Cannot connect NULL objects. Segmentation fault --- Any suggestion? Pei-Ying From: Utkarsh Ayachit utkarsh.ayac...@kitware.com To: Pei-Ying Hsieh phsieh2...@yahoo.com Cc: paraview paraview@paraview.org Sent: Wednesday, January 2, 2013 8:55 AM Subject: Re: [Paraview] ParaView from git, make fail on OpenSUSE 12.2 You may want to turn off FFMPEG for starters (by turning of PARAVIEW_ENABLE_FFMPEG cmake variable). Utkarsh On Tue, Jan 1, 2013 at 8:14 PM, Pei-Ying Hsieh phsieh2...@yahoo.com wrote: Dear ParaView experts, I just got the latest Paraview source code from git and tried to compile on OpenSUSE 12.2 64 bit OS. But, got the following errors: [ 94%] Built target pqApplicationComponents Linking CXX executable ../../../../bin/pqPipelineApp /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_small_strptime@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_dict_count@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_timecode_check_frame_rate@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `av_image_fill_arrays@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `avpriv_float_dsp_init@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `av_image_get_buffer_size@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `av_image_copy_to_buffer@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_gettime@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_opt_set_bin@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_usleep@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `av_timecode_adjust_ntsc_framenum2@LIBAVUTIL_51' collect2: error: ld returned 1 exit status make[2]: *** [bin/pqPipelineApp] Error 1 make[1]: *** [Qt/Components/Testing/Cxx/CMakeFiles/pqPipelineApp.dir/all] Error 2 make: *** [all] Error 2 -- I do have libavuitl installed. I am wondering how I can fix these errors. Thanks! Pei-Ying ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] ParaView from git, make fail on OpenSUSE 12.2
Do you know what version of Qt you built ParaView with? On Wed, Jan 2, 2013 at 2:20 PM, Pei-Ying Hsieh phsieh2...@yahoo.com wrote: Hi, Utkarsh, No, this is a release build. I do not know how to attach the debugger and the stack trace. Pei-Ying From: Utkarsh Ayachit utkarsh.ayac...@kitware.com To: Pei-Ying Hsieh phsieh2...@yahoo.com Cc: paraview paraview@paraview.org Sent: Wednesday, January 2, 2013 1:37 PM Subject: Re: [Paraview] ParaView from git, make fail on OpenSUSE 12.2 Is this a debug build? If so, can you attach a debugger and post the stack trace? Utkarsh On Wed, Jan 2, 2013 at 1:36 PM, Pei-Ying Hsieh phsieh2...@yahoo.com wrote: Hi, Utkarsh, Thanks for the reply! make was successful when I turned off ffmpeg. But, I got segmention fault when I ran paraview. ERROR: In /home/phsieh/projects/ParaView/ParaView/VTK/GUISupport/Qt/vtkEventQtSlotConnect.cxx, line 68 vtkEventQtSlotConnect (0x1c82420): Cannot connect NULL objects. Segmentation fault --- Any suggestion? Pei-Ying From: Utkarsh Ayachit utkarsh.ayac...@kitware.com To: Pei-Ying Hsieh phsieh2...@yahoo.com Cc: paraview paraview@paraview.org Sent: Wednesday, January 2, 2013 8:55 AM Subject: Re: [Paraview] ParaView from git, make fail on OpenSUSE 12.2 You may want to turn off FFMPEG for starters (by turning of PARAVIEW_ENABLE_FFMPEG cmake variable). Utkarsh On Tue, Jan 1, 2013 at 8:14 PM, Pei-Ying Hsieh phsieh2...@yahoo.com wrote: Dear ParaView experts, I just got the latest Paraview source code from git and tried to compile on OpenSUSE 12.2 64 bit OS. But, got the following errors: [ 94%] Built target pqApplicationComponents Linking CXX executable ../../../../bin/pqPipelineApp /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_small_strptime@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_dict_count@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_timecode_check_frame_rate@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `av_image_fill_arrays@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `avpriv_float_dsp_init@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `av_image_get_buffer_size@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `av_image_copy_to_buffer@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_gettime@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_opt_set_bin@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_usleep@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `av_timecode_adjust_ntsc_framenum2@LIBAVUTIL_51' collect2: error: ld returned 1 exit status make[2]: *** [bin/pqPipelineApp] Error 1 make[1]: *** [Qt/Components/Testing/Cxx/CMakeFiles/pqPipelineApp.dir/all] Error 2 make: *** [all] Error 2 -- I do have libavuitl installed. I am wondering how I can fix these errors. Thanks! Pei-Ying ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] How to change the Representation within a Plugin ?
Thank you Utkarsh, thas does the trick. Can you give me a hint how I can do DataRepresentation1.RadiusArray = [None, 'radius'] //python trace in C++ ? Thanks, Christian Zitat von Utkarsh Ayachit utkarsh.ayac...@kitware.com: Try calling the following before src-updatePipeline() before attempting to create the representation. The reader hasn't been executed yet and hence it doesn't provide any information about what type of data it will produce and hence createDataRepresentation() cannot create any data-representation for it. updatePipeline() forces the reader to execute i.e. it's RequestData() will get called and then the rest should work as expected. Utkarsh On Tue, Jan 1, 2013 at 5:50 AM, Christian Richter christian.rich...@ovgu.de wrote: Hi, I've written a Plugin to use Paraview as LiveView for our simulation Data. With a QFileSystemWatcher the Plugin updates the filenames of the fileseries-reader everytime a new result-file was written to disk. Now I want to change the Representation from Point to Point Sprite automaticly after the source is created and set some standard properties. In Pythion I used: xreader=liggghts_Reader(guiName=liggghts_dump) xreader.FileNames=files SetDisplayProperties(xreader, Representation=Point Sprite) DataRepresentation1 = Show() DataRepresentation1.PointSpriteDefaultsInitialized = 1 DataRepresentation1.Texture = [] DataRepresentation1.RadiusTransferFunctionEnabled = 1 DataRepresentation1.RadiusMode = 'Scalar' DataRepresentation1.Representation = 'Point Sprite' DataRepresentation1.RadiusArray = [None, 'radius'] DataRepresentation1.RadiusIsProportional = 1 And I tried this in my C++Plugin: src = builder-createReader(QString(sources),type, files, s); //works src-rename(type); pqActiveView myActiveView=pqActiveView::instance(); this-RenderView=myActiveView.current(); pqDataRepresentation *repr = builder-createDataRepresentation(src-getOutputPort(0), this-RenderView); vtkSMPropertyHelper(repr-getProxy(),Representation).Set(Point Sprite); //segfault but get segfault at last line because repr is still NULL. I attached the code and here is a video where you can see the Plugin working. http://youtu.be/5CGGf-kPcEQ best, Christian ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Connecting glyph filter with data
Michael, In vtkPeaksReader::RequestData, instead of glyphFilter-SetSourceData(sphere-GetOutput()), do EITHER glyphFilter-SetSourceConnection(sphere-GetOutputPort()) OR sphere-Update() glyphFilter-SetSourceData(sphere-GetOutput()) Unlike the old SetInput()/SetSource() methods, SetInputData()/SetSourceData() don't set the pipeline connections between the produces and consumers. So when you called SetSourceData(sphere-GetOutput()), the current state of the output of vtkSphereSource was passed on to the glyph filter. Since the SphereSource hadn't executed yet, it was empty. So we can fix the problem by either setting up a true pipeline connection (using SetSourceConnection) or by ensuring that the SphereSource has produced valid data by calling sphere-Update() Utkarsh On Wed, Jan 2, 2013 at 10:50 AM, Michael Reuter reute...@ornl.gov wrote: Hi, I have a plugin which I'm trying to get working in ParaView 3.98. The source code for the plugin can be found here: http://github.com/mantidproject/mantid/blob/6315_build_pv_398/Code/Mantid/Vates/ParaviewPlugins/ParaViewReaders/PeaksReader/vtkPeaksReader.cxx. After fixing function calls on the vtkPVGlyphFilter to get it to compile (lines 96 and 97), the plugin crashes at the vtkGlyphFilter::Update() call on vtkPoints::GetNumberOfPoints(). I checked the structuredMesh (it's actually a vtkUnstructuredGrid) object used in the vtkGlyphFilter::SetInputData() call and found that it does contain data points (40 for the particular file I'm looking at). I did some digging about the vtkGlyphFilter::SetInputData() and found that it no longer sets up a pipeline connection. I think this might be the cause of the glyph filter not finding any data, but I'm unsure. However, I'm having trouble figuring out how to use vtkGlyphFilter::SetInputConnection() and the structuredMesh object. Is there anyway to make this work using the structuredMesh object or is the best thing to make another plugin to create the structuredMesh and then do vtkGlyphFilter::SetInputConnection(newPlugin-GetOutputPort()) and remove the vtkGlyphFilter::SetInputData() call? Thanks, M -- Dr. Michael Reuter Data Analaysis and Visualization Group Neutron Data Analysis and Visualization Division Oak Ridge National Laboratory Office: 1-865-241-7216 Fax: 1-865-574-6080 Email: reute...@ornl.gov ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
[Paraview] Question about Paraview and parallel processing
To whom it may concern, I have some data which takes on different values in space, which normally would be easy to view in Paraview. The problem is that the space (which is a big cube) is decomposed into different subdomains since the data was processed in parallel, and each subdomain is saved in a different file. Currently, paraview interprets each subdomain as a different time-step. Is it possible to get paraview to load all of the parallelized data and view it as a single time step? Of course, I could parse all of these files into one big file, but I would like to avoid this extra step if necessary, since the files are updated regularly, and an extra post-processing step would slow things down significantly. My files are in legacy VTK format. They look like this, for example (the real runs are much larger than this): # myData_00.vtk # vtk myData ASCII DATASET STRUCTURED_GRID DIMENSIONS 12 12 12 POINTS1728 float 0.9519978E-01 0.9519978E-01 0.9519978E-01 0.2855993E+00 0.9519978E-01 0.9519978E-01 0.4759989E+00 0.9519978E-01 0.9519978E-01 .. # myData_01.vtk # vtk myData ASCII DATASET STRUCTURED_GRID DIMENSIONS 12 12 12 POINTS1728 float 0.9519978E-01 0.9519978E-01 0.2189595E+01 0.2855993E+00 0.9519978E-01 0.2189595E+01 0.4759989E+00 0.9519978E-01 0.2189595E+01 .. and so on up to myData_07.vtk. Visit can stitch all of these domains together with a simple file that tells what all the other files are: # myData.visit # !NBLOCKS 8 myData_00.vtk myData_01.vtk myData_02.vtk myData_03.vtk myData_04.vtk myData_05.vtk myData_06.vtk myData_07.vtk Is there anything I can do to get Paraview to interpret these as a single data set? Any help would be much appreciated! (Also, my apologies in advance if this is not the right place to post this kind of thing.) Best regards, Adam ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] Connecting glyph filter with data
Hi Utkarsh, I love one line changes. Works like a charm. Thanks, M On 1/2/13 3:09 PM, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote: Michael, In vtkPeaksReader::RequestData, instead of glyphFilter-SetSourceData(sphere-GetOutput()), do EITHER glyphFilter-SetSourceConnection(sphere-GetOutputPort()) OR sphere-Update() glyphFilter-SetSourceData(sphere-GetOutput()) Unlike the old SetInput()/SetSource() methods, SetInputData()/SetSourceData() don't set the pipeline connections between the produces and consumers. So when you called SetSourceData(sphere-GetOutput()), the current state of the output of vtkSphereSource was passed on to the glyph filter. Since the SphereSource hadn't executed yet, it was empty. So we can fix the problem by either setting up a true pipeline connection (using SetSourceConnection) or by ensuring that the SphereSource has produced valid data by calling sphere-Update() Utkarsh On Wed, Jan 2, 2013 at 10:50 AM, Michael Reuter reute...@ornl.gov wrote: Hi, I have a plugin which I'm trying to get working in ParaView 3.98. The source code for the plugin can be found here: http://github.com/mantidproject/mantid/blob/6315_build_pv_398/Code/Mantid /Vates/ParaviewPlugins/ParaViewReaders/PeaksReader/vtkPeaksReader.cxx. After fixing function calls on the vtkPVGlyphFilter to get it to compile (lines 96 and 97), the plugin crashes at the vtkGlyphFilter::Update() call on vtkPoints::GetNumberOfPoints(). I checked the structuredMesh (it's actually a vtkUnstructuredGrid) object used in the vtkGlyphFilter::SetInputData() call and found that it does contain data points (40 for the particular file I'm looking at). I did some digging about the vtkGlyphFilter::SetInputData() and found that it no longer sets up a pipeline connection. I think this might be the cause of the glyph filter not finding any data, but I'm unsure. However, I'm having trouble figuring out how to use vtkGlyphFilter::SetInputConnection() and the structuredMesh object. Is there anyway to make this work using the structuredMesh object or is the best thing to make another plugin to create the structuredMesh and then do vtkGlyphFilter::SetInputConnection(newPlugin-GetOutputPort()) and remove the vtkGlyphFilter::SetInputData() call? Thanks, M -- Dr. Michael Reuter Data Analaysis and Visualization Group Neutron Data Analysis and Visualization Division Oak Ridge National Laboratory Office: 1-865-241-7216 Fax: 1-865-574-6080 Email: reute...@ornl.gov ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
Re: [Paraview] ParaView from git, make fail on OpenSUSE 12.2
Hi, Utkarsh, I am using Qt-4.8.1 on OpenSUSE 12.2 64 bit. Pei-Ying From: Utkarsh Ayachit utkarsh.ayac...@kitware.com To: Pei-Ying Hsieh phsieh2...@yahoo.com Cc: paraview paraview@paraview.org Sent: Wednesday, January 2, 2013 2:35 PM Subject: Re: [Paraview] ParaView from git, make fail on OpenSUSE 12.2 Do you know what version of Qt you built ParaView with? On Wed, Jan 2, 2013 at 2:20 PM, Pei-Ying Hsieh phsieh2...@yahoo.com wrote: Hi, Utkarsh, No, this is a release build. I do not know how to attach the debugger and the stack trace. Pei-Ying From: Utkarsh Ayachit utkarsh.ayac...@kitware.com To: Pei-Ying Hsieh phsieh2...@yahoo.com Cc: paraview paraview@paraview.org Sent: Wednesday, January 2, 2013 1:37 PM Subject: Re: [Paraview] ParaView from git, make fail on OpenSUSE 12.2 Is this a debug build? If so, can you attach a debugger and post the stack trace? Utkarsh On Wed, Jan 2, 2013 at 1:36 PM, Pei-Ying Hsieh phsieh2...@yahoo.com wrote: Hi, Utkarsh, Thanks for the reply! make was successful when I turned off ffmpeg. But, I got segmention fault when I ran paraview. ERROR: In /home/phsieh/projects/ParaView/ParaView/VTK/GUISupport/Qt/vtkEventQtSlotConnect.cxx, line 68 vtkEventQtSlotConnect (0x1c82420): Cannot connect NULL objects. Segmentation fault --- Any suggestion? Pei-Ying From: Utkarsh Ayachit utkarsh.ayac...@kitware.com To: Pei-Ying Hsieh phsieh2...@yahoo.com Cc: paraview paraview@paraview.org Sent: Wednesday, January 2, 2013 8:55 AM Subject: Re: [Paraview] ParaView from git, make fail on OpenSUSE 12.2 You may want to turn off FFMPEG for starters (by turning of PARAVIEW_ENABLE_FFMPEG cmake variable). Utkarsh On Tue, Jan 1, 2013 at 8:14 PM, Pei-Ying Hsieh phsieh2...@yahoo.com wrote: Dear ParaView experts, I just got the latest Paraview source code from git and tried to compile on OpenSUSE 12.2 64 bit OS. But, got the following errors: [ 94%] Built target pqApplicationComponents Linking CXX executable ../../../../bin/pqPipelineApp /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_small_strptime@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_dict_count@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_timecode_check_frame_rate@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `av_image_fill_arrays@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `avpriv_float_dsp_init@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `av_image_get_buffer_size@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `av_image_copy_to_buffer@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_gettime@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_opt_set_bin@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavformat.so: undefined reference to `av_usleep@LIBAVUTIL_51' /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../lib64/libavcodec.so: undefined reference to `av_timecode_adjust_ntsc_framenum2@LIBAVUTIL_51' collect2: error: ld returned 1 exit status make[2]: *** [bin/pqPipelineApp] Error 1 make[1]: *** [Qt/Components/Testing/Cxx/CMakeFiles/pqPipelineApp.dir/all] Error 2 make: *** [all] Error 2 -- I do have libavuitl installed. I am wondering how I can fix these errors. Thanks! Pei-Ying ___ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview