Re: [Paraview] Python - Get Information Properties

2010-05-03 Thread Sebastien Jourdain
You should be able to call this method directly on your proxy object that
own your dataset such as a filter of a reader.

extent = data.GetDataInformation().GetExtent();

Seb

On Mon, May 3, 2010 at 4:07 PM, Christian Werner 
christian.wer...@rwth-aachen.de wrote:

 Hi!

 Is there a way to access the Information Properties in Python? For the
 display properties it is

 GetDisplayProperties(object)


 Is there also something like GetInformationProperties ? I'd like to know
 the extents of my volume data such that I do not exceed the maximum slice
 when changing that in a script.


 Best regards,
 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] Manta Download

2010-05-11 Thread Sebastien Jourdain
Hi Natalie,

You should be able to find what you are looking for in that web page.

http://mantawiki.sci.utah.edu/manta/index.php/Main_Page

Seb

On Tue, May 11, 2010 at 9:37 AM, Natalie Happenhofer 
natalieh...@hotmail.com wrote:

  Hi everybody,

 I'm looking for a Manta download to build use the Plugin in ParaView 3.8.0,
 but I can't find it anywhere. Could anyone mail me a link?

 Thanks,
 Natalie

 --
 Subir, organizar y compartir documentos online, está a un clic de tu
 bandeja de entrada. Ver 
 máshttp://www.descubrewindowslive.com/hotmail/almacenamiento.asp

 ___
 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] Indication of delay between interactive and still render?

2010-06-24 Thread Sebastien Jourdain
Me too but as a count down...

On Thu, Jun 24, 2010 at 8:38 PM, Marcus D. Hanwell
marcus.hanw...@kitware.com wrote:
 On Thu, Jun 24, 2010 at 8:31 PM, David Thompson dcth...@sandia.gov wrote:

 That is really a good point. The more I use it, the more I realize
 this is absolutely essential. But how ? :). What could serve as a good
 indication?

 1. Different colors on the border surrounding the pane (but this competes
 with the red/blue indicating which pane is Active)
 2. An LED-like glyph in the pane's title bar?
 3. A small overlay in one corner of the pane? (Ken's favorite: a pie chart
 showing either time remaining before a still render or time spent waiting
 for a still render to finish. :-)

 You beat me to it - I was just writing we could add a small overlay in a
 corner of the display to give the user a subtle visual cue. Option 3 gets my
 vote too ;-)
 Marcus

 On Tue, Jun 22, 2010 at 12:00 PM, Moreland, Kenneth kmo...@sandia.gov
 wrote:

 I just got a chance to try out the new feature that pauses for 2 seconds
 between the last interactive render and the still render to give you a
 chance to make further movements
 (http://paraview.org/Bug/view.php?id=10232).  Totally cool.

 One thing I noticed though is that there is no indication of an
 intentional
 pause.  Is there a subtle way to let the user know when the interface is
 pausing and when it is busy rendering?  Or is it fine the way it is?

 -Ken

         Kenneth Moreland
    ***      Sandia National Laboratories
 ***
 *** *** ***  email: kmo...@sandia.gov
 **  ***  **  phone: (505) 844-8919
    ***      web:   http://www.cs.unm.edu/~kmorel


 ___
 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


___
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] Reexecute pipeline

2010-07-06 Thread Sebastien Jourdain
Once you changed your data on your custom data source, you will have
to mark your datasource as Modified().
Then, a simple Render() or Update() will recompute the pipeline.

Seb

On Tue, Jul 6, 2010 at 5:22 AM,  owen.arn...@stfc.ac.uk wrote:
 How can I force the pipeline to reexecute my custom data source?



 Currently RequestData is called once, but I would like to be able to
 restructure input data whenever a change is applied to the pipeline. Is this
 possible?



 As some background, I want to be able to regenerate my input data at a
 higher resolution when the user applies the clipping filter.

 --
 Scanned by iCritical.

 ___
 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] External execution of python code related to paraview

2010-07-09 Thread Sebastien Jourdain
Instead of launching the graphical interface of ParaView, you can
launch the pvpython executable which is a python shell from where you
should be able to execute your script. And I think you can directly
provide a script as argument so you should be able to execute your
script in one command line.

Seb

On Fri, Jul 9, 2010 at 1:06 AM,  rhush...@iitk.ac.in wrote:
 Hi,
  Thanks a lot for all the help given before.
  Please could you tell me that can I open run the python code from outside
 paraview (without opening any instance of paraview), and get the output
 images(snapshots/full 3-D images) after execution of the code.

  Thank You in advance

  Rhushabh Bhandari

 ___
 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] vtk file open command

2010-07-12 Thread Sebastien Jourdain
The solution has been post previously but here is what you should look for.

# The python script is the following:
from paraview.simple import *
reader = OpenDataFile('...\out1-1.vtk')
Show(reader)
Render()
#

Seb


On Mon, Jul 12, 2010 at 3:35 PM, llapis Pencil llapispen...@yahoo.es wrote:
 Hi,

 I'm trying to open a vtk file with a Python script. Do someone know which is
 the appropiated command? Do I need special libraries?

 Thanks for advance

 Llapis


 ___
 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] transparent background

2010-09-13 Thread Sebastien Jourdain
Hi Stephane,

On the VTK side which might be able to be done in the scripting layer
of ParaView also (but not sure), you will need 2 things:

1) tell the render window to send alpha :
view-GetRenderWindow()-SetAlphaBitPlanes(1);
2) request the Alpha value on the window capture filter :
this-WindowCapture-SetInputBufferTypeToRGBA();

And if you write a PNG image, the background will be transparent.

Seb

On Mon, Sep 13, 2010 at 10:10 AM, Utkarsh Ayachit
utkarsh.ayac...@kitware.com wrote:
 Nope, it's not possible to save transparent backgrounds. However, it
 should be too hard to use another tool afterwords to set the
 transparent color for the png.

 Utkarsh

 2010/9/13 Stephane PLOIX stephane.pl...@edf.fr

 Hi,

 I am trying to save a screenshot with transparent background.
 To do this, I set as background a fully transparent image, but the resulting 
 screenshots have black background.
 Is it possible to have a transparent backgroud in the screenshots?

 Best,
 Stephane



 Stephane PLOIX
 Pilote Opérationnel - Visualisation scientifique
 EDF - RD
 SINETICS
 1, Av du Général de Gaulle
 92140 Clamart

 stephane.pl...@edf.fr
 Tél. : +33 (0) 1 47 65 51 10
   Un geste simple pour l'environnement, n'imprimez ce message que si vous en 
 avez l'utilité.

 Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis 
 à l'intention exclusive des destinataires et les informations qui y figurent 
 sont strictement confidentielles. Toute utilisation de ce Message non 
 conforme à sa destination, toute diffusion ou toute publication totale ou 
 partielle, est interdite sauf autorisation expresse.

 Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le 
 copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. 
 Si vous avez reçu ce Message par erreur, merci de le supprimer de votre 
 système, ainsi que toutes ses copies, et de n'en garder aucune trace sur 
 quelque support que ce soit. Nous vous remercions également d'en avertir 
 immédiatement l'expéditeur par retour du message.

 Il est impossible de garantir que les communications par messagerie 
 électronique arrivent en temps utile, sont sécurisées ou dénuées de toute 
 erreur ou virus.
 

 This message and any attachments (the 'Message') are intended solely for the 
 addressees. The information contained in this Message is confidential. Any 
 use of information contained in this Message not in accord with its purpose, 
 any dissemination or disclosure, either whole or partial, is prohibited 
 except formal approval.

 If you are not the addressee, you may not copy, forward, disclose or use any 
 part of it. If you have received this message in error, please delete it and 
 all copies from your system and notify the sender immediately by return 
 message.

 E-mail communication cannot be guaranteed to be timely secure, error or 
 virus-free.

 ___
 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] VTK files with only points

2010-09-13 Thread Sebastien Jourdain
Unstructured grid needs cells even though you are only interested in
points. You will have to create one cell per point or one cell that
refer each point.

VTK_VERTEX or VTK_POLY_VERTEX.

You can check the following document to see what I mean by Cell.

Seb

http://www.vtk.org/VTK/img/file-formats.pdf



On Mon, Sep 13, 2010 at 4:28 PM, D Haley my...@yahoo.com wrote:
 Hello,

 I am trying to use paraview to visualise molecular dynamics results, as a 
 function of time. I am following the example of

 http://www.geophysik.uni-muenchen.de/intranet/it-service/applications/paraview/animations-with-paraview/

 and writing a pvd file from my results which references one VTU per timestep. 
 However, the VTU file that the PVD refers to won't open, and spits out the 
 following error when trying to open one directly:


 ERROR: In /home/user/source/ParaView3/VTK/Filtering/vtkExecutive.cxx, line 757
 vtkStreamingDemandDrivenPipeline (0x253d920): Algorithm 
 vtkXMLUnstructuredGridReader(0x253cbe0) returned failure for request: 
 vtkInformation (0x253dc20)
  Debug: Off
  Modified Time: 984588
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_INFORMATION
  FORWARD_DIRECTION: 0
  ALGORITHM_AFTER_FORWARD: 1

 My VTU file looks like this:


 VTKFile type=UnstructuredGrid version=0.1 byte_order=BigEndian
 UnstructuredGrid
 Piece NumberOfPoints=4
 Points
        DataArray type=Float32 NumberofComponents=3 NumberofCells=0 
 Format=ascii
                0.000105948 0.000105948 0.999478
                0.000105948 0.999478 0.000105948
                0.999478 0.000105948 0.000105948
                0.000310148 0.000310148 0.000310148
        /DataArray
 /Points
 /Piece
 /UnstructuredGrid
 /VTKFile


 Does anyone know what is wrong?

 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

___
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] New feature in ParaView: Spreadsheet view support sorting

2010-09-16 Thread Sebastien Jourdain
Hi everyone,

I just wanted to let you know that we recently added a new feature
into ParaView which allow the user to sort a column in the Spreadsheet
view.
So if you want to give a try and send me some feed back. Just fill
free to do so.

You can find more information on how it works on this wiki page :
- http://www.paraview.org/Wiki/Sortable_spreadsheet_view

Seb

PS: This feature is currently in the Git repository and will be
packaged into ParaView 3.10
___
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] Lode several files at the same time.

2010-09-20 Thread Sebastien Jourdain
Hi Kicki,

if you write a vtm file that refer to your vtp ones, then you would
need only to load one file.
To build such a file, I guess you can append your 3 datasets into 1
with the append filter and save the given dataset into a file.

Seb

On Mon, Sep 20, 2010 at 6:44 AM, Kristina Silverbåge
k.silverba...@gmail.com wrote:

 My 3D picature consists of 3 vtp files. Now I open them one by one, is there
 any way to open them all at the same time?

 Kicki

 ___
 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] RAW to STL Script Help?

2010-10-14 Thread Sebastien Jourdain
The documentation is for the current (git) version. You can go back
and look in the history to see the comment for 3.8.

Seb

On Thu, Oct 14, 2010 at 8:58 AM, Eric E. Monson emon...@cs.duke.edu wrote:
 This wiki page describes some of the functionality, but doesn't seem to be 
 quite up to date regarding Trace State. If you find the things Sebastien is 
 mentioning and have trouble just let us know.

 http://www.cmake.org/Wiki/Python_GUI_Tools

 -Eric

 On Oct 14, 2010, at 8:24 AM, Sebastien Jourdain wrote:

 Hi Christopher,

 the python trace allow the user to record some actions in the UI and
 generate a python script out of it.
 Depending on the ParaView version:
 - You will have some button start/stop trace on the right side of the
 Python shell.
 - or from the Git repo, directly accessible from the Tools menu.

 Enjoy,

 Seb

 On Wed, Oct 13, 2010 at 11:33 PM, Christopher Olah
 christopherolah...@gmail.com wrote:
 I've actually never heard of python state trace. So, please, go on.
 The only thing that comes up with Google is a paraview mailing list
 thread about it being broken and a few miscellaneous mentions.

 On Wed, Oct 13, 2010 at 7:32 PM, Christopher Olah
 christopherolah...@gmail.com wrote:
 Hey Eric,

 Thanks! I was using 3.8.1 but I'm pulling from git right now. :) If
 someone knows how to write an STL in 3.8.1, it would still be nice to
 know, of course.

 Thanks again,

 Christopher

 On Wed, Oct 13, 2010 at 6:11 PM, Eric E. Monson emon...@cs.duke.edu 
 wrote:
 Hey Christopher,

 Well, I think that page is the best current documentation. Which version 
 of ParaView are you using? (The API has changed quite a bit over various 
 versions, and if you're using an earlier version than 3.8 or 3.9, the 
 Python API has gotten much nicer these days.)

 I'm not actually sure how to write the STL file with PV 3.8.1, but with 
 the current development version (3.9) you can load the data and write the 
 STL with something like this (which I used the Python State Trace to 
 figure out the commands -- ask if you don't know how to use this 
 functionality because it's _really_ helpful in writing scripts):

 # =
 try: paraview.simple
 except: from paraview.simple import *

 noisy_10x100x100_sphere_raw = ImageReader( 
 guiName=noisy_10x100x100_sphere.raw, ScalarArrayName='ImageFile', 
 DataExtent=[0, 10, 0, 100, 0, 100], 
 FilePrefix='/Users/emonson/Programming/ParaView_git/ParaViewData/Data/noisy_10x100x100_sphere.raw',
  NumberOfScalarComponents=1, FileDimensionality='3', 
 DataByteOrder='LittleEndian', DataOrigin=[0.0, 0.0, 0.0], 
 FilePattern='%s', DataSpacing=[10.0, 1.0, 1.0], DataScalarType='unsigned 
 int', FileLowerLeft=1 )

 Contour1 = Contour( guiName=Contour1, Isosurfaces=[102119.0, 
 104355.0, 106590.0], ComputeNormals=1, ComputeGradients=0, 
 ComputeScalars=0, ContourBy=['POINTS', 'ImageFile'], 
 PointMergeMethod=Uniform Binning )

 Show()

 ResetCamera()
 Render()

 writer= CreateWriter(raw_contours.stl, Contour1)
 writer.UpdatePipeline()
 # =

 Note that some of the options that are specified might be defaults that 
 you wouldn't have to include, but I got these from the State Trace. Also, 
 I didn't try to include the loop for varied file names...

 Maybe someone else can chime in with the STL writing if you're using 
 3.8.1.

 Hope this points you in the right direction,
 -Eric

 --
 Eric E Monson
 Duke Visualization Technology Group


 On Oct 13, 2010, at 5:06 PM, Christopher Olah wrote:

 Dear All,

 I have a large number of RAW files (unsigned characters in 3
 dimensions of varying size) and I need to extract isosurfaces and save
 them as STLs. I've been using paraview to do this (and it's awesome!),
 but doing it by hand is becoming impractical. Unfortunately, I've been
 having trouble figuring out how to script it.

 In particular, I can't figure out how to load RAW files or how save
 STLs. In fact, the best documentation on the python API I can find is
 http://www.paraview.org/Wiki/ParaView/Python_Scripting ... Could
 someone direct me towards something a bit more comprehensive?

 Thanks in advance,

 Christopher Olah

 PS. I hope this isn't too trivial to write to you about -- I couldn't
 really find anything on what level of question was appropriate for
 this list.
 ___
 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

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

2010-11-03 Thread Sebastien Jourdain
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?

 Thanks for any help,
 Hamilton Woods
 ___
 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] VTK File Format Question

2010-12-12 Thread Sebastien Jourdain
Hi Jeff,

on the help page of vtk (http://www.vtk.org/VTK/help/documentation.html)
you do have a link on the VTK file format.
You should be able to find all the informations that you need here:
http://www.vtk.org/VTK/img/file-formats.pdf

Seb

On Sat, Dec 11, 2010 at 8:44 PM, Jeff Johnson j...@indiana.edu wrote:
 Hi all,

 I'm using ParaView to visualize a dataset, and I'm trying to generate an 
 ASCII VTK file that will specify a set of voxels, where each voxel has an 
 associated color and opacity. Does anyone have any suggestions for how I 
 should format the file? It seems like this should be easy, but I can't make 
 heads or tails of the documentation.

 -Jeff
 ___
 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] VTK File Format Question

2010-12-13 Thread Sebastien Jourdain
Hi Jeff,

the points coordinates are implicit which mean that once you defined
your grid by its size/spacing/origin, your are fine. And the only
thing that is missing is the data that you try to show. Those data can
be located at each point of the grid or at the center of each cell
(cell: small boxes that compose the big one). Typically, this could be
the color that you want for them. But usually, it represent an
information (temperature, pressure, ...) and we use a lookup table to
convert those scalar value into a color, by setting the lookuptable
the way we want in term of color and alpha.

Seb

On Sun, Dec 12, 2010 at 4:15 PM, Jeff Johnson j...@indiana.edu wrote:
 Thanks, but I'm totally new to the VTK file format and ParaView, and the 
 documentation is not clear. It seems like the STRUCTURED_GRID geometry is the 
 proper one for what I need, but I can find virtually no examples of it's use. 
 For instance, if I want to specify a set of unit cubes from a set of points, 
 do I do that in POINT_DATA or CELL_DATA? If I want to color them and set an 
 opacity, where does that information go? The documentation says that a lookup 
 table is a set of RGBA values that is associated with scalar data, but what 
 does the scalar data represent, and how do I associated it with the cubes?

 -Jeff


 On Dec 12, 2010, at 03:27 , Sebastien Jourdain wrote:

 Hi Jeff,

 on the help page of vtk (http://www.vtk.org/VTK/help/documentation.html)
 you do have a link on the VTK file format.
 You should be able to find all the informations that you need here:
 http://www.vtk.org/VTK/img/file-formats.pdf

 Seb

 On Sat, Dec 11, 2010 at 8:44 PM, Jeff Johnson j...@indiana.edu wrote:
 Hi all,

 I'm using ParaView to visualize a dataset, and I'm trying to generate an 
 ASCII VTK file that will specify a set of voxels, where each voxel has an 
 associated color and opacity. Does anyone have any suggestions for how I 
 should format the file? It seems like this should be easy, but I can't make 
 heads or tails of the documentation.

 -Jeff
 ___
 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] place 2-D png file in 3-D field

2010-12-16 Thread Sebastien Jourdain
If you create a plane source, you can use your image as a texture.

Hope this helps,

Seb

On Thu, Dec 16, 2010 at 10:47 AM, Xueli Wang w...@knmi.nl wrote:
 Dear ParaView users,

 I made a movie in 3-D space, but I want to put a 2-D image file on one of
 the corners. It is so difficult to fix it on a 2-D plane. Does anyone know a
 solution to it?

 Thanks in advance!

 Xueli
 ___
 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] [paraviewweb] trouble with paraviewweb on windows

2011-01-07 Thread Sebastien Jourdain
Hi Pjotr,

few comments before getting further for solving the problem that you are facing.

As Utkarsh said we didn't try to have a Windows server for ParaViewWeb
and as a client IE is not the best browser available specially with
the JavaScript renderer. In fact, if the targeted client is IE, you
should use the flash renderer for better performances. For now, the
best client platform is Firefox.

Regarding your problem on Linux, did you get through the FAQ
(http://www.paraview.org/Wiki/ParaViewWeb/FAQ) ?
Which version of ParaView did you use to compile ParaViewWeb ?
Do you manage to make that ParaView rendering working ? To try it,
launch the pvpython and run the following lines

from paraview.simple import *
Sphere()
Show()
Render()

I let you get back to us for more feedback if none of this help you.

Seb





On Fri, Jan 7, 2011 at 10:21 AM, Pjotr Svetachov
pjotrsvetac...@gmail.com wrote:
 Utkarsh,

 I managed to compile everything on Linux. But I still do not get any
 image and the interface is still not click able. The error log is
 still empty but the output log changed a little to this:

 JMS Initialized in 0.185163 seconds
 sessionID : 32768
 logLevel : ERROR
 Processing Engine Initialized in 3.34721 seconds

 Processing engine is started !
 invoke message
 Total time to produce image: (s) 7.00951e-05 - compression time: 0
 Server framerate: 0.283695
 invoke message
 invoke message

 Cheers,
 Pjotr

 On Wed, Jan 5, 2011 at 5:45 PM, Utkarsh Ayachit
 utkarsh.ayac...@kitware.com wrote:
 Pjotr,

 We haven't tested ParaViewWeb with Windows server yet. We currently
 only support Mac and Linux based server machines.

 Utkarsh

 On Wed, Jan 5, 2011 at 11:26 AM, Pjotr Svetachov
 pjotrsvetac...@gmail.com wrote:
 Hello everyone,

 I have compiled paraviewweb with visual studio on a windows 7 machine
 but I'm not able to produce any renderings. None of the samples work
 except PWService. All the other applications seem to hang, I can see
 all the widgets fine but I can not click on any of them. In the
 Sandbox everything also hangs but only after I click on the run
 button.

 Here is some output:

 From the tomcat console:

 Settings: default
 Exec: C:\Users\Pjotr\Programs\PARAVIEW_WEB\bin\PWServer.exe
 ## Register JMS process lyfeCycle listener
 ## Start process: 589824
 Start Garbage collecting the ParaView processes:
  - Look at 589824
 Start Garbage collecting the ParaView processes:
  - Look at 589824


 From the pw output log file (the error output file is empty):

 JMS Initialized in 0.141 seconds
 sessionID : 589824
 logLevel : WARNING
 Processing Engine Initialized in 0.733 seconds

 Processing engine is started !
  message
 Total time to produce image: (s) 0 - compression time: 0
 Server framerate: 0.00278353



 I have tried setting the log level to ERROR and WARNING and I get the
 same output. If I set it on INFO or DEBUG it gives me some error about
 not able to initialize pw-logger but I only see half of that error
 message and I can not focus the window and copy paste it from. Also,
 sometimes I can not close the tab in firefox and I even managed to
 crash internet explorer with PWApp.

 I also tried the connect to a pvserver that is running locally by
 typing the adress in the PWApp login screen but the pvserver didn't
 register any connection attempt being made. But if I start
 PWServer.exe with command-line arguments to connect it to a remote
 server it works. I also tried uploading datasets with PWApp, they do
 appear in the workdir/data folder but nothing is displayed still.

 Cheers,
 Pjotr
 ___
 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] Some tests and questions about PV 3.10.0-RC1

2011-02-04 Thread Sebastien Jourdain
Hi Richard,

I've just talked to Rob about your problem and explained your point.
Rob is going to report a bug for that.
One solution we were thinking of is when several files are selected in
the OpenFile process, if we already have define a reader for a given
extension, we reuse that same reader and ask for the reader type only
for new extension where concurrent reader exist.

What do you think ?

Seb

On Fri, Feb 4, 2011 at 12:01 PM, Robert Maynard
robert.mayn...@kitware.com wrote:
 Hi Richard,
 In the 3.10 we have introduced the ability to load multiple files when using
 the ctrl and shift keys. If you want to load a file series you need to
 select the file series root node, not each item in the series. Doing so will
 make ParaView load each file individually.
 You can find a nice guide to loading files in the user
 guide: http://www.itk.org/Wiki/ParaView/Users_Guide/Loading_Data
 On Fri, Feb 4, 2011 at 10:03 AM, Richard GRENON richard.gre...@onera.fr
 wrote:

 Thank you for the answer, Robert.

 The Tecplot reader works fine with a single file that contains a
 multi-block dataset, but I encountered a problem when trying  to read the
 same data as a serie of Tecplot files.

 Each file is a single block surface grid on the skin of an aircraft. Once
 I had selected all my files, I got an error message: Group name and proxy
 must be non empty. But this was only a warning and PV was always running.
 Then I had to choose between Tecplot Files (VisIt) and Tecplot Files in
 the Open data with.. window and click OK for each file in my serie.

 Each time I clicked OK, a new file was loaded in the pipeline, but as I
 had selected more than 350 files, I decided to cancel. But the Cancel button
 is ignored and the Open data with.. window appears again and again! The
 only way to cancel the reading task was to kill Paraview. I hope that this
 could be solved in the final release.

 Now may I suggest an improvement for all readers? When reading huge
 datasets, the screen seems to be frozen (for about one minute with my full
 aircraft CFD dataset), and it would be nice if we could have in a future
 release some progress bar or something else indicating that PV is always
 alive.

 Best regards and good week-end.

 Richard.

 Robert Maynard a écrit :

 Hi Richard,
 You are correct the VisIt plugin has been reworked and moved into
 ParaView.

 --
 Richard GRENON
 ONERA
 Departement d'Aerodynamique Appliquee - DAAP/ACI
 8 rue des Vertugadins
 92190 MEUDON - FRANCE
 phone : +33 1 46 73 42 17
 fax   : +33 1 46 73 41 46
 mailto:richard.gre...@onera.fr
 http://www.onera.fr




 --
 Robert Maynard

 ___
 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] Multiblock dataset, ghost nodes and problem with rendering contours with opacity

2011-02-08 Thread Sebastien Jourdain
Hi Mohamad,

I thought you were working on an unstructured grid. As it is not the
case you shouldn't bother with the array that I talked earlier.
But you should provide the information that each piece is a part of a
whole system and not a set of whole system shown in the same 3d world.

Did you try to specify the WholeExtent to be the Whole system extent
and not the piece one ?

Seb

On Mon, Feb 7, 2011 at 1:44 PM, Mohamad M. Nasr-Azadani
mmn...@gmail.com wrote:
 Hi Seb,
 I did not define any separate array. The only thing that I have done when
 writing the *.vtr file for each subblock is something similar to this
 File0.vtr
 **
 ?xml version=1.0?
 VTKFile type=RectilinearGrid version=0.1 byte_order=LittleEndian
 compressor=vtkZLibDataCompressor
   RectilinearGrid WholeExtent=0 27 0 68 0 135
     Piece Extent=0 27 0 68 0 135
       PointData
         DataArray type=Float32 Name=Conc_0 format=appended offset=0
                   /
         DataArray type=Float32 Name=Conc_1 format=appended
 offset=1221128             /
         DataArray type=Float32 Name=Conc_2 format=appended
 offset=2406800             /
       /PointData
       CellData
       /CellData
       Coordinates
         DataArray type=Float32 Name=Array 0x9c7aad8 format=appended
 offset=3624188             /
         DataArray type=Float32 Name=Array 0x9c79e80 format=appended
 offset=3624376             /
         DataArray type=Float32 Name=Array 0x9c7ac00 format=appended
 offset=3624784             /
       /Coordinates
     /Piece
   /RectilinearGrid
   AppendedData encoding=base64
 
 
 File1.vtr
 
 ?xml version=1.0?
 VTKFile type=RectilinearGrid version=0.1 byte_order=LittleEndian
 compressor=vtkZLibDataCompressor
   RectilinearGrid WholeExtent=26 54 0 68 0 135
     Piece Extent=26 54 0 68 0 135
       PointData
         DataArray type=Float32 Name=Conc_0 format=appended offset=0
                   /
         DataArray type=Float32 Name=Conc_1 format=appended
 offset=1365196             /
         DataArray type=Float32 Name=Conc_2 format=appended
 offset=2688228             /
       /PointData
       CellData
       /CellData
       Coordinates
         DataArray type=Float32 Name=Array 0x9c7aad8 format=appended
 offset=4047428             /
         DataArray type=Float32 Name=Array 0x9c79e80 format=appended
 offset=4047624             /
         DataArray type=Float32 Name=Array 0x9c7ac00 format=appended
 offset=4048032             /
       /Coordinates
     /Piece
   /RectilinearGrid
   AppendedData encoding=base64
 *
 (And many more datafiles similar to this).
 As you can see, the two files have one layer of ghost nodes
 File0.vatr
   RectilinearGrid WholeExtent=0 27 0 68 0 135
 File1.vtr
   RectilinearGrid WholeExtent=26 54 0 68 0 135

 Now, I use a *.pvd file to load these files as part for each timestep. I
 am not even using a *.pvtr.
 Is it possible to do it the way I am doing it right now or do I need to use
 *.pvtr file?
 Thanks for you help,
 Mohamad

 On Sun, Feb 6, 2011 at 6:30 PM, Sebastien Jourdain
 sebastien.jourd...@kitware.com wrote:

 Hi Mohamad,

 Did you add a data array GhostLevels to specify for each cell its
 ghost level ?
 It's an unsigned char data array where the values are the depth into
 the next block for of each cell.
 By that I mean:
 - 0 is the cells of the current block
 - 1 is the set of cells that share points in the current block and the
 neighbor one.

 Seb

 On Sun, Feb 6, 2011 at 12:30 PM, Mohamad M. Nasr-Azadani
 mmn...@gmail.com wrote:
  Hey experts,
  I am using several *.vtr files (as subblocks of the entire domain) and
  then
  use pvd file to load them in paraview.
  As I have read in the manual, one needs to use at least one layer of
  ghost
  nodes on each subblock so that paraview can perform operations on any
  given
  dataset of that kind.
  So far, everything is fine. However, the problem that I have is very
  simple
  yet annoying. When I use contours to represent the isosurface and then
  any
  opacity value less than 1.0, I can see the boundaries of each subblock
  on
  the contour surface. I have not been successful to fix this problem yet.
  Any ideas on how to solve this issue?
  Thanks,
  Mohamad
  PS: Attached, please find one snapshot of the contours + the annoying
  line
  appreaing on the isosurface.
 
  ___
  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

Re: [Paraview] scripting beginner

2011-02-19 Thread Sebastien Jourdain
Hi,

you forget to call Render() before and after the ResetCamera().

Seb

On Sat, Feb 19, 2011 at 9:59 AM, Tim Gallagher tim.gallag...@gatech.edu wrote:
 Without looking at the script in detail, have you tried using the Python 
 Trace feature in the GUI? Since, at this stage anyway, all of your tasks are 
 straight forward, you can do them in the GUI with the trace turned on, then 
 look at the resulting script to show you how all of it is done.

 That is, by far, the easiest way to learn how to script Paraview.

 Try the following script:

  from paraview.simple import *
  
  rv = GetRenderView() # Get a connection to the render window
  reader = OpenDataFile(PATH+'lfff0030p_QC.vts')
  reader.Update() # Actually read the file in and update the pipeline
  contourFilter = Contour(reader)
  contourFilter.ContourBy = 'velocity'
  contourFilter.Isosurfaces = [0.0005, 0.001]
  dr = Show() # Update the pipeline again, but we need to alter how it looks
  lookupTable = CreateLookupTable( RBGPoints=[minval to show, 0.0, 0.0, 
 0.0, maxval to show, 1.0, 1.0, 1.0], VectorMode='Magnitude', 
 ColorSpace='RGB', ScalarRangeInitialized=1.0) # This creates the color map, 
 going from back to white
  dr.ColorArrayName = 'data array name to show' # Tell it how you want 
 contours colored
  dr.ColorAttributeType = 'POINT_DATA or CELL_DATA' # Tell it the type of 
 data it is coloring
  ResetCamera()
  WriteImage('picture.png')
  servermanager.SaveState('pythonstate.pvsm')

 That is something like what you need to do (I can't promise it works, but it 
 will get you close -- I've never used a script with the Contour filter). 
 Again, do what you are trying to do in the GUI with trace turned on and see 
 what it outputs. You'll see some extra steps along the lines of what I added 
 that should get you up and running.

 Tim

 - Original Message -
 From: Hartwig Anzt hartwig.a...@kit.edu
 To: paraview@paraview.org
 Sent: Saturday, February 19, 2011 9:15:35 AM
 Subject: [Paraview] scripting beginner

 Hi!

 I am real beginner in paraview scripting. Up to now, I used the paraview
 graphic platform, but since the tasks are getting more complex, I wanted
 to use paraview scripting with python and failed.

 What I want to do:
 - Load .vts-data
 - Create Contour
 - Set Data Range
 - Save State/Save Picture

 I wrote the following script:

  from paraview.simple import *
  
  reader = OpenDataFile(PATH+'lfff0030p_QC.vts')
  contourFilter = Contour(reader)
  contourFilter.ContourBy = 'velocity'
  contourFilter.Isosurfaces = [0.0005, 0.001]
  Show(contourFilter)
  ResetCamera()
  WriteImage('picture.png')
  servermanager.SaveState('pythonstate.pvsm')


 If I run the script, two errors occur, probably with the same reason.
 The writer says:
 vtkSMRenderViewProxy (0x1e6da30): Disabling offscreen rendering since
 empty image was detected.

 When I open the state, there is nothing displayed. in order to see
 anything, I do have to press Apply for the Contour filter and Reset
 for the Camera, then everything looks fine.

 How can I implement, that these two operations are conducted?

 Thanks, Hartwig

 --
 ~~

 Karlsruhe Institute of Technology (KIT)
 Engineering Mathematics and Computing Lab (EMCL) 
 Institute for Applied and Numerical Mathematics 4

 Dipl.-Math. techn. Hartwig Anzt
 Research Associate

 Fritz-Erler-Str. 23, Geb. 01.86
 76133 Karlsruhe, Germany

 Phone: +49 721 / 608 - 45849
 Email: hartwig.a...@kit.edu
 Web:   http://numhpc.math.kit.edu, http://emcl.kit.edu,

 KIT - University of the State of Baden-Wuerttemberg and
 National Laboratory of the Helmholtz Association

 ___
 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] Visit Reader crash

