[Paraview] read png file in Paraview

2010-11-05 Thread Xueli Wang

Hello everyone,

I have a question over reading an image file into Paraview. I have a png 
file of world map in latlon projection. But the data I have is a global 
data which should be visualized on a globe. Does anyone know whether the 
latlon image file can be converted in a globe and plot the data on top 
of it? I tried this in Paraview, the image and the data appear in two 
different window...


Thanks in advance!
Xueli Wang
___
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] read png file in Paraview

2010-11-05 Thread David Doria
On Fri, Nov 5, 2010 at 6:04 AM, Xueli Wang w...@knmi.nl wrote:
 Hello everyone,

 I have a question over reading an image file into Paraview. I have a png
 file of world map in latlon projection. But the data I have is a global data
 which should be visualized on a globe. Does anyone know whether the latlon
 image file can be converted in a globe and plot the data on top of it? I
 tried this in Paraview, the image and the data appear in two different
 window...

 Thanks in advance!
 Xueli Wang

I think what you're seeing is that the default behavior is to open an
image in a 2D window. Try closing the window that opens when you open
the image, and then making the image data visible (with the little
eyeball in the pipeline inspector) when the focus is back in the
window with your other data.

David
___
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] installation of paraview and vtk into system python's site-packages

2010-11-05 Thread Utkarsh Ayachit
Chris,

We haven't implemented support for that yet. There are two approaches,
you can post it to paraview.uservoice.com and if there's enough
interest, we can try to add support for that; alternatively, you can
try to create a setup.py for ParaView modeled on the one from VTK and
contribute it back, and we'll be more than happy to incorporate it
into ParaView.

Utkarsh

On Thu, Nov 4, 2010 at 11:13 AM, Chris Kees cek...@gmail.com wrote:
 Hi,
 I'd like to install all the python extensions for paraview and vtk into my
 python interpreter instead of pvpython/vtkpython. I used to do this with
 just the VTK extensions by running the usual 'python setup.py install' in
 VTK/Wrapping/Python but can't find a similar route for the paraview stuff. I
 know how to set it up via environment variables; I'm asking about how to do
 a standard install.
 Thanks,
 Chris
 ___
 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] Problems building 3.8.0 for 64-bit Mac

2010-11-05 Thread Peter Schmitt
I'm using this version of CMake, installed in Leopard prior to upgrading to
Snow Leopard:
http://www.cmake.org/files/v2.8/cmake-2.8.2-Darwin-universal.dmg

Also, I didn't get this error when compiling ParaView 3.8.1 on Leopard
10.5.8 just before I upgraded to Snow Leopard 10.6.4.

Cheers,
Pete


On Thu, Nov 4, 2010 at 5:53 PM, Dave Partyka dave.part...@kitware.comwrote:

 This is all very strage, I have two Macs, both Snow leopard with the latest
 updates and have never seen this error. I am curious what version of CMake
 you are using?


 On Thu, Nov 4, 2010 at 7:36 PM, Peter Schmitt pschmit...@gmail.comwrote:

 Hi all,

 Just writing to mention that I ran into this same problem on Mac OSX
 10.6.4 (just upgraded from 10.5.8 yesterday). Compiled my own qt-4.6.2 from
 source.  Building ParaView 3.8.1 from source.  I fixed this by swapping the
 cxx and mm extension in the IF(Q_WS_MAC)  ELSE block of
 Qt/Widgets/CMakeLists.txt:

 IF(Q_WS_MAC)
   SET(QtWidgets_SRCS ${QtWidgets_SRCS} pqProgressBarHelper.mm)
 ELSE(Q_WS_MAC)
   SET(QtWidgets_SRCS ${QtWidgets_SRCS} pqProgressBarHelper.cxx)
 ENDIF(Q_WS_MAC)

 Patch:

 ../ParaView-3.8.1/Qt/Widgets/CMakeLists.txt
 101,102d100
SET(QtWidgets_SRCS ${QtWidgets_SRCS} pqProgressBarHelper.mm)
  ELSE(Q_WS_MAC)
 103a102,103
  ELSE(Q_WS_MAC)
