[Paraview] custom reader and extra libs (blas) link problem

2010-11-04 Thread Felipe Bordeu

Hello,

I have a custom reader, and I have to do a lot of computations to 
generate the data.

I want to use blas to speed up the computations.

How can I link my plugging to the blas library???
the cmake macro  ADD_PARAVIEW_PLUGIN(..   does not have any option for 
extra libraries.

and when I try  to use it I get :
/.../bin/paraview: symbol lookup error: /../libPGDReader.so: undefined 
symbol: cblas_saxpy


If I use the pluging in a vtk project I explicitly link the library and 
everything work fine.



I have another question:
Can my reader know if it used in paraview or in a c++ project (only 
vtk)?? (I want to automatised some things if is used in paraview)?


thanks

--

Felipe Bordeu Weldt
Ingénieur de Recherche
-
Tél. : 33 (0)2 40 37 16 57
Fax. : 33 (0)2 40 74 74 06
felipe.bor...@ec-nantes.fr
Intitut GeM - UMR CNRS 6183
École Centrale de Nantes
1 Rue de La Noë, 44321 Nantes, FRANCE
-

___
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] custom reader and extra libs (blas) link problem

2010-11-04 Thread Didier Roissé
Hello,
to add an extra library you have to add this kind of lines in the CMAKE file
:
in order to find the library :
FIND_LIBRARY(MY_LIBRARY mylib.so
  /usr/local/lib
  /usr/lib
)

in order to link with the librarie
TARGET_LINK_LIBRARIES(myReader
  ${MY_LIBRARY}
  )

Best regards,
Didier

2010/11/4 Felipe Bordeu felipe.bor...@ec-nantes.fr

 Hello,

 I have a custom reader, and I have to do a lot of computations to generate
 the data.
 I want to use blas to speed up the computations.

 How can I link my plugging to the blas library???
 the cmake macro  ADD_PARAVIEW_PLUGIN(..   does not have any option for
 extra libraries.
 and when I try  to use it I get :
 /.../bin/paraview: symbol lookup error: /../libPGDReader.so: undefined
 symbol: cblas_saxpy

 If I use the pluging in a vtk project I explicitly link the library and
 everything work fine.


 I have another question:
 Can my reader know if it used in paraview or in a c++ project (only vtk)??
 (I want to automatised some things if is used in paraview)?

 thanks

 --

 Felipe Bordeu Weldt
 Ingénieur de Recherche
 -
 Tél. : 33 (0)2 40 37 16 57
 Fax. : 33 (0)2 40 74 74 06
 felipe.bor...@ec-nantes.fr
 Intitut GeM - UMR CNRS 6183
 École Centrale de Nantes
 1 Rue de La Noë, 44321 Nantes, FRANCE
 -

 ___
 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] [Fwd: zoom and rotate in script]

2010-11-04 Thread Xueli Wang


---BeginMessage---

Hello everyone,

I'm a new user of ParaView. One thing I wonder is whether is it possible 
to write Python scripts to zoom in and zoom out and rotate of the active 
object in the  render window. My aim is to make a movie of a globe, the 
global can be zoomed in and out and rotate in a controlled manner.


Thanks in advance!

Xueli Wang

---End Message---
___
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] [Fwd: zoom and rotate in script]

2010-11-04 Thread Utkarsh Ayachit
Yes, the following link points to the section regarding how to get
access to the camera:
http://www.paraview.org/Wiki/ParaView/Python_Scripting#Representations_and_Views