2011-03-11 Thread Sebastien Jourdain
Hi Guys,

to give you some heads up, the issue that you are facing where the
client is not working with a server which has a different proxy
definition set, such as the SILO and CGNS readers will be solved in
ParaView 4.

Now the client will get the Proxy definition from the server, so no
more mismatch in client/server capability.

Seb

PS: I don't have any time frame for it, but that code will be
available in the coming weeks to the community...
PS2: An announcement will be made to give more information about that
version anyway...

On Fri, Mar 11, 2011 at 9:20 AM, Robert Maynard
robert.mayn...@kitware.com wrote:
 Hi,
 For ParaView to work you most make sure that the client and server have the
 same readers enabled in the VisItBridge. In your case you will you need to
 recompile the server with SILO and CGNS support if you want to load those
 file formats, or recompile the client with those readers disabled.

 On Fri, Mar 11, 2011 at 6:17 AM, Van Mierlo K. k...@soton.ac.uk wrote:

 Hi,



 I have installed paraview 3.10 on the cluster and enabled the Visitbridge.
 Not all dependencies for the different Visit readers are available so only a
 number of them is build. Running the paraview gui on the cluster works but
 connecting to pvserver from my windows desktop (running the binary
 downloaded from the website) causes a crash. I think it is because not all
 Visit readers are available to pvserver on the cluster. I guess I can
 disable the Visit readers on my desktop as a work around but this is not an
 ideal solution.



 Koen van Mierlo



 [kvm@blue38 complex]$ Listen on port: 1

 Waiting for client...

 Client connected.

 ERROR: In
 /home/kvm/projects/ParaView-3.10.0/Servers/Common/vtkProcessModule.cxx, line
 1095

 vtkProcessModule (0x11e04430): Cannot create object of type
 vtkVisItSiloReader.

 while processing

 Message 0 = New

   Argument 0 = string_value {vtkVisItSiloReader}

   Argument 1 = id_value {324}





 ERROR: In
 /home/kvm/projects/ParaView-3.10.0/Servers/Common/vtkProcessModule.cxx, line
 1096

 vtkProcessModule (0x11e04430): Aborting execution for debugging purposes.



 [blue38:20707] *** Process received signal ***

 [blue38:20707] Signal: Aborted (6)

 [blue38:20707] Signal code:  (-6)

 [blue38:20707] [ 0] /lib64/libpthread.so.0 [0x3f1b00e7c0]

 [blue38:20707] [ 1] /lib64/libc.so.6(gsignal+0x35) [0x3f1a430265]

 [blue38:20707] [ 2] /lib64/libc.so.6(abort+0x110) [0x3f1a431d10]

 [blue38:20707] [ 3]
 /home/kvm/Paraview/ParaView-3.10.0-Linux-x86_64/lib/paraview-3.10/libvtkPVServerCommon.so(_ZN16vtkProcessModule19InterpreterCallbackEmPv+0x42d)
 [0x2ad41421518d]

 [blue38:20707] [ 4]
 /home/kvm/Paraview/ParaView-3.10.0-Linux-x86_64/lib/paraview-3.10/libvtkCommon.so.pv3.10(_ZN18vtkCallbackCommand7ExecuteEP9vtkObjectmPv+0x19)
 [0x2ad42401bb79]

 [blue38:20707] [ 5]
 /home/kvm/Paraview/ParaView-3.10.0-Linux-x86_64/lib/paraview-3.10/libvtkCommon.so.pv3.10
 [0x2ad4240d48b8]

 [blue38:20707] [ 6]
 /home/kvm/Paraview/ParaView-3.10.0-Linux-x86_64/lib/paraview-3.10/libvtkClientServer.so(_ZN26vtkClientServerInterpreter17ProcessOneMessageERK21vtkClientServerStreami+0x2b0)
 [0x2ad41faf32f0]

 [blue38:20707] [ 7]
 /home/kvm/Paraview/ParaView-3.10.0-Linux-x86_64/lib/paraview-3.10/libvtkClientServer.so(_ZN26vtkClientServerInterpreter13ProcessStreamERK21vtkClientServerStream+0x1d)
 [0x2ad41faf347d]

 [blue38:20707] [ 8]
 /home/kvm/Paraview/ParaView-3.10.0-Linux-x86_64/lib/paraview-3.10/libvtkPVServerCommon.so(_ZN17vtkSelfConnection20ProcessStreamLocallyER21vtkClientServerStream+0x20)
 [0x2ad4142717f0]

 [blue38:20707] [ 9]
 /home/kvm/Paraview/ParaView-3.10.0-Linux-x86_64/lib/paraview-3.10/libvtkPVServerCommon.so(_ZN20vtkMPISelfConnection30SendStreamToServerNodeInternalEiR21vtkClientServerStream+0xca)
 [0x2ad414206bca]

 [blue38:20707] [10]
 /home/kvm/Paraview/ParaView-3.10.0-Linux-x86_64/lib/paraview-3.10/libvtkPVServerCommon.so(_ZN20vtkMPISelfConnection26SendStreamToDataServerRootER21vtkClientServerStream+0x12)
 [0x2ad414205e22]

 [blue38:20707] [11]
 /home/kvm/Paraview/ParaView-3.10.0-Linux-x86_64/lib/paraview-3.10/libvtkPVServerCommon.so(_ZN26vtkProcessModuleConnection10SendStreamEjR21vtkClientServerStream+0xd1)
 [0x2ad414207921]

 [blue38:20707] [12]
 /home/kvm/Paraview/ParaView-3.10.0-Linux-x86_64/lib/paraview-3.10/libvtkPVServerCommon.so(_ZN33vtkProcessModuleConnectionManager10SendStreamExjR21vtkClientServerStreami+0x39)
 [0x2ad41420a179]

 [blue38:20707] [13]
 /home/kvm/Paraview/ParaView-3.10.0-Linux-x86_64/lib/paraview-3.10/libvtkPVServerCommon.so(_ZN16vtkProcessModule10SendStreamExjR21vtkClientServerStreami+0x6a)
 [0x2ad414212b8a]

 [blue38:20707] [14]
 /home/kvm/Paraview/ParaView-3.10.0-Linux-x86_64/lib/paraview-3.10/libvtkPVServerCommon.so(_Z26vtkClientConnectionRootRMIPvS_ii+0x55)
 [0x2ad414200e75]

 [blue38:20707] [15]
 /home/kvm/Paraview/ParaView-3.10.0-Linux-x86_64/lib/paraview-3.10/libvtkParallel.so.pv3.10(_ZN25vtkMultiProcessController10ProcessRMIEiPvii+0xa2)
 [0x2ad41db19d72]

 

Re: [Paraview] Updating an Information Only Property

2011-03-21 Thread Sebastien Jourdain
Hi Brian,

on the proxy itself, you can call either of the two methods
UpdatePropertyInformation() /
UpdatePropertyInformation(vtkSMProperty*)

Seb

On Mon, Mar 21, 2011 at 3:38 PM, Brian Panneton
brian.panne...@gmail.com wrote:
 I currently have a custom panel with two QComboBoxes. Box2 depends on the
 selection of Box1. I have implemented a SLOT for the currentIndexChanged
 event on Box1. I am stuck trying to get the StringVectorProperty
 (information_only) for Box2 to call its command and update itself. Is there
 any example code available where something of this sort is shown?

 Thanks,
 Brian Panneton

 ___
 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] Getting a raytraced picture from Manta

2011-03-22 Thread Sebastien Jourdain
Hi Sohail,

you should just close the default 3D view and create the Manta one by
clicking on its button.
Then any object that you create will be shown in that raytracer view... And
with the latest implementation, you don't need a remote server anymore.

Seb

On Tue, Mar 22, 2011 at 4:18 PM, Sohail Shafii sohailsha...@yahoo.comwrote:

 Hi,

 I have been able to get Manta raytracer to compile with paraview and load
 in as a plugin.  I even see the extra GUI options in the display tab of
 certain filters like the Tube filter.  I'm just wondering how to get
 something raytraced as a result.

 I did a bit a research via the list and found a page that says that I must
 start the paraview server with the plugin loaded.  The client would also
 have the plugin loaded and connect to the server. The instructions didn't
 say how to do that on the server side .  Usually when I start the paraview
 server (pvserver), it does not launch the GUI but just waits for a client
 connection in the terminal.  So I don't know how to load the plugin on the
 server...the command line options for pvserver didn't provide any hints.

 Please advise.

 Thanks, Sohail


 ___
 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] Getting a raytraced picture from Manta

2011-03-22 Thread Sebastien Jourdain
Hi Sohail,

if you are using 3.8.0, it is true that you will need to start a server
(pvserver) and connect to it to allow manta to work properly with
ParaView. You don't need to run in MPI, but it has to be in a different
process than the client. (I mean no built-in mode)
On the other hand, once you get connected to that pvserver (in localhost for
example) you will have to load the plugin on both side (client+server). Once
this is done, you should be able to close the 3D renderer and create a new
one based on Manta.

For the crash part, the best person will be Dave that I cc. But as he is
traveling, he might not be able to answer to you right away.

Seb


On Tue, Mar 22, 2011 at 4:49 PM, Sohail Shafii sohailsha...@yahoo.comwrote:

 Thanks.  It turns out that I am working with an older version (3.8.0) since
 I am making preparations for a paper (due next week) and some code hasn't
 been ported to latest version yet.

 I basically have to add the plugins in the Remote plugins section o fthe
 Plugin manager.  The plugin's a bit buggy and causes a crash, however, and I
 think that may be due to the fact that I am using an older version of Manta.

 Sohail

 --- On *Tue, 3/22/11, Sebastien Jourdain 
 sebastien.jourd...@kitware.com*wrote:


 From: Sebastien Jourdain sebastien.jourd...@kitware.com
 Subject: Re: [Paraview] Getting a raytraced picture from Manta
 To: Sohail Shafii sohailsha...@yahoo.com
 Cc: paraview@paraview.org
 Date: Tuesday, March 22, 2011, 1:32 PM


 Hi Sohail,

 you should just close the default 3D view and create the Manta one by
 clicking on its button.
 Then any object that you create will be shown in that raytracer view... And
 with the latest implementation, you don't need a remote server anymore.

 Seb

 On Tue, Mar 22, 2011 at 4:18 PM, Sohail Shafii 
 sohailsha...@yahoo.comhttp://mc/compose?to=sohailsha...@yahoo.com
  wrote:

 Hi,

 I have been able to get Manta raytracer to compile with paraview and load
 in as a plugin.  I even see the extra GUI options in the display tab of
 certain filters like the Tube filter.  I'm just wondering how to get
 something raytraced as a result.

 I did a bit a research via the list and found a page that says that I must
 start the paraview server with the plugin loaded.  The client would also
 have the plugin loaded and connect to the server. The instructions didn't
 say how to do that on the server side .  Usually when I start the paraview
 server (pvserver), it does not launch the GUI but just waits for a client
 connection in the terminal.  So I don't know how to load the plugin on the
 server...the command line options for pvserver didn't provide any hints.

 Please advise.

 Thanks, Sohail


 ___
 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] Information Only Property Parameters

2011-03-23 Thread Sebastien Jourdain
Unfortunately that's the way you have to do it. Or the other way is to
use GatherInformation() but it won't be much better.


On Wed, Mar 23, 2011 at 10:23 AM, Brian Panneton
brian.panne...@gmail.com wrote:
 If I have an information_only property with a command to get a
 vtkStringArray, is there a way to pass a parameter to the fuction? And, can
 that parameter be from another property? Otherwise, it seems that I would
 need to push the variable to the server in order for it to be available for
 the command called from the information_only property.

 Thanks,
 Brian Panneton

 ___
 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] Information Only Property Parameters

2011-03-23 Thread Sebastien Jourdain
Hi Brian,

could you send the (part of) XML proxy definition and the piece of
code you are calling to that proxy to make that push...
So I could be sure that both side are corrects.

Thanks,

Seb

On Wed, Mar 23, 2011 at 11:32 AM, Brian Panneton
brian.panne...@gmail.com wrote:
 Okay, my attempt to push the variable to the server using
 immediate_update=1 seems to not update the server variable when I change
 my current index of a combobox. I also tried to call Modified() on the
 currentIndexChanged event, but it seems to ignore the changes from the GUI
 and reset the combobox as if I just loaded it.

 How should I be pushing the variable to the server?


 On Wed, Mar 23, 2011 at 11:11 AM, Sebastien Jourdain
 sebastien.jourd...@kitware.com wrote:

 Unfortunately that's the way you have to do it. Or the other way is to
 use GatherInformation() but it won't be much better.


 On Wed, Mar 23, 2011 at 10:23 AM, Brian Panneton
 brian.panne...@gmail.com wrote:
  If I have an information_only property with a command to get a
  vtkStringArray, is there a way to pass a parameter to the fuction? And,
  can
  that parameter be from another property? Otherwise, it seems that I
  would
  need to push the variable to the server in order for it to be available
  for
  the command called from the information_only property.
 
  Thanks,
  Brian Panneton
 
  ___
  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] Information Only Property Parameters

2011-03-24 Thread Sebastien Jourdain
Hi Brian,

I'm not sure to understand your UI and the way the things are.
It might be overkill, but if you want to express those dependency, you
can create your own domain based on what it is filled so far so at
start only TypeList will be available, then TypeList + DataTypeList
and then TypeList + DataTypeList + DataList
Other than that, I don't know if it is possible to change the order...

Seb


On Thu, Mar 24, 2011 at 9:32 AM, Brian Panneton
brian.panne...@gmail.com wrote:
 I will attempt that and see if it corrects the issue. I have also noticed
 that when I start up the plugin and open a file, the order of my combobox
 population is wrong, and I can't seem to be able to change it.

 On load, I want it to populate in this order: TypeList, DataTypeList,
 DataList
 But it seems to always go in alphabetical order. This causes an issue
 because DataList depends on what is selected in DataTypeList which depends
 on TypeList. If either DataList or DataTypeList is run first it defaults to
 none.

 Is there a way to make them load data in order?

 On Wed, Mar 23, 2011 at 2:23 PM, Sebastien Jourdain
 sebastien.jourd...@kitware.com wrote:

 Who is supposed to change the property cbType ?
 I bet it get updated after that call, therefore, you should update
 with the correct value before you update the information property.
 To make sure you get the right value, print the combobox value so you
 know which value is pushed to the server before the update information
 property.

 Seb

 did you tried to print the combobox index when the slot get called ?
 Another thing could be to set yourself the value in the property at that
 time.

 On Wed, Mar 23, 2011 at 1:55 PM, Brian Panneton
 brian.panne...@gmail.com wrote:
  This XML is of two comboboxes, where the first depends on the second's
  selection.
  XML:
      StringVectorProperty
      name=DataTypeList
      command=GetReaderDataTypeList
      information_only=1
      StringArrayHelper /
      /StringVectorProperty
      StringVectorProperty
      name=cbDataType
      command=SetReaderDataType
      immediate_update=1
      number_of_elements=1
      StringListDomain name=operation
      RequiredProperties
      Property name=DataTypeList
      function=ArraySelection/
      /RequiredProperties
      /StringListDomain
      /StringVectorProperty
 
      StringVectorProperty
      name=TypeList
      command=GetReaderTypeList
      information_only=1
      StringArrayHelper /
      /StringVectorProperty
      StringVectorProperty
      name=cbType
      command=SetReaderType
      immediate_update=1
      number_of_elements=1
      StringListDomain name=operation
      RequiredProperties
      Property name=TypeList
      function=ArraySelection/
      /RequiredProperties
      /StringListDomain
      /StringVectorProperty
 
 
  When a currentIndexChanged event in cbType occurs, it sends a signal to
  the
  typeChanged() slot.
 
  Code:
  void
  myclass::typeChanged()
  {
      this-proxy()-GetProperty(cbType)-Modified();
      vtkSMProperty* prop = this-proxy()-GetProperty(DataTypeList);
      this-proxy()-UpdatePropertyInformation(prop);
  }
 
  What ends up happening is that when I change the combobox for cbType
  from
  index 1 to index 2, typeChanged() is called, but is sending the 1st
  value to
  SetReaderType. It looks like it refeshes but remains index1. Thus, the
  DataTypeList is populated with the same information it had.
 
  When I remove the Modified() line, the combobox for cbType will show the
  change from index 1 to index 2, but SetReaderType does not get called.
 
  Any idea why that is happening?
 
  Thanks,
 
  Brian
 
 
  On Wed, Mar 23, 2011 at 12:15 PM, Sebastien Jourdain
  sebastien.jourd...@kitware.com wrote:
 
  Hi Brian,
 
  could you send the (part of) XML proxy definition and the piece of
  code you are calling to that proxy to make that push...
  So I could be sure that both side are corrects.
 
  Thanks,
 
  Seb
 
  On Wed, Mar 23, 2011 at 11:32 AM, Brian Panneton
  brian.panne...@gmail.com wrote:
   Okay, my attempt to push the variable to the server using
   immediate_update=1 seems to not update the server variable when I
   change
   my current index of a combobox. I also tried to call Modified() on
   the
   currentIndexChanged event, but it seems to ignore the changes from
   the
   GUI
   and reset the combobox as if I just loaded it.
  
   How should I be pushing the variable to the server?
  
  
   On Wed, Mar 23, 2011 at 11:11 AM, Sebastien Jourdain
   sebastien.jourd

Re: [Paraview] Information Only Property Parameters

2011-03-24 Thread Sebastien Jourdain
I'm happy to hear that you managed to solve your issue.

On Thu, Mar 24, 2011 at 4:00 PM, Brian Panneton
brian.panne...@gmail.com wrote:
 I was able to get it working by using SetElement and setting the currentText
 retreived from the widget. Then I called UpdateProperty on the first
 combobox. Next I called UpdatePropertyInformation on the second combobox.
 For the order issue, I just ended up renaming them so they followed the
 order I needed.

 Thanks,
 Brian Panneton

 On Thu, Mar 24, 2011 at 9:47 AM, Sebastien Jourdain
 sebastien.jourd...@kitware.com wrote:

 Hi Brian,

 I'm not sure to understand your UI and the way the things are.
 It might be overkill, but if you want to express those dependency, you
 can create your own domain based on what it is filled so far so at
 start only TypeList will be available, then TypeList + DataTypeList
 and then TypeList + DataTypeList + DataList
 Other than that, I don't know if it is possible to change the order...

 Seb


 On Thu, Mar 24, 2011 at 9:32 AM, Brian Panneton
 brian.panne...@gmail.com wrote:
  I will attempt that and see if it corrects the issue. I have also
  noticed
  that when I start up the plugin and open a file, the order of my
  combobox
  population is wrong, and I can't seem to be able to change it.
 
  On load, I want it to populate in this order: TypeList, DataTypeList,
  DataList
  But it seems to always go in alphabetical order. This causes an issue
  because DataList depends on what is selected in DataTypeList which
  depends
  on TypeList. If either DataList or DataTypeList is run first it defaults
  to
  none.
 
  Is there a way to make them load data in order?
 
  On Wed, Mar 23, 2011 at 2:23 PM, Sebastien Jourdain
  sebastien.jourd...@kitware.com wrote:
 
  Who is supposed to change the property cbType ?
  I bet it get updated after that call, therefore, you should update
  with the correct value before you update the information property.
  To make sure you get the right value, print the combobox value so you
  know which value is pushed to the server before the update information
  property.
 
  Seb
 
  did you tried to print the combobox index when the slot get called ?
  Another thing could be to set yourself the value in the property at
  that
  time.
 
  On Wed, Mar 23, 2011 at 1:55 PM, Brian Panneton
  brian.panne...@gmail.com wrote:
   This XML is of two comboboxes, where the first depends on the
   second's
   selection.
   XML:
       StringVectorProperty
       name=DataTypeList
       command=GetReaderDataTypeList
       information_only=1
       StringArrayHelper /
       /StringVectorProperty
       StringVectorProperty
       name=cbDataType
       command=SetReaderDataType
       immediate_update=1
       number_of_elements=1
       StringListDomain name=operation
       RequiredProperties
       Property name=DataTypeList
       function=ArraySelection/
       /RequiredProperties
       /StringListDomain
       /StringVectorProperty
  
       StringVectorProperty
       name=TypeList
       command=GetReaderTypeList
       information_only=1
       StringArrayHelper /
       /StringVectorProperty
       StringVectorProperty
       name=cbType
       command=SetReaderType
       immediate_update=1
       number_of_elements=1
       StringListDomain name=operation
       RequiredProperties
       Property name=TypeList
       function=ArraySelection/
       /RequiredProperties
       /StringListDomain
       /StringVectorProperty
  
  
   When a currentIndexChanged event in cbType occurs, it sends a signal
   to
   the
   typeChanged() slot.
  
   Code:
   void
   myclass::typeChanged()
   {
       this-proxy()-GetProperty(cbType)-Modified();
       vtkSMProperty* prop = this-proxy()-GetProperty(DataTypeList);
       this-proxy()-UpdatePropertyInformation(prop);
   }
  
   What ends up happening is that when I change the combobox for cbType
   from
   index 1 to index 2, typeChanged() is called, but is sending the 1st
   value to
   SetReaderType. It looks like it refeshes but remains index1. Thus,
   the
   DataTypeList is populated with the same information it had.
  
   When I remove the Modified() line, the combobox for cbType will show
   the
   change from index 1 to index 2, but SetReaderType does not get
   called.
  
   Any idea why that is happening?
  
   Thanks,
  
   Brian
  
  
   On Wed, Mar 23, 2011 at 12:15 PM, Sebastien Jourdain
   sebastien.jourd...@kitware.com wrote:
  
   Hi Brian,
  
   could you send the (part of) XML proxy definition and the piece

[Paraview] ANN: Upcoming changes to ParaView Server Manager

2011-03-28 Thread Sebastien Jourdain
Folks,

For those of you who haven't follow the topic in the
paraview-developers mailing list here is a quick summary on what's
going on in the coming weeks.
We've been working for a while now on restructuring the Server Manager
of ParaView to make it more efficient as well as allowing it to
support collaborative workflows.
The API has undergone major changes and may cause some minor rewrite
of your own code. Before we merge these changes to master, please try
out the Collaboration branch with your code and let us know if you
experience any issue.
Please see below for the details on how to checkout the Collaboration branch.

Thanks for your support,

Seb

= From the ParaView-developer list ===

Following up the mail from Utkarsh on the changes to ParaView Server Manager :

http://public.kitware.com/pipermail/paraview-developers/2011-February/000951.html

We finally push our branch to the stage. That branch will only be
merged to master in the coming month.
But if you have developed a plugin or any code based on ParaView and
you want to test it against
that major update, please follow the coming instructions and don't
hesitate to send us your feed back.

In order to fetch our ParaView branch from stage, you will need to
execute the following command line:

$ git clone --recursive git://paraview.org/stage/ParaView.git -b Collaboration

Then, as any regular ParaView source directory, you should be able to
configure and build it.
As some directory and kit renaming occurred, you may need to update
the name of the ParaView library that you are linking against. Now the
ParaViewCore package which used to be called Servers contains the
following kits:
vtkPVCommon, vtkPVClientServerCore, vtkPVServerImplementation,
vtkPVServerManager, vtkPVVTKExtensions.

Please remember, these do not affect 3.10 or even 3.10.1. These will
make into the
official ParaView 4.0 release, nothing sooner.

Seb

PS: Additional informations on those changes are available here
http://paraview.org/ParaView3/images/2/24/ParaViewCollaborationChanges.pdf
___
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] ANN: Upcoming changes to ParaView Server Manager

2011-03-29 Thread Sebastien Jourdain
Hi Takuya,

I'm glad that you gave a try and you managed to make your plugin work.
Moreover, thanks for that cheat sheet.

Here is my feedback about it:

 OLD: pxy-Set/GetServers() (where pxy is a vtkSMProxy)
 NEW: pxy-Set/GetLocation()

Yes

 OLD: pxy-Set/GetConnectionID()
 NEW: pxy-Set/GetSession()

Yes, but those lines should simply be removed as the session is set on
the Proxy at its creation, therefore there is no point in doing it
twice.

 OLD: pxy-GetID()
 NEW: VTKOBJECT(pxy) (a stream operator in client-server stream)

Yes

 OLD: pm-SendSteram(this-GetConnectionID(), this-GetServers(), stream)
 NEW: this-ExecuteStream(stream) (where this is a vtkSMProxy)

Yes

 OLD: pm-SendStream(pxy-GetConnectionID(), pxy-GetServers(), stream)
 NEW: pxy-GetSession()-ExecuteStream(pxy-GetLocation(), stream)
 (where pm is a vtkProcessModule)

Yes, but as you did it previously you can also do that
NEW2: pxy-ExecuteStream(stream)

 Also, what I noticed so far are
 * CoProcessing module does not build due to some missing headers.

I'm going to look into that and fix it. Thanks to have notice it.

 * ParaViewCore/ServerManager/vtkSMDataSourceProxy.{cxx,h} are orphaned
  (have no reference from other sources or CMakeLists).

Yes, I was planning to remove it. Are you using it ?

Thanks again for those valuable comments,

Seb
___
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] ANN: Upcoming changes to ParaView Server Manager

2011-03-29 Thread Sebastien Jourdain
Hi Takuya,

 NEW2: pxy-ExecuteStream(stream)

 In fact, this is not possible because vtkSMProxy::ExecuteStream() is
 protected (is this a bug or intended?).

It is intended, specially if your are not inside the vtkSMProxy class
implementation.
It is more a helper method that use the proxy session and location to
send and execute the stream that may not be related in any other way
to that proxy.

thanks,

Seb


 Takuya

 Takuya OSHIMA, Ph.D.
 Faculty of Engineering, Niigata University
 8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN


 From: Sebastien Jourdain sebastien.jourd...@kitware.com
 Subject: Re: [Paraview] ANN: Upcoming changes to ParaView Server Manager
 Date: Tue, 29 Mar 2011 08:37:14 -0400

 Hi Takuya,

 I'm glad that you gave a try and you managed to make your plugin work.
 Moreover, thanks for that cheat sheet.

 Here is my feedback about it:

 OLD: pxy-Set/GetServers() (where pxy is a vtkSMProxy)
 NEW: pxy-Set/GetLocation()

 Yes

 OLD: pxy-Set/GetConnectionID()
 NEW: pxy-Set/GetSession()

 Yes, but those lines should simply be removed as the session is set on
 the Proxy at its creation, therefore there is no point in doing it
 twice.

 OLD: pxy-GetID()
 NEW: VTKOBJECT(pxy) (a stream operator in client-server stream)

 Yes

 OLD: pm-SendSteram(this-GetConnectionID(), this-GetServers(), stream)
 NEW: this-ExecuteStream(stream) (where this is a vtkSMProxy)

 Yes

 OLD: pm-SendStream(pxy-GetConnectionID(), pxy-GetServers(), stream)
 NEW: pxy-GetSession()-ExecuteStream(pxy-GetLocation(), stream)
 (where pm is a vtkProcessModule)

 Yes, but as you did it previously you can also do that
 NEW2: pxy-ExecuteStream(stream)

 Also, what I noticed so far are
 * CoProcessing module does not build due to some missing headers.

 I'm going to look into that and fix it. Thanks to have notice it.

 * ParaViewCore/ServerManager/vtkSMDataSourceProxy.{cxx,h} are orphaned
  (have no reference from other sources or CMakeLists).

 Yes, I was planning to remove it. Are you using it ?

 Thanks again for those valuable comments,

 Seb

___
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] ANN: Upcoming changes to ParaView Server Manager

2011-03-29 Thread Sebastien Jourdain
Hi Folks,

I've push some new code in the same stage branch that should fix the
plugins (coprocessing, manta, EyeDomLighting...) and some other minor
bugs.

Sven also provide me some feedback that may be interesting to share:
For those with custom readers that internally use FileSeriesReader:

* Replace in servermanager XML:

FileSeriesReaderProxy name=... ...

 with

SourceProxy name=... ... si_class=vtkSIFileSeriesReaderProxy

Moreover, you can look into the git history and see what I did change
to make those plugin work.
The manta one could be interesting for some of you. (git show 2aa56d)

Enjoy,

Seb


2011/3/29 Takuya OSHIMA osh...@eng.niigata-u.ac.jp:
 Thanks again for the clarification!

 Takuya

 Takuya OSHIMA, Ph.D.
 Faculty of Engineering, Niigata University
 8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN

 From: Sebastien Jourdain sebastien.jourd...@kitware.com
 Subject: Re: [Paraview] ANN: Upcoming changes to ParaView Server Manager
 Date: Tue, 29 Mar 2011 09:34:09 -0400

 Hi Takuya,

  NEW2: pxy-ExecuteStream(stream)
 
  In fact, this is not possible because vtkSMProxy::ExecuteStream() is
  protected (is this a bug or intended?).

 It is intended, specially if your are not inside the vtkSMProxy class
 implementation.
 It is more a helper method that use the proxy session and location to
 send and execute the stream that may not be related in any other way
 to that proxy.

 thanks,

 Seb

 
  Takuya
 
  Takuya OSHIMA, Ph.D.
  Faculty of Engineering, Niigata University
  8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN
 
 
  From: Sebastien Jourdain sebastien.jourd...@kitware.com
  Subject: Re: [Paraview] ANN: Upcoming changes to ParaView Server Manager
  Date: Tue, 29 Mar 2011 08:37:14 -0400
 
  Hi Takuya,
 
  I'm glad that you gave a try and you managed to make your plugin work.
  Moreover, thanks for that cheat sheet.
 
  Here is my feedback about it:
 
  OLD: pxy-Set/GetServers() (where pxy is a vtkSMProxy)
  NEW: pxy-Set/GetLocation()
 
  Yes
 
  OLD: pxy-Set/GetConnectionID()
  NEW: pxy-Set/GetSession()
 
  Yes, but those lines should simply be removed as the session is set on
  the Proxy at its creation, therefore there is no point in doing it
  twice.
 
  OLD: pxy-GetID()
  NEW: VTKOBJECT(pxy) (a stream operator in client-server stream)
 
  Yes
 
  OLD: pm-SendSteram(this-GetConnectionID(), this-GetServers(), stream)
  NEW: this-ExecuteStream(stream) (where this is a vtkSMProxy)
 
  Yes
 
  OLD: pm-SendStream(pxy-GetConnectionID(), pxy-GetServers(), stream)
  NEW: pxy-GetSession()-ExecuteStream(pxy-GetLocation(), stream)
  (where pm is a vtkProcessModule)
 
  Yes, but as you did it previously you can also do that
  NEW2: pxy-ExecuteStream(stream)
 
  Also, what I noticed so far are
  * CoProcessing module does not build due to some missing headers.
 
  I'm going to look into that and fix it. Thanks to have notice it.
 
  * ParaViewCore/ServerManager/vtkSMDataSourceProxy.{cxx,h} are orphaned
   (have no reference from other sources or CMakeLists).
 
  Yes, I was planning to remove it. Are you using it ?
 
  Thanks again for those valuable comments,
 
  Seb
 

___
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] ANN: Upcoming changes to ParaView Server Manager

2011-03-29 Thread Sebastien Jourdain
Thanks Sven to bring that up,

I will look into that tomorrow.

Seb