SET(QtWidgets_SRCS ${QtWidgets_SRCS} pqProgressBarHelper.mm)

 The code is still compiling, but got beyond the 'class QObject' is not a
 direct base of 'pqProgressBarHelper' error.

 Cheers,
 Pete


 On Tue, Jun 29, 2010 at 2:56 PM, Dave Partyka 
 dave.part...@kitware.comwrote:

 Hi Ben, can you send us your CMakeCache.txt in the root of your build
 tree.


 On Tue, Jun 29, 2010 at 4:40 PM, Ben Medina ben.med...@gmail.comwrote:

 It just prints out:
 Q_WS_MAC ==

 I'm not sure what is responsible for setting that variable; I've only
 ever seen it used in C++ source as a preprocessor define, not in CMake
 source.

 Thanks,
 Ben

 On Tue, Jun 29, 2010 at 1:00 PM, Utkarsh Ayachit
 utkarsh.ayac...@kitware.com wrote:
  If you look at Qt/Widgets/CMakeLists.txt, around line #79, it doesn't
  add pqProgressBarHelper.cxx as a source to compile on macs, instead it
  uses pqProgressBarHelper.mm. Now the question why isn't that happening
  in your case.  Try adding the following;
 
  message( Q_WS_MAC == ${Q_WS_MAC})
 
  What does that print out when you run cmake?
 
  Utkarsh
 
  On Tue, Jun 29, 2010 at 3:38 PM, Ben Medina ben.med...@gmail.com
 wrote:
  Hello,
 
  I just downloaded the 3.8.0 source and am trying to compile a 64-bit
  version on Mac OS 10.5. During the build of the pqWidgets target,
 this
  error occurs:
 
  .../ParaView-3.8.0/Qt/Widgets/pqProgressBarHelper.cxx:37: error: type
  'class QObject' is not a direct base of 'pqProgressBarHelper'
 
  There seems to be an error in the source. Here's the class
 declaration
  in pqProgressBarHelper.h:
 
  #ifdef Q_WS_MAC
  class pqProgressBarHelper : public QWidget
  #else
  class pqProgressBarHelper : public QObject
  #endif
 
  But then in the constructor in pqProgressBarHelper.cxx is this:
 
  pqProgressBarHelper::pqProgressBarHelper(pqProgressBar* p)
  : QObject(p), Progress(p)
  {
  }
 
  Any ideas?
 
  Thanks,
  Ben
  ___
  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



 ___
 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] Adding Reader Plugin to Files of Type dialogue

2010-11-05 Thread Peter Schmitt
Thanks Burlen, that seemed to do the trick.  I couldn't get it to work
without the GUI xml file.  In any case, I'm happy it's working now.

Thanks again,
Pete