Once you have the camera, you can use the vtkCamera API to zoom or do
whatever (http://www.vtk.org/doc/nightly/html/classvtkCamera.html)

Utkarsh

On Thu, Nov 4, 2010 at 7:57 AM, Xueli Wang w...@knmi.nl wrote:


 Hello everyone,

 I'm a new user of ParaView. One thing I wonder is whether is it possible to
 write Python scripts to zoom in and zoom out and rotate of the active object
 in the  render window. My aim is to make a movie of a globe, the global can
 be zoomed in and out and rotate in a controlled manner.

 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


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

2010-11-04 Thread Chris Kees
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


Re: [Paraview] vtkSMExtractDocumentation linking error for ParaView 3.8.1

2010-11-04 Thread Christine Corbett Moran
Hi,

Thanks for the response. Adding -lcrypto to the CMAKE_C*_FLAGS fixed things.
I had missed trying that in my investigations so thanks for suggesting that.


Still not sure why it failed there and only there, could be something with
my MPI as you mentioned I'll look into it.

Cheers,
Christine

On Wed, Nov 3, 2010 at 8:11 PM, Dave Partyka dave.part...@kitware.comwrote:

 Hi Christine,

 As far as I am aware (and doing some of my own grepping) I am not finding
 any dependency on MD5 in ParaView/VTK, so this is very puzzling. Are you
 using some kind of secure MPI? Anyway, just adding in FindOpenSSL won't help
 as it won't change what libraries ParaView links to. You could try adding
 -lcrypto to CMAKE_CXX_FLAGS and CMAKE_C_FLAGS in ccmake/cmake-gui. But as I
 said, this shouldn't be required.

 On Mon, Nov 1, 2010 at 8:47 AM, Christine Corbett Moran 
 corb...@physik.uzh.ch wrote:

 I'm setting up ParaView 3.8.1 (stable version from source linked on the
 website) on our cluster and running into a linking error.

 the error is
 [ 87%] Built target vtkPVServerManager
 Linking CXX executable ../../bin/vtkSMExtractDocumentation
 ../../bin/libvtkPVServerCommon.so: undefined reference to `MD5'
 collect2: ld returned 1 exit status

 and I have
  OPENSSL_CRYPTO_LIBRARIES
 /usr/lib64/libssl.a:/usr/lib64/libcrypto.a
  OPENSSL_INCLUDE_DIR  /usr/include
  OPENSSL_LIBRARIES
 /usr/lib64/libssl.a:/usr/lib64/libcrypto.a
  OPENSSL_SSL_LIBRARIES
  /usr/lib64/libssl.a:/usr/lib64/libcrypto.a
 set via ccmake.

 I've tried both the static and the shared versions of the libraries on
 the machine. I've tried using different versions of CMake (2.8.1 vs.
 2.8.2). A simple program using MD5 compiles against these libraries no
 problem gcc -o md5sum md5sum.c -lcrypto, I've done an ldd on this test
 program md5sum binary to verify that it is indeed pointing to the same
 libs that I've pointed to in the PV build. I've tried manually adding
 the locations of the libraries to my LD_LIBRARY_PATH. I've also tried
 putting INCLUDE(FindOpenSSL) in my CMakeLists.txt. Now I'm out of new
 ideas.

 Christine
 ___
 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] SC10 CoProcessing example

2010-11-04 Thread Chris Kees
Hi,

I've got a few questions about the python example, CoProcessingExample.py.
First, FYI, when downloaded to my mac the script contains indentation errors
so python can't parse it. Don't know what is going on (maybe our firewall is
trying to prevent us from using python by messing up the indentation!).
Second, my interepreter couldn't find the mpi module even though my
PYTHONPATH etc were set up as on the wiki. I use mpi4py to manipulate mpi
anyway, so I just modified the script to use it instead. Will that be OK in
general or do I need to track down the mpi module in order for the
coprocessing library to work correctly?

In terms of using the example, I constructed an image source in paraview and
colored it with the pointData, then saved the state script. I had to get
some of the name strings straightened out but the example appeared to run
and generated a sequence of png files. Does anybody have a simpler
state/coprocessing script for that example that I can use for learning
purposes?  The next thing to do is expose my solver's vtk data structures to
the co-processor and generate a coprocessing script for it. I'm afraid given
my weak understanding of what is going on, generating the state script from
one of my xdmf data sets and trying to get it to work inside the
coprocessing is going to be difficult (our i/o and existing vtk
visualization are completely independent). It might be easier if I new how
to wrote the state script by hand to execute something very simple. I've got
lots of vtk pipelines set up for the data under our current approach to
runtime vtk viz so I was hoping I could just paste in something similar into
the state script.

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


Re: [Paraview] How to use a filter in a Python script?

2010-11-04 Thread ghw
Matt,

Dude!  You are sooo awesome!  Now, how can I impress my 
customers if all of the magic is gone?  

You have been reading my mail.  You are correct.  I am interested 
in integrating the data values along a line segment (in this case, 
density).  I have actually been doing this in TECPLOT, on an OLD 
Linux box.  The license upgrade for TECPLOT is prohibitively 
expensive and I am concerned that some day the Gateway 166 MHz 
box will die.  Therefore, I am converting my TECPLOT tools over 
to ParaView.

ParaView rocks!  And so does this community!

Thanks for all your help,
Hamilton Woods


-- Original Message ---
From: m.c.wilk...@massey.ac.nz
To: g...@accutrol.com
Cc: paraview@paraview.org
Sent: Thu, 4 Nov 2010 10:27:05 +1300
Subject: Re: [Paraview] How to use a filter in a Python script?

 Hi,
 
 Yes the trace is great, it still couldn't tell me how to actually
 extract the numbers along a plotoverline though, without doing a
 Spreadsheet view or something.
 
 You have probably figured out how to do a plotoverline using the Trace:
 
 from paraview.simple import *
 reader = servermanager.sources.XMLUnstructuredGridReader(FileName = 
 /var/tmp/file.vtu) pl = PlotOverLine(Input = reader) 
 pl.Source.Point1 = [-7000, -5000, 0] pl.Source.Point2 = [4300, 6300, 
 .75] CreateXYPlotView() d = Show()
 d.XArrayName = 'arc_length'
 d.SeriesVisibility = ['namecolours (0)', '0', 'namecolours (1)', '0',
  'namecolours (2)', '0', 'vtkValidPointMask', '0', 'arc_length', 
 '0'] # whatever your variables are
 d.UseIndexForXAxis = 0 Render()
 
 But to actually get the values out you don't even need to do the plot
 a simple:
 
 from paraview.simple import *
 reader = servermanager.sources.XMLUnstructuredGridReader(FileName = 
 /var/tmp/file.vtu) pl = PlotOverLine(Input = reader) 
 pl.Source.Point1 = [-7000, -5000, 0] pl.Source.Point2 = [4300, 6300, 
 .75]
 
 does, followed by stuff like this:
 
 # to get the number of points on the plotoverline line
 pl = servermanager.Fetch(pl)
 pl.GetPoints().GetData().GetNumberOfPoints()
 
 # to get the (x,y,z) info for the points on the pol line
 pl.GetPoints().GetData().GetValue(0) - x of first point
 pl.GetPoints().GetData().GetValue(1) - y of first point
 pl.GetPoints().GetData().GetValue(2) - z of first point
 etc
 
 # to get the data on the line
 pl.GetPointData().GetArray(0).GetValue(0)
 etc
 
 # and to get the name of the array on the line
 pl.GetPointData().GetArrayName(0) - 'cfnode'
 etc
 
 Matt Wilkins
 
 On Wed, Nov 03, 2010 at 11:38:25AM -0400, g...@accutrol.com wrote:
  Dude!  You are so awesome!  Why didn't I think of that?  Because 
  I thought trace was for something altogether different from that.  
  
  Now I feel like I can do anything!
  
  Thanks immensely for your help,
  Hamilton Woods
  
  
  -- Original Message ---
  From: emonson at cs.duke.edu
  To: g...@accutrol.com
  Cc: paraview list paraview@paraview.org
  Sent: Wed, 3 Nov 2010 11:20:47 -0400
  Subject: Re: [Paraview] How to use a filter in a Python script?
  
   Hey Hamilton,
   
   You should also try using the Python Trace (and Trace State) 
   functionality now built into ParaView. After (or while) you set up 
   your pipeline in ParaView this will give you a Python script to 
   accomplish the same thing. This page tells a bit about the current 
   (git) version:
   
   http://www.paraview.org/Wiki/Python_GUI_Tools
   
   You'll see the Start Trace and Trace State if you go to Tools-
   Python Shell, and then click on the Trace tab on the right of the panel.
   
   -Eric
   
   --
   Eric E Monson
   Duke Visualization Technology Group
   
   On Nov 3, 2010, at 10:00 AM, Sebastien Jourdain wrote:
   
Hi Hamilton,

You can look at http://www.paraview.org/Wiki/ParaView/Python_Scripting
and that http://www.paraview.org/Wiki/ParaViewUsersGuide/List_of_filters

Seb

On Tue, Nov 2, 2010 at 10:31 PM,  g...@accutrol.com wrote:
I am a newbie to Paraview and have little experience programming
Python.  I
would like to know how to call a particular filter from within
Python.  The
only filter I have seen referenced in the Python scripting
documentation is
Shrink().

I want to retrieve the scalar values along a line segment (Plot Over
Line(ProbeLine)) that extends through an unstructured 3D grid.  I
have The
ParaView Guide, The VTK User's Guide and The Visualization
Toolkit:  An
Object-Oriented Approach to 3D Graphics.  I don't see how to
  programmatically
do this.  I have looked on all of the ParaView web sites that I can
find, and
in tutorials.  I do not even see a list of available filter names.

Is there a guide for Python Scripting (chapter 20 of The ParaView Guide
  is the
best I have found) that covers using filters?  Example code? 
Anything?  How
do you even find the filter names in the documentation?


[Paraview] How do I save an animation from a python script?

2010-11-04 Thread John Haiducek
I want to save an animation from a python script using pvbatch or pvpython.
Is there a python command for saving an image sequence, or do I need to
repeatedly change frames and call WriteImage() each time?

John Haiducek
___
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 do I save an animation from a python script?

2010-11-04 Thread Milos Ilak
Hi John,

I don't know how one could save an entire animation from Python, but I use
WriteImage() for each frame to output a .png, and I end up with a bunch of
numbered images (I manually write the file names in a loop). That gives you
more flexibility in encoding, as you can change the frame rate, bitrate, use
more codecs, etc...Of course, if you do this, you need to use some encoding
software such as ffmpeg, mencoder, QuickTime Pro, etc in order to encode the
movie. I hope this helps,

Milos




On Thu, Nov 4, 2010 at 7:09 PM, John Haiducek jhaid...@gmail.com wrote:

 I want to save an animation from a python script using pvbatch or pvpython.
 Is there a python command for saving an image sequence, or do I need to
 repeatedly change frames and call WriteImage() each time?

 John Haiducek

 ___
 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




-- 
Miloš Ilak
Linné FLOW Centre
KTH Mechanics, Stockholm
+46(0) 8 790-7152
www2.mech.kth.se/~ilak http://www2.mech.kth.se/%7Eilak/
___
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] SC10 CoProcessing example

2010-11-04 Thread Andy Bauer
Hi Chris,

I just fixed the formatting for the python code snippets.  As you noticed
there were problems of tabs and spaces intermixed but it's not been
converted to all spaces now.  There were also some problems with changes to
the library names (import libvtkvtkCoProcessorPython now needs to be import
vtkCoProcessorPython).

The mpi part of the sample script is for when ParaView is built in parallel
since it will call MPI functions.  If ParaView is built in serial, then that
part can be ignored and certainly coprocessing shouldn't be used for a
parallel run.

As far as simpler coprocesing scripts, if you don't generate any images the
script will be much simpler.  Unfortunately, the vtk python interface is
quite different from the pv python interface such that it would take a
decent amount of hand editing in order to convert them, at least for most
non-trivial scripts.  I think the best way to get things going with the pv
python interface is by using the python trace tools to mimic your gui
actions in a python script.  There is also tab completion in the paraview
python shell so that would be another way to figure things out.

Andy

On Thu, Nov 4, 2010 at 11:56 AM, Chris Kees cek...@gmail.com wrote:

 Hi,

 I've got a few questions about the python example, CoProcessingExample.py.
 First, FYI, when downloaded to my mac the script contains indentation errors
 so python can't parse it. Don't know what is going on (maybe our firewall is
 trying to prevent us from using python by messing up the indentation!).
 Second, my interepreter couldn't find the mpi module even though my
 PYTHONPATH etc were set up as on the wiki. I use mpi4py to manipulate mpi
 anyway, so I just modified the script to use it instead. Will that be OK in
 general or do I need to track down the mpi module in order for the
 coprocessing library to work correctly?

 In terms of using the example, I constructed an image source in paraview
 and colored it with the pointData, then saved the state script. I had to get
 some of the name strings straightened out but the example appeared to run
 and generated a sequence of png files. Does anybody have a simpler
 state/coprocessing script for that example that I can use for learning
 purposes?  The next thing to do is expose my solver's vtk data structures to
 the co-processor and generate a coprocessing script for it. I'm afraid given
 my weak understanding of what is going on, generating the state script from
 one of my xdmf data sets and trying to get it to work inside the
 coprocessing is going to be difficult (our i/o and existing vtk
 visualization are completely independent). It might be easier if I new how
 to wrote the state script by hand to execute something very simple. I've got
 lots of vtk pipelines set up for the data under our current approach to
 runtime vtk viz so I was hoping I could just paste in something similar into
 the state script.

 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] How do I save an animation from a python script?

2010-11-04 Thread Eric E. Monson
Hey John,

Have you seen this section of the Python scripting documentation?

http://www.paraview.org/Wiki/ParaView/Python_Scripting#Animating

-Eric

--
Eric E Monson
Duke Visualization Technology Group


On Nov 4, 2010, at 2:23 PM, Milos Ilak wrote:

 Hi John,
 
 I don't know how one could save an entire animation from Python, but I use 
 WriteImage() for each frame to output a .png, and I end up with a bunch of 
 numbered images (I manually write the file names in a loop). That gives you 
 more flexibility in encoding, as you can change the frame rate, bitrate, use 
 more codecs, etc...Of course, if you do this, you need to use some encoding 
 software such as ffmpeg, mencoder, QuickTime Pro, etc in order to encode the 
 movie. I hope this helps,
 
 Milos
 
 
 
 
 On Thu, Nov 4, 2010 at 7:09 PM, John Haiducek jhaid...@gmail.com wrote:
 I want to save an animation from a python script using pvbatch or pvpython. 
 Is there a python command for saving an image sequence, or do I need to 
 repeatedly change frames and call WriteImage() each time?
 
 John Haiducek
 
 ___
 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
 
 
 
 
 -- 
 Miloš Ilak
 Linné FLOW Centre
 KTH Mechanics, Stockholm 
 +46(0) 8 790-7152
 www2.mech.kth.se/~ilak
 
 
 ___
 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-04 Thread Peter Schmitt
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.com wrote:

 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] Problems building 3.8.0 for 64-bit Mac

2010-11-04 Thread Dave Partyka
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.com wrote:

 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.com wrote:

 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


[Paraview] Partitioned Legacy format

2010-11-04 Thread Seth Wilson


Hello,

I would like to visualize RGB data files in parallel using the .pvtk 
format.  Sample files:


colortest.pvtk
File version=pvtk-1.0 dataType=vtkImageData numberOfPieces=4 
origin=0 0 0 spacing=1 1 1 wholeExtent=0 99 0 99 0 0 

Piece extent=0 49 0 49 0 0 Source=data-colortest/colortest-0.vtk/
Piece extent=0 49 50 99 0 0 Source=data-colortest/colortest-1.vtk/
Piece extent=50 99 0 49 0 0 Source=data-colortest/colortest-2.vtk/
Piece extent=50 99 50 99 0 0 Source=data-colortest/colortest-3.vtk/
/File

data-colortest/colortest-0.vtk (1/4 of the 100x100 grid)
# vtk DataFile Version 2.0
comment
BINARY
DATASET STRUCTURED_POINTS
DIMENSIONS 50 50 1
ORIGIN 0 0 0
SPACING 1 1 1
POINT_DATA 2500
COLOR_SCALARS color_data 3
(...unsigned char data )

Paraview does not have any problems with the *.vtk files.  The .pvtk file
throws the following error:

ERROR: In /usr/src/redhat/BUILD/ParaView3.2.3/VTK/Parallel/vtkPDataSetReader.cxx, 
line 1410

vtkPDataSetReader (0x945b080): Incomplete coverage.

I have tried manipulating the global and piece extents, but nothing seems 
to work.  Any suggestions?


Thanks.
___
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