On Tue, Mar 29, 2011 at 7:17 PM, Sven Buijssen
sven.buijs...@tu-dortmund.de wrote:
 Hi Seb,

 http://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Adding_an_object_panel 
 shows
 a trivial example of how to tweak a panel with some custom GUI elements. For
 convenience, I've put the necessary code together in the attached archive.

 With the Collaboration branch, this plugin's text This is from a plugin 
 won't
 get displayed any more in the panel of the Cone source for release builds.
 A debug build of the code still compiles just fine against a Collaboration
 branch debug build, even loads into it, but when creating a cone source,
 ParaView crashes with

 ERROR: In
 /ParaViewCollaboration.git/ParaViewCore/ServerManager/vtkSMRemoteObject.cxx,
 line 124
 vtkSMSourceProxy (0x11a4730): GlobalID must NOT be changed once it has been
 assigned.
 Try to set 145 to replace the current 289 value.

 Any idea what might need to be changed in order to get this working?
 A different syntax for the ADD_PARAVIEW_OBJECT_PANEL in CMakeLists.txt maybe?

 Thanks for any hint.

 Sven


 Sebastien Jourdain wrote, On 03/28/11 21:29:
 Folks,

 For those of you who haven't follow the topic in the
 paraview-developers mailing list here is a quick summary on what's
 going on in the coming weeks.
 We've been working for a while now on restructuring the Server Manager
 of ParaView to make it more efficient as well as allowing it to
 support collaborative workflows.
 The API has undergone major changes and may cause some minor rewrite
 of your own code. Before we merge these changes to master, please try
 out the Collaboration branch with your code and let us know if you
 experience any issue.
 Please see below for the details on how to checkout the Collaboration branch.

 Thanks for your support,

 Seb

 = From the ParaView-developer list ===

 Following up the mail from Utkarsh on the changes to ParaView Server Manager 
 :

 http://public.kitware.com/pipermail/paraview-developers/2011-February/000951.html

 We finally push our branch to the stage. That branch will only be
 merged to master in the coming month.
 But if you have developed a plugin or any code based on ParaView and
 you want to test it against
 that major update, please follow the coming instructions and don't
 hesitate to send us your feed back.

 In order to fetch our ParaView branch from stage, you will need to
 execute the following command line:

 $ git clone --recursive git://paraview.org/stage/ParaView.git -b 
 Collaboration

 Then, as any regular ParaView source directory, you should be able to
 configure and build it.
 As some directory and kit renaming occurred, you may need to update
 the name of the ParaView library that you are linking against. Now the
 ParaViewCore package which used to be called Servers contains the
 following kits:
 vtkPVCommon, vtkPVClientServerCore, vtkPVServerImplementation,
 vtkPVServerManager, vtkPVVTKExtensions.

 Please remember, these do not affect 3.10 or even 3.10.1. These will
 make into the
 official ParaView 4.0 release, nothing sooner.

 Seb

 PS: Additional informations on those changes are available here
 http://paraview.org/ParaView3/images/2/24/ParaViewCollaborationChanges.pdf
 ___
 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] ANN: Upcoming changes to ParaView Server Manager

2011-03-30 Thread Sebastien Jourdain
Hi Sven,

I just give a try with the archive you provided and I get the expected
result without any crash.
On which system did you get that failure ?

Thanks,

Seb

On Tue, Mar 29, 2011 at 7:17 PM, Sven Buijssen
sven.buijs...@tu-dortmund.de wrote:
 Hi Seb,

 http://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Adding_an_object_panel 
 shows
 a trivial example of how to tweak a panel with some custom GUI elements. For
 convenience, I've put the necessary code together in the attached archive.

 With the Collaboration branch, this plugin's text This is from a plugin 
 won't
 get displayed any more in the panel of the Cone source for release builds.
 A debug build of the code still compiles just fine against a Collaboration
 branch debug build, even loads into it, but when creating a cone source,
 ParaView crashes with

 ERROR: In
 /ParaViewCollaboration.git/ParaViewCore/ServerManager/vtkSMRemoteObject.cxx,
 line 124
 vtkSMSourceProxy (0x11a4730): GlobalID must NOT be changed once it has been
 assigned.
 Try to set 145 to replace the current 289 value.

 Any idea what might need to be changed in order to get this working?
 A different syntax for the ADD_PARAVIEW_OBJECT_PANEL in CMakeLists.txt maybe?

 Thanks for any hint.

 Sven


 Sebastien Jourdain wrote, On 03/28/11 21:29:
 Folks,

 For those of you who haven't follow the topic in the
 paraview-developers mailing list here is a quick summary on what's
 going on in the coming weeks.
 We've been working for a while now on restructuring the Server Manager
 of ParaView to make it more efficient as well as allowing it to
 support collaborative workflows.
 The API has undergone major changes and may cause some minor rewrite
 of your own code. Before we merge these changes to master, please try
 out the Collaboration branch with your code and let us know if you
 experience any issue.
 Please see below for the details on how to checkout the Collaboration branch.

 Thanks for your support,

 Seb

 = From the ParaView-developer list ===

 Following up the mail from Utkarsh on the changes to ParaView Server Manager 
 :

 http://public.kitware.com/pipermail/paraview-developers/2011-February/000951.html

 We finally push our branch to the stage. That branch will only be
 merged to master in the coming month.
 But if you have developed a plugin or any code based on ParaView and
 you want to test it against
 that major update, please follow the coming instructions and don't
 hesitate to send us your feed back.

 In order to fetch our ParaView branch from stage, you will need to
 execute the following command line:

 $ git clone --recursive git://paraview.org/stage/ParaView.git -b 
 Collaboration

 Then, as any regular ParaView source directory, you should be able to
 configure and build it.
 As some directory and kit renaming occurred, you may need to update
 the name of the ParaView library that you are linking against. Now the
 ParaViewCore package which used to be called Servers contains the
 following kits:
 vtkPVCommon, vtkPVClientServerCore, vtkPVServerImplementation,
 vtkPVServerManager, vtkPVVTKExtensions.

 Please remember, these do not affect 3.10 or even 3.10.1. These will
 make into the
 official ParaView 4.0 release, nothing sooner.

 Seb

 PS: Additional informations on those changes are available here
 http://paraview.org/ParaView3/images/2/24/ParaViewCollaborationChanges.pdf
 ___
 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] paraviewWeb linux 64bits

2011-04-06 Thread Sebastien Jourdain
Hi Wayne,

ParaViewWeb informations can be found here:
http://www.paraview.org/Wiki/ParaViewWeb
There is a demonstration server here: http://paraviewweb.kitware.com

BTW, ParaViewWeb is JavaScript based framework that has several
renderer technologies (JavaScript, Flash, Java applet) and the
JavaScript one do not need any client installation (either flash or
java) and even work on iPhone/iPad.

Seb

On Wed, Apr 6, 2011 at 9:10 AM, Wayne Wu sala...@gmail.com wrote:
 Hi,

 I am interested in this ParaViewWeb; is ParaViewWeb software based on
 Flex and would let people to use ParaView over a browser without
 installing it? I Googled it but didn't find any information about it.
 Can you give a instruction page?

 Thanks.

 Best regards,
 http://code-saturne.blogspot.com/

 On 6 April 2011 13:58, Sebastien Jourdain
 sebastien.jourd...@kitware.com wrote:
 BTW, you can disable the flex component and build the rest of the 
 application.

 Seb

 PS: The current version of our Flex component do not work with Flex4,
 it has to be a SDK 3.x.
 PS2: I know that at least 3 community members managed to build and
 install ParaViewWeb.

 On Wed, Apr 6, 2011 at 8:48 AM, Utkarsh Ayachit
 utkarsh.ayac...@kitware.com wrote:
 What flex sdk are you using? What is the problem you are having?

 Utkarsh

 On Wed, Apr 6, 2011 at 8:44 AM, Felipe Bordeu
 felipe.bor...@ec-nantes.fr wrote:
 Hello,

 I would like to know if someone succeed to build ParaViewWeb on a Linux
 64bit. I'm having problem with flex (from adobe).

 Thanks to the Paraview Team. Great App.

 using a kubutu 10.04 x64

 (Linux pc-lmm29 2.6.32-30-generic #59-Ubuntu SMP Tue Mar 1 21:30:46 UTC 
 2011
 x86_64 GNU/Linux)

 --

 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
 Institut GeM - UMR CNRS 6183
 École Centrale 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

 ___
 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] ANN: Upcoming changes to ParaView Server Manager

2011-04-06 Thread Sebastien Jourdain
Hi Folks,

The time has gone and we plan to merge the Collaboration branch to
master this Friday (April 8th 2011).
So if anyone has something to say, please do it before Friday or it
will be too late. ;-)

Seb

PS: We will also update the Version number to be 3.11.1.

On Mon, Mar 28, 2011 at 3:29 PM, Sebastien Jourdain
sebastien.jourd...@kitware.com wrote:
 Folks,

 For those of you who haven't follow the topic in the
 paraview-developers mailing list here is a quick summary on what's
 going on in the coming weeks.
 We've been working for a while now on restructuring the Server Manager
 of ParaView to make it more efficient as well as allowing it to
 support collaborative workflows.
 The API has undergone major changes and may cause some minor rewrite
 of your own code. Before we merge these changes to master, please try
 out the Collaboration branch with your code and let us know if you
 experience any issue.
 Please see below for the details on how to checkout the Collaboration branch.

 Thanks for your support,

 Seb

 = From the ParaView-developer list ===

 Following up the mail from Utkarsh on the changes to ParaView Server Manager :

 http://public.kitware.com/pipermail/paraview-developers/2011-February/000951.html

 We finally push our branch to the stage. That branch will only be
 merged to master in the coming month.
 But if you have developed a plugin or any code based on ParaView and
 you want to test it against
 that major update, please follow the coming instructions and don't
 hesitate to send us your feed back.

 In order to fetch our ParaView branch from stage, you will need to
 execute the following command line:

 $ git clone --recursive git://paraview.org/stage/ParaView.git -b Collaboration

 Then, as any regular ParaView source directory, you should be able to
 configure and build it.
 As some directory and kit renaming occurred, you may need to update
 the name of the ParaView library that you are linking against. Now the
 ParaViewCore package which used to be called Servers contains the
 following kits:
 vtkPVCommon, vtkPVClientServerCore, vtkPVServerImplementation,
 vtkPVServerManager, vtkPVVTKExtensions.

 Please remember, these do not affect 3.10 or even 3.10.1. These will
 make into the
 official ParaView 4.0 release, nothing sooner.

 Seb

 PS: Additional informations on those changes are available here
 http://paraview.org/ParaView3/images/2/24/ParaViewCollaborationChanges.pdf

___
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] ANN: Upcoming changes to ParaView Server Manager

2011-04-08 Thread Sebastien Jourdain
Hi Folks,

We finally merge to master. So next time you build from a fresh
update, don't forget to do a clean build.

Thanks,

Seb

On Wed, Apr 6, 2011 at 3:43 PM, Sebastien Jourdain
sebastien.jourd...@kitware.com wrote:
 Hi Folks,

 The time has gone and we plan to merge the Collaboration branch to
 master this Friday (April 8th 2011).
 So if anyone has something to say, please do it before Friday or it
 will be too late. ;-)

 Seb

 PS: We will also update the Version number to be 3.11.1.

 On Mon, Mar 28, 2011 at 3:29 PM, Sebastien Jourdain
 sebastien.jourd...@kitware.com wrote:
 Folks,

 For those of you who haven't follow the topic in the
 paraview-developers mailing list here is a quick summary on what's
 going on in the coming weeks.
 We've been working for a while now on restructuring the Server Manager
 of ParaView to make it more efficient as well as allowing it to
 support collaborative workflows.
 The API has undergone major changes and may cause some minor rewrite
 of your own code. Before we merge these changes to master, please try
 out the Collaboration branch with your code and let us know if you
 experience any issue.
 Please see below for the details on how to checkout the Collaboration branch.

 Thanks for your support,

 Seb

 = From the ParaView-developer list ===

 Following up the mail from Utkarsh on the changes to ParaView Server Manager 
 :

 http://public.kitware.com/pipermail/paraview-developers/2011-February/000951.html

 We finally push our branch to the stage. That branch will only be
 merged to master in the coming month.
 But if you have developed a plugin or any code based on ParaView and
 you want to test it against
 that major update, please follow the coming instructions and don't
 hesitate to send us your feed back.

 In order to fetch our ParaView branch from stage, you will need to
 execute the following command line:

 $ git clone --recursive git://paraview.org/stage/ParaView.git -b 
 Collaboration

 Then, as any regular ParaView source directory, you should be able to
 configure and build it.
 As some directory and kit renaming occurred, you may need to update
 the name of the ParaView library that you are linking against. Now the
 ParaViewCore package which used to be called Servers contains the
 following kits:
 vtkPVCommon, vtkPVClientServerCore, vtkPVServerImplementation,
 vtkPVServerManager, vtkPVVTKExtensions.

 Please remember, these do not affect 3.10 or even 3.10.1. These will
 make into the
 official ParaView 4.0 release, nothing sooner.

 Seb

 PS: Additional informations on those changes are available here
 http://paraview.org/ParaView3/images/2/24/ParaViewCollaborationChanges.pdf


___
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] error after last git update: protobuf

2011-04-19 Thread Sebastien Jourdain
Did you update your submodules ?

 git submodule update

Seb

On Tue, Apr 19, 2011 at 10:55 AM, Ricardo Reis rr...@aero.ist.utl.pt wrote:


  I've got this error after my last git update:

  CMake Error at CMake/ParaViewCommon.cmake:514 (ADD_SUBDIRECTORY):
   The source directory

     /home/rreis/src/ParaView/Utilities/protobuf

   does not contain a CMakeLists.txt file.
  Call Stack (most recent call first):
   CMakeLists.txt:246 (INCLUDE)



  CMake Error at CMakeLists.txt:344 (EXPORT):
   export given target protobuf which is not built by this project.



  any ideas?

  Ricardo Reis

  'Non Serviam'

  PhD candidate @ Lasef
  Computational Fluid Dynamics, High Performance Computing, Turbulence
  http://www.lasef.ist.utl.pt

  Cultural Instigator @ Rádio Zero
  http://www.radiozero.pt

  http://www.flickr.com/photos/rreis/

  contacts:  gtalk: kyriu...@gmail.com  skype: kyriusan

 ___
 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] Problem loading multiple volumes in ParaviewWeb

2011-04-28 Thread Sebastien Jourdain
Hi Raj,

The reason why you are not seeing the same settings across your data is
because you need to apply your SetDisplayProperties for each loaded data.
The reason why only the last one is set correctly, it's because ParaView has
a stack of active objects. And since the SetDisplayProperties requires a
proxy and a view, if you do not provide them, ParaView will use the last
one created.

So to solve what you are facing you have to call the following code:

 pv.SetDisplayProperties( {
proxy: data1,
view  : view1,
SelectMapper : 'GPU',
Representation : 'Volume',
LookupTable : lut1,
ColorArrayName : 'ImageFile',
ScalarOpacityFunction : f,
} );

But the best way to go might be to define a method that do that

function setDisplayProperties( data ) {
   pv.SetDisplayProperties( {
proxy: data,
view  : view1,
SelectMapper : 'GPU',
Representation : 'Volume',
LookupTable : lut1,
ColorArrayName : 'ImageFile',
ScalarOpacityFunction : f,
} );
}

and then just call

setDisplayProperties(data1);
setDisplayProperties(data2);

Seb

On Wed, Apr 27, 2011 at 6:32 PM, Rajvikram Singh rajvikr...@yahoo.comwrote:

 Hi everyone .. Greetings !
I'm trying to create a web visualization page where biologists in our
 lab can see their multi-channel volume data. Each channel is a separate file
 and since there could be as many as 11-12 channels I want to give them the
 ability to switch the volumes on/off or even see two volumes in the same
 space.

 To test this I wrote the following Javascript code to load two volume files
 (.vtk) and then show only one. The problem is though I get no errors, I can
 only see the last file that's loaded (I've tried different combination of
 files). When I try to show the first file, all I see is a gray box instead
 of the data.

  It almost feels like the OpenDataFile() function is using the same object
 and overwrites it. I'm new to Javascript and would not be surprised if I'm
 doing something silly but any advice is sincerely appreciated.

 Javascript Code :

 // Set the web service base URL
 var serverUrl =
 %=request.getScheme()%://%=request.getServerName()%:%=request.getServerPort()%/PWService;
 //
 // Create a paraview proxy
 //
 var pv = new Paraview(serverUrl);
 pv.createSession(Test Visualization, Ver 0.1, default);
 var view1 = pv.CreateIfNeededRenderView();
 pv.Render();

 // Load the data files in RAM
 var data1 = pv.OpenDataFile('test1.vtk');
 var Representation1 = pv.Hide({proxy: data1});

 var data2 = pv.OpenDataFile('test2.vtk');
 var Representation2 = pv.Hide({proxy : data2});


 // Init view parameters
 var lut1 = pv.GetLookupTableForArray({arrayname : ImageFile,
 num_components : 1, HSVWrap : 0, NanColor : [0.0, 0.3, 0.0],
 RGBPoints : [1.0, 0.0, 0.0, 0.0, 16564.27904630101, 1.0,
 0.035950255588616767, 0.0, 19924.923666800998, 1.0, 0.035950255588616767,
 0.0, 39728.909301543368, 0.0, 0.3, 0.0, 65294.0007,
 0.0, 0.0, 0.0], ColorSpace : 'HSV'});

 var f = pv.CreatePiecewiseFunction( {Points:[0.0, 0.0, 2762.37,
 0.0588235, 2882.47, 0, 6965.97, 0.235294, 15373.2, 0.323529, 25221.6, 0,
 26662.9, 0, 36751.5, 0, 44318, 0.0, 52124.7, 0.323529, 63054, 0.294118,
 65336, 0.294118] });


 pv.SetDisplayProperties( {
 view  : view1,
 SelectMapper : 'GPU',
 Representation : 'Volume',
 LookupTable : lut1,
 ColorArrayName : 'ImageFile',
 ScalarOpacityFunction : f,
 } );

 // Show one dataset only
 pv.Show({proxy : data2});


 Thanks in advance
 Raj
 ___
 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] image bufferin ParaviewWeb

2011-04-28 Thread Sebastien Jourdain
Hi Luigi,

the bug you are facing was a bug inside VTK that I fixed maybe just
after 3.10.0.
But you can patch your VTK, as it's a really small fix.

Seb

PS: I've paste the fix bellow

commit e938db39c2bbd730a060cb0cf95fec52e15d281a
Author: Sebastien Jourdain sebastien.jourd...@kitware.com
Date:   Mon Jun 28 13:15:10 2010 -0400

BUG: Fix JPEG writer when writing in memory

diff --git a/IO/vtkJPEGWriter.cxx b/IO/vtkJPEGWriter.cxx
index 04fd1d9..dd933ec 100644
--- a/IO/vtkJPEGWriter.cxx
+++ b/IO/vtkJPEGWriter.cxx
@@ -129,7 +129,7 @@ void vtkJPEGWriter::Write()
   this-InternalFileName = NULL;
 }

-// these three routines are for wqriting into memory
+// these three routines are for writing into memory
 extern C
 {
   void vtkJPEGWriteToMemoryInit(j_compress_ptr cinfo)
@@ -157,16 +157,20 @@ extern C
 {
   boolean vtkJPEGWriteToMemoryEmpty(j_compress_ptr cinfo)
   {
+// Even if (cinfo-dest-free_in_buffer != 0) we still need to write on the
+// new array and not at (arraySize - nbFree)
 vtkJPEGWriter *self = vtkJPEGWriter::SafeDownCast(
   static_castvtkObject *(cinfo-client_data));
 if (self)
   {
   vtkUnsignedCharArray *uc = self-GetResult();
-  // we must grow the array, we grow by 50% each time
+  // we must grow the array
   int oldSize = uc-GetSize();
-  uc-Resize(oldSize + oldSize/2);
+  uc-Resize(oldSize*1.5);
+  // Resize do grow the array but it is not the size we expect
+  int newSize = uc-GetSize();
   cinfo-dest-next_output_byte = uc-GetPointer(oldSize);
-  cinfo-dest-free_in_buffer = oldSize/2;
+  cinfo-dest-free_in_buffer = newSize - oldSize;
   }
 return TRUE;
   }
@@ -182,8 +186,8 @@ extern C
   {
   vtkUnsignedCharArray *uc = self-GetResult();
   // we must close the array
-  vtkIdType oldSize = uc-GetSize();
-  uc-SetNumberOfTuples(oldSize -
static_castvtkIdType(cinfo-dest-free_in_buffer));
+  int realSize = uc-GetSize() - cinfo-dest-free_in_buffer;
+  uc-SetNumberOfTuples(realSize);
   }
   }
 }



On Thu, Apr 28, 2011 at 10:18 AM, Luigi Calori l.cal...@cineca.it wrote:
 Hi everybody,
 I recently somehow suceeded in compiling and installing paraview+paraviewweb
 components.
 It was just after  3.10, so I used 3.10.0 and had some problems...
 expecially as the suggested dep ActiveMQ is just available
 in release 3.2.5 and the suggested 3.1.x seems unavailable.
 I' m currently experiencing problems of image corruprion when the frame
 buffer size is somehow greater than 200x200
 with the Space shuttle demo the image is ok while interactively moving the
 viewpoint and go bad when he interaction stops and the res goes up.
 (the corruption seems happen in the middle of the image, as if some extra
 stuff get somehow inserted in between

 Any suggestion on what to search and how to debug really welcome.

 In the meantime, I' ll proceed to a new re-build of the whole beast, hints
 and successful recipes equally really welcome

 Thanks in advance and compliments for the sw

 Regards
                Luigi
 ___
 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] paraviewweb on windows

2011-04-28 Thread Sebastien Jourdain
Hi Katsumi,

when you've got questions on ParaView/ParaViewWeb, you should post
them on the Paraview mailing list.
So other could benefit from it.

Thanks

Seb

On Thu, Apr 28, 2011 at 7:49 AM, Sebastien Jourdain
sebastien.jourd...@kitware.com wrote:
 Hi Katsumi,

 ParaViewWeb should work on windows. But it has never been really
 tested on Windows. Although one of my colleague did managed to build
 it.
 The tricky part will be to get/build activemq-cpp 3.1.0. The rest
 should be pretty smooth.

 Seb


 On Thu, Apr 28, 2011 at 1:44 AM,  katsumi.sek...@unisys.co.jp wrote:
 Dear Sebastien,

 Hello, I read the mail thread [Paraview] [paraviewweb] trouble with 
 paraviewweb on windows.
 But unfortunately we have to build a paraviewweb server on Microsoft Windows.
 I guess... Mac works as a server well, so it is possible to build a server 
 on Windows.
 Do you have any plan to make it possible to build a server on Windows?
 And if you have no plan, please tell me how can I build a server on Windows?

 Best regards,

 Katsumi SEKIDO


___
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] ParaViewWeb Building problem

2011-04-28 Thread Sebastien Jourdain
Hi Kelly,

Right now you should use ParaView 3.10.1 for ParaViewWeb, but I should
push a fix today for ParaView master.

After my fix, for the ones that wants to use ParaView 3.10.1, you
should used the ParaViewWeb version that come with the tag
pv-3.10.1. To get that given version from your git repository, just
type: git checkout pv-3.10.1

Seb

On Thu, Apr 28, 2011 at 11:12 AM, Kelly T. Kirk (CISD/CIV)
k...@arl.army.mil wrote:

 When building PWServer using PavaView master git release.

 include/paraview-3.11/vtkInitializationHelper.h has a new int type argument.

 Which PavaView git release should I uses to build ParaViewWeb with?


 [ 57%] Building CXX object
 ParaViewAdapter/CMakeFiles/PWServer.dir/main.cxx.o
 cd /home/kirk/cse_web/build/EP/Build/PWServer-git/ParaViewAdapter 
 /usr/bin/c++    -Wno-deprecated -g
 -I/home/kirk/PVWeb/pv-3.11/include/paraview-3.11
 -I/home/kirk/PVWeb/include/activemq-cpp-3.1.3
 -I/usr/cta/CSE/Release/python-2.6.4/include/python2.6
 -I/home/kirk/cse_web/build/EP/Source/PWSource-git/ParaViewAdapter
 -I/home/kirk/cse_web/build/EP/Build/PWServer-git/ParaViewAdapter   -o
  CMakeFiles/PWServer.dir/main.cxx.o -c
 /home/kirk/cse_web/build/EP/Source/PWSource-git/ParaViewAdapter/main.cxx
 /home/kirk/cse_web/build/EP/Source/PWSource-git/ParaViewAdapter/main.cxx: In
 function 'int main(int, char**)':
 /home/kirk/cse_web/build/EP/Source/PWSource-git/ParaViewAdapter/main.cxx:40:
 error: invalid conversion from 'int' to 'const char*'
 /home/kirk/cse_web/build/EP/Source/PWSource-git/ParaViewAdapter/main.cxx:40:
 error:   initializing argument 1 of 'static void
 vtkInitializationHelper::Initialize(const char*, int, vtkPVOptions*)
                              '
 /home/kirk/cse_web/build/EP/Source/PWSource-git/ParaViewAdapter/main.cxx:40:
 error: invalid conversion from 'char**' to 'int'
 /home/kirk/cse_web/build/EP/Source/PWSource-git/ParaViewAdapter/main.cxx:40:
 error:   initializing argument 2 of 'static void
 vtkInitializationHelper::Initialize(const char*, int, vtkPVOptions*)
                              '
 make[2]: *** [ParaViewAdapter/CMakeFiles/PWServer.dir/main.cxx.o] Error 1
 make[2]: Leaving directory `/home/kirk/cse_web/build/EP/Build/PWServer-git'
 make[1]: *** [ParaViewAdapter/CMakeFiles/PWServer.dir/all] Error 2
 make[1]: Leaving directory `/home/kirk/cse_web/build/EP/Build/PWServer-git'
 make: *** [all] Error 2
 Exit 2

 --
 Mr. Kelly T. Kirk (ARL-CISD)
 U.S. Army Research Laboratory
 Attn: RDRL-CIH-C
 APG, MD 21005-5067
 kelly.t.k...@us.army.mil
 ___
 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] Problem loading multiple volumes in ParaviewWeb

2011-04-28 Thread Sebastien Jourdain
This is a good news,

I remember that you were asking for JavaScript code samples.
In fact in the Sandbox sample application the whole Python tutorial has been
translated as JavaScript code, so you can see the difference between the
Python and the JavaScript API as well as testing your code.

Seb

On Thu, Apr 28, 2011 at 4:13 PM, Rajvikram Singh rajvikr...@yahoo.comwrote:


 Thanks Sebastien .. that was the problem :) It works fine now and I can
 switch the different datasets on/off.




 --- On *Thu, 28/4/11, Sebastien Jourdain 
 sebastien.jourd...@kitware.com*wrote:


 From: Sebastien Jourdain sebastien.jourd...@kitware.com
 Subject: Re: [Paraview] Problem loading multiple volumes in ParaviewWeb
 To: Rajvikram Singh rajvikr...@yahoo.com
 Cc: paraview@paraview.org
 Date: Thursday, 28 April, 2011, 6:19 PM


 Hi Raj,

 The reason why you are not seeing the same settings across your data is
 because you need to apply your SetDisplayProperties for each loaded data.
 The reason why only the last one is set correctly, it's because ParaView has
 a stack of active objects. And since the SetDisplayProperties requires a
 proxy and a view, if you do not provide them, ParaView will use the last
 one created.

 So to solve what you are facing you have to call the following code:

  pv.SetDisplayProperties( {
 proxy: data1,
 view  : view1,
 SelectMapper : 'GPU',
 Representation : 'Volume',
 LookupTable : lut1,
 ColorArrayName : 'ImageFile',
 ScalarOpacityFunction : f,
 } );

 But the best way to go might be to define a method that do that

 function setDisplayProperties( data ) {
pv.SetDisplayProperties( {
 proxy: data,
 view  : view1,
 SelectMapper : 'GPU',
 Representation : 'Volume',
 LookupTable : lut1,
 ColorArrayName : 'ImageFile',
 ScalarOpacityFunction : f,
 } );
 }

 and then just call

 setDisplayProperties(data1);
 setDisplayProperties(data2);

 Seb

 On Wed, Apr 27, 2011 at 6:32 PM, Rajvikram Singh 
 rajvikr...@yahoo.comhttp://mc/compose?to=rajvikr...@yahoo.com
  wrote:

 Hi everyone .. Greetings !
I'm trying to create a web visualization page where biologists in our
 lab can see their multi-channel volume data. Each channel is a separate file
 and since there could be as many as 11-12 channels I want to give them the
 ability to switch the volumes on/off or even see two volumes in the same
 space.

 To test this I wrote the following Javascript code to load two volume files
 (.vtk) and then show only one. The problem is though I get no errors, I can
 only see the last file that's loaded (I've tried different combination of
 files). When I try to show the first file, all I see is a gray box instead
 of the data.

  It almost feels like the OpenDataFile() function is using the same object
 and overwrites it. I'm new to Javascript and would not be surprised if I'm
 doing something silly but any advice is sincerely appreciated.

 Javascript Code :

 // Set the web service base URL
 var serverUrl =
 %=request.getScheme()%://%=request.getServerName()%:%=request.getServerPort()%/PWService;
 //
 // Create a paraview proxy
 //
 var pv = new Paraview(serverUrl);
 pv.createSession(Test Visualization, Ver 0.1, default);
 var view1 = pv.CreateIfNeededRenderView();
 pv.Render();

 // Load the data files in RAM
 var data1 = pv.OpenDataFile('test1.vtk');
 var Representation1 = pv.Hide({proxy: data1});

 var data2 = pv.OpenDataFile('test2.vtk');
 var Representation2 = pv.Hide({proxy : data2});


 // Init view parameters
 var lut1 = pv.GetLookupTableForArray({arrayname : ImageFile,
 num_components : 1, HSVWrap : 0, NanColor : [0.0, 0.3, 0.0],
 RGBPoints : [1.0, 0.0, 0.0, 0.0, 16564.27904630101, 1.0,
 0.035950255588616767, 0.0, 19924.923666800998, 1.0, 0.035950255588616767,
 0.0, 39728.909301543368, 0.0, 0.3, 0.0, 65294.0007,
 0.0, 0.0, 0.0], ColorSpace : 'HSV'});

 var f = pv.CreatePiecewiseFunction( {Points:[0.0, 0.0, 2762.37,
 0.0588235, 2882.47, 0, 6965.97, 0.235294, 15373.2, 0.323529, 25221.6, 0,
 26662.9, 0, 36751.5, 0, 44318, 0.0, 52124.7, 0.323529, 63054, 0.294118,
 65336, 0.294118] });


 pv.SetDisplayProperties( {
 view  : view1,
 SelectMapper : 'GPU',
 Representation : 'Volume',
 LookupTable : lut1,
 ColorArrayName : 'ImageFile',
 ScalarOpacityFunction : f,
 } );

 // Show one dataset only
 pv.Show({proxy : data2});


 Thanks in advance
 Raj
 ___
 Powered by www.kitware.com

 Visit other Kitware open-source projects

[Paraview] ParaViewWeb update

2011-04-28 Thread Sebastien Jourdain
Hi Folks,

I've just push today some fix to the ParaViewWeb repository to support
the latest ParaView git/master.

But for the users of ParaViewWeb that want to use the latest ParaView
release (3.10.1) instead, you should checkout the tag pv-3.10.1 in
the ParaViewWeb repository.
In order to do that, you can simply type the following command line
inside the ParaViewWeb directory: git checkout pv-3.10.1 -b
pv-release.

For those who are just starting to here about ParaViewWeb and want to
know more, they can give a look at the Wiki documentation here:
- http://www.paraview.org/Wiki/ParaViewWeb

And if you have questions or issue to report, use the paraview mailing list.

Thanks,

Seb
___
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] servermanager XML

2011-04-29 Thread Sebastien Jourdain
Hi Patrik,

you can also find some documentation in the vtkSMProxyManager.h and
vtkSMProxy.h files.

Seb


On Fri, Apr 29, 2011 at 9:48 AM, pratik pratik.mal...@gmail.com wrote:
 Hi,
 Where can i find a good resource to learn server manager configuration XML?
 Currently, the paraview Guide seems to be the only source, but since it is
 currently beyond my means to obtain a copy, i was looking for an another
 place (a wiki or a tutorial?).
 I wanted this for the purpose of creating a user-plugin. The wiki (about
 plugins)is really good, but there is no detailed explanation of the syntax
 of the server manager xml.

 pratik
 ___
 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] ParaviewWeb : Adding interactive slice filter to pipeline

2011-05-02 Thread Sebastien Jourdain
Hi Raj,

You are not getting the propers bounds when you directly access them like
that:

 reader.Bounds

In fact, if you validate each line that you wrote inside the JavaScript
console of your browser, you could have seen that Bounds was not part of the
reader proxy. Moreover, it goes against the idea that Proxy do not have
methods/fields but only properties that can be set/get based on their name.
So eventually, it could have been reader.getBounds(). Although, bounds is
not a property of the reader.
In order to get the right informations, you do need to do call a method on
ParaView:

 var dataInfo = pv.GetDataInformation({proxy:reader});

The returned value is not a proxy, it's just a data structure with all the
data informations of the given proxy. (Fields name, Time, scalar range,
bounds, memory consumption on the server...)

Then you can do :
 sr.setPlaceWidget(dataInfo.Bounds);

I do believe that you  look at the file ParaWebFunctions.js inside the PWApp
to get that close. If not, it could provide you some help on how to handle
some common actions.

Thanks,

Seb

On Fri, Apr 29, 2011 at 7:25 PM, Rajvikram Singh rajvikr...@yahoo.comwrote:

 Hi