On Wed, Nov 3, 2010 at 3:46 PM, burlen burlen.lor...@gmail.com wrote:

  Hi Peter,

 The way PV learns about plugin reader extensions changed some time ago. The
 place we specify the file extension association moved from the gui xml to
 the server manager xml in the SourceProxy's hints.

 Here are the modified XML files.

 !-- CSVImage.xml --
 ServerManagerConfiguration
 ProxyGroup name=”sources”
 SourceProxy
 name=”CSVImageReader”
 class=”vtkCSVImageReader”

 StringVectorProperty
 name=”FileName”
 command=”SetFileName”
 number_of_elements=”1”
 FileListDomain name=”files”/
 /StringVectorProperty

 StringVectorProperty
 name=”FieldDelimiterCharacters”
 command=”SetFieldDelimiterCharacters”
 number_of_elements=”1”
 default_values=”,”/

 !-- This is how PV now makes the association --
 Hints
 ReaderFactory
 extensions=csvimg
 file_description=blah blah blah./
 /Hints

 /SourceProxy
 /ProxyGroup
 /ServerManagerConfiguration
 !-- EOF --

 !-- CSVImageGUI.xml --
 ParaViewReaders

 !-- No information about file extension association --
 Proxy group=sources name=CSVImageReader /

 /ParaViewReaders
 !-- EOF --

 Hope this helps
 Burlen

 Ps. I think the gui xml is now optional.






 On 11/03/2010 02:14 PM, Peter Schmitt wrote:

 Hello,

 I cannot get my reader into ParaView's File - Open dialog. I am
 following the CSVImageReader tutorial here:
 http://www.kitware.com/products/html/WritingAParaViewReaderPlug-in.html

 I built ParaView-3.8.1 from source using qt-4.5.3 on my 64-bit Linux
 workstation (FWIW, I've also tried this on my Mac OSX 10.5.8 box using
 Nokia's qt-4.6.2 dmg release for 10.5+). I built the libCSVImage.so after
 adding the following to the top of vtkCSVImageReader.cxx:

#include vtkCSVImageReader.h
#include vtkDataArray.h
#include vtkImageData.h
#include vtkInformation.h
#include vtkInformationVector.h
#include vtkObjectFactory.h
#include vtkPointData.h
#include vtkStreamingDemandDrivenPipeline.h
#include vtkTable.h
#include vtkVariant.h
vtkStandardNewMacro(vtkCSVImageReader);


 I start up ParaView, goto Tools - Manage Plugins - Load New ... and I
 now see CSVImage as Loaded in the Local Plugins pane. However, the
 File - Open menu doesn't show the CSVImage type.

 When I attempt to open a *.csvimg file, I am prompted with a dialog titled
 Open Data WIth ... saying A reader for
 /home/schmitt/paraview/testData/test.csvimg could not be found. Please
 choose one: and a list of 22 readers (POP Ocean through TecPlot, but no
 CSVImage type.

 What am I doing wrong?

 Thank you,
 Pete Schmitt


 ___
 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] Confused by vtkWrapClientServer in my ParaView Reader Plugin

2010-11-05 Thread Peter Schmitt
Hello,

I am trying to implement a simple ParaView reader plugin: vtkLFMReader.  We
already have a proprietary I/O class that handles our data format:
 LFMReader.  I would like vtkLFMReader::RequestInformation and
vtkLFMReader::RequestData to call the appropriate LFMReader methods to
import my data to ParaView as a vtkStructuredGrid.  However,
vtkWrapClientServer complains *** SYNTAX ERROR found in parsing the header
file error while parsing LFMReader.h.  I tried wrapping all of the
LFMReader.h with //BTX //ETX and I tried wrapping the code in
vtkLFMReader.cxx that includes this header:

//BTX
#include LFMReader.h
//ETX

However, I still get the SYNTAX ERROR found in parsing the header file.
 Is it possible to have a ParaView Reader plugin instantiate a proprietary
class to do the actual I/O?  Are there examples of this in the ParaView
release (I couldn't find anything in VTK/IO/* or Examples/Plugins/* that
seemed applicable).

Here's my CMakeLists.txt:

INCLUDE(${PARAVIEW_USE_FILE})
ADD_PARAVIEW_PLUGIN(vtkLFMReader 1.0
  SERVER_MANAGER_XML vtkLFMReader.xml
  SERVER_MANAGER_SOURCES vtkLFMReader.cxx LFMReader.cxx
  GUI_RESOURCE_FILES vtkLFMGUI.xml)

Thanks,
Pete
___
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] ParticlePathlines filter with vtk time series

2010-11-05 Thread Utkarsh Ayachit
Can you possible share the vtk file you  are having issue with? You
can send it to me offline, if you cannot post it to the list.

Thanks
Utkarsh