I am trying to add a simple slice filter to a ParaviewWeb client that
 users could use interact with a volume. The bundled PWApp application does
 this already and so I tried to go through the code and looked at some Python
 examples. I was able to get an interactive widget to render but it shows a
 blank slice. Also the bounds are not correct since the volume is 'flat' and
 what I see is a cube.

 Here's the code I'm using :

 var reader = pv.OpenDataFile({filename : test.vtk});
 var view1 = pv.CreateIfNeededRenderView();
 pv.Render();

 var sliceFilter = pv.Slice({Input : reader});
 sliceFilter.SetSliceNormal = [0,0,1]; // sliec along Z
 sliceFilter.SetSliceOrigin = [0,0,0];
 sliceFilter.SetSliceType = 'Plane';
 //sliceFilter.SetInputBounds = pv.GetDataInformation.Bounds;

 var sr = pv.CreateBindedWidget({proxy : sliceFilter.getSliceType(),
 view : view1});
 sr.setPlaceWidget(reader.Bounds);
 sr.setEnabled(1);
 sr.setVisibility(1);

 var dataRep1 = pv.Show({proxy : sliceFilter});


 pv.SetDisplayProperties( {
 proxy : sliceFilter,
 view  : view1,
 Representation : 'Surface',
 } );

 I'm attaching a screenshot of what's rendered in my browser. I'm obviously
 not setting some property correctly .. I just can't tell which one.

 Thanks in advance
 Raj


 ___
 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] ParaviewWeb : Adding interactive slice filter to pipeline

2011-05-02 Thread Sebastien Jourdain
Hi Raj,

Another thing. You should do that to set origin and normal.

var plan = sliceFilter.getSliceType();
plan.setOrigin(0,0,0);
plan.setNormal(1,0,0);

in fact the methods SetSliceOrigin/Normal are helper methods on python
objects and not properties. You can notice it because of the capital S in
the set. This must come from the python trace. If it was a property in
python it would have been written:

sliceFilter.SliceNormal = [1,0,0];

Hope this help you to understand how it is working underneath and how to
easily convert Python generated code into similar JavaScript one.

Seb

On Mon, May 2, 2011 at 8:59 AM, Sebastien Jourdain 
sebastien.jourd...@kitware.com wrote:

 Hi Raj,

 You are not getting the propers bounds when you directly access them like
 that:

  reader.Bounds

 In fact, if you validate each line that you wrote inside the JavaScript
 console of your browser, you could have seen that Bounds was not part of the
 reader proxy. Moreover, it goes against the idea that Proxy do not have
 methods/fields but only properties that can be set/get based on their name.
 So eventually, it could have been reader.getBounds(). Although, bounds is
 not a property of the reader.
 In order to get the right informations, you do need to do call a method on
 ParaView:

  var dataInfo = pv.GetDataInformation({proxy:reader});

 The returned value is not a proxy, it's just a data structure with all the
 data informations of the given proxy. (Fields name, Time, scalar range,
 bounds, memory consumption on the server...)

 Then you can do :
  sr.setPlaceWidget(dataInfo.Bounds);

 I do believe that you  look at the file ParaWebFunctions.js inside the
 PWApp to get that close. If not, it could provide you some help on how to
 handle some common actions.

 Thanks,

 Seb

 On Fri, Apr 29, 2011 at 7:25 PM, Rajvikram Singh rajvikr...@yahoo.comwrote:

 Hi
I am trying to add a simple slice filter to a ParaviewWeb client that
 users could use interact with a volume. The bundled PWApp application does
 this already and so I tried to go through the code and looked at some Python
 examples. I was able to get an interactive widget to render but it shows a
 blank slice. Also the bounds are not correct since the volume is 'flat' and
 what I see is a cube.

 Here's the code I'm using :

 var reader = pv.OpenDataFile({filename : test.vtk});
 var view1 = pv.CreateIfNeededRenderView();
 pv.Render();

 var sliceFilter = pv.Slice({Input : reader});
 sliceFilter.SetSliceNormal = [0,0,1]; // sliec along Z
 sliceFilter.SetSliceOrigin = [0,0,0];
 sliceFilter.SetSliceType = 'Plane';
 //sliceFilter.SetInputBounds = pv.GetDataInformation.Bounds;

 var sr = pv.CreateBindedWidget({proxy : sliceFilter.getSliceType(),
 view : view1});
 sr.setPlaceWidget(reader.Bounds);
 sr.setEnabled(1);
 sr.setVisibility(1);

 var dataRep1 = pv.Show({proxy : sliceFilter});


 pv.SetDisplayProperties( {
 proxy : sliceFilter,
 view  : view1,
 Representation : 'Surface',
 } );

 I'm attaching a screenshot of what's rendered in my browser. I'm obviously
 not setting some property correctly .. I just can't tell which one.

 Thanks in advance
 Raj


 ___
 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] ParaviewWeb : Adding interactive slice filter to pipeline

2011-05-03 Thread Sebastien Jourdain
Hi Raj,

do you have a server instance where I can interactively interact with your
use case ?
If so, can you send me the url so I can give a try to set the color mapping
correctly.
(You can do it in private and I will post the solution on the mailing list).

Thanks,

Seb

On Tue, May 3, 2011 at 5:11 PM, Rajvikram Singh rajvikr...@yahoo.comwrote:

 Hi Sebastien
So I did make progress and am able to correctly show an interactive
 slice filter on a volume using all the advice you gave. Thank you for that.
 I'm attaching a screenshot and the only thing that's missing is the coloring
 by a lookup table. As you can see currently the lookup table has no effect.
 When I try to set the DisplayProperties of the slice proxy to specify the
 'ColorArrayName', the browser complains :  Error: uncaught exception: Could
 not locate array ImageFile in the input.. I'm not sure why it cannot find
 the array. The look up table is correct since I'm using it for doing volume
 rendering of the same dataset in a different piece of code.

 So I commented the 'ColorArrayName' option out in the code for now.  The
 code looks is as shown below :


 // Set the web service base URL
 var serverUrl =
 %=request.getScheme()%://%=request.getServerName()%:%=request.getServerPort()%/PWService;
 //
 // Create a paraview proxy
 //
 var pv = new Paraview(serverUrl);
 pv.createSession(Test ParaviewWeb, Just testing, default);


 // Create pipeline
 var f = 'test.vtk';
 var reader1 = pv.OpenDataFile({filename : f});

 var dataInfo = pv.GetDataInformation({proxy : reader1});

 var view1 = pv.CreateIfNeededRenderView();

 pv.Show({proxy : reader1});

 // set origin in the middle of dataset
 pv.ResetCamera();
 //var activeView = pv.CreateIfNeededRenderView();
 view1.setCenterOfRotation(view1.getCameraFocalPoint());

 // instantiate a slice filter object
 var slice = pv.Slice({Input : reader1, SliceType : 'Plane'});
 var sliceType = slice.getSliceType();

 var sliceWidget = pv.CreateBindedWidget({proxy : sliceType, view :
 view1});
 sliceWidget.setPlaceWidget(dataInfo.Bounds);
 sliceWidget.setEnabled(1);
 sliceWidget.setVisibility(1);
 sliceWidget.setNormal(0,0,1);
 sliceWidget.setOrigin(view1.getCenterOfRotation());

 var lut1 = pv.GetLookupTableForArray({arrayname : 'ImageFile',
 num_components : 1, HSVWrap : 0, NanColor : [0.0, 0.3, 0.0],
 RGBPoints : [1.0, 0.0, 0.0, 0.0, 16564.27904630101, 1.0,
 0.035950255588616767, 0.0, 19924.923666800998, 1.0, 0.035950255588616767,
 0.0, 39728.909301543368, 0.0, 0.3, 0.0, 65294.0007,
 0.0, 0.0, 0.0], ColorSpace : 'HSV'});

 // Set display properties for the slice proxy
 pv.SetDisplayProperties( {
 proxy : slice,
 view  : view1,
 Representation : 'Surface',
 //ColorArrayName : 'ImageFile',
 LookupTable : lut1
 } );

 pv.Hide({proxy : reader1});
 var dataRep1 = pv.Show({proxy : slice});
 pv.Render();

 // Create and bind renderer
 var renderer = new JavaScriptRenderer(rendererName, serverUrl);
 renderer.init(pv.sessionId, view1.__selfid__);
 renderer.setSize('720','480');
 renderer.bindToElementId(renderer-container-id);
 renderer.start();



 --- On *Tue, 3/5/11, Sebastien Jourdain 
 sebastien.jourd...@kitware.com*wrote:


 From: Sebastien Jourdain sebastien.jourd...@kitware.com
 Subject: Re: [Paraview] ParaviewWeb : Adding interactive slice filter to
 pipeline
 To: Rajvikram Singh rajvikr...@yahoo.com
 Cc: paraview@paraview.org
 Date: Tuesday, 3 May, 2011, 6:42 PM

 Hi Raj,

 Normally there shouldn't be any difference except maybe for the
 representation part that should be 'Surface' and not 'Volume'. But the best
 thing to do is probably post your code here so I can see it so I can figure
 out what might be wrong.

 Seb

 On Mon, May 2, 2011 at 7:52 PM, Rajvikram Singh 
 rajvikr...@yahoo.comhttp://mc/compose?to=rajvikr...@yahoo.com
  wrote:


 Thanks Sebastien. I must have been very close because that's practically
 what I tried too. I just copy pasted your code into a file and it works
 great. I just had to change the normal to (1,0,0) but I can see the
 interactive slice widget and that makes me very happy :)

 But then I tried to replace the source with a test volume file read by
 OpenDataFile() and though I can see the outline of the data, the Slice
 widget does not show any more.

 Do I need to do something different for volume data ?





 --- On *Tue, 3/5/11, Sebastien Jourdain 
 sebastien.jourd...@kitware.comhttp://mc/compose?to=sebastien.jourd...@kitware.com
 * wrote:


 From: Sebastien Jourdain 
 sebastien.jourd...@kitware.comhttp://mc/compose?to=sebastien.jourd...@kitware.com
 
 Subject: Re: [Paraview] ParaviewWeb : Adding interactive slice filter to
 pipeline
 To: Rajvikram Singh 
 rajvikr...@yahoo.comhttp://mc/compose?to=rajvikr...@yahoo.com
 
 Cc: paraview

Re: [Paraview] ParaviewWeb : Adding interactive slice filter to pipeline

2011-05-03 Thread Sebastien Jourdain
Hi Raj,

I managed to show the correct color by executing that:

sliceType.setNormal(0,0,1);
sliceType.setOrigin(view1.getCenterOfRotation());
pv.SetDisplayProperties( {proxy : slice, view  : view1, Representation :
'Surface', ColorArrayName : 'ImageFile'} );

In fact you shouldn't set any normal/origin on the widget, but instead set
them on the plan of the Slice filter.
The reason why you couldn't select the ColorArrayName was because the plane
was outside the bound of your dataset which was producing no output and
therefore no data array.

Seb
___
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] ParaviewWeb : Adding interactive slice filter to pipeline

2011-05-03 Thread Sebastien Jourdain
Hi Raj,

It's true that you will get a better precision with a slider. For that you
can use the JQuery library, it is lighter than Dojo.
Dojo is the one I used in two of our sample application.

Seb

On Tue, May 3, 2011 at 7:49 PM, Rajvikram Singh rajvikr...@yahoo.comwrote:

 Great .. yes the colors show up correctly and though now the interactive
 widget has disappeared I think I'm going to work around it by having a UI
 slider which lets the users slice through the data in X, Y or Z..

 Thanks once again for all the patience and help.

 Raj



 --- On *Wed, 4/5/11, Sebastien Jourdain 
 sebastien.jourd...@kitware.com*wrote:


 From: Sebastien Jourdain sebastien.jourd...@kitware.com
 Subject: Re: [Paraview] ParaviewWeb : Adding interactive slice filter to
 pipeline
 To: Rajvikram Singh rajvikr...@yahoo.com
 Cc: paraview@paraview.org
 Date: Wednesday, 4 May, 2011, 4:29 AM


 Hi Raj,

 I managed to show the correct color by executing that:

 sliceType.setNormal(0,0,1);
 sliceType.setOrigin(view1.getCenterOfRotation());
 pv.SetDisplayProperties( {proxy : slice, view  : view1, Representation :
 'Surface', ColorArrayName : 'ImageFile'} );

 In fact you shouldn't set any normal/origin on the widget, but instead set
 them on the plan of the Slice filter.
 The reason why you couldn't select the ColorArrayName was because the plane
 was outside the bound of your dataset which was producing no output and
 therefore no data array.

 Seb


___
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] ParaviewWeb two sessions, two views, two volume datasets

2011-05-09 Thread Sebastien Jourdain
Hi Raj,

first of all you only need one session. A session is basically a dedicated
connection to a ParaView server. So by creating 2 session, you were creating
2 server where you could have created 2 views in the same session and setup
a mechanism to keep both camera of the views in synch.
Moreover, as you are using the same session, you can reuse your objects such
as the LUT.
To keep object in synch, you will have to write some piece of code on the
server side that you could call from your javascript client.
I don't have a simple example in mind but you could look at the pwsimple.py
where I had some binding between the widget and the implicit functions that
it represent. Of course the event type won't be the same but the idea is
there.

In fact inside a Python plugin you should define a method like that:

def bindViews(view1, view2):
   # add some python code to bind the two camera together
   # or maybe set the active camera of view1 to be the active
   # camera of view 2.

I know that it does not give you the full answer but at least it give you
some hints.

Seb

On Mon, May 9, 2011 at 5:29 PM, Rajvikram Singh rajvikr...@yahoo.comwrote:

 Hi everyone
 I would like to load two volume datasets (called FISH and SIMS in the
 code below) in ParaviewWeb and then render them side by side in two
 different views. The users should be able to 'lock' the camera amongst the
 two views so that moving the object in one window also affects the camera in
 the other.

 I tried the following piece of code but ran into a error which made me
 think maybe I don't understand the concept of sessions and Display
 properties well. Hoping somebody could help shed some light. There are two
 functions that I've copy pasted below. Most of the variables are global for
 now and shared between the functions.


 // The init function loads and displays the two datasets
 this.init = function() {
 // Set the web service base URL
 var i;
 var serverUrl =
 %=request.getScheme()%://%=request.getServerName()%:%=request.getServerPort()%/PWService;
 //
 // Create paraview sessions .. one each for FISH and SIMS
 //
 pv_FISH = new Paraview(serverUrl);
 pv_FISH.createSession(CAVIAT-session-1, FISH data,
 default);
 view_FISH = pv_FISH.CreateIfNeededRenderView();
 pv_FISH.Render();

 pv_SIMS = new Paraview(serverUrl);
 pv_SIMS.createSession(CAVIAT-session-2, SIMS data,
 default);
 view_SIMS = pv_SIMS.CreateIfNeededRenderView();
 pv_SIMS.Render();

 // Load the data files from disk
 data_FISH = pv_FISH.OpenDataFile({filename : file_FISH});
 data_SIMS = pv_FISH.OpenDataFile({filename : file_SIMS});

 // For volume rendering set the display properties for each
 dataset loaded

 this.setupVolumeView(data_FISH, view_FISH, pv_FISH);
 this.setupVolumeView(data_SIMS, view_SIMS, pv_SIMS);

 pv_FISH.Show({proxy : data_FISH});
 pv_FISH.UpdatePipeline();

 pv_SIMS.Show({proxy : data_SIMS});
 pv_SIMS.UpdatePipeline();


 // set origin in the middle of dataset
 pv_FISH.ResetCamera();
 view_FISH.setCenterOfRotation(view_FISH.getCameraFocalPoint());

 pv_SIMS.ResetCamera();
 view_SIMS.setCenterOfRotation(view_SIMS.getCameraFocalPoint());

 // Create and bind renderers for both sessions
 var renderer_FISH = new JavaScriptRenderer(rendererName,
 serverUrl);
 renderer_FISH.init(pv_FISH.sessionId, view_FISH.__selfid__);
 renderer_FISH.setSize('720','720');
 renderer_FISH.bindToElementId(FISH-container);
 renderer_FISH.start();

 var renderer_SIMS = new JavaScriptRenderer(rendererName,
 serverUrl);
 renderer_SIMS.init(pv_SIMS.sessionId, view_SIMS.__selfid__);
 renderer_SIMS.setSize('720','720');
 renderer_SIMS.bindToElementId(SIMS-container);
 renderer_SIMS.start();

 }


   // setupVolumeView will prepare the LUT and Scalar Opacity function
 needed for volume rendering
   this.setupVolumeView = function (_data, _view, _pv) {

 // *** Check to see is scope of lut and sof is valid for a per
 volume operation ***
 var lut = _pv.GetLookupTableForArray({arrayname : ImageFile,
 num_components : 1, HSVWrap : 0, NanColor : [0.0, 0.3, 0.0],
 RGBPoints : [1.0, 0.0, 0.0, 0.0, 16564.27904630101, 1.0,
 0.035950255588616767, 0.0, 19924.923666800998, 1.0, 0.035950255588616767,
 0.0, 39728.909301543368, 0.0, 0.3, 0.0, 65294.0007,
 0.0, 0.0, 0.0], ColorSpace : 'HSV'});

 var sof = _pv.CreatePiecewiseFunction( {Points:[0.0, 0.0,
 2762.37, 0.0588235, 2882.47, 0, 6965.97, 0.235294, 15373.2, 0.323529,
 25221.6, 0, 

Re: [Paraview] paraviewweb on windows

2011-05-10 Thread Sebastien Jourdain
Hi Katsumi,

as I said previously, ParaViewWeb should work on Windows but it's a
non-tested platform. Which means we can't really help you with that.
So if you don't have any skills in building such system on Windows,
you should definitely try to get a Linux or a Mac. That's exactly what
happen with Luca who finally managed to setup a server on Linux.

Seb

On Tue, May 10, 2011 at 5:48 AM,  katsumi.sek...@unisys.co.jp wrote:
 Dear Sebastien,

 hello, now I'm trying to build ParaViewWeb server on Windows.
 Your colleague could built it smoothly... but now I am in a mess.

 I am ashamed my poor skill. And I need your support.

 I read website http://www.vtk.org/Wiki/ParaViewWeb_Building; and FAQ,
 but the description is only for UNIX. So I wonder if I shoud install Cygwin
 or install Windows utilities individually. ( For example nmake )

 So it is very helpful for me to know more detailed building procedure for 
 Windows.
 And as you wrote, now getting activemq-cpp 3.1.0. is very difficult...
 Please let me know how to get/build activemq-cpp 3.1.0.

 Best regards,

 Katsumi SEKIDO

 -Original Message-
 From: Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
 Sent: Thursday, April 28, 2011 8:50 PM
 To: Sekido, Katsumi
 Subject: Re: paraviewweb on windows

 Hi Katsumi,

 ParaViewWeb should work on windows. But it has never been
 really tested on Windows. Although one of my colleague did
 managed to build it.
 The tricky part will be to get/build activemq-cpp 3.1.0. The
 rest should be pretty smooth.

 Seb


 On Thu, Apr 28, 2011 at 1:44 AM,  katsumi.sek...@unisys.co.jp wrote:
  Dear Sebastien,
 
  Hello, I read the mail thread [Paraview] [paraviewweb]
 trouble with paraviewweb on windows.
  But unfortunately we have to build a paraviewweb server on
 Microsoft Windows.
  I guess... Mac works as a server well, so it is possible to
 build a server on Windows.
  Do you have any plan to make it possible to build a server
 on Windows?
  And if you have no plan, please tell me how can I build a
 server on Windows?
 
  Best regards,
 
  Katsumi SEKIDO
 

___
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] ParaviewWeb two sessions, two views, two volume datasets

2011-05-10 Thread Sebastien Jourdain
Wonderful,

You definitely getting there. BTW, what do you mean by a weird clipping
between refresh ?

Thanks,

Seb

On Mon, May 9, 2011 at 7:39 PM, Rajvikram Singh rajvikr...@yahoo.comwrote:

 Great. Just tried creating two views with CreateRenderView() within the
 same session and was able to attach a different pipeline to both.

 For the view locking, I found a function called AddCameraLink(view1, view2,
 linkname) which allowed me to achieve what I wanted. The views are sync'd
 and apart from a weird clipping between refresh, it works flawlessly. So I
 don't think I'll need to write a server side plugin .. this time :)

 Thanks again Sebastien.




 --- On *Tue, 10/5/11, Sebastien Jourdain 
 sebastien.jourd...@kitware.com*wrote:


 From: Sebastien Jourdain sebastien.jourd...@kitware.com
 Subject: Re: [Paraview] ParaviewWeb two sessions, two views, two volume
 datasets
 To: Rajvikram Singh rajvikr...@yahoo.com
 Cc: paraview@paraview.org
 Date: Tuesday, 10 May, 2011, 4:10 AM


 Hi Raj,

 first of all you only need one session. A session is basically a dedicated
 connection to a ParaView server. So by creating 2 session, you were creating
 2 server where you could have created 2 views in the same session and setup
 a mechanism to keep both camera of the views in synch.
 Moreover, as you are using the same session, you can reuse your objects
 such as the LUT.
 To keep object in synch, you will have to write some piece of code on the
 server side that you could call from your javascript client.
 I don't have a simple example in mind but you could look at the pwsimple.py
 where I had some binding between the widget and the implicit functions that
 it represent. Of course the event type won't be the same but the idea is
 there.

 In fact inside a Python plugin you should define a method like that:

 def bindViews(view1, view2):
# add some python code to bind the two camera together
# or maybe set the active camera of view1 to be the active
# camera of view 2.

 I know that it does not give you the full answer but at least it give you
 some hints.

 Seb

 On Mon, May 9, 2011 at 5:29 PM, Rajvikram Singh 
 rajvikr...@yahoo.comhttp://mc/compose?to=rajvikr...@yahoo.com
  wrote:

 Hi everyone
 I would like to load two volume datasets (called FISH and SIMS in the
 code below) in ParaviewWeb and then render them side by side in two
 different views. The users should be able to 'lock' the camera amongst the
 two views so that moving the object in one window also affects the camera in
 the other.

 I tried the following piece of code but ran into a error which made me
 think maybe I don't understand the concept of sessions and Display
 properties well. Hoping somebody could help shed some light. There are two
 functions that I've copy pasted below. Most of the variables are global for
 now and shared between the functions.


 // The init function loads and displays the two datasets
 this.init = function() {
 // Set the web service base URL
 var i;
 var serverUrl =
 %=request.getScheme()%://%=request.getServerName()%:%=request.getServerPort()%/PWService;
 //
 // Create paraview sessions .. one each for FISH and SIMS
 //
 pv_FISH = new Paraview(serverUrl);
 pv_FISH.createSession(CAVIAT-session-1, FISH data,
 default);
 view_FISH = pv_FISH.CreateIfNeededRenderView();
 pv_FISH.Render();

 pv_SIMS = new Paraview(serverUrl);
 pv_SIMS.createSession(CAVIAT-session-2, SIMS data,
 default);
 view_SIMS = pv_SIMS.CreateIfNeededRenderView();
 pv_SIMS.Render();

 // Load the data files from disk
 data_FISH = pv_FISH.OpenDataFile({filename : file_FISH});
 data_SIMS = pv_FISH.OpenDataFile({filename : file_SIMS});

 // For volume rendering set the display properties for each
 dataset loaded

 this.setupVolumeView(data_FISH, view_FISH, pv_FISH);
 this.setupVolumeView(data_SIMS, view_SIMS, pv_SIMS);

 pv_FISH.Show({proxy : data_FISH});
 pv_FISH.UpdatePipeline();

 pv_SIMS.Show({proxy : data_SIMS});
 pv_SIMS.UpdatePipeline();


 // set origin in the middle of dataset
 pv_FISH.ResetCamera();
 view_FISH.setCenterOfRotation(view_FISH.getCameraFocalPoint());

 pv_SIMS.ResetCamera();
 view_SIMS.setCenterOfRotation(view_SIMS.getCameraFocalPoint());

 // Create and bind renderers for both sessions
 var renderer_FISH = new JavaScriptRenderer(rendererName,
 serverUrl);
 renderer_FISH.init(pv_FISH.sessionId, view_FISH.__selfid__);
 renderer_FISH.setSize('720','720');
 renderer_FISH.bindToElementId(FISH-container);
 renderer_FISH.start();

 var renderer_SIMS = new JavaScriptRenderer(rendererName,
 serverUrl

Re: [Paraview] error Paraview adapter

2011-05-10 Thread Sebastien Jourdain
Hi Luca,

I've cc the ParaView mailing list (as you should do) so other could
benefit from your experience as well.

Which version of ParaView are you using ? If it's the release one, you
should follow the instruction that I've posted on the ParaView mailing
list to checkout the correct corresponding tag.

FYI, here is the mail:


Hi Folks,

I've just push today some fix to the ParaViewWeb repository to support
the latest ParaView git/master.

But for the users of ParaViewWeb that want to use the latest ParaView
release (3.10.1) instead, you should checkout the tag pv-3.10.1 in
the ParaViewWeb repository.
In order to do that, you can simply type the following command line
inside the ParaViewWeb directory: git checkout pv-3.10.1 -b
pv-release.

For those who are just starting to here about ParaViewWeb and want to
know more, they can give a look at the Wiki documentation here:
- http://www.paraview.org/Wiki/ParaViewWeb

And if you have questions or issue to report, use the paraview mailing list.


Seb

On Tue, May 10, 2011 at 9:52 AM, Luca Cinquepalmi
cinquepa...@planetek.it wrote:
 Hi Seb
 I'm trying to compile ParaviewWeb on another ubuntu system...
 I successfully built activemq-cpp-3.1.0 and Paraview and now I'm trying to
 compile ParaView adapter...
 When I run make test this message appears...

 Test project /home/luca/3dVoxView/PARAVIEWWEB/build-pweb
     Start 1: TestSimpleScenario
 1/3 Test #1: TestSimpleScenario ...***Exception: SegFault  3.49
 sec
     Start 2: TestProxyProperties
 2/3 Test #2: TestProxyProperties ..***Exception: SegFault  2.51
 sec
     Start 3: TestOK
 3/3 Test #3: TestOK ...***Exception: SegFault  1.26
 sec

 0% tests passed, 3 tests failed out of 3

 Total Test time (real) =   7.29 sec

 The following tests FAILED:
       1 - TestSimpleScenario (SEGFAULT)
       2 - TestProxyProperties (SEGFAULT)
       3 - TestOK (SEGFAULT)
 Errors while running CTest
 make: *** [test] Errore 8

 while I remember in my previous building all tests were ok... can you help
 me? thanks a lot

 Luca

___
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] error Paraview adapter

2011-05-10 Thread Sebastien Jourdain
Hi Luca,

You might not have set the LD_LIBRARY_PATH correctly. So when the
application start, it does not find the so file and the same will
happen for ParaView ones as soon as you fix that error.

Seb

On Tue, May 10, 2011 at 12:24 PM, Luca Cinquepalmi
cinquepa...@planetek.it wrote:
 Thank you Seb,
 I followed your suggestion and allthing went fine.
 What can you say about this log message?

 /home/luca/3dVoxView/PARAVIEWWEB/install-pweb/bin/PWServer: error while
 loading shared libraries: libParaWebPlugin.so: cannot open shared object
 file: No such file or directory

 Thank you.

 Luca

 Il 10/05/2011 16:30, Sebastien Jourdain ha scritto:

 Hi Luca,

 I've cc the ParaView mailing list (as you should do) so other could
 benefit from your experience as well.

 Which version of ParaView are you using ? If it's the release one, you
 should follow the instruction that I've posted on the ParaView mailing
 list to checkout the correct corresponding tag.

 FYI, here is the mail:

 
 Hi Folks,

 I've just push today some fix to the ParaViewWeb repository to support
 the latest ParaView git/master.

 But for the users of ParaViewWeb that want to use the latest ParaView
 release (3.10.1) instead, you should checkout the tag pv-3.10.1 in
 the ParaViewWeb repository.
 In order to do that, you can simply type the following command line
 inside the ParaViewWeb directory: git checkout pv-3.10.1 -b
 pv-release.

 For those who are just starting to here about ParaViewWeb and want to
 know more, they can give a look at the Wiki documentation here:
 - http://www.paraview.org/Wiki/ParaViewWeb

 And if you have questions or issue to report, use the paraview mailing list.
 

 Seb

 On Tue, May 10, 2011 at 9:52 AM, Luca Cinquepalmi
 cinquepa...@planetek.it wrote:

 Hi Seb
 I'm trying to compile ParaviewWeb on another ubuntu system...
 I successfully built activemq-cpp-3.1.0 and Paraview and now I'm trying to
 compile ParaView adapter...
 When I run make test this message appears...

 Test project /home/luca/3dVoxView/PARAVIEWWEB/build-pweb
     Start 1: TestSimpleScenario
 1/3 Test #1: TestSimpleScenario ...***Exception: SegFault  3.49
 sec
     Start 2: TestProxyProperties
 2/3 Test #2: TestProxyProperties ..***Exception: SegFault  2.51
 sec
     Start 3: TestOK
 3/3 Test #3: TestOK ...***Exception: SegFault  1.26
 sec

 0% tests passed, 3 tests failed out of 3

 Total Test time (real) =   7.29 sec

 The following tests FAILED:
       1 - TestSimpleScenario (SEGFAULT)
       2 - TestProxyProperties (SEGFAULT)
       3 - TestOK (SEGFAULT)
 Errors while running CTest
 make: *** [test] Errore 8

 while I remember in my previous building all tests were ok... can you help
 me? thanks a lot

 Luca




___
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] paraviewweb on windows

2011-05-11 Thread Sebastien Jourdain
Hi Katsumi,

If you can get a Linux machine, it will be way simpler.
On the other hand, for git you can use the http url which use the
standard http protocol to communicate. So you shouldn't get any issue
with your proxy.

 git clone http://paraview.org/ParaViewWeb.git

Seb

On Wed, May 11, 2011 at 12:03 AM,  katsumi.sek...@unisys.co.jp wrote:
 Dear Sebastien,

 hello, thank you for reply. I understand the situation. We will try to build 
 on Linux or
 (if possible) Windows.

 But anyway threre is one problem. I installed Cygwin and try to get source 
 file
 and makefile and other resources, but our company proxy server does not open
 git-protocol port, so I couldn't get them. And it might impossible to open 
 this port.

 So... if possible, could you send me these resources as attachments?
 And if it is difficult, it is very helpful to let me know any download 
 sites...

 Best regards,

 Katsumi SEKIDO

 -Original Message-
 From: Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
 Sent: Tuesday, May 10, 2011 9:15 PM
 To: Sekido, Katsumi
 Cc: paraview@paraview.org
 Subject: Re: paraviewweb on windows

 Hi Katsumi,

 as I said previously, ParaViewWeb should work on Windows but
 it's a non-tested platform. Which means we can't really help
 you with that.
 So if you don't have any skills in building such system on
 Windows, you should definitely try to get a Linux or a Mac.
 That's exactly what happen with Luca who finally managed to
 setup a server on Linux.

 Seb

 On Tue, May 10, 2011 at 5:48 AM,  katsumi.sek...@unisys.co.jp wrote:
  Dear Sebastien,
 
  hello, now I'm trying to build ParaViewWeb server on Windows.
  Your colleague could built it smoothly... but now I am in a mess.
 
  I am ashamed my poor skill. And I need your support.
 
  I read website
 http://www.vtk.org/Wiki/ParaViewWeb_Building; and FAQ,
  but the description is only for UNIX. So I wonder if I
 shoud install
  Cygwin or install Windows utilities individually. ( For example
  nmake )
 
  So it is very helpful for me to know more detailed building
 procedure for Windows.
  And as you wrote, now getting activemq-cpp 3.1.0. is very
 difficult...
  Please let me know how to get/build activemq-cpp 3.1.0.
 
  Best regards,
 
  Katsumi SEKIDO
 
  -Original Message-
  From: Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
  Sent: Thursday, April 28, 2011 8:50 PM
  To: Sekido, Katsumi
  Subject: Re: paraviewweb on windows
 
  Hi Katsumi,
 
  ParaViewWeb should work on windows. But it has never been really
  tested on Windows. Although one of my colleague did
 managed to build
  it.
  The tricky part will be to get/build activemq-cpp 3.1.0. The rest
  should be pretty smooth.
 
  Seb
 
 
  On Thu, Apr 28, 2011 at 1:44 AM,
 katsumi.sek...@unisys.co.jp wrote:
   Dear Sebastien,
  
   Hello, I read the mail thread [Paraview] [paraviewweb]
  trouble with paraviewweb on windows.
   But unfortunately we have to build a paraviewweb server on
  Microsoft Windows.
   I guess... Mac works as a server well, so it is possible to
  build a server on Windows.
   Do you have any plan to make it possible to build a server
  on Windows?
   And if you have no plan, please tell me how can I build a
  server on Windows?
  
   Best regards,
  
   Katsumi SEKIDO
  
 

___
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 Web view along X,Y or Z

2011-05-14 Thread Sebastien Jourdain
Hi Raj,

if you create a 2D view instead of a 3D one, you'll get exactly what you
want.
But, since it's a hidden API from the JavaScript, you'll need to make a
python plugin to enable that API

You need to call: paraview.simple._create_view(2DRenderView)

them, you just need to play with some display properties.

DataRepresentation5 = GetDisplayProperties(Wavelet1)

DataRepresentation5.SliceMode = 'XY Plane'

DataRepresentation5.Slice = 10


You can look in the wiki some sample code that was used for the manta
plugin.


Seb

On Fri, May 13, 2011 at 5:31 PM, Rajvikram Singh rajvikr...@yahoo.comwrote:

 Hi
I would like to provide the ParaviewWeb session users to be able to view
 their data along the major axes at any point. I looked at the view
 properties and there were member functions for setCameraViewUp() and
 setCameraPosition() but I was not able to orient the camera correctly. Am I
 missing any other function .. maybe for the camera itself ?

 Thanks
 Raj

 ___
 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] ParaviewWeb : Repeated calls to GetLookupTableForArray do not change the RGBpoints array

2011-05-19 Thread Sebastien Jourdain
Hi Raj,

could you send the piece of code that update those RGBPoints values ?

Thanks,

Seb

On Thu, May 19, 2011 at 12:58 PM, Rajvikram Singh rajvikr...@yahoo.comwrote:

 Hi Utkarsh
 I'm using Jquery to load the .XML files. It works without any problems
 the first time and RGBPoints extracted from the XML are applied correctly.

 The problem arises when the users selects a different XML file (different
 colormap). When the GetLookupTableForArray is called again with the new set
 of RGBPoints, the visualization does not look correct. It looks like the the
 lookuptable maintained the earlier RGBPoints and merged the new set with the
 old.

 I was wondering if this was a bug or if their was a way to reset the lut to
 forget the old RGBPoints

 Thanks
 Raj


 --- On *Thu, 19/5/11, Utkarsh Ayachit utkarsh.ayac...@kitware.com*wrote:


 From: Utkarsh Ayachit utkarsh.ayac...@kitware.com
 Subject: Re: [Paraview] ParaviewWeb : Repeated calls to
 GetLookupTableForArray do not change the RGBpoints array
 To: Rajvikram Singh rajvikr...@yahoo.com
 Cc: paraview@paraview.org
 Date: Thursday, 19 May, 2011, 6:49 PM


 How are you loading the default.xml? Do the best of my knowledge, ParaView
 Python API has no call to setup LUTs from XML.

 Utkarsh

 On Wed, May 18, 2011 at 8:45 PM, Rajvikram Singh 
 rajvikr...@yahoo.comhttp://mc/compose?to=rajvikr...@yahoo.com
  wrote:

 Hi
I've a case where the users can load .xml files saved from the
 Paraview's 'Edit Color Map' widget and apply the color maps (containing
 R,G,B and Opacity values) to volume rendering.

 When I start the application a call is made is load a default.xml file
 and then do a :

 Lut = pv.GetLookupTableForArray({arrayname : ImageFile, num_components :
 1, HSVWrap : 0, NanColor : nanColor, RGBPoints : rgbPoints, ColorSpace :
 colorSpace});

 Sof = pv.CreatePiecewiseFunction( {Points: sofPoints});

 The variables nanColor, rgbPoints, sofPoints etc are populated by the XML
 file data. Then the Lookuptable is applied to the DisplayProperties for
 volume rendering. This part works well.

 However when the user changes the .xml color map file from a drop down, the
 same code is called again and this time it does something funny. It seems to
 retain the previous RGBPoints information and adds the new color map to it.
 So the two lookup tables look like they are merged. Is this expected ?

 Is there a way to reset the lookup table ? I did not see any obvious call
 within simple.py or pwsimple.py.

 Thanks
 Raj

 ___
 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] ParaviewWeb : Repeated calls to GetLookupTableForArray do not change the RGBpoints array

2011-05-19 Thread Sebastien Jourdain
Hi Raj,

why don't you get the LUT the first time and then just change the values on
it.

 Lut.setRGBPoints(rgbPoints) ?

Seb

On Thu, May 19, 2011 at 2:20 PM, Rajvikram Singh rajvikr...@yahoo.comwrote:

 Hi Sebastien

 Here are the two javascript functions used for setting up the volume
 visualization. The second one (loadXMLColorMap()) is where Jquery is used to
 read the colormaps from the XML file. The variables Lut, Sof and
 CurrColormapFile are global. CurrColormapFile is the XML file chosen by the
 user from the UI :

 //
 **
 // set displayProperties for a particular data to show as volume
 //
 **
 this.setupVolumeView = function (_data, _view) {

 // load and setup the LUT and SOF before changing
 representation
 this.loadXMLColorMap(./colormaps/ + CurrColormapFile);

 pv.SetDisplayProperties( {
 proxy : _data,
 view  : _view,
 SelectMapper : 'GPU',
 Representation : 'Volume',
 LookupTable : Lut,
 ColorArrayName : 'ImageFile',
 ScalarOpacityFunction : Sof
 } );

 } // end of setDisplayToVolume()


 //
 **
 // Load a Paraview color map from an XML file
 //
 **
 this.loadXMLColorMap = function(_file) {

 var colorSpace = 'None';
 var nanField;
 var rgbPointsIdx = 0;
 var sofPointsIdx = 0;
 var i, x, o, r, g, b;

 var nanColor = new Array();
 var rgbPoints = new Array();
 var sofPoints = new Array();

 jQuery.ajax({
 url : _file,
 success : function(data) {
 // get the color space
 colorSpace =
 jQuery(data).find(ColorMap).attr(space);

 // get the values to create LUT and SOF
 jQuery(data).find(Point).each(function() {
 i = jQuery(this);
 x = parseFloat(i.attr(x));
 o = parseFloat(i.attr(o));
 r = parseFloat(i.attr(r));
 g = parseFloat(i.attr(g));
 b = parseFloat(i.attr(b));

 // Populate the rgbPoints array
 rgbPoints[rgbPointsIdx++] = x;
 rgbPoints[rgbPointsIdx++] = r;
 rgbPoints[rgbPointsIdx++] = g;
 rgbPoints[rgbPointsIdx++] = b;

 //Populate the sof Points array
 sofPoints[sofPointsIdx++] = x;
 sofPoints[sofPointsIdx++] = o;

 });

 nanField = jQuery(data).find(NaN);
 nanColor[0] = parseFloat(nanField.attr(r));
 nanColor[1] = parseFloat(nanField.attr(g));
 nanColor[2] = parseFloat(nanField.attr(b));
 },

 async : false
 });



 // Create the LUT and SOF needed for the transfer function

 Lut = pv.GetLookupTableForArray({arrayname : ImageFile,
 num_components : 1, HSVWrap : 0, NanColor : nanColor, RGBPoints : rgbPoints,
 ColorSpace : colorSpace});

 Sof = pv.CreatePiecewiseFunction( {Points: sofPoints});


 } // End of loadXMLColorMap()



 Thanks again.
 - Raj


 --- On *Thu, 19/5/11, Sebastien Jourdain 
 sebastien.jourd...@kitware.com*wrote:


 From: Sebastien Jourdain sebastien.jourd...@kitware.com

 Subject: Re: [Paraview] ParaviewWeb : Repeated calls to
 GetLookupTableForArray do not change the RGBpoints array
 To: Rajvikram Singh rajvikr...@yahoo.com
 Cc: Utkarsh Ayachit utkarsh.ayac...@kitware.com, paraview@paraview.org
 Date: Thursday, 19 May, 2011, 10:37 PM


 Hi Raj,

 could you send the piece of code that update those RGBPoints values ?

 Thanks,

 Seb

 On Thu, May 19, 2011 at 12:58 PM, Rajvikram Singh 
 rajvikr...@yahoo.comhttp://mc/compose?to=rajvikr...@yahoo.com
  wrote:

 Hi Utkarsh
 I'm using Jquery to load the .XML files. It works without any problems
 the first time and RGBPoints extracted from the XML are applied correctly.

 The problem arises when the users selects a different XML file (different
 colormap). When the GetLookupTableForArray is called again with the new set
 of RGBPoints, the visualization does not look correct. It looks like the the
 lookuptable maintained the earlier RGBPoints and merged the new set with the
 old.

 I was wondering if this was a bug

Re: [Paraview] [help] Volume rendering in ParaviewWeb

2011-05-24 Thread Sebastien Jourdain
Hi,

You should provide the JavaScript has well. Otherwise it's thought to
understand what is wrong when you have half of the informations.
Moreover, you can also look at that previous e-mail.
(http://markmail.org/thread/bm32g6sckjqvyiy5) It show some code on how
to setup the volume rendering from the JavaScript itself.

Seb

On Tue, May 24, 2011 at 10:14 AM, le Anh Dung anh-dung...@insa-lyon.fr wrote:
 Hello everybody,
 I tried to write a plugin (renderVol.py attached) to do a volume rendering
 in PWConsole of ParaviewWeb.
 When I tried to set the ColorArrayName or Representation (functions in
 renderVol.py), I always got this:

 Traceback (most recent call last):
  File jsonrpc, line 147, in handle_request
  File /root/ParaViewWeb/WebServer/PW-work/plugins/renderVol.py, line 24,
 in setColorArrayName
    dp.ColorArrayName = a
  File
 /root/ParaView3/build-paraview3/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py,
 line 210, in __setattr__
    setter(self, value)
  File
 /root/ParaView3/build-paraview3/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py,
 line 2384, in setProperty
    return self.SetPropertyWithName(propName, value)
  File
 /root/ParaView3/build-paraview3/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py,
 line 265, in SetPropertyWithName
    prop.SetData(arg)
  File
 /root/ParaView3/build-paraview3/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py,
 line 681, in SetData
    raise ValueError(Expected a tuple of 2 values or a string.)
 ValueError: Expected a tuple of 2 values or a string.
 
 2011-05-24 15:58:57,584 - pw-logger - DEBUG - return of
 execute_command_on_plugin {'error': {'message': 'Expected a tuple of 2
 values or a string.', 'name': 'ValueError'}, 'result': None, 'id': 1}

 It'll work fine if I set them fix in my renderVol.py
 examples:
   dp.ColorArrayName = 'MetaImage'
 or dp.Representation = 'Volume'
 But I want to set them manualy in PWConsole and then get that error :(
 Could anyone please help me ? :)

 Thank you in advance.
 Have a nice day :)

 
 Anh Dung LE.
 INSA de Lyon - Télécommunications, Services  Usages




 ___
 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] paraviewweb on windows

2011-05-26 Thread Sebastien Jourdain
Hi Katsumi,

did you looked at that web page ?
http://activemq.apache.org/building-activemq-cpp.html

The first link refer to the project that you are missing. I guess, in
your case, you'll have to build that project too.

Seb

On Thu, May 26, 2011 at 4:20 AM,  katsumi.sek...@unisys.co.jp wrote:
 Dear Sebastien,

 hello, now I'm trying build ParaViewWeb server on Linux(CentOS5.6).
 But at the make process of activemq-cpp, error has occured.
 The message is /usr/bin/ld: cannot find -luuid.
 So I search some uuid-rpms and attached them, but the situation doesn't 
 change.
 So please let me know how can I resolve this error.

 Best regards,

 Katsumi SEKIDO

 -Original Message-
 From: Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
 Sent: Wednesday, May 11, 2011 3:05 PM
 To: Sekido, Katsumi
 Cc: paraview@paraview.org
 Subject: Re: paraviewweb on windows

 Hi Katsumi,

 If you can get a Linux machine, it will be way simpler.
 On the other hand, for git you can use the http url which use
 the standard http protocol to communicate. So you shouldn't
 get any issue with your proxy.

  git clone http://paraview.org/ParaViewWeb.git

 Seb

 On Wed, May 11, 2011 at 12:03 AM,
 katsumi.sek...@unisys.co.jp wrote:
  Dear Sebastien,
 
  hello, thank you for reply. I understand the situation. We
 will try to
  build on Linux or (if possible) Windows.
 
  But anyway threre is one problem. I installed Cygwin and try to get
  source file and makefile and other resources, but our company proxy
  server does not open git-protocol port, so I couldn't get
 them. And it might impossible to open this port.
 
  So... if possible, could you send me these resources as attachments?
  And if it is difficult, it is very helpful to let me know
 any download sites...
 
  Best regards,
 
  Katsumi SEKIDO
 
  -Original Message-
  From: Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
  Sent: Tuesday, May 10, 2011 9:15 PM
  To: Sekido, Katsumi
  Cc: paraview@paraview.org
  Subject: Re: paraviewweb on windows
 
  Hi Katsumi,
 
  as I said previously, ParaViewWeb should work on Windows
 but it's a
  non-tested platform. Which means we can't really help you
 with that.
  So if you don't have any skills in building such system on
 Windows,
  you should definitely try to get a Linux or a Mac.
  That's exactly what happen with Luca who finally managed
 to setup a
  server on Linux.
 
  Seb
 
  On Tue, May 10, 2011 at 5:48 AM,
 katsumi.sek...@unisys.co.jp wrote:
   Dear Sebastien,
  
   hello, now I'm trying to build ParaViewWeb server on Windows.
   Your colleague could built it smoothly... but now I am in a mess.
  
   I am ashamed my poor skill. And I need your support.
  
   I read website
  http://www.vtk.org/Wiki/ParaViewWeb_Building; and FAQ,
   but the description is only for UNIX. So I wonder if I
  shoud install
   Cygwin or install Windows utilities individually. ( For example
   nmake )
  
   So it is very helpful for me to know more detailed building
  procedure for Windows.
   And as you wrote, now getting activemq-cpp 3.1.0. is very
  difficult...
   Please let me know how to get/build activemq-cpp 3.1.0.
  
   Best regards,
  
   Katsumi SEKIDO
  
   -Original Message-
   From: Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
   Sent: Thursday, April 28, 2011 8:50 PM
   To: Sekido, Katsumi
   Subject: Re: paraviewweb on windows
  
   Hi Katsumi,
  
   ParaViewWeb should work on windows. But it has never
 been really
   tested on Windows. Although one of my colleague did
  managed to build
   it.
   The tricky part will be to get/build activemq-cpp
 3.1.0. The rest
   should be pretty smooth.
  
   Seb
  
  
   On Thu, Apr 28, 2011 at 1:44 AM,
  katsumi.sek...@unisys.co.jp wrote:
Dear Sebastien,
   
Hello, I read the mail thread [Paraview] [paraviewweb]
   trouble with paraviewweb on windows.
But unfortunately we have to build a paraviewweb server on
   Microsoft Windows.
I guess... Mac works as a server well, so it is possible to
   build a server on Windows.
Do you have any plan to make it possible to build a server
   on Windows?
And if you have no plan, please tell me how can I build a
   server on Windows?
   
Best regards,
   
Katsumi SEKIDO
   
  
 

___
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] ParaViewWeb Server on Linux

2011-05-30 Thread Sebastien Jourdain
Hi Katsumi,

your first attempt was the right one. SOURCE_DIR is the ParaViewWeb
source directory that you get from git. It's the higher directory that
contains a CMakeList.txt file.

Now the question is, what do you mean by CMake doesn't work.

Seb

On Mon, May 30, 2011 at 5:53 AM,  katsumi.sek...@unisys.co.jp wrote:
 Dear Sebastien,

 hello, as you mentioned,  I missed activemq-cpp project build. Sorry...
 I successed activemq-cpp build and ParaView build. But in the next phase,
 I met a trouble.

 By the manual (website and readme.txt), I have to build the build-pw 
 directory
 by ccmake ../SOURCE_DIR. But I couldn't find SOURCE_DIR.
 So I tried ParaViewWeb directory gotten by git command. But cmake doesn't 
 work...
 How should I indicate directory as the SOURCE_DIR ?

 Best regards,

 Katsumi SEKIDO

 -Original Message-
 From: Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
 Sent: Thursday, May 26, 2011 8:54 PM
 To: Sekido, Katsumi
 Cc: paraview@paraview.org
 Subject: Re: paraviewweb on windows

 Hi Katsumi,

 did you looked at that web page ?
 http://activemq.apache.org/building-activemq-cpp.html

 The first link refer to the project that you are missing. I
 guess, in your case, you'll have to build that project too.

 Seb

 On Thu, May 26, 2011 at 4:20 AM,  katsumi.sek...@unisys.co.jp wrote:
  Dear Sebastien,
 
  hello, now I'm trying build ParaViewWeb server on Linux(CentOS5.6).
  But at the make process of activemq-cpp, error has occured.
  The message is /usr/bin/ld: cannot find -luuid.
  So I search some uuid-rpms and attached them, but the
 situation doesn't change.
  So please let me know how can I resolve this error.
 
  Best regards,
 
  Katsumi SEKIDO
 
  -Original Message-
  From: Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
  Sent: Wednesday, May 11, 2011 3:05 PM
  To: Sekido, Katsumi
  Cc: paraview@paraview.org
  Subject: Re: paraviewweb on windows
 
  Hi Katsumi,
 
  If you can get a Linux machine, it will be way simpler.
  On the other hand, for git you can use the http url which use the
  standard http protocol to communicate. So you shouldn't
 get any issue
  with your proxy.
 
   git clone http://paraview.org/ParaViewWeb.git
 
  Seb
 
  On Wed, May 11, 2011 at 12:03 AM,
  katsumi.sek...@unisys.co.jp wrote:
   Dear Sebastien,
  
   hello, thank you for reply. I understand the situation. We
  will try to
   build on Linux or (if possible) Windows.
  
   But anyway threre is one problem. I installed Cygwin and
 try to get
   source file and makefile and other resources, but our
 company proxy
   server does not open git-protocol port, so I couldn't get
  them. And it might impossible to open this port.
  
   So... if possible, could you send me these resources as
 attachments?
   And if it is difficult, it is very helpful to let me know
  any download sites...
  
   Best regards,
  
   Katsumi SEKIDO
  
   -Original Message-
   From: Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
   Sent: Tuesday, May 10, 2011 9:15 PM
   To: Sekido, Katsumi
   Cc: paraview@paraview.org
   Subject: Re: paraviewweb on windows
  
   Hi Katsumi,
  
   as I said previously, ParaViewWeb should work on Windows
  but it's a
   non-tested platform. Which means we can't really help you
  with that.
   So if you don't have any skills in building such system on
  Windows,
   you should definitely try to get a Linux or a Mac.
   That's exactly what happen with Luca who finally managed
  to setup a
   server on Linux.
  
   Seb
  
   On Tue, May 10, 2011 at 5:48 AM,
  katsumi.sek...@unisys.co.jp wrote:
Dear Sebastien,
   
hello, now I'm trying to build ParaViewWeb server on Windows.
Your colleague could built it smoothly... but now I
 am in a mess.
   
I am ashamed my poor skill. And I need your support.
   
I read website
   http://www.vtk.org/Wiki/ParaViewWeb_Building; and FAQ,
but the description is only for UNIX. So I wonder if I
   shoud install
Cygwin or install Windows utilities individually. (
 For example
nmake )
   
So it is very helpful for me to know more detailed building
   procedure for Windows.
And as you wrote, now getting activemq-cpp 3.1.0. is very
   difficult...
Please let me know how to get/build activemq-cpp 3.1.0.
   
Best regards,
   
Katsumi SEKIDO
   
-Original Message-
From: Sebastien Jourdain
[mailto:sebastien.jourd...@kitware.com]
Sent: Thursday, April 28, 2011 8:50 PM
To: Sekido, Katsumi
Subject: Re: paraviewweb on windows
   
Hi Katsumi,
   
ParaViewWeb should work on windows. But it has never
  been really
tested on Windows. Although one of my colleague did
   managed to build
it.
The tricky part will be to get/build activemq-cpp
  3.1.0. The rest
should be pretty smooth.
   
Seb
   
   
On Thu, Apr 28, 2011 at 1:44 AM,
   katsumi.sek...@unisys.co.jp wrote:
 Dear Sebastien,

 Hello, I read

Re: [Paraview] ParaViewWeb Server on Linux

2011-05-31 Thread Sebastien Jourdain
Hi Katsumi,

if you have a server X running, you can launch cmake-gui which will
pop-up a graphical application ?
On the other hand, could you explain why ccmake is not working ?

Moreover, use absolute path inside your configuration instead of the
relative ones.
And the error that you are seeing is because you need to point to the
build directory of ParaView so you can build one of the components
needed by ParaViewWeb.

Seb

PS: You shouldn't change anything from the source directory. And if
you use cmake instead of ccmake, it should work in the same way but
less interactively. But the file that you can change inside the build
directory is the CMakeCache.txt...


On Tue, May 31, 2011 at 1:42 AM,  katsumi.sek...@unisys.co.jp wrote:
 Dear Sebastien,

 hello, thank you for reply. I understand SOURCE_DIR equals ParaViewWeb.
 And I will explain my operation.

 I use cmake istead of ccmake because ccmake doesn't work in my environment.
 So I modified CMakeLists.txt of ParaVIewWeb as follows.
 ---
 #
 #          ParaView Web Visualisation @ Kitware
 #

 cmake_minimum_required(VERSION 2.6)
 set(ACTIVEMQ_CPP /usr/local/lib/libactivemq-cpp.so)
 set(ACTIVEMQ_INCLUDE_DIR /usr/local/include/activemq-cpp-3.1.0/)
 set(BUILD_PW_SERVER ON)
 set(BUILD_TESTING ON)
 set(BUILD_WEB_SERVICE OFF)
 set(CMAKE_BUILD_TYPE Debug)
 set(CMAKE_INSTALL_PREFIX ../install-pw)
 set(ParaView_DIR ../build-paraview)
 project(PARAVIEW_WEB)
 :
 :

 

 These set operations seem to work well in ParaView build process,
 but in build-pw process, messages are as follows.

 

 [root@yshimizu1 build-pw]# cmake ../ParaViewWeb
 -- The C compiler identification is GNU
 -- The CXX compiler identification is GNU
 -- Check for working C compiler: /usr/bin/gcc
 -- Check for working C compiler: /usr/bin/gcc -- works
 -- Detecting C compiler ABI info
 -- Detecting C compiler ABI info - done
 -- Check for working CXX compiler: /usr/bin/c++
 -- Check for working CXX compiler: /usr/bin/c++ -- works
 -- Detecting CXX compiler ABI info
 -- Detecting CXX compiler ABI info - done
 CMake Error at ParaViewAdapter/CMakeLists.txt:9 (find_package):
  Could not find module FindParaView.cmake or a configuration file for
  package ParaView.

  Adjust CMAKE_MODULE_PATH to find FindParaView.cmake or set ParaView_DIR to
  the directory containing a CMake configuration file for ParaView.  The file
  will have one of the following names:

    ParaViewConfig.cmake
    paraview-config.cmake



 CMake Error at ParaViewAdapter/CMakeLists.txt:12 (include):
  include called with wrong number of arguments.  Include only takes one
  file.


 CMake Error at ParaViewAdapter/CMakeLists.txt:50 (add_paraview_plugin):
  Unknown CMake command add_paraview_plugin.


 -- Configuring incomplete, errors occurred!

 -

 I guess... in this case, setting variable operations are wrong... If so,
 please let me know the right way to set variable.

 Best regards,

 Katsumi SEKIDO


 -Original Message-
 From: Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
 Sent: Monday, May 30, 2011 9:56 PM
 To: Sekido, Katsumi
 Cc: paraview@paraview.org
 Subject: Re: ParaViewWeb Server on Linux

 Hi Katsumi,

 your first attempt was the right one. SOURCE_DIR is the
 ParaViewWeb source directory that you get from git. It's the
 higher directory that contains a CMakeList.txt file.

 Now the question is, what do you mean by CMake doesn't work.

 Seb

 On Mon, May 30, 2011 at 5:53 AM,  katsumi.sek...@unisys.co.jp wrote:
  Dear Sebastien,
 
  hello, as you mentioned,  I missed activemq-cpp project
 build. Sorry...
  I successed activemq-cpp build and ParaView build. But in the next
  phase, I met a trouble.
 
  By the manual (website and readme.txt), I have to build the
 build-pw
  directory by ccmake ../SOURCE_DIR. But I couldn't find
 SOURCE_DIR.
  So I tried ParaViewWeb directory gotten by git command.
 But cmake doesn't work...
  How should I indicate directory as the SOURCE_DIR ?
 
  Best regards,
 
  Katsumi SEKIDO
 
  -Original Message-
  From: Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
  Sent: Thursday, May 26, 2011 8:54 PM
  To: Sekido, Katsumi
  Cc: paraview@paraview.org
  Subject: Re: paraviewweb on windows
 
  Hi Katsumi,
 
  did you looked at that web page ?
  http://activemq.apache.org/building-activemq-cpp.html
 
  The first link refer to the project that you are missing.
 I guess, in
  your case, you'll have to build that project too.
 
  Seb
 
  On Thu, May 26, 2011 at 4:20 AM,
 katsumi.sek...@unisys.co.jp wrote:
   Dear Sebastien,
  
   hello, now I'm trying build ParaViewWeb server on
 Linux

Re: [Paraview] ParaViewWeb Server on Linux

2011-06-01 Thread Sebastien Jourdain
Hi Katsumi,

this issue is related to a miss-matching version of ParaView and ParaViewWeb.
This previous message explain how to fix that issue.

http://markmail.org/message/ws3rufiq3lni2ffs

Seb

On Wed, Jun 1, 2011 at 3:16 AM,  katsumi.sek...@unisys.co.jp wrote:
 Dear Sebastien,

 hello, I re-install cmake from binary distribution, ccmake becomes to work!

 And I tried the abusolute path instead of  the relative path, so the situation
 progressed.(Makefile has generated)

 But in make process, following error has occered.

 
 :
 :
 [ 52%] Built target ParaWebPlugin
 [ 57%] Building CXX object ParaViewAdapter/CMakeFiles/PWServer.dir/main.cxx.o
 /root/ParaViewWeb/ParaViewAdapter/main.cxx: In function int main(int, char**):
 /root/ParaViewWeb/ParaViewAdapter/main.cxx:41: error PROCESS_CLIENT is not a
 member of 'vtkProcessModule

 --

 I checked ParaViewWeb/ParaViewAdapter/main.cxx and 
 ParaView-3.10.1/Servers/Common/vtkProcessModule.h.
 Certainly main.cxx refers PROCESS_CLIENT but this symbol is not defined in 
 vtkProcessModule.h and other all files...

 How can I resolve this problem?

 Best regards,

 Katsumi SEKIDO

 -Original Message-
 From: Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
 Sent: Tuesday, May 31, 2011 8:38 PM
 To: Sekido, Katsumi
 Cc: paraview@paraview.org
 Subject: Re: ParaViewWeb Server on Linux

 Hi Katsumi,

 if you have a server X running, you can launch cmake-gui
 which will pop-up a graphical application ?
 On the other hand, could you explain why ccmake is not working ?

 Moreover, use absolute path inside your configuration instead
 of the relative ones.
 And the error that you are seeing is because you need to
 point to the build directory of ParaView so you can build one
 of the components needed by ParaViewWeb.

 Seb

 PS: You shouldn't change anything from the source directory.
 And if you use cmake instead of ccmake, it should work in the
 same way but less interactively. But the file that you can
 change inside the build directory is the CMakeCache.txt...


 On Tue, May 31, 2011 at 1:42 AM,  katsumi.sek...@unisys.co.jp wrote:
  Dear Sebastien,
 
  hello, thank you for reply. I understand SOURCE_DIR equals
 ParaViewWeb.
  And I will explain my operation.
 
  I use cmake istead of ccmake because ccmake doesn't work in
 my environment.
  So I modified CMakeLists.txt of ParaVIewWeb as follows.
 
 --
  -
  #
  #          ParaView Web Visualisation @ Kitware #
 
  cmake_minimum_required(VERSION 2.6)
  set(ACTIVEMQ_CPP /usr/local/lib/libactivemq-cpp.so)
  set(ACTIVEMQ_INCLUDE_DIR /usr/local/include/activemq-cpp-3.1.0/)
  set(BUILD_PW_SERVER ON)
  set(BUILD_TESTING ON)
  set(BUILD_WEB_SERVICE OFF)
  set(CMAKE_BUILD_TYPE Debug)
  set(CMAKE_INSTALL_PREFIX ../install-pw) set(ParaView_DIR
  ../build-paraview)
  project(PARAVIEW_WEB)
  :
  :
 
 
 --
  --
 
  These set operations seem to work well in ParaView
 build process,
  but in build-pw process, messages are as follows.
 
 
 --
  --
 
  [root@yshimizu1 build-pw]# cmake ../ParaViewWeb
  -- The C compiler identification is GNU
  -- The CXX compiler identification is GNU
  -- Check for working C compiler: /usr/bin/gcc
  -- Check for working C compiler: /usr/bin/gcc -- works
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working CXX compiler: /usr/bin/c++
  -- Check for working CXX compiler: /usr/bin/c++ -- works
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done CMake Error at
  ParaViewAdapter/CMakeLists.txt:9 (find_package):
   Could not find module FindParaView.cmake or a
 configuration file for
   package ParaView.
 
   Adjust CMAKE_MODULE_PATH to find FindParaView.cmake or set
  ParaView_DIR to
   the directory containing a CMake configuration file for ParaView.
  The file
   will have one of the following names:
 
     ParaViewConfig.cmake
     paraview-config.cmake
 
 
 
  CMake Error at ParaViewAdapter/CMakeLists.txt:12 (include):
   include called with wrong number of arguments.  Include only takes
  one
   file.
 
 
  CMake Error at ParaViewAdapter/CMakeLists.txt:50
 (add_paraview_plugin):
   Unknown CMake command add_paraview_plugin.
 
 
  -- Configuring incomplete, errors occurred!
 
 
 --
  ---
 
  I guess... in this case, setting variable operations are
 wrong... If
  so, please let me know the right way to set variable.
 
  Best regards

Re: [Paraview] paraviewweb on Solaris

2011-06-01 Thread Sebastien Jourdain
Hi Luca,

I did not tested ParaViewWeb on Solaris, but if Paraview is working on
your solaris, I think you will have a good chance that everything
should work just fine. Just use use gcc instead of the Sun compiler.

Seb

On Wed, Jun 1, 2011 at 11:21 AM, Luca Cinquepalmi
cinquepa...@planetek.it wrote:
 Hi Seb,
 can you please tell me if you've tested ParaviewWeb
 on Solaris and if it works with no problem? thank you.

 Luca
 ___
 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] Embed ParaView in a Powerpoint presentation

2011-06-14 Thread Sebastien Jourdain
Hi Terry,

The flash support through ParaViewWeb works as a client where the
rendering is done remotely. So you can not use that technique for a
visualization in a PowerPoint. The flash application that you get is
not a standalone SWF file that you may play again offline.

Although, you might need to explain what you mean by interactive
session of ParaView. Is it an interactive 3D scene with a static
content or the content is going to change based on some filter
parameter update ?

If the content is going to be static, you may want to export the scene
and view it inside any smaller viewer.

Seb


On Tue, Jun 14, 2011 at 10:59 AM, Terry Jordan
terry.jor...@netl.doe.gov wrote:
 I am looking for a way to embed an interactive session of ParaView into a
 powerpoint presentation.  Do any procedures exist to perform this task?

 I know there is some flash support available through ParaViewWeb.  This may
 be a route I can explore.

 Thanks,
 Terry
 ___
 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] compiling ParaViewWeb

2011-06-14 Thread Sebastien Jourdain
Hi Luigi,

Please check that wiki page
http://www.paraview.org/Wiki/ParaViewWeb_Building which explain which
version is compatible with what.

Seb

PS: activemq-cpp 3.1.x is the solution... Or submit a patch with the
API changed that occurs in activemq-cpp 3.2+

On Tue, Jun 14, 2011 at 8:32 PM, Luigi Calori l.cal...@cineca.it wrote:
 I' m trying to build ParaViewWeb 3.10.1 ,
 I got the error:

 vtkPWJMSMessagingService.h:57: error: looser throw specifier for ?virtual
 void vtkPWJMSMessagingService::onMessage(const cms::Message*)?
 /plx/userprod/pro3dwe1/BA/install/tools/ActiveMQ-cpp/3.3.0/gnu--4.1.2/include/activemq-cpp-3.3.0/cms/MessageListener.h:55:
 error:   overriding ?virtual void cms::MessageListener::onMessage(const
 cms::Message*) throw ()?


 can be related to the ActiveMQ version 3.3.0 or 3.3.4 ?

 which version do you suggest?

 I have tried to use an older version of ActiveMQ but did not found any older
 sources.

 thanks in advance
                                  Luigi


 --
 Luigi Calori
 SuperComputing Applications and Innovation Department
 CINECA - via Magnanelli, 6/3, 40033 Casalecchio di Reno (Bologna) - ITALY
 Tel: +39 051 6171509  Fax: +39 051 6132198
 hpc.cineca.it

 ___
 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] Export VRML files for meshlab to check

2011-06-18 Thread Sebastien Jourdain
Hi,

this bug was fix in git master.

Seb