On Fri, Nov 5, 2010 at 6:36 AM, Michael Müller
michael.muel...@ifk.uni-stuttgart.de wrote:
 Hi,

 I got a question regarding the 'ParticlePathlines'-filter. What I want to do 
 is, load particle time series follow its trajectories and colour the 
 pathlines according to a certain variable...
 If I load my time series of vtk-files (see below), apply the 
 'ParticlePathlines'-filter and skip through the time steps I can follow the 
 particle trajectories. I may also choose the variable for the particles 
 itself (TPART, see below). But for the pathlines the only options are 'Solid 
 Color' and 'TrailId', so it's not possible to color the tracks acc. to for 
 example TPART... Why that?
 - Is sth wrong with my file?
 - Do I need another paraview filter?

 I am currently using the downloaded version 3.8.1.

 And by the way, it is working properly using simple csv file series: after 
 loading the series, applying TableToPoints  ParticlePathlines filter I may 
 choose TPART for coloring the pathlines...

 Any hints on that?

 Thanks.
 Michael


 sample files:
 ... vtk:
 # vtk DataFile Version 3.0
 Particles: at time step 1
 ASCII
 DATASET POLYDATA
 POINTS      4 float
   1.0e+00 1.0e+00 0.0e+00
   1.0e+00 2.0e+00 0.0e+00
   2.0e+00 2.0e+00 0.0e+00
   2.0e+00 1.0e+00 0.0e+00
 POINT_DATA  4
 SCALARS TPART float 1
 LOOKUP_TABLE DEFAULT
   3.0e+02
   3.0e+02
   3.0e+02
   3.0e+02

 ... csv:
   X,         Y,         Z,       TPART
  1.000,     1.000,     0.000,     300
  1.000,     2.000,     0.000,     300
  2.000,     2.000,     0.000,     300
  2.000,     1.000,     0.000,     300

 ___
 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] Confused by vtkWrapClientServer in my ParaView Reader Plugin

2010-11-05 Thread Utkarsh Ayachit
Change the macro call to follows:
ADD_PARAVIEW_PLUGIN(vtkLFMReader 1.0
  SERVER_MANAGER_XML vtkLFMReader.xml
  SERVER_MANAGER_SOURCES vtkLFMReader.cxx
  SOURCES LFMReader.cxx
  GUI_RESOURCE_FILES vtkLFMGUI.xml)

Any source files specified in SERVER_MANAGER_SOURCES will be wrapped,
so ParaView was trying to wrap LFMReader.

Utkarsh


On Fri, Nov 5, 2010 at 4:16 PM, Peter Schmitt pschmit...@gmail.com wrote:
 Hello,
 I am trying to implement a simple ParaView reader plugin: vtkLFMReader.  We
 already have a proprietary I/O class that handles our data format:
  LFMReader.  I would like vtkLFMReader::RequestInformation and
 vtkLFMReader::RequestData to call the appropriate LFMReader methods to
 import my data to ParaView as a vtkStructuredGrid.  However,
 vtkWrapClientServer complains *** SYNTAX ERROR found in parsing the header
 file error while parsing LFMReader.h.  I tried wrapping all of the
 LFMReader.h with //BTX //ETX and I tried wrapping the code in
 vtkLFMReader.cxx that includes this header:
 //BTX
 #include LFMReader.h
 //ETX
 However, I still get the SYNTAX ERROR found in parsing the header file.
  Is it possible to have a ParaView Reader plugin instantiate a proprietary
 class to do the actual I/O?  Are there examples of this in the ParaView
 release (I couldn't find anything in VTK/IO/* or Examples/Plugins/* that
 seemed applicable).
 Here's my CMakeLists.txt:
 INCLUDE(${PARAVIEW_USE_FILE})
 ADD_PARAVIEW_PLUGIN(vtkLFMReader 1.0
   SERVER_MANAGER_XML vtkLFMReader.xml
   SERVER_MANAGER_SOURCES vtkLFMReader.cxx LFMReader.cxx
   GUI_RESOURCE_FILES vtkLFMGUI.xml)
 Thanks,
 Pete
 ___
 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] Problems building 3.8.0 for 64-bit Mac

2010-11-05 Thread Sean McBride
On Fri, 5 Nov 2010 11:13:18 -0600, Peter Schmitt said:

I'm using this version of CMake, installed in Leopard prior to upgrading to
Snow Leopard:
http://www.cmake.org/files/v2.8/cmake-2.8.2-Darwin-universal.dmg

Also, I didn't get this error when compiling ParaView 3.8.1 on Leopard
10.5.8 just before I upgraded to Snow Leopard 10.6.4.

When you upgraded to 10.6, did you also update your Xcode installation? 
10.6 requires Xcode 3.2 or later.

-- 

Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com 
Mac Software Developer  Montréal, Québec, Canada


___
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