On Sat, Jun 18, 2011 at 7:45 AM, Wayne Wu sala...@gmail.com wrote:
 Hello,

 I am required to export VRML objects from ParaView using Python
 scripts. I followed the examples at

 http://www.paraview.org/pipermail/paraview/2010-June/017989.html

 to complete the script, and outputted a .vrml file. I need to use
 meshlab to check the file; it seems that meshlab can only recognise
 .wrl extension, and thus I modified the .vrml file into .wrl. When
 meshlab loaded the file, there is an error saying

 Error details: File without a geometry

 I searched and am not sure about how to fix the error and load the
 file. Do you have any experiences on exporting VRML files and give a
 hint please?

 Many thanks,
 http://code-saturne.blogspot.com/
 ___
 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] Export VRML files for meshlab to check

2011-06-18 Thread Sebastien Jourdain
I can not remember but it might be also in the 3.10.1 release. But
otherwise, yes if you pick the git/master version you will have to
compile it yourself.

If you have the git history, look for a fix from Utkarsh about exporter.

Seb

On Sat, Jun 18, 2011 at 10:06 AM, Wayne Wu sala...@gmail.com wrote:
 Hi Sebastien,

 Thanks a lot. Does that mean I have to build ParaView from the latest
 git source? When should the binaries of this fixed version come to be
 released if I don't build by myself?

 Thanks.
 http://code-saturne.blogspot.com/

 On 18 June 2011 13:55, Sebastien Jourdain
 sebastien.jourd...@kitware.com wrote:
 Hi,

 this bug was fix in git master.

 Seb

 On Sat, Jun 18, 2011 at 7:45 AM, Wayne Wu sala...@gmail.com wrote:
 Hello,

 I am required to export VRML objects from ParaView using Python
 scripts. I followed the examples at

 http://www.paraview.org/pipermail/paraview/2010-June/017989.html

 to complete the script, and outputted a .vrml file. I need to use
 meshlab to check the file; it seems that meshlab can only recognise
 .wrl extension, and thus I modified the .vrml file into .wrl. When
 meshlab loaded the file, there is an error saying

 Error details: File without a geometry

 I searched and am not sure about how to fix the error and load the
 file. Do you have any experiences on exporting VRML files and give a
 hint please?

 Many thanks,
 http://code-saturne.blogspot.com/
 ___
 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] [ParaviewWeb] JavaApplet Renderer

2011-07-04 Thread Sebastien Jourdain
Hi Guys,

the image reduction is not working with the Applet when the applet is
not allowed to execute some JavaScript code.
This usually happen only on Mac when the browser used is not Safari.
Is it the case ?

Thanks,

Seb

On Fri, Jun 24, 2011 at 10:17 AM, Utkarsh Ayachit
utkarsh.ayac...@kitware.com wrote:
 Sebastien is on vacation this week. He will be able to back to you in
 more detail, but if I am not mistaken, the Java renderer should
 already handle the image size reduction when interacting,
 automatically.

 Utkarsh

 On Fri, Jun 24, 2011 at 4:26 AM, le Anh Dung anh-dung...@insa-lyon.fr wrote:
 Hello everybody,
 I want to ask you a question about ParaviewWeb.
 When we use the JavaApplet Renderer, is there anyway to reduce the image
 size while interacting like with JavaScriptRenderer(
 renderer.interactiveRatio=2) ?
 Thank you in advance.
 Have a nice day!


 
 Anh Dung LE.
 INSA de Lyon - Télécommunications, Services  Usages




 ___
 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] [ParaviewWeb] JavaApplet Renderer

2011-07-04 Thread Sebastien Jourdain
Hum,

if the JavaScript renderer successfully reduce the image size by 2
when interacting then your problem do not come from your cluster/ssh
config. Moreover, do you face the same issue with our demo server ?
(http://paraviewweb.kitware.com/)
The only problem that I see and that I'm aware of is the communication
between the applet and the browser.
I always wanted to avoid it as it is not fully reliable on all the
platform and use some direct networking communication but didn't had
time yet to handle it.

I'll see what I can do...

Seb


On Mon, Jul 4, 2011 at 9:57 AM, Frederic Cervenansky
frederic.cervenan...@creatis.insa-lyon.fr wrote:
 Hi,

 No, the browser that we use is Chrome (on Linux) or Firefox (on Windows).
 The ParaviewServer is deployed on our cluster, accessed through a ssh tunnel
 but I don't think it's the problem. No?

 Frederic



 Le 04/07/2011 15:37, Sebastien Jourdain a écrit :

 Hi Guys,

 the image reduction is not working with the Applet when the applet is
 not allowed to execute some JavaScript code.
 This usually happen only on Mac when the browser used is not Safari.
 Is it the case ?

 Thanks,

 Seb


 --
 Frederic Cervenansky               Tel  : +33 (0)4 72 43 87 85
 CREATIS-LRMN                              +33 (0)6 14 88 51 49
 INSA - Batiment Blaise Pascal      Fax  : +33 (0)4 72 43 85 26
 69621 Villeurbanne Cedex
 France

 CREATIS home page : http://www.creatis.insa-lyon.fr


___
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] [ParaviewWeb] JavaApplet Renderer

2011-07-04 Thread Sebastien Jourdain
Just push a fix to git/master

Seb

On Mon, Jul 4, 2011 at 10:45 AM, Sebastien Jourdain
sebastien.jourd...@kitware.com wrote:
 Hum,

 if the JavaScript renderer successfully reduce the image size by 2
 when interacting then your problem do not come from your cluster/ssh
 config. Moreover, do you face the same issue with our demo server ?
 (http://paraviewweb.kitware.com/)
 The only problem that I see and that I'm aware of is the communication
 between the applet and the browser.
 I always wanted to avoid it as it is not fully reliable on all the
 platform and use some direct networking communication but didn't had
 time yet to handle it.

 I'll see what I can do...

 Seb


 On Mon, Jul 4, 2011 at 9:57 AM, Frederic Cervenansky
 frederic.cervenan...@creatis.insa-lyon.fr wrote:
 Hi,

 No, the browser that we use is Chrome (on Linux) or Firefox (on Windows).
 The ParaviewServer is deployed on our cluster, accessed through a ssh tunnel
 but I don't think it's the problem. No?

 Frederic



 Le 04/07/2011 15:37, Sebastien Jourdain a écrit :

 Hi Guys,

 the image reduction is not working with the Applet when the applet is
 not allowed to execute some JavaScript code.
 This usually happen only on Mac when the browser used is not Safari.
 Is it the case ?

 Thanks,

 Seb


 --
 Frederic Cervenansky               Tel  : +33 (0)4 72 43 87 85
 CREATIS-LRMN                              +33 (0)6 14 88 51 49
 INSA - Batiment Blaise Pascal      Fax  : +33 (0)4 72 43 85 26
 69621 Villeurbanne Cedex
 France

 CREATIS home page : http://www.creatis.insa-lyon.fr



___
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] Newbie question

2011-07-11 Thread Sebastien Jourdain
Hi Tom,

You started well in the sense that the main page of ParaViewWeb is here:
http://www.paraview.org/Wiki/ParaViewWeb

Although, setting up a web server that use ParaView to generate
interactive 3D content requires to build the tools and most of its
dependency. On Unix type platform (Linux, Mac, ...) those steps are
easy to reproduce which is not the case on window if you never did it
before. Moreover, no-one (that I know of) ever deployed a ParaViewWeb
server on windows.
So you should consider ParaViewWeb as Unix only (server side).

If you managed to find a Linux or a Mac for your server, you will
first need to compile ParaView. I guess you should find enough
documentation on the web on how to do it. Once you achieved that, the
experience you gained during that process should help you
understanding what is written in the ParaViewWeb building page. If you
build ParaView, don't bother with the GUI and Qt part as it is not
needed for ParaViewWeb, just disable them at configuration time using
CMake.

If you need some explanation on how to build ParaView on Linux, then
post another email on the mailing list, some other community member
may be able to help.

Seb

On Sun, Jul 10, 2011 at 7:26 PM, Tom E tj...@hotmail.com wrote:
 Hello all, I'm sorry to post this, I've tried to find the answers myself but
 I'm afraid I need some remedial help.  I've been looking at the wiki pages
 and done a search here with MarkMail, but I'm afraid I need even more step
 by step instructions than I can find anywhere.

 My goal is to use Paraview to render a .vtk file inside a webpage so that
 others can view it and rotate it.  I found
 http://www.cmake.org/Wiki/ParaViewWeb_JavaScript_Introduction and I'm trying
 to get the header part set up.  I've downloaded TomCat and got that to run
 as localhost:8080, but I'm not sure how to obtain the PWService.war and
 pw-config.properties files.
 http://www.cmake.org/Wiki/ParaViewWeb_Building gives instructions for Unix
 but I'm running Windows XP.

 I'm not even sure I'm in the right place but my google searches sent me to
 cmake.org instead of paraview.org.  I'm afraid the instructions on
 http://www.paraview.org/Wiki/ParaView:Build_And_Install lose me completely.
 I've been trying to build Paraview with CMake thinking that was where those
 files would come from, but I'm getting errors generating it.  Honestly, I'm
 not even sure I'm on the right track at all.

 Can someone please walk me through the process?

 Thank you so much,

 Tom



 ___
 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] loading state file ParaviewWeb

2011-07-12 Thread Sebastien Jourdain
Hi Luca,

I guess you are talking about the PWApp which is a sample application
of ParaViewWeb therefore is not really what ParaViewWeb can or can not
do. But the limitation that you see in the upload form was just made
to illustrate that is possible to filter. In fact in the configuration
file you can set as many file extension as you want as well as the
size limit or time to live.

So yes, you can upload state files, but you won't be able to load them
inside PWApp like that. You will need to customize the servlet that
take care of the upload and instead of writing the file in the
pw.gwt-app.data directory use the pw.gwt-app.states directory for
.pvsm files. Unfortunately not all the state files will be supported
by the PWApp as PWApp expect a very specific pipeline naming.

Although, I don't know if you are aware or not of the PWStates
application that allow you to create Ad-hoc web application based on a
ParaView state file.

Hope this help,

Seb


On Tue, Jul 12, 2011 at 5:03 AM, Luca Cinquepalmi
cinquepa...@planetek.it wrote:
 Hi Seb,
 I would linke to upload a state file on ParaviewWeb (.pvsm file). Can I do
 this or I can only upload vtk and vtp file?
 Thank you.

 Luca

 Il 11/07/2011 15.45, Sebastien Jourdain ha scritto:

 Hi Tom,

 You started well in the sense that the main page of ParaViewWeb is here:
 http://www.paraview.org/Wiki/ParaViewWeb

 Although, setting up a web server that use ParaView to generate
 interactive 3D content requires to build the tools and most of its
 dependency. On Unix type platform (Linux, Mac, ...) those steps are
 easy to reproduce which is not the case on window if you never did it
 before. Moreover, no-one (that I know of) ever deployed a ParaViewWeb
 server on windows.
 So you should consider ParaViewWeb as Unix only (server side).

 If you managed to find a Linux or a Mac for your server, you will
 first need to compile ParaView. I guess you should find enough
 documentation on the web on how to do it. Once you achieved that, the
 experience you gained during that process should help you
 understanding what is written in the ParaViewWeb building page. If you
 build ParaView, don't bother with the GUI and Qt part as it is not
 needed for ParaViewWeb, just disable them at configuration time using
 CMake.

 If you need some explanation on how to build ParaView on Linux, then
 post another email on the mailing list, some other community member
 may be able to help.

 Seb

 On Sun, Jul 10, 2011 at 7:26 PM, Tom Etj...@hotmail.com  wrote:

 Hello all, I'm sorry to post this, I've tried to find the answers myself
 but
 I'm afraid I need some remedial help.  I've been looking at the wiki
 pages
 and done a search here with MarkMail, but I'm afraid I need even more
 step
 by step instructions than I can find anywhere.

 My goal is to use Paraview to render a .vtk file inside a webpage so that
 others can view it and rotate it.  I found
 http://www.cmake.org/Wiki/ParaViewWeb_JavaScript_Introduction and I'm
 trying
 to get the header part set up.  I've downloaded TomCat and got that to
 run
 as localhost:8080, but I'm not sure how to obtain the PWService.war and
 pw-config.properties files.
 http://www.cmake.org/Wiki/ParaViewWeb_Building gives instructions for
 Unix
 but I'm running Windows XP.

 I'm not even sure I'm in the right place but my google searches sent me
 to
 cmake.org instead of paraview.org.  I'm afraid the instructions on
 http://www.paraview.org/Wiki/ParaView:Build_And_Install lose me
 completely.
 I've been trying to build Paraview with CMake thinking that was where
 those
 files would come from, but I'm getting errors generating it.  Honestly,
 I'm
 not even sure I'm on the right track at all.

 Can someone please walk me through the process?

 Thank you so much,

 Tom



 ___
 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] loading state file ParaviewWeb

2011-07-12 Thread Sebastien Jourdain
When you load your state inside the regular ParaView (Qt client), do
you see something ?

If your state use a file, and if that file do not have the same path
between the computer where the state has been generated and the
server, you will need to update the path and make sure that the file
is available on the server.

This state update is dynamically possible with the PWStates
application. If you edit your application, you are able to change the
path of the state file, although you still need to have that data file
on the server.

Seb

On Tue, Jul 12, 2011 at 11:01 AM, Luca Cinquepalmi
cinquepa...@planetek.it wrote:
 Hi Seb,
 ok... I tried with PWStates... My pvsm file was created with python... and
 it recalls some paraview commands. As indicated in user's guide, I created a
 new application, but when I load it nothing appears... can you suggest a
 more detailed PWStates user's guide? thank you.

 Luca

 Il 12/07/2011 14:37, Sebastien Jourdain ha scritto:

 Hi Luca,

 I guess you are talking about the PWApp which is a sample application
 of ParaViewWeb therefore is not really what ParaViewWeb can or can not
 do. But the limitation that you see in the upload form was just made
 to illustrate that is possible to filter. In fact in the configuration
 file you can set as many file extension as you want as well as the
 size limit or time to live.

 So yes, you can upload state files, but you won't be able to load them
 inside PWApp like that. You will need to customize the servlet that
 take care of the upload and instead of writing the file in the
 pw.gwt-app.data directory use the pw.gwt-app.states directory for
 .pvsm files. Unfortunately not all the state files will be supported
 by the PWApp as PWApp expect a very specific pipeline naming.

 Although, I don't know if you are aware or not of the PWStates
 application that allow you to create Ad-hoc web application based on a
 ParaView state file.

 Hope this help,

 Seb


 On Tue, Jul 12, 2011 at 5:03 AM, Luca Cinquepalmi
 cinquepa...@planetek.it  wrote:

 Hi Seb,
 I would linke to upload a state file on ParaviewWeb (.pvsm file). Can I
 do
 this or I can only upload vtk and vtp file?
 Thank you.

 Luca

 Il 11/07/2011 15.45, Sebastien Jourdain ha scritto:

 Hi Tom,

 You started well in the sense that the main page of ParaViewWeb is here:
 http://www.paraview.org/Wiki/ParaViewWeb

 Although, setting up a web server that use ParaView to generate
 interactive 3D content requires to build the tools and most of its
 dependency. On Unix type platform (Linux, Mac, ...) those steps are
 easy to reproduce which is not the case on window if you never did it
 before. Moreover, no-one (that I know of) ever deployed a ParaViewWeb
 server on windows.
 So you should consider ParaViewWeb as Unix only (server side).

 If you managed to find a Linux or a Mac for your server, you will
 first need to compile ParaView. I guess you should find enough
 documentation on the web on how to do it. Once you achieved that, the
 experience you gained during that process should help you
 understanding what is written in the ParaViewWeb building page. If you
 build ParaView, don't bother with the GUI and Qt part as it is not
 needed for ParaViewWeb, just disable them at configuration time using
 CMake.

 If you need some explanation on how to build ParaView on Linux, then
 post another email on the mailing list, some other community member
 may be able to help.

 Seb

 On Sun, Jul 10, 2011 at 7:26 PM, Tom Etj...@hotmail.com    wrote:

 Hello all, I'm sorry to post this, I've tried to find the answers
 myself
 but
 I'm afraid I need some remedial help.  I've been looking at the wiki
 pages
 and done a search here with MarkMail, but I'm afraid I need even more
 step
 by step instructions than I can find anywhere.

 My goal is to use Paraview to render a .vtk file inside a webpage so
 that
 others can view it and rotate it.  I found
 http://www.cmake.org/Wiki/ParaViewWeb_JavaScript_Introduction and I'm
 trying
 to get the header part set up.  I've downloaded TomCat and got that to
 run
 as localhost:8080, but I'm not sure how to obtain the PWService.war and
 pw-config.properties files.
 http://www.cmake.org/Wiki/ParaViewWeb_Building gives instructions for
 Unix
 but I'm running Windows XP.

 I'm not even sure I'm in the right place but my google searches sent me
 to
 cmake.org instead of paraview.org.  I'm afraid the instructions on
 http://www.paraview.org/Wiki/ParaView:Build_And_Install lose me
 completely.
 I've been trying to build Paraview with CMake thinking that was where
 those
 files would come from, but I'm getting errors generating it.  Honestly,
 I'm
 not even sure I'm on the right track at all.

 Can someone please walk me through the process?

 Thank you so much,

 Tom



 ___
 Powered by www.kitware.com

 Visit other Kitware open-source projects at
 http://www.kitware.com/opensource/opensource.html

 Please keep messages on-topic

Re: [Paraview] loading state file ParaviewWeb

2011-07-12 Thread Sebastien Jourdain
Ok great...

On Tue, Jul 12, 2011 at 11:34 AM, Luca Cinquepalmi
cinquepa...@planetek.it wrote:
 I solved! thanks

 Luca

 Il 12/07/2011 14:37, Sebastien Jourdain ha scritto:

 Hi Luca,

 I guess you are talking about the PWApp which is a sample application
 of ParaViewWeb therefore is not really what ParaViewWeb can or can not
 do. But the limitation that you see in the upload form was just made
 to illustrate that is possible to filter. In fact in the configuration
 file you can set as many file extension as you want as well as the
 size limit or time to live.

 So yes, you can upload state files, but you won't be able to load them
 inside PWApp like that. You will need to customize the servlet that
 take care of the upload and instead of writing the file in the
 pw.gwt-app.data directory use the pw.gwt-app.states directory for
 .pvsm files. Unfortunately not all the state files will be supported
 by the PWApp as PWApp expect a very specific pipeline naming.

 Although, I don't know if you are aware or not of the PWStates
 application that allow you to create Ad-hoc web application based on a
 ParaView state file.

 Hope this help,

 Seb


 On Tue, Jul 12, 2011 at 5:03 AM, Luca Cinquepalmi
 cinquepa...@planetek.it  wrote:

 Hi Seb,
 I would linke to upload a state file on ParaviewWeb (.pvsm file). Can I
 do
 this or I can only upload vtk and vtp file?
 Thank you.

 Luca

 Il 11/07/2011 15.45, Sebastien Jourdain ha scritto:

 Hi Tom,

 You started well in the sense that the main page of ParaViewWeb is here:
 http://www.paraview.org/Wiki/ParaViewWeb

 Although, setting up a web server that use ParaView to generate
 interactive 3D content requires to build the tools and most of its
 dependency. On Unix type platform (Linux, Mac, ...) those steps are
 easy to reproduce which is not the case on window if you never did it
 before. Moreover, no-one (that I know of) ever deployed a ParaViewWeb
 server on windows.
 So you should consider ParaViewWeb as Unix only (server side).

 If you managed to find a Linux or a Mac for your server, you will
 first need to compile ParaView. I guess you should find enough
 documentation on the web on how to do it. Once you achieved that, the
 experience you gained during that process should help you
 understanding what is written in the ParaViewWeb building page. If you
 build ParaView, don't bother with the GUI and Qt part as it is not
 needed for ParaViewWeb, just disable them at configuration time using
 CMake.

 If you need some explanation on how to build ParaView on Linux, then
 post another email on the mailing list, some other community member
 may be able to help.

 Seb

 On Sun, Jul 10, 2011 at 7:26 PM, Tom Etj...@hotmail.com    wrote:

 Hello all, I'm sorry to post this, I've tried to find the answers
 myself
 but
 I'm afraid I need some remedial help.  I've been looking at the wiki
 pages
 and done a search here with MarkMail, but I'm afraid I need even more
 step
 by step instructions than I can find anywhere.

 My goal is to use Paraview to render a .vtk file inside a webpage so
 that
 others can view it and rotate it.  I found
 http://www.cmake.org/Wiki/ParaViewWeb_JavaScript_Introduction and I'm
 trying
 to get the header part set up.  I've downloaded TomCat and got that to
 run
 as localhost:8080, but I'm not sure how to obtain the PWService.war and
 pw-config.properties files.
 http://www.cmake.org/Wiki/ParaViewWeb_Building gives instructions for
 Unix
 but I'm running Windows XP.

 I'm not even sure I'm in the right place but my google searches sent me
 to
 cmake.org instead of paraview.org.  I'm afraid the instructions on
 http://www.paraview.org/Wiki/ParaView:Build_And_Install lose me
 completely.
 I've been trying to build Paraview with CMake thinking that was where
 those
 files would come from, but I'm getting errors generating it.  Honestly,
 I'm
 not even sure I'm on the right track at all.

 Can someone please walk me through the process?

 Thank you so much,

 Tom



 ___
 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

Re: [Paraview] ParaViewWeb Server on Linux

2011-07-19 Thread Sebastien Jourdain
Hi Kasumi,

Could you be more precise on what you done from the FAQ and what did you get ?

1) Did you try to execute manually the PWServer executable based on
the path that is set inside TOMCAT_ROOT/lib/pw-config.properties. Did
it crash ?

2) Did you forget to start activemq ?

3) Is there any X running on your linux computer ?

4) Which user is running tomcat ?

Thanks,

Seb

On Tue, Jul 19, 2011 at 12:53 AM,  katsumi.sek...@unisys.co.jp wrote:
 Dear Sebastien,

 hello, long time no see. Thanks to your kind advices, I could get some
 war files in the Tomcat directory.

 But I try to execute samples, I see the page correctly,  but not the 3D
 content of the view.

 I check FAQ http://www.vtk.org/Wiki/ParaViewWeb/FAQ and follow the
 chekpoint as written, but I can't see the 3D content of the view now.

 I also check log file in the Tomcat directory named pw-out-?,
 those files say as following,

 -

 JMS Initialized in 0.631006 seconds
 sessionID : 98307
 logLevel : ERROR
 Processing Engine Initialized in 1.77516 seconds

 Processing engine is started !

 --

 The Web service seems to work normally. And I can't understand
 what is wrong.
 So... please let me know how can I fix this problem.

 Best regards,

 Katsumi SEKIDO

 -Original Message-
 From: Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
 Sent: Thursday, June 02, 2011 9:03 PM
 To: Sekido, Katsumi
 Cc: paraview@paraview.org
 Subject: Re: ParaViewWeb Server on Linux

 in fact the pw directory is the source directory of ParaViewWeb.
 Moreover, the documentation explain how to compile each
 component independently from each other, but if you simply
 turn ON all the options, you will get everything at once.

 Seb

 On Thu, Jun 2, 2011 at 3:05 AM,  katsumi.sek...@unisys.co.jp wrote:
  Dear Sebastien,
 
  hello, thanks to your support, I could fix the make-process issue.
  But in the next phase, I met a trouble again...
  By the manual, I have to ccmake ../pw but there are no pw
  directory, so I searched a suitable directory by grep
  CORE_SERVICE_URL, but there are no files that contain
 CORE_SERVICE_URL. So I missed the pw
  directory.
  What directory shoud I indicate as the pw directory?
 
  Best regards,
 
  Katsumi SEKIDO
 
  -Original Message-
  From: Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
  Sent: Wednesday, June 01, 2011 8:17 PM
  To: Sekido, Katsumi
  Cc: paraview@paraview.org
  Subject: Re: ParaViewWeb Server on Linux
 
  Hi Katsumi,
 
  this issue is related to a miss-matching version of ParaView and
  ParaViewWeb.
  This previous message explain how to fix that issue.
 
  http://markmail.org/message/ws3rufiq3lni2ffs
 
  Seb
 
  On Wed, Jun 1, 2011 at 3:16 AM,
 katsumi.sek...@unisys.co.jp wrote:
   Dear Sebastien,
  
   hello, I re-install cmake from binary distribution, ccmake
  becomes to work!
  
   And I tried the abusolute path instead of  the relative
  path, so the
   situation progressed.(Makefile has generated)
  
   But in make process, following error has occered.
  
  
 
 -
  -
   --
   :
   :
   [ 52%] Built target ParaWebPlugin
   [ 57%] Building CXX object
   ParaViewAdapter/CMakeFiles/PWServer.dir/main.cxx.o
   /root/ParaViewWeb/ParaViewAdapter/main.cxx: In function int
  main(int, char**):
   /root/ParaViewWeb/ParaViewAdapter/main.cxx:41: error
  PROCESS_CLIENT is
   not a member of 'vtkProcessModule
  
  
 
 -
  -
   
  
   I checked ParaViewWeb/ParaViewAdapter/main.cxx and
  ParaView-3.10.1/Servers/Common/vtkProcessModule.h.
   Certainly main.cxx refers PROCESS_CLIENT but this symbol
  is not defined in vtkProcessModule.h and other all files...
  
   How can I resolve this problem?
  
   Best regards,
  
   Katsumi SEKIDO
  
   -Original Message-
   From: Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
   Sent: Tuesday, May 31, 2011 8:38 PM
   To: Sekido, Katsumi
   Cc: paraview@paraview.org
   Subject: Re: ParaViewWeb Server on Linux
  
   Hi Katsumi,
  
   if you have a server X running, you can launch cmake-gui
  which will
   pop-up a graphical application ?
   On the other hand, could you explain why ccmake is not working ?
  
   Moreover, use absolute path inside your configuration
  instead of the
   relative ones.
   And the error that you are seeing is because you need to
  point to the
   build directory of ParaView so you can build one of the
 components
   needed by ParaViewWeb.
  
   Seb
  
   PS: You shouldn't change anything from the source directory.
   And if you use cmake instead of ccmake, it should work
 in the same
   way but less interactively. But the file that you can
  change inside
   the build directory

Re: [Paraview] ParaViewWeb Server on Linux

2011-07-21 Thread Sebastien Jourdain
Hi Katsumi,

Just for my knowledge, what kind of Linux distribution are you using ?
I'm getting confused about the /usr/local location.
Did you untar the package yourself or did you used the system package manager ?

Then several comments, based on what I can understand from what you said.

1) Based on the log file, it seems that you try to start tomcat while
it was already running. You should make sure that it is stop before
starting it. Here is a good tip.

## Make sure tomcat is not running anymore
 ps aux | grep tomcat | grep java
## if any process found, just kill them gently by executing
 kill the-correct-process-id

2) In one of my previous question you half replied to it.

 3) Is there any X running on your linux computer ?
 Yes there is X on my computer.

The running word is very important, in fact, tomcat has to be
started by a user that has a X context defined. Otherwise you will
need to follow those instructions:
http://www.paraview.org/Wiki/ParaViewWeb_with_system_tomcat_package

3) So what user is running tomcat ? tomcat6, root ? From where ? A
terminal from X or ssh ?

4) As you are doing all of this as root, please make sure you know
what you are doing. Otherwise, you can simply create a paraviewweb
user and do everything inside its home directory. The only thing is
that you will have to make sure that no other tomcat is running on the
computer otherwise you will still have this exception
java.net.BindException: Address already in use null:8080

Hope this give you enough points to look into.

Seb




On Thu, Jul 21, 2011 at 12:19 AM,  katsumi.sek...@unisys.co.jp wrote:
 Dear  Sebastien,

 hello, I will explain the environment. I installed Tomcat in /usr/local and
 built ParaViewWeb in /root. ( Both operations are done as root ).
 And I copied war files in Tomcat directory following the manual.

 Then can you send me (offlist if you want) the catalina.out
 file that is inside TOMCAT_HOME/logs directory.

 Thank you very much for your kind support. I will attach log files.

 Best regards,

 Katsumi SEKIDO

 -Original Message-
 From: Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
 Sent: Wednesday, July 20, 2011 9:19 PM
 To: Sekido, Katsumi
 Cc: paraview@paraview.org
 Subject: Re: ParaViewWeb Server on Linux

 Hi Katsumi,

 running applications like that as root is bad, but this won't
 affect the capability of the software to run.
 So just to sum up and make sure I get what you are saying.

 As root, in your home directory (/root/) you did un-tar a
 tomcat package where you deployed the ParaViewWeb
 applications. Is that correct ?
 Then can you send me (offlist if you want) the catalina.out
 file that is inside TOMCAT_HOME/logs directory.

 Thanks,

 Seb

 On Wed, Jul 20, 2011 at 12:39 AM,
 katsumi.sek...@unisys.co.jp wrote:
  Dear  Sebastien,
  hello, thank you for reply. I will respond to your
 questions as follows.
 
  1) Did you try to execute manually the PWServer executable
 based on
  the path that is set inside
 TOMCAT_ROOT/lib/pw-config.properties. Did
  it crash ?
 
  Yes I did. And it didn't crash.
 
  2) Did you forget to start activemq ?
 
  No, I started activemq.
 
  3) Is there any X running on your linux computer ?
 
  Yes there is X on my computer.
 
  4) Which user is running tomcat ?
 
  The user is root(=super user)... Is this user wrong?
 
  Best regards,
 
  Katsumi SEKIDO
 
 
  -Original Message-
  From: Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
  Sent: Tuesday, July 19, 2011 9:44 PM
  To: Sekido, Katsumi
  Cc: paraview@paraview.org
  Subject: Re: ParaViewWeb Server on Linux
 
  Hi Kasumi,
 
  Could you be more precise on what you done from the FAQ
 and what did
  you get ?
 
  1) Did you try to execute manually the PWServer executable
 based on
  the path that is set inside
 TOMCAT_ROOT/lib/pw-config.properties. Did
  it crash ?
 
  2) Did you forget to start activemq ?
 
  3) Is there any X running on your linux computer ?
 
  4) Which user is running tomcat ?
 
  Thanks,
 
  Seb
 
  On Tue, Jul 19, 2011 at 12:53 AM,
  katsumi.sek...@unisys.co.jp wrote:
   Dear Sebastien,
  
   hello, long time no see. Thanks to your kind advices, I
  could get some
   war files in the Tomcat directory.
  
   But I try to execute samples, I see the page correctly,
  but not the
   3D content of the view.
  
   I check FAQ http://www.vtk.org/Wiki/ParaViewWeb/FAQ and
 follow the
   chekpoint as written, but I can't see the 3D content of the
  view now.
  
   I also check log file in the Tomcat directory named
 pw-out-?,
   those files say as following,
  
   -
  
   JMS Initialized in 0.631006 seconds sessionID : 98307 logLevel :
   ERROR Processing Engine Initialized in 1.77516 seconds
  
   Processing engine is started !
  
   --
  
   The Web service seems to work normally. And I can't
  understand what is
   wrong.
   So... please let me

Re: [Paraview] ParaViewWeb build - PWServer

2011-08-10 Thread Sebastien Jourdain
Hi Max,

there is two things happening here.

The first one is related to an API change in ActiveMQ-cpp which induce
this compilation issue. Although it happen that I was working on that
part lately and managed to use activemq-cpp 3.4 on a linux machine. To
do so, you will need to edit the ParaViewWeb source code. I've paste
the small diff at the end of that mail.

The second issue is related to the ParaView version that you are
using. Before getting further, you should either use 3.10.1 or
git/master. But depending on the version, you have to checkout a given
tag on the ParaViewWeb git repository.

Hope this help,

Seb


In file : /ParaViewAdapter/vtkPWJMSMessagingService.cxx

-vtkPWJMSMessagingService::~vtkPWJMSMessagingService()
+vtkPWJMSMessagingService::~vtkPWJMSMessagingService() throw()

[...]

-void vtkPWJMSMessagingService::onMessage(const cms::Message *message)
+void vtkPWJMSMessagingService::onMessage(const cms::Message *message) throw()

In file: /ParaViewAdapter/vtkPWJMSMessagingService.h

-  void onMessage(const cms::Message *message);
+  void onMessage(const cms::Message *message) throw();

[...]

-  ~vtkPWJMSMessagingService();
+   ~vtkPWJMSMessagingService() throw();
___
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] ParaViewWeb build - PWServer

2011-08-10 Thread Sebastien Jourdain
Moreover, all the version of activemq-cpp can be found here:
http://activemq.apache.org/cms/download.html

On Wed, Aug 10, 2011 at 11:54 AM, Sebastien Jourdain
sebastien.jourd...@kitware.com wrote:
 Hi Max,

 there is two things happening here.

 The first one is related to an API change in ActiveMQ-cpp which induce
 this compilation issue. Although it happen that I was working on that
 part lately and managed to use activemq-cpp 3.4 on a linux machine. To
 do so, you will need to edit the ParaViewWeb source code. I've paste
 the small diff at the end of that mail.

 The second issue is related to the ParaView version that you are
 using. Before getting further, you should either use 3.10.1 or
 git/master. But depending on the version, you have to checkout a given
 tag on the ParaViewWeb git repository.

 Hope this help,

 Seb

 
 In file : /ParaViewAdapter/vtkPWJMSMessagingService.cxx

 -vtkPWJMSMessagingService::~vtkPWJMSMessagingService()
 +vtkPWJMSMessagingService::~vtkPWJMSMessagingService() throw()

 [...]

 -void vtkPWJMSMessagingService::onMessage(const cms::Message *message)
 +void vtkPWJMSMessagingService::onMessage(const cms::Message *message) throw()

 In file: /ParaViewAdapter/vtkPWJMSMessagingService.h

 -  void onMessage(const cms::Message *message);
 +  void onMessage(const cms::Message *message) throw();

 [...]

 -  ~vtkPWJMSMessagingService();
 +   ~vtkPWJMSMessagingService() throw();

___
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] ParaViewWeb build - PWServer

2011-08-10 Thread Sebastien Jourdain
Hi Max,

Great ! Did you managed to deploy and test the sample applications yourself ?
Just to my knowledge how did you install activemq-cpp ? Did you used
your system package system or you build it from the source ?

Thanks for your feedback,

Seb

On Wed, Aug 10, 2011 at 12:40 PM, WILKINSON M.
maxwell.wilkin...@durham.ac.uk wrote:
 Hi Seb

 Thanks for the swift reply. I now have PWServer compiled using activemq-cpp
 3.4.0, all tests were passed and it is now installed :)

 Max


 -Original Message-
 From: Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
 Sent: Wed 10/08/11 16:56
 To: WILKINSON M.
 Cc: paraview@paraview.org
 Subject: Re: [Paraview] ParaViewWeb build - PWServer

 Moreover, all the version of activemq-cpp can be found here:
 http://activemq.apache.org/cms/download.html

 On Wed, Aug 10, 2011 at 11:54 AM, Sebastien Jourdain
 sebastien.jourd...@kitware.com wrote:
 Hi Max,

 there is two things happening here.

 The first one is related to an API change in ActiveMQ-cpp which induce
 this compilation issue. Although it happen that I was working on that
 part lately and managed to use activemq-cpp 3.4 on a linux machine. To
 do so, you will need to edit the ParaViewWeb source code. I've paste
 the small diff at the end of that mail.

 The second issue is related to the ParaView version that you are
 using. Before getting further, you should either use 3.10.1 or
 git/master. But depending on the version, you have to checkout a given
 tag on the ParaViewWeb git repository.

 Hope this help,

 Seb

 
 In file : /ParaViewAdapter/vtkPWJMSMessagingService.cxx

 -vtkPWJMSMessagingService::~vtkPWJMSMessagingService()
 +vtkPWJMSMessagingService::~vtkPWJMSMessagingService() throw()

 [...]

 -void vtkPWJMSMessagingService::onMessage(const cms::Message *message)
 +void vtkPWJMSMessagingService::onMessage(const cms::Message *message)
 throw()

 In file: /ParaViewAdapter/vtkPWJMSMessagingService.h

 -  void onMessage(const cms::Message *message);
 +  void onMessage(const cms::Message *message) throw();

 [...]

 -  ~vtkPWJMSMessagingService();
 +   ~vtkPWJMSMessagingService() throw();



___
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] ParaViewWeb build - PWServer

2011-08-10 Thread Sebastien Jourdain
Hi Max,

the wiki might be confusing, but each time the CMake step are similar
in the sense that the wiki highlight each property setting needed for
each individual component of ParaViewWeb, but as you might want to
build the full ParaViewWeb, you should setup everything at once. No
need to stop/start CMake as many time as ParaViewWeb has components.

Seb

On Wed, Aug 10, 2011 at 5:13 PM, WILKINSON M.
maxwell.wilkin...@durham.ac.uk wrote:
 Hi Seb,

 I haven't got to deployment just yet, I'm trying to build PWService at the
 moment.

 For PWServer, I downloaded activemq-cpp 3.4.0 as source and compiled using
 the instructions in the wiki:

 --
 ActiveMQ-CPP

 ActiveMQ-CPP is needed for the compilation and the execution of the
 application. Therefore, you will need to download the source files at the
 following url http://activemq.apache.org/cms/download.html. As of
 (06/28/2010) activemq-cpp 3.2 appears to have a bug in it. Please use
 activemq-cpp 3.1.x. Then you will need to build that library. The command
 line given below are for Unix systems.

    ./configure
    make
    sudo make install

 Make sure that you have all the dependency needed to build this library.
 Here are the required package for Debian/Ubuntu:

  apt-get install build-essential libaprutil1-dev libapreq2-dev apache2-utils
 python-dev cmake-curses-gui uuid-dev libapr1 libapreq2-dev

 --

 In order to build PWService, should I continue to use the ./build-pw and
 ./install-pw directories carried over from the build of PWServer?

 I'm following the instructions from the wiki, given below:

 --

 Configuration and building

 The PWService do not require any sample to work, therefore we will focusing
 on building only the core service with all the settings that are mandatory.
 The command line given below are for Unix systems and paths are given as
 example.

    mkdir build-pw install-pw  Optional if you've done
    cd build-pw    it for ParaviewAdapter
    ccmake ../SOURCE_DIR

 --

 Should the ccmake source directory be set to ../ParaViewWeb or should I use
 one of the sub-directories?

 I'm hoping to have the sample applications running soon!

 Thanks

 Max


 -Original Message-
 From: Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
 Sent: Wed 10/08/11 19:51
 To: WILKINSON M.
 Cc: paraview@paraview.org
 Subject: Re: [Paraview] ParaViewWeb build - PWServer

 Hi Max,

 Great ! Did you managed to deploy and test the sample applications yourself
 ?
 Just to my knowledge how did you install activemq-cpp ? Did you used
 your system package system or you build it from the source ?

 Thanks for your feedback,

 Seb

 On Wed, Aug 10, 2011 at 12:40 PM, WILKINSON M.
 maxwell.wilkin...@durham.ac.uk wrote:
 Hi Seb

 Thanks for the swift reply. I now have PWServer compiled using
 activemq-cpp
 3.4.0, all tests were passed and it is now installed :)

 Max


 -Original Message-
 From: Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
 Sent: Wed 10/08/11 16:56
 To: WILKINSON M.
 Cc: paraview@paraview.org
 Subject: Re: [Paraview] ParaViewWeb build - PWServer

 Moreover, all the version of activemq-cpp can be found here:
 http://activemq.apache.org/cms/download.html

 On Wed, Aug 10, 2011 at 11:54 AM, Sebastien Jourdain
 sebastien.jourd...@kitware.com wrote:
 Hi Max,

 there is two things happening here.

 The first one is related to an API change in ActiveMQ-cpp which induce
 this compilation issue. Although it happen that I was working on that
 part lately and managed to use activemq-cpp 3.4 on a linux machine. To
 do so, you will need to edit the ParaViewWeb source code. I've paste
 the small diff at the end of that mail.

 The second issue is related to the ParaView version that you are
 using. Before getting further, you should either use 3.10.1 or
 git/master. But depending on the version, you have to checkout a given
 tag on the ParaViewWeb git repository.

 Hope this help,

 Seb

 
 In file : /ParaViewAdapter/vtkPWJMSMessagingService.cxx

 -vtkPWJMSMessagingService::~vtkPWJMSMessagingService()
 +vtkPWJMSMessagingService::~vtkPWJMSMessagingService() throw()

 [...]

 -void vtkPWJMSMessagingService::onMessage(const cms::Message *message)
 +void vtkPWJMSMessagingService::onMessage(const cms::Message *message)
 throw()

 In file: /ParaViewAdapter/vtkPWJMSMessagingService.h

 -  void onMessage(const cms::Message *message);
 +  void onMessage(const cms::Message *message) throw();

 [...]

 -  ~vtkPWJMSMessagingService();
 +   ~vtkPWJMSMessagingService() throw();





___
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

Re: [Paraview] ParaViewWeb build - PWServer

2011-08-11 Thread Sebastien Jourdain
Did you properly set the working directory in the CMake configuration.
If so, just try to delete the database by removing the database
directory in the  working directory that you set in CMake.

Seb

On Thu, Aug 11, 2011 at 5:35 PM, WILKINSON M.
maxwell.wilkin...@durham.ac.uk wrote:
 Hi Seb

 To answer my previous email, I've managed to build all the components. I'm
 able to load each of the .war components in my browser from
 http://localhost:8080/PW/PWApp.html

 However when I try to load a visualization using PWApp, for example the
 wavelet dataset, I'm given the error:

 'An error occured during the loading.
 org.hibernate.exception.GenericJDBCException: Cannot open connection'

 Are you able to suggest a solution?

 I have checked activemq is running using ./activemq status

 I'm nearly there!

 Thanks
 Max

 -Original Message-
 From: WILKINSON M.
 Sent: Thu 11/08/11 21:19
 To: Sebastien Jourdain
 Subject: RE: [Paraview] ParaViewWeb build - PWServer

 Hi Seb

 Thanks for your reply, I understand the ccmake process now. I've managed to
 build PWServer and PWService.

 I've added:
 PWService.war to ../tomcat/webapps/
 pw-config.properties to ../tomcat/lib/

 However, the host cannot find http://localhost:8080/PWService

 If I go to http://localhost:8080/ I get the tomcat default home page, so I
 think tomcat is working okay.

 From within ccmake, there was no entry for CORE_SERVICE_URL available, so I
 could not specify http://localhost:8080/PWService

 The ccmake parameters available are as follows:

 ../build-pw$ ccmake ../ParaViewWeb/

  ACTIVEMQ_CPP
 /usr/local/lib/libactivemq-cpp.so
  ACTIVEMQ_INCLUDE_DIR
 /usr/local/include/activemq-cpp-3.4.0
  ANT_EXECUTABLE
 /usr/share/ant/bin/ant
  BUILD_CONSOLE_SAMPLE
 ON
  BUILD_FLEX_RENDERER
 OFF
  BUILD_MANTA_SAMPLE
 OFF
  BUILD_PW_SERVER
 ON
  BUILD_REMOTE_LAUNCHER
 OFF
  BUILD_SANDBOX_SAMPLE
 OFF
  BUILD_SHUTTLE
 ON
  BUILD_SIMPLE_JS
 ON
  BUILD_STATE_APP_BUILDER
 ON
  BUILD_TESTING
 ON
  BUILD_WEB_APPLICATION
 OFF
  BUILD_WEB_SAMPLES
 OFF
  BUILD_WEB_SERVICE
 ON
  BZRCOMMAND
 BZRCOMMAND-NOTFOUND
  CMAKE_AR
 /usr/bin/ar
  CMAKE_BUILD_TYPE
 Debug
  CMAKE_COLOR_MAKEFILE
 ON
  CMAKE_CXX_COMPILER
 /usr/bin/c++
  CMAKE_CXX_FLAGS
  CMAKE_CXX_FLAGS_DEBUG
 -g
  CMAKE_CXX_FLAGS_MINSIZEREL   -Os
 -DNDEBUG
  CMAKE_CXX_FLAGS_RELEASE  -O3
 -DNDEBUG
  CMAKE_CXX_FLAGS_RELWITHDEBINFO   -O2
 -g
  CMAKE_C_COMPILER
 /usr/bin/gcc
  CMAKE_C_FLAGS
  CMAKE_C_FLAGS_DEBUG
 -g
  CMAKE_C_FLAGS_MINSIZEREL -Os
 -DNDEBUG
  CMAKE_C_FLAGS_RELEASE    -O3
 -DNDEBUG
  CMAKE_C_FLAGS_RELWITHDEBINFO -O2
 -g
  CMAKE_EXE_LINKER_FLAGS
  CMAKE_EXE_LINKER_FLAGS_DEBUG
  CMAKE_EXE_LINKER_FLAGS_MINSIZE
  CMAKE_EXE_LINKER_FLAGS_RELEASE
  CMAKE_EXE_LINKER_FLAGS_RELWITH
  CMAKE_INSTALL_PREFIX
 /home/max/Downloads/install-pw
  CMAKE_LINKER
 /usr/bin/ld
  CMAKE_MAKE_PROGRAM
 /usr/bin/make
  CMAKE_MODULE_LINKER_FLAGS
  CMAKE_MODULE_LINKER_FLAGS_DEBU
  CMAKE_MODULE_LINKER_FLAGS_MINS
  CMAKE_MODULE_LINKER_FLAGS_RELE
  CMAKE_MODULE_LINKER_FLAGS_RELW
  CMAKE_NM
 /usr/bin/nm
  CMAKE_OBJCOPY
 /usr/bin/objcopy
  CMAKE_OBJDUMP
 /usr/bin/objdump
  CMAKE_RANLIB /usr/bin/ranlib
  CMAKE_SHARED_LINKER_FLAGS
  CMAKE_SHARED_LINKER_FLAGS_DEBU
  CMAKE_SHARED_LINKER_FLAGS_MINS
  CMAKE_SHARED_LINKER_FLAGS_RELE
  CMAKE_SHARED_LINKER_FLAGS_RELW
  CMAKE_SKIP_RPATH
 OFF
  CMAKE_STRIP
 /usr/bin/strip
  CMAKE_USE_RELATIVE_PATHS
 OFF
  CMAKE_VERBOSE_MAKEFILE
 OFF
  CORE_CTX_ROOT
 PWService
  COVERAGE_COMMAND
 /usr/bin/gcov
  CTEST_SUBMIT_RETRY_COUNT
 3
  CTEST_SUBMIT_RETRY_DELAY
 5
  CVSCOMMAND
 CVSCOMMAND-NOTFOUND
  CVS_UPDATE_OPTIONS   -d -A
 -P
  DART_TESTING_TIMEOUT
 1500
  GITCOMMAND
 /usr/bin/git
  GWT_SDK_HOME
  HGCOMMAND
 HGCOMMAND-NOTFOUND
  Java_JAR_EXECUTABLE
 /usr/bin/jar
  Java_JAVAC_EXECUTABLE
 /usr/bin/javac
  Java_JAVA_EXECUTABLE
 /usr/lib/jvm/java-6-sun-1.6.0.26/jre/bin/java
  LOGGING_LEVEL
 ERROR
  LOG_PARAVIEW
 OFF
  LOG_PARAWEB
 ON
  MAKECOMMAND  /usr/bin/make
 -i
  MEMORYCHECK_COMMAND
 MEMORYCHECK_COMMAND-NOTFOUND
  MEMORYCHECK_SUPPRESSIONS_FILE
  PV_ADAPTER_EXEC
 /home/max/Downloads/install-pw/bin/PWServer
  ParaView_DIR
 /home/max/Downloads/build-paraview
  SCPCOMMAND
 /usr/bin/scp
  SITE
 Vostro
  SLURM_SBATCH_COMMAND
 SLURM_SBATCH_COMMAND-NOTFOUND
  SLURM_SRUN_COMMAND
 SLURM_SRUN_COMMAND-NOTFOUND
  SVNCOMMAND
 SVNCOMMAND-NOTFOUND
  TCL_LIBRARY
  TK_LIBRARY
  WEB_DEPLOY
 OFF
  WORKING_DIR
 /home/max/Downloads/PW-work

 ---

 Could you suggest how to display CORE_SERVICE_URL and FLEX_HOME within
 ccmake?

 I think then the deployment should be successful.

 Thanks for your help.

 Max


 -Original Message-
 From: Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
 Sent: Thu 11/08/11 01:05
 To: WILKINSON M.
 Cc: paraview@paraview.org
 Subject: Re: [Paraview] ParaViewWeb build - PWServer

 Hi Max,

 the wiki might be confusing

Re: [Paraview] ParaViewWeb build - PWServer

2011-08-19 Thread Sebastien Jourdain
Hi Max,

thanks for sharing that with others.

Based on the latest informations that you are providing, it seems that
you use the tomcat from the system.
In order to ease the testing/deployment process of ParaViewWeb, you
should first try to run your own tomcat as your own user that should
not be root.
But as tomcat seems to work as a daemon (root/tomcat6), you have to
make sure you did stop it before starting your own tomcat.
Moreover, if you don't want to fall on previous error, just remove all
log files, so when you start tomcat, you are sure that the new log
files contains only the information of the current session. (You can
do the same with the database directory of ParaViewWeb)

Moreover, don't try to hot deploy ParaViewWeb while tomcat is running.

Seb

On Fri, Aug 19, 2011 at 3:51 PM, WILKINSON M.
maxwell.wilkin...@durham.ac.uk wrote:
 Hi all

 I'm having a problem with runtime configuration of ParaViewWeb.

 When I go to http://localhost:8080/PWApp and try to start a visualization,
 the loading screen hangs without error.

 In the log file for tomcat I'm given:

 SEVERE: Error initializing endpoint

 java.net.BindException: Address already in use null:8080

 This tells me that port 8080 is already in use.

 In the terminal if I do:

 $ netstat -lnp | grep 8080
 tcp6   0  0 :::8080 :::*
 LISTEN  2449/java

 $ ps -lf 2449
 F S UID    PID  PPID  C PRI  NI ADDR SZ WCHAN  STIME TTY    TIME CMD
 0 S root  2449 1  2  80   0 - 199655 futex_ 20:38 pts/0 0:04
 /usr/bin/java
 -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properti

 This tells me that tomcat is running on port 8080. Isn't this the port it
 should be running on? So what's the problem?

 If I shutdown tomcat
 $./shutdown.sh

 Then check port 8080 again, the process has been stopped:
 $ netstat -lnp | grep 8080
 $

 What exactly is wrong here? I've set up tomcat to use port 8080, but when I
 try to run ParaViewWeb through tomcat it complains that port 8080 is already
 in use?

 Thanks

 Also, for the archive, please find attached to the remainder of this post
 some answers to previous problems I've had while setting up ParaViewWeb.
 Hopefully these will be of use to other users. A big thank you to Sebastian
 for his help.

 Max

 -Original Message-
 From: Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
 Sent: Mon 15/08/11 21:31
 To: WILKINSON M.
 Subject: Re: [Paraview] ParaViewWeb build - PWServer

 are you sure you don't have any system tomcat already running...
 Otherwise, when you stop tomcat and restart it, you did not fully stop
 tomcat.

 To make sure that tomcat is not running anymore after you requested it
 to stop type the following command line.

 ps aux | grep java | grep tomcat

 If you still have a process just kill it before trying to starting it again.

 Seb

 On Mon, Aug 15, 2011 at 3:52 PM, WILKINSON M.
 maxwell.wilkin...@durham.ac.uk wrote:
 Hi Seb

 I have LD_LIBRARY_PATH set correctly using PWServer.sh

 When I start a session in PWApp the pw-out log file is as follows:

 -

 JMS Initialized in 0.118797 seconds
 sessionID : org.paraview.paraweb
 logLevel : ERROR
 Processing Engine Initialized in 2.14165 seconds

 Processing engine is started !
 -

 However the session hangs while it is still loading without any onscreen
 error.

 The log file for tomcat details the following:

 SEVERE: Error starting endpoint
 java.net.BindException: Address already in use null:8080

 SEVERE: Failed to start connector [Connector[HTTP/1.1-8080]]
 LifecycleException:  service.getName(): Catalina;  Protocol handler
 start
 failed: java.net.BindException: Address already in use null:8080

 -

 I have checked to see if I have other processes using port 8080:

 None are listed before running tomcat:
 $ sudo netstat -anp | grep 8080

 Once I start tomcat:
 $ sudo netstat -anp | grep 8080
 tcp6   0  0 :::8080 :::*
 LISTEN  2318/java

 Once I start firefox with /localhost:8080/PWApp/
 $ sudo netstat -anp | grep 8080
 tcp    0  0 127.0.0.1:38587 127.0.0.1:8080
 ESTABLISHED 1732/firefox-bin
 tcp6   0  0 :::8080 :::*
 LISTEN  2318/java
 tcp6   0  0 127.0.0.1:8080  127.0.0.1:38587
 ESTABLISHED

 Are these processes correct for port 8080 and are you able to suggest what
 the problem may be?

 Thanks for your patience!

 Max

 -Original Message-
 From: Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
 Sent: Sun 14/08/11 16:17
 To: WILKINSON M.
 Subject: Re: [Paraview] ParaViewWeb build - PWServer

 Hi Max,

 I think you successfully build everything. Now it is just a matter of
 runtime setting. Basically your LD_LIBRARY_PATH is not properly set so
 the ParaView shared library are not found.

 One way to solve that is to create an executable script PWServer.sh in
 the same location of the PWServer executable.
 In that script, you just set

Re: [Paraview] ParaViewWeb build - PWServer

2011-08-21 Thread Sebastien Jourdain
Hi Max,

I never get that error. It seems that the tomcat application (Java) is
sending an incomplete stream to the server PWServer (c++).
What is the content of the tomcat log ? (catalina.out)

What did you try to load with PWApp ? Did you check the PWService and
were you able to see the running process or the history of them ?

Thanks,

Seb

On Sun, Aug 21, 2011 at 11:33 AM, WILKINSON M.
maxwell.wilkin...@durham.ac.uk wrote:
 Hi

 I think I have solved the 8080 already in use issue. I did have tomcat
 running on startup, so I was running two instances, both trying to use port
 8080. I did check this a number of times, but I've only just realized
 exactly what the problem was.

 When running PWApp I now receive the following logged error messages from
 the ParaViewWeb working directory:

 ERROR: In
 /home/max/Downloads/ParaViewWeb/ParaViewAdapter/vtkPWJMSMessagingService.cxx,
 line 154
 vtkPWJMSMessagingService (0x14870f0): CMS Exception

 

 Also from pw-out-1.log: (I'm not sure if this is in fact an error)

 JMS Initialized in 0.115973 seconds

 sessionID : org.paraview.paraweb
 logLevel : ERROR
 Processing Engine Initialized in 2.20879 seconds

 Processing engine is started !
 Error message: DataInputStream::readLong - Reached EOF
 DataInputStream::readLong - Reached EOF
     FILE: decaf/io/DataInputStream.cpp, LINE: 495
     FILE: decaf/io/DataInputStream.cpp, LINE: 501
     FILE: decaf/io/DataInputStream.cpp, LINE: 129
     FILE: activemq/wireformat/openwire/OpenWireFormat.cpp, LINE: 265
     FILE: activemq/transport/IOTransport.cpp, LINE: 243

 

 I've searched for the above errors, but I couldn't find a solution.

 Could someone suggest what the problem may be?

 Thanks
 Max



 -Original Message-
 From: Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
 Sent: Fri 19/08/11 23:09
 To: WILKINSON M.
 Cc: paraview@paraview.org
 Subject: Re: [Paraview] ParaViewWeb build - PWServer

 Hi Max,

 thanks for sharing that with others.

 Based on the latest informations that you are providing, it seems that
 you use the tomcat from the system.
 In order to ease the testing/deployment process of ParaViewWeb, you
 should first try to run your own tomcat as your own user that should
 not be root.
 But as tomcat seems to work as a daemon (root/tomcat6), you have to
 make sure you did stop it before starting your own tomcat.
 Moreover, if you don't want to fall on previous error, just remove all
 log files, so when you start tomcat, you are sure that the new log
 files contains only the information of the current session. (You can
 do the same with the database directory of ParaViewWeb)

 Moreover, don't try to hot deploy ParaViewWeb while tomcat is running.

 Seb

 On Fri, Aug 19, 2011 at 3:51 PM, WILKINSON M.
 maxwell.wilkin...@durham.ac.uk wrote:
 Hi all

 I'm having a problem with runtime configuration of ParaViewWeb.

 When I go to http://localhost:8080/PWApp and try to start a visualization,
 the loading screen hangs without error.

 In the log file for tomcat I'm given:

 SEVERE: Error initializing endpoint

 java.net.BindException: Address already in use null:8080

 This tells me that port 8080 is already in use.

 In the terminal if I do:

 $ netstat -lnp | grep 8080
 tcp6   0  0 :::8080 :::*
 LISTEN  2449/java

 $ ps -lf 2449
 F S UID    PID  PPID  C PRI  NI ADDR SZ WCHAN  STIME TTY    TIME
 CMD
 0 S root  2449 1  2  80   0 - 199655 futex_ 20:38 pts/0 0:04
 /usr/bin/java
 -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properti

 This tells me that tomcat is running on port 8080. Isn't this the port it
 should be running on? So what's the problem?

 If I shutdown tomcat
 $./shutdown.sh

 Then check port 8080 again, the process has been stopped:
 $ netstat -lnp | grep 8080
 $

 What exactly is wrong here? I've set up tomcat to use port 8080, but when
 I
 try to run ParaViewWeb through tomcat it complains that port 8080 is
 already
 in use?

 Thanks

 Also, for the archive, please find attached to the remainder of this post
 some answers to previous problems I've had while setting up ParaViewWeb.
 Hopefully these will be of use to other users. A big thank you to
 Sebastian
 for his help.

 Max

 -Original Message-
 From: Sebastien Jourdain [mailto:sebastien.jourd...@kitware.com]
 Sent: Mon 15/08/11 21:31
 To: WILKINSON M.
 Subject: Re: [Paraview] ParaViewWeb build - PWServer

 are you sure you don't have any system tomcat already running...
 Otherwise, when you stop tomcat and restart it, you did not fully stop
 tomcat.

 To make sure that tomcat is not running anymore after you requested it
 to stop type the following command line.

 ps aux | grep java | grep tomcat

 If you still have a process just kill it before trying to starting it
 again.

 Seb

 On Mon, Aug 15, 2011 at 3:52 PM, WILKINSON M.
 maxwell.wilkin...@durham.ac.uk wrote:
 Hi Seb

 I have LD_LIBRARY_PATH set correctly using

Re: [Paraview] Regarding Paraview Web Visualization

2011-08-23 Thread Sebastien Jourdain
Hi Sudhir,

I'm glad you managed to deploy successfully ParaViewWeb specially with
the latest version of activemq-cpp.
Regarding your issue I have an idea, but I might need also some more
feedback from you.

First of all, what kind of data did you tried to render ? Did you
used, one of our sample application ? (PWApp ?)
During the configuration with CMake, what value did you set for the
path to the webgl javascript file ? (Sometime the automatic detection
doesn't seems to work properly.)

If you used you own application, you need to tell the server that it
should also generate a WebGL data structure.

Just let me know more about what you are doing so I could figure out
what is happening here.

Seb

On Tue, Aug 23, 2011 at 9:35 PM, Marcus D. Hanwell
marcus.hanw...@kitware.com wrote:
 On Tue, Aug 23, 2011 at 1:06 PM,  spat...@ibrainovative.com wrote:
 Dear Dr. Hanwell,
 How are you? I am writing you regarding installation of Paraview Web
 software.
 We trying to use the current version of Paraview Web software to Visualize
 some Medical data. We used guideline described on the Wiki page. It compiles
 fine and
 we can view data in 3D except for WebGL option. When we select WebGL options
 it
 gives following error:
 =
 SEVERE: Servlet.service() for servlet WebGL threw exception
 java.lang.NullPointerException
 at org.apache.catalina.connector.CoyoteWriter.write(CoyoteWriter.java:171)
 =
 A detailed version of logs are attached. We are using Ubuntu 11.04 OS.
 Here are the software version we used to compile and deploy ParaviewWeb:
 * Current version of Paraview (3.11.1 64-bit).
 * active-cpp-3.4.0
 * apache-tomcat-6.0.33, flex3, qooxdoo-1.5-sdk and gwt-2.0.3.
 * ParaviewWeb library
 We followed all steps to setup as described
 at http://www.itk.org/Wiki/ParaViewWeb_Building.
 I will really appreciate if you can provide some insight on error.
 Or, If you can provide contact information to whom I can contact regarding
 this issue.
 Sudhir Pathak,
 iBrainovative, Inc

 Hi Sudhir,

 I would suggest asking Sebastien in the first instance as he is
 responsible for a large portion of the development of ParaView Web.
 Both of us monitor the VTK user list where your questions are likely
 to be seen and answered by a wider cross section of the community.

 Hopefully Sebastien will have a better idea about how to fix the error
 you are seeing.

 Best wishes,

 Marcus
 --
 Marcus D. Hanwell, Ph.D.
 RD Engineer, Kitware Inc.
 (518) 881-4937

___
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] Regarding Paraview Web Visualization

2011-08-24 Thread Sebastien Jourdain
Hi Sudhir,

For the WEBGL_JAVASCRIPT_PATH, you must use a full path like that one
/home/seb/.../ParaViewWeb/WebServer/PWService/web/js/dev/

Otherwise, despite the fact you start tomcat as root, everything seems
to be fine.

Seb

On Wed, Aug 24, 2011 at 9:41 PM,  spat...@ibrainovative.com wrote:
 Hello Sebastien,
 Thanks for your quick reply.
 I am trying to render Sphere/Wavelet data from PWApp.
 I realized that webgl path was wrong it sets by default to /web/js/dev.
 Now I changed it to correct path (which is
 ParaViewWeb/WebServer/PWService/web/js/dev),
 but still error I am getting is same. I am sending you screenshot of CMake
 Configuration and related errors I am
 getting.
 Many Thanks,
 Sudhir

  Original Message 
 Subject: Re: Regarding Paraview Web Visualization
 From: Sebastien Jourdain sebastien.jourd...@kitware.com
 Date: Tue, August 23, 2011 6:54 pm
 To: spat...@ibrainovative.com, paraview@paraview.org
 Cc: Marcus D. Hanwell marcus.hanw...@kitware.com

 Hi Sudhir,

 I'm glad you managed to deploy successfully ParaViewWeb specially with
 the latest version of activemq-cpp.
 Regarding your issue I have an idea, but I might need also some more
 feedback from you.

 First of all, what kind of data did you tried to render ? Did you
 used, one of our sample application ? (PWApp ?)
 During the configuration with CMake, what value did you set for the
 path to the webgl javascript file ? (Sometime the automatic detection
 doesn't seems to work properly.)

 If you used you own application, you need to tell the server that it
 should also generate a WebGL data structure.

 Just let me know more about what you are doing so I could figure out
 what is happening here.

 Seb

 On Tue, Aug 23, 2011 at 9:35 PM, Marcus D. Hanwell
 marcus.hanw...@kitware.com wrote:
 On Tue, Aug 23, 2011 at 1:06 PM,  spat...@ibrainovative.com wrote:
 Dear Dr. Hanwell,
 How are you? I am writing you regarding installation of Paraview Web
 software.
 We trying to use the current version of Paraview Web software to
 Visualize
 some Medical data. We used guideline described on the Wiki page. It
 compiles
 fine and
 we can view data in 3D except for WebGL option. When we select WebGL
 options
 it
 gives following error:
 =
 SEVERE: Servlet.service() for servlet WebGL threw exception
 java.lang.NullPointerException
 at
 org.apache.catalina.connector.CoyoteWriter.write(CoyoteWriter.java:171)
 =
 A detailed version of logs are attached. We are using Ubuntu 11.04 OS.
 Here are the software version we used to compile and deploy ParaviewWeb:
 * Current version of Paraview (3.11.1 64-bit).
 * active-cpp-3.4.0
 * apache-tomcat-6.0.33, flex3, qooxdoo-1.5-sdk and gwt-2.0.3.
 * ParaviewWeb library
 We followed all steps to setup as described
 at http://www.itk.org/Wiki/ParaViewWeb_Building.
 I will really appreciate if you can provide some insight on error.
 Or, If you can provide contact information to whom I can contact
 regarding
 this issue.
 Sudhir Pathak,
 iBrainovative, Inc

 Hi Sudhir,

 I would suggest asking Sebastien in the first instance as he is
 responsible for a large portion of the development of ParaView Web.
 Both of us monitor the VTK user list where your questions are likely
 to be seen and answered by a wider cross section of the community.

 Hopefully Sebastien will have a better idea about how to fix the error
 you are seeing.

 Best wishes,

 Marcus
 --
 Marcus D. Hanwell, Ph.D.
 RD Engineer, Kitware Inc.
 (518) 881-4937


___
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: Regarding Paraview Web Visualization

2011-08-25 Thread Sebastien Jourdain
Just so anyone from the mailing list could fix temporary a bug with the
WebGL exporter.

-- Forwarded message --
From: Sebastien Jourdain sebastien.jourd...@kitware.com
Date: Thu, Aug 25, 2011 at 11:11 AM
Subject: Re: Regarding Paraview Web Visualization
To: spat...@ibrainovative.com


You can simply fix that by replacing the content of that method by

return false;

I've just created a bug for that. Thanks for reporting the issue.

Seb


On Thu, Aug 25, 2011 at 11:09 AM, spat...@ibrainovative.com wrote:

 Hello Sebastien,

 Yes it is crashing with exception 
 vtkPVSynchronizedRenderWindows::GetIsInCave():
 Assertion.
 I will try older version, which version of paraview you recommand ?

 Sudhir

   Original Message 
 Subject: Re: Regarding Paraview Web Visualization
 From: Sebastien Jourdain sebastien.jourd...@kitware.com
 Date: Thu, August 25, 2011 8:02 am
 To: spat...@ibrainovative.com

 Hi Sudhir,

 For now, there is no WebGL exporter inside VTK which will do what you
 expect. But this should be just a matter of time as we have all the pieces.
 ;-)

 Hum... I've managed to get an error with WebGL as well. What is your log of
 PWServer. (inside WORKING_DIR/logs/pw-out-x.log)
 If you have an exception and the server crash because of a
 vtkPVSynchronizedRenderWindows::GetIsInCave(): Assertion

 Then you can fix that by using an older version of ParaView till we fix
 that bug.

 Seb


___
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] paraviewweb on ubuntu server

2011-09-19 Thread Sebastien Jourdain
This seems to be related to OpenGL. Did you compile your own Mesa,
like describe in the wiki or did you do something else ?

Thanks,

Seb

PS: I've attached the ParaView mailing list so other could benefit
from that discussion.

On Mon, Sep 19, 2011 at 4:59 AM, Luca Cinquepalmi
cinquepalmi.l...@gmail.com wrote:
 Hi Seb
 I installed ParaviewWeb on a server with no problem, the bechmark works fine
 (the cube appears and rotates).
 I only have on problem when I upload vtk files. I'm not able to interact
 with the mouse.
 No operations can be done. In the log file this message appears:

 X Error of failed request:  GLXBadContextTag
   Major opcode of failed request:  155 (GLX)
   Minor opcode of failed request:  5 (X_GLXMakeCurrent)
   Serial number of failed request:  7595
   Current serial number in output stream:  7595

 what does it mean? how can i solve it?
 Thank you for your help.

 Luca

 2011/9/7 Sebastien Jourdain sebastien.jourd...@kitware.com

 That should be fine.

 You will have to compile paraview with osmesa, but if you follow the
 wiki, that should be just fine.

 Moreover, if you grab the latest sources, they will work with activemq-cpp
 3.4+

 Seb

 On Wed, Sep 7, 2011 at 5:51 PM, Luca Cinquepalmi
 cinquepalmi.l...@gmail.com wrote:
  Hi Seb,
  I would like to know if I could have some problems if I install
  PARAVIEWWEB
  on Ubuntu server. With Ubuntu desktop I had no problem, as you well
  know...
  What happens with Ubuntu server? Thank you.
 
  Luca
 
 
 


___
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] paraviewweb on ubuntu server

2011-09-19 Thread Sebastien Jourdain
Do you have a server X running ? If not, OSMesa is used but by default
it will find you system library that are very bad and very
inefficient.
Check this wiki page:
http://www.paraview.org/Wiki/ParaViewWeb_with_system_tomcat_package

Seb

On Mon, Sep 19, 2011 at 9:02 AM, Luca Cinquepalmi
cinquepalmi.l...@gmail.com wrote:
 No I didn't compile Mesa... What is it?
 I didn't do it also on my notebook... and PW works with no problem...

 Luca

 2011/9/19 Sebastien Jourdain sebastien.jourd...@kitware.com

 This seems to be related to OpenGL. Did you compile your own Mesa,
 like describe in the wiki or did you do something else ?

 Thanks,

 Seb

 PS: I've attached the ParaView mailing list so other could benefit
 from that discussion.

 On Mon, Sep 19, 2011 at 4:59 AM, Luca Cinquepalmi
 cinquepalmi.l...@gmail.com wrote:
  Hi Seb
  I installed ParaviewWeb on a server with no problem, the bechmark works
  fine
  (the cube appears and rotates).
  I only have on problem when I upload vtk files. I'm not able to interact
  with the mouse.
  No operations can be done. In the log file this message appears:
 
  X Error of failed request:  GLXBadContextTag
    Major opcode of failed request:  155 (GLX)
    Minor opcode of failed request:  5 (X_GLXMakeCurrent)
    Serial number of failed request:  7595
    Current serial number in output stream:  7595
 
  what does it mean? how can i solve it?
  Thank you for your help.
 
  Luca
 
  2011/9/7 Sebastien Jourdain sebastien.jourd...@kitware.com
 
  That should be fine.
 
  You will have to compile paraview with osmesa, but if you follow the
  wiki, that should be just fine.
 
  Moreover, if you grab the latest sources, they will work with
  activemq-cpp
  3.4+
 
  Seb
 
  On Wed, Sep 7, 2011 at 5:51 PM, Luca Cinquepalmi
  cinquepalmi.l...@gmail.com wrote:
   Hi Seb,
   I would like to know if I could have some problems if I install
   PARAVIEWWEB
   on Ubuntu server. With Ubuntu desktop I had no problem, as you well
   know...
   What happens with Ubuntu server? Thank you.
  
   Luca
  
  
  
 
 


___
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 not running!!!

2011-09-29 Thread Sebastien Jourdain
Why are you using Wine ? Can't you just run ParaView natively under your linux ?

On Thu, Sep 29, 2011 at 1:21 PM, John Drescher dresche...@gmail.com wrote:
 On Thu, Sep 29, 2011 at 1:18 PM, naveen kumar naveenn...@gmail.com wrote:
 Dear Paraview Users,

 i am new to paraviewer family.
 recently i installed the paraview  (paraview 3.10.1 and 3.8.1 32bit) in
 scietific linux 5.2 using wine.
 The installation was successful but when i run it,  it shows the initial
 logo of the paraview and disapears.

 how to overcome this problem pleas help me.


 run it from the terminal and see what the error message is.

 John
 ___
 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] Creation of new proxy vtkSMFileSeriesReaderProxy failed

2011-10-03 Thread Sebastien Jourdain
Hi Jean,

Yes we did some changes regarding the proxy definitions. We don't need
any more specific proxy code regarding the file serie reader.
To fix your XML, you should write it as follow:

ProxyGroup name=sources
   SourceProxy name=GPReader
 si_class=vtkSIFileSeriesReaderProxy
                          class=vtkFileSeriesReader
 file_name_method=SetFileName
      SubProxy
        Proxy name=Reader
          proxygroup=internal_sources proxyname=PhysicsReader
        /Proxy
      /SubProxy
  /ProxyGroup

Let us know either way if it did solve your issue or solved it.

Thanks,

Seb

PS: You can check the current definitions for readers that are in the
ParaViewCore/ServerImplementation/Resources/readers.xml if you want
to.

On Mon, Oct 3, 2011 at 8:52 AM, Favre  Jean jfa...@cscs.ch wrote:
 Hello List

 I am checking my private plugins, (compiled, and tested successfully under 
 3.10) under the RC2 for v3.12. Configuration, compilation show no warnings or 
 errors. When loading manually, paraview crashes with the following message:

 Plugin's signature: paraviewplugin|GNU|3.12
 Plugin signature verification successful.
 Now loading components from the plugin instance based on the interfaces it 
 implements.

 Warning: In 
 /apps/eiger/src/ParaView/ParaViewCore/ServerManager/vtkSMProxyManager.cxx, 
 line 327
 vtkSMProxyManager (0xd70080): Creation of new proxy 
 vtkSMFileSeriesReaderProxy failed (sources, GPReader).

 Segmentation fault

 The question is:  Has anything changed with respect to FileSeries and the xml 
 definitions?

 I use this:

  ProxyGroup name=internal_sources
  SourceProxy name=PhysicsReader
  /SourceProxy
  /ProxyGroup

  ProxyGroup name=sources
   FileSeriesReaderProxy name=GPReader
                          class=vtkFileSeriesReader
      SubProxy
        Proxy name=Reader
          proxygroup=internal_sources proxyname=PhysicsReader
        /Proxy
      /SubProxy
  /ProxyGroup

 the makefile generation of RC2 actually gave me an error, but make and make 
 install worked fine. The error was:
  CMake Error: INSTALL(EXPORT) given unknown export IceTTargets

 can this be related? I doubt...

 Thanks for any tip. I use 3.12.0-RC2-4-ge9de676
 -
 Jean M. Favre
 Swiss National Supercomputing Center
 ___
 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] Replacement for vtkSMProxy.h

2011-10-11 Thread Sebastien Jourdain
Hi Mike,

Normally, few things need to be changed. Maybe due to the
restructuration of the code, some of the CMake variables have changed
as well as the library names. A quick look into the CMakeLists.txt of
the plugins from paraview should fix most of it. XML wise, it's a
different story, but except if you defined a reader, you should
already be good to go as we automatically patch the XML on the fly. If
you are in a reader definition, then you can check how they are
defined inside the file
ParaViewCore/ServerImplementation/Resources/readers.xml

Hope this help,

Seb

On Tue, Oct 11, 2011 at 2:24 PM, Michael Jackson
mike.jack...@bluequartz.net wrote:
 I am updating my plugins to compile with ParaView 3.12 and I get an error 
 that says that vtkSMProxy.h is not found any more. What is the replacement 
 mechanism? And where is a good place to start reading about how to port my 
 code.

 Thanks
 ___
 Mike Jackson                    Principal Software Engineer
 BlueQuartz Software                            Dayton, Ohio
 mike.jack...@bluequartz.net              www.bluequartz.net

 ___
 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] Visualization of legacy Vtk

2011-10-12 Thread Sebastien Jourdain
You need to change the representation in ParaView to be Surface
instead of Outline in one of the combo box that is in the toolbar.

Seb

On Wed, Oct 12, 2011 at 12:32 PM, Negar Mohaghegh neg...@ece.ubc.ca wrote:
 Hi,

 I have a vtk file, generated by the famous WriteToVtk.m file circulating in
 the web from a 3D matrix in Matlab.The format is kind of legacy vtk. I have
 tried to load the file in Paraview. The file loads but is transparent (I can
 just see the bounding box).

 Can anyone help? What's the problem?

 Best,
 Negar

 P.S: This is the mfile I am talking about:

 function WriteToVTK(matrix, filename)
 % WriteToVTK(matrix, filename)
 %
 % Writes a 3D matrix as a VTK file. View with paraview.
 % The matrix must be 3D and is normalised (kind of).
 %
 % A sligthly old format is used because it is simpler.

 % Example VTK file:
 % # vtk DataFile Version 2.0
 % Volume example
 % ASCII
 % DATASET STRUCTURED_POINTS
 % DIMENSIONS 3 4 6
 % ASPECT_RATIO 1 1 1
 % ORIGIN 0 0 0
 % POINT_DATA 72
 % SCALARS volume_scalars char 1
 % LOOKUP_TABLE default
 % 0 0 0 0 0 0 0 0 0 0 0 0
 % 0 5 10 15 20 25 25 20 15 10 5 0
 % 0 10 20 30 40 50 50 40 30 20 10 0
 % 0 10 20 30 40 50 50 40 30 20 10 0
 % 0 5 10 15 20 25 25 20 15 10 5 0
 % 0 0 0 0 0 0 0 0 0 0 0 0

 % Get the matrix dimensions.
 [N M O] = size(matrix);

 % Get the maximum value for the normalisation.
 mx = max(matrix(:));

 % Open the file.
 fid = fopen(filename, 'w');
 if fid == -1
 error('Cannot open file for writing.');
 end

 % New line.
 nl = sprintf('\n'); % Stupid matlab doesn't interpret \n normally.

 % Write the file header.
 fwrite(fid, ['# vtk DataFile Version 2.0' nl 'Volume example' nl 'ASCII' nl
 ...
 'DATASET STRUCTURED_POINTS' nl 'DIMENSIONS ' ...
 num2str(N) ' ' num2str(M) ' ' num2str(O) nl 'ASPECT_RATIO 1 1 1' nl ...
 'ORIGIN 0 0 0' nl 'POINT_DATA ' ...
 num2str(N*M*O) nl 'SCALARS volume_scalars char 1' nl 'LOOKUP_TABLE
 default' nl]);

 for z = 1:O
 % Get this layer.
 v = matrix(:, :, z);
 % Scale it. This assumes there are no negative numbers. I'm not sure
 % this is actually necessary.
 v = round(100 .* v(:) ./ mx);
 % Write the values as text numbers.
 fwrite(fid, num2str(v'));
 % Newline.
 fwrite(fid, nl);

 % Display progress.
 disp([num2str(round(100*z/O)) '%']);
 end

 % Close the file.
 fclose(fid);

 end



 ___
 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] Interpolate data from an unstructured mesh to a structured one

2011-11-01 Thread Sebastien Jourdain
Hi Gena,

you can also use Resample with dataset. The only missing part will
be your destination dataset that you want to use for sampling your
original data.
You can look at that documentation to create an empty one manually by
creating a legacy VTK file.
http://www.vtk.org/VTK/img/file-formats.pdf
I've paste the content of a rectilinear one below. You will just need
to tweak some parameters.

Seb

= Your sampling dataset could look like that file: probe.vtk =

# vtk DataFile Version 3.0
vtk output
ASCII
DATASET STRUCTURED_POINTS
DIMENSIONS 11 11 11
SPACING 0.004 0.004 0.012
ORIGIN -0.02 -0.02 -0.06

On Tue, Nov 1, 2011 at 3:57 AM, Gena Bug archaero...@mail.ru wrote:
 Hello, Robert!

 Thank you for quick response! Seems, this plugin is what I'm looking for. But 
 can you
 explain me how can I compile it? I can't find any readme in the repository 
 and I don't have
 enough experience with building paraview plugins. My platform is Debian 
 testing amd64.

 -|-
 Gena.

 On Mon October 31 2011 19:54:25 Robert Maynard wrote:
 You might be interested in the code at:
 https://github.com/berkgeveci/ComparativeVis

 It has a filter called Cross Mesh Field Evaluation which maps a
 property from a unstructured mesh
 onto a structured mesh in parallel.

 On Mon, Oct 31, 2011 at 10:48 AM, Gena Bug archaero...@mail.ru wrote:
  Hello!
 
  I have an interesting task -- I need to move the cell data from an
  unstructured mesh to corresponding cartesian mesh. Original domain is an
  alpha-degree 3D sector (alpha is a parameter, sector' angle, may be
  pi/3, pi/4, ...) with periodic side boundaries and unstructured
  discretization (hexahedral and wedge cells). The target domain is a cube
  that contains the whole cylinder (sum of N sectors: N*alpha = 2*pi). And
  my task is to generate cartezian mesh in the target domain (cube) and
  interpolate data from the original mesh to the cartezian.
 
  I'm almost sure about answer, but I must ask: is there a combination of
  filters that can do the trick?
 
  I think to write a python script that can do this, but I don't know how
  to: a) create a cartezian mesh and
  b) iterate throw mesh cells and their nodes.
 
  |-
  Gena.
  ___
  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] cluster: works with -np 1, crashes when runs in parallel :-(

2011-11-04 Thread Sebastien Jourdain
Hi Stephane,

Thanks for reporting it. In fact, that bug has been fixed in
ParaView/next and you can simply avoid it if you compile ParaView in
Release mode not in Debug.The problem come from an invalid test in an
assert().
I will make sure that the fix will be in 3.12.

Seb

On Fri, Nov 4, 2011 at 5:43 AM, Stéphane Backaert
stephanebacka...@gmail.com wrote:
 Hello,

 I have installed paraview version 3.12.0-RC3-23-g712c45e on a cluster: 
 compiled with intel compiler, openmpi-1.5.3, no hardware acc. so Mesa-7.9 and 
 --use-offscreen-rendering flag at startup, MPI set to ON in ccmake.

 I launch the server with mpirun -np x ./pvserver  --use-offscreen-rendering 
 and, through an ssh connection, the client on my laptop (latest version too). 
  That works fine :-) ... but slow :-(.
 So I try to use more procs, for example, mpirun -np 2 ./pvserver  
 --use-offscreen-rendering. There are two processes running on the cluster (I 
 see them with 'ps x' command).

 My problem: when I connect my client to this server, the connection is 
 etablished but the server crashed immediately with the message:

 Waiting for client
 Connection URL: cs://localhost:1
 Client connected.
 pvserver: 
 /home/ucl/tfl/sbackaer/build/ParaView/ParaViewCore/ClientServerCore/vtkPVClientServerSynchronizedRenderers.cxx:76:
  virtual void vtkPVClientServerSynchronizedRenderers::SlaveEndRender(): 
 Assertion `this-ParallelController-IsA(vtkSocketController)' failed.
 [hmem00:08278] *** Process received signal ***
 [hmem00:08278] Signal: Aborted (6)
 [hmem00:08278] Signal code:  (-6)
 pvserver: 
 /home/ucl/tfl/sbackaer/build/ParaView/ParaViewCore/ClientServerCore/vtkPVClientServerSynchronizedRenderers.cxx:48:
  virtual void vtkPVClientServerSynchronizedRenderers::MasterEndRender(): 
 Assertion `this-ParallelController-IsA(vtkSocketController)' failed.
 [hmem00:08277] *** Process received signal ***
 [hmem00:08277] Signal: Aborted (6)
 [hmem00:08277] Signal code:  (-6)
 hmem00:08278] [ 0] /lib64/libpthread.so.0() [0x3f8a40f4c0]
 [hmem00:08278] [ 1] /lib64/libc.so.6(gsignal+0x35) [0x3f89c329a5]
 [hmem00:08278] [ 2] /lib64/libc.so.6(abort+0x175) [0x3f89c34185]
 [hmem00:08278] [ 3] /lib64/libc.so.6(__assert_fail+0xf5) [0x3f89c2b935]
 [hmem00:08278] [ 4] 
 /home/ucl/tfl/sbackaer/build/ParaView-bin/bin/libvtkPVClientServerCore.so(_ZN38vtkPVClientServerSynchronizedRenderers14SlaveEndRenderEv+0x56)
  [0x7fa499c32d6e]
 [hmem00:08278] [ 5] 
 /home/ucl/tfl/sbackaer/build/ParaView-bin/bin/libvtkParallel.so.pv3.12(_ZN24vtkSynchronizedRenderers15HandleEndRenderEv+0xfe)
  [0x7fa493cc1e4c]
 [hmem00:08278] [ 6] 
 /home/ucl/tfl/sbackaer/build/ParaView-bin/bin/libvtkParallel.so.pv3.12(_ZN24vtkSynchronizedRenderers15HandleEndRenderEv+0x72)
  [0x7fa493cc1dc0]
 [hmem00:08278] [ 7] 
 /home/ucl/tfl/sbackaer/build/ParaView-bin/bin/libvtkParallel.so.pv3.12(+0x26c470)
  [0x7fa493cc4470]
 [hmem00:08278] [ 8] 
 /home/ucl/tfl/sbackaer/build/ParaView-bin/bin/libvtkCommon.so.pv3.12(+0x26ae71)
  [0x7fa48f102e71]
 [hmem00:08278] [ 9] 
 /home/ucl/tfl/sbackaer/build/ParaView-bin/bin/libvtkCommon.so.pv3.12(_ZN9vtkObject11InvokeEventEmPv+0x41)
  [0x7fa48f103381]
 [hmem00:08278] [10] 
 /home/ucl/tfl/sbackaer/build/ParaView-bin/bin/libvtkRendering.so.pv3.12(_ZN11vtkRenderer6RenderEv+0xdcb)
  [0x7fa492c18267]
 [hmem00:08278] [11] 
 /home/ucl/tfl/sbackaer/build/ParaView-bin/bin/libvtkRendering.so.pv3.12(_ZN21vtkRendererCollection6RenderEv+0xca)
  [0x7fa492c15fb4]
 [hmem00:08278] [12] 
 /home/ucl/tfl/sbackaer/build/ParaView-bin/bin/libvtkRendering.so.pv3.12(_ZN15vtkRenderWindow14DoStereoRenderEv+0xee)
  [0x7fa492c2c84c]
 [hmem00:08278] [13] 
 /home/ucl/tfl/sbackaer/build/ParaView-bin/bin/libvtkRendering.so.pv3.12(_ZN15vtkRenderWindow10DoFDRenderEv+0x54a)
  [0x7fa492c2c754]
 [hmem00:08278] [14] 
 /home/ucl/tfl/sbackaer/build/ParaView-bin/bin/libvtkRendering.so.pv3.12(_ZN15vtkRenderWindow10DoAARenderEv+0x7c3)
  [0x7fa492c2c1ff]
 [hmem00:08278] [15] 
 /home/ucl/tfl/sbackaer/build/ParaView-bin/bin/libvtkRendering.so.pv3.12(_ZN15vtkRenderWindow6RenderEv+0x868)
  [0x7fa492c2b7ca]
 [hmem00:08278] [16] 
 /home/ucl/tfl/sbackaer/build/ParaView-bin/bin/libvtkPVClientServerCore.so(_ZN30vtkPVSynchronizedRenderWindows6RenderEj+0x95)
  [0x7fa499c9caed]
 [hmem00:08278] [17] 
 /home/ucl/tfl/sbackaer/build/ParaView-bin/bin/libvtkPVClientServerCore.so(+0x1dab8e)
  [0x7fa499c9ab8e]
 [hmem00:08278] [18] 
 /home/ucl/tfl/sbackaer/build/ParaView-bin/bin/libvtkParallel.so.pv3.12(_ZN25vtkMultiProcessController10ProcessRMIEiPvii+0x3cb)
  [0x7fa493bc99bd]
 [hmem00:08278] [19] 
 /home/ucl/tfl/sbackaer/build/ParaView-bin/bin/libvtkParallel.so.pv3.12(_ZN25vtkMultiProcessController11ProcessRMIsEii+0x6a8)
  [0x7fa493bc957a]
 [hmem00:08278] [20] 
 /home/ucl/tfl/sbackaer/build/ParaView-bin/bin/libvtkParallel.so.pv3.12(_ZN25vtkMultiProcessController11ProcessRMIsEv+0x22)
  [0x7fa493bc8ed0]
 [hmem00:08278] [21] ./bin/pvserver() [0x401a70]
 [hmem00:08278] [22] ./bin/pvserver(main+0x25) [0x401aef]
 [hmem00:08278] [23] 

Re: [Paraview] Bug? Paraview will load vrml 1.0 but cannot display

2011-11-25 Thread Sebastien Jourdain
I've just open that same file in a VRML viewer, and everything was
black. Maybe, it's the content of the file that is not right ?

On Thu, Nov 24, 2011 at 10:48 PM, Steve M. Robbins st...@sumost.ca wrote:
 Hi,

 The VTK parser class (vtkVRMLImporter) only handles VMRL 2.0.  I
 believe paraview uses this class, but paraview's vtkVRMLSource
 method CanReadFile() will accept either 1.0 or 2.0.  Is this
 a bug -- or can paraview handle vrml 1.0 in some manner?

 I've tried loading some VRML 1.0 examples such as
 http://www.cg.tuwien.ac.at/studentwork/VRSem96/VRML/Examples/earth_sun_19.wrl
 but no joy.

 -Steve

 //-
 int vtkVRMLSource::CanReadFile(const char *filename)
 {
  FILE *fd = fopen(filename, r);
  if (!fd) return 0;

  char header[128];
  fgets(header, 128, fd);

  // Technically, the header should start with #VRML V2.0 utf8, but who's
  // to say that new versions will not be forward compatible.  Let's not be
  // perscriptive yet.  If some future version of VRML is incompatible, we
  // can make this test more strict.
  int valid = (strncmp(header, #VRML , 6) == 0);

  fclose(fd);
  return valid;
 }


 ___
 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] ParaViewWeb TomCat

2011-11-29 Thread Sebastien Jourdain
Hi Randall,

Can you be more specific by what you mean by standalone and by
can't use Tomcat ?
Because, for me tomcat can be standalone. Would you think something
more embedded such as Jetty or something that does not involved Java
at all ?

Thanks,

Seb

On Tue, Nov 29, 2011 at 10:00 AM, Randall Hand randall.h...@gmail.com wrote:
 I have a user interested in using ParaViewWeb as a front-end to some
 visualization tasks, however we can't use TomCat in our environment.  Is
 there any kind of Standalone service that can be used as a replacement?

 I know several apps that expose a web interface offer a limited function
 webserver (trac, ipython, etc) that allows it to work standalone without any
 external webserver configured.  Does such a setup exist for ParaViewWeb?
 --
 Randall Hand
 http://www.vizworld.com

 ___
 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] ParaViewWeb TomCat

2011-11-29 Thread Sebastien Jourdain
Hi Randall,

This sounds good, so tomcat can easily be used on any user account
with no right outside his home. You can even strip down the default
package of tomcat so you get only the minimum required for ParaViewWeb
and you can run it on any port higher than 1024.

To do that, you will need to download tomcat on your own and
unzip/untar it, then deploy ParaViewWeb into it and start tomcat
yourself.
That's basically what we are doing for its development.

Hope this help,

Seb

On Tue, Nov 29, 2011 at 1:01 PM, Randall Hand randall.h...@gmail.com wrote:
 Something I can run entirely without any higher-permissions to the system,
 with no access to /etc or /usr folders.

 Sebastien Jourdain wrote:

 Hi Randall,

 Can you be more specific by what you mean by standalone and by
 can't use Tomcat ?
 Because, for me tomcat can be standalone. Would you think something
 more embedded such as Jetty or something that does not involved Java
 at all ?

 Thanks,

 Seb

 On Tue, Nov 29, 2011 at 10:00 AM, Randall Handrandall.h...@gmail.com
  wrote:

 I have a user interested in using ParaViewWeb as a front-end to some
 visualization tasks, however we can't use TomCat in our environment.  Is
 there any kind of Standalone service that can be used as a replacement?

 I know several apps that expose a web interface offer a limited function
 webserver (trac, ipython, etc) that allows it to work standalone without
 any
 external webserver configured.  Does such a setup exist for ParaViewWeb?
 --
 Randall Hand
 http://www.vizworld.com

 ___
 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


 --
 Randall Hand
 http://www.vizworld.com


___
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] ParaViewWeb TomCat

2011-12-02 Thread Sebastien Jourdain
 then execute and run the python
 code in the code cells by doing various things on the webpage representing
 the notebook (push 'run cell' etc.). The code cells can be executed either
 on the client python process, or the code can be sent through the hub to be
 run on a collection of engines also running python (and communicating with
 each other via MPI in my case).

 If the code cell is run on engines you can pull objects in the engines'
 namespaces back onto the client.  Now, on the client, if an expression
 returns an object that implements the interface of an IPython DisplayObject
 (http://ipython.org/ipython-doc/dev/api/generated/IPython.core.display.html),
 then it gets displayed as part of the webpage in an output cell.
 DisplayObject's can return HTML, JSON, javascirpt, SVG, and range of image
 formats. I'm attaching a pdf of a simple IPython notebook that has an
 expression returning a PNG DisplayObject at the very end.

 In my case, the python engines are running MPI and solve a PDE in
 parallel. The data structures for the solution all get attached to VTK
 objects and a visualization pipeline on the engines.  Also, Andy Bauer
 helped me get those VTK objects attached to paraview using the servermanager
 module a few weeks ago so I can do co-processing now as well.   I'm already
 able to composite, render, and interact with 3D objects using my Qt front
 end and the python VTK API.  I think it will be fairly simple to have the
 rank 0 engine generate a PNG of the rendered/composited image that will
 fulfill the requirements of an IPython PNG DisplayObject. That would give us
 non-interactive images of the solution in the notebook.

 My question is whether there is a way to add ParaViewWeb into this
 collection of processes so we can generate not only stills but get full
 interactive 3D visualization in the notebook. I was thinking that a
 DisplayObject of type HTML, JSON, or Javascript might be able to write a bit
 of code that would point the browser to the tomcat server running a paraview
 web service. That service would itself be connected back to the same data
 sets on the engines. Something like this:

 WebClient - Tornado - IPython Client   - python engines (with
 VTK objects and a servermanager)
                                  ^
                       ^
                                   |
                        |
                             Tomcat - ParaViewWS -       PW server

 Anyway, if this seems like it's feasible I'd be willing to build all the
 paraview web components on my laptop where I already have IPython, VTK, and
 Paraview co-processing working. If that works then we might be able to get
 some support for something more ambitious where the engines are running on
 HPC machines.

 Thanks,
 Chris


 On Nov 29, 2011, at 12:26 PM, Sebastien Jourdain wrote:

 Hi Randall,

 This sounds good, so tomcat can easily be used on any user account
 with no right outside his home. You can even strip down the default
 package of tomcat so you get only the minimum required for ParaViewWeb
 and you can run it on any port higher than 1024.

 To do that, you will need to download tomcat on your own and
 unzip/untar it, then deploy ParaViewWeb into it and start tomcat
 yourself.
 That's basically what we are doing for its development.

 Hope this help,

 Seb

 On Tue, Nov 29, 2011 at 1:01 PM, Randall Hand randall.h...@gmail.com
 wrote:

 Something I can run entirely without any higher-permissions to the
 system,

 with no access to /etc or /usr folders.


 Sebastien Jourdain wrote:


 Hi Randall,


 Can you be more specific by what you mean by standalone and by

 can't use Tomcat ?

 Because, for me tomcat can be standalone. Would you think something

 more embedded such as Jetty or something that does not involved Java

 at all ?


 Thanks,


 Seb


 On Tue, Nov 29, 2011 at 10:00 AM, Randall Handrandall.h...@gmail.com

  wrote:


 I have a user interested in using ParaViewWeb as a front-end to some

 visualization tasks, however we can't use TomCat in our environment.  Is

 there any kind of Standalone service that can be used as a replacement?


 I know several apps that expose a web interface offer a limited function

 webserver (trac, ipython, etc) that allows it to work standalone without

 any

 external webserver configured.  Does such a setup exist for ParaViewWeb?

 --

 Randall Hand

 http://www.vizworld.com


 ___

 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



 --

 Randall Hand

 http://www.vizworld.com



 ___
 Powered by www.kitware.com

 Visit other Kitware open-source projects at
 http://www.kitware.com

Re: [Paraview] ParaViewWeb TomCat

2011-12-03 Thread Sebastien Jourdain
Hi Chris,

I respond directly in your mail

 As a first cut, I think it would be fine to have the engines write out their 
 data.  Andy can correct me if I'm wrong, but I think we could use the 
 co-processing to write just the subset of geometry and field data that we 
 want to display in the notebook. If I understand correctly, with that 
 approach we could  then just focus on starting PWServer, reading in the data 
 files, and setting up the communication between tornado and tomcat.

With that cut, you can definitely use ParaViewWeb as is and let a
JavaScript code start the PWServer for you. The only thing that you
have to provide is the path to that data file... And yes, you can do
from the co-processing dump the stripped version of the data to the
disk.

 For future reference, when we want to move beyond dumping the data, here is 
 how each engine is connected to paraview: A module called vtkViewers has been 
 imported by each python engine and executed the following code:

 from paraview import servermanager
 global globalController, newGlobalController
 paraview.options.batch = True
 paraview.options.symmetric = True
 pm = servermanager.vtkProcessModule.GetProcessModule()
 globalController = pm.GetGlobalController()
 ...

 In addition to this bit, each engine has attached it's mesh and field data 
 arrays to the proper VTK containers and set up a parallel visualization 
 pipeline.  It can potentially also read in a co-processing script to set up 
 additional visualization.  I was hoping that this setup would eventually 
 allow us to start a PWServer and attach it to the pvserver which is directly 
 connected to the VTK objects in memory on each engines.

This is kind of possible by starting pvserver in collaborative mode
and have the PWSever connecting to that running pvserver in the same
time as your python engine.

 - On the ParaViewWeb side (tomcat web app) you will have to patch the
 code so it won't prevent you to connect to a process that was not
 started by itself. (I can help you with that, it should be pretty
 simple)

 Thanks, that would be very helpful.

This will only be needed if you need to start PWServer from python,
but if you dump the data somewhere you won't need it at all.

 I'll look into that. I'm going to visit the IPython notebook developers next 
 week and can get some help on working with tornado. I think it will help if I 
 can get the standard ParaViewWeb setup working.

Sure just let me know if you are running into issues...

 PS: For your later mail did you get the source form here
 (http://paraview.org/ParaViewWeb.git) which is not github ?

 Yes, sorry, I got it from paraview.org.

ok, good I was scared that you pick an old version on the web before
we get our git repo setup...

 Somewhere on the list somebody mentioned upgrading to activemq 3.4 so I did 
 too. I should only need activemq cpp libs, paraview, and PW server to 
 successfully build and make tests, right?

Yes

Normally with the latest version in the repository you should use the
current (latest) stable version of activemq-cpp without any issue.
Maybe the documentation is slightly off regarding that part.
Then the make test is not really needed in fact, you should just make
sure that when you start PWServer it is not segfaulting... Other than
that you should setup the WORKING_DIR and the TOMCAT_HOME to allow the
deploy of the application. Once it's done, just do make; make
deploy, then make sure activemq is started and start tomcat.

Look at the tomcat log once you connect to any sample ParaViewWeb
application to make sure you don;t get any exception. On top of that
if it is not working, double check the logs that are in the
WORKING_DIR/logs. And come back to the paraviewweb mailing list...

When you stop tomcat, make sure it properly did before restarting it.
(ps aux | grep java | grep tomcat)

Seb
___
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


  1   2   3   4   5   6   >