Please take me off this list. I have summit to the unsubscribe on numerous of occasions. It is very aggravating that your system does not work as intended.<br><br><div class="gmail_quote">On Fri, Apr 20, 2012 at 10:11 AM, <span dir="ltr"><<a href="mailto:vtkusers-request@vtk.org">vtkusers-request@vtk.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send vtkusers mailing list submissions to<br>
<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:vtkusers-request@vtk.org">vtkusers-request@vtk.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:vtkusers-owner@vtk.org">vtkusers-owner@vtk.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of vtkusers digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Fill in 2D vtkPolyData (Jonathan Morra)<br>
2. Re: Fill in 2D vtkPolyData (David Gobbi)<br>
3. Fwd: About relationship between a point and a cube (Rong Xu)<br>
4. Re: [ParaViewWeb] compile problem with class vtkJPEGWriter<br>
and function SetInput (Tuan Ha Tran)<br>
5. Reset Window Level / Pressing 'r' key (FrankWhite)<br>
6. Loading Point Data using Python (Dan Barker)<br>
7. Re: Reset Window Level / Pressing 'r' key (David Doria)<br>
8. Re: [ParaViewWeb] compile problem with class vtkJPEGWriter<br>
and function SetInput (Sebastien Jourdain)<br>
9. Re: Loading Point Data using Python (David E DeMarle)<br>
10. Re: [ParaViewWeb] compile problem with class vtkJPEGWriter<br>
and function SetInput (Tuan Ha Tran)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 19 Apr 2012 10:44:16 -0700<br>
From: Jonathan Morra <<a href="mailto:jonmorra@gmail.com">jonmorra@gmail.com</a>><br>
Subject: Re: [vtkusers] Fill in 2D vtkPolyData<br>
To: David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>><br>
Cc: VTK Mailing List <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
Message-ID:<br>
<CAF8LAAWhUWEdTFK0=PhyPY0exbsbE3=<a href="mailto:bMYCDwj6yK33N9JVsFw@mail.gmail.com">bMYCDwj6yK33N9JVsFw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
After using your filter for a little while, for the most part it works<br>
great, however I have discovered a few cases where it doesn't work. I've<br>
attached a screen shot showing a failure, The first image is the input<br>
vtkPolyData, and the second is the result of running through your filter.<br>
Can you determine what is going on? If not, I'd be happy to give you the<br>
poly data I'm using, just let me know how to export it to disk, and I can<br>
email it to you.<br>
<br>
Thanks<br>
<br>
PS The behavior seems unpredictable, as sometimes with shapes just as<br>
complicated it works fine, I can't seem to tell what makes it fail.<br>
<br>
[image: Inline image 3]<br>
<br>
[image: Inline image 4]<br>
<br>
<br>
On Tue, Apr 10, 2012 at 12:26 PM, David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>> wrote:<br>
<br>
> Use the PickableOff() method (on the actor, not the data).<br>
><br>
> On Tue, Apr 10, 2012 at 1:17 PM, Jonathan Morra <<a href="mailto:jonmorra@gmail.com">jonmorra@gmail.com</a>><br>
> wrote:<br>
> > One more question along this same line. Now that I have opaque<br>
> vtkPolyData,<br>
> > I'm noticing that my vtkPicker is no longer hitting the same data it was<br>
> > before, it's hitting the now opaque poly data. This makes sense to me,<br>
> but<br>
> > I don't want it to happen. Is there a way to tell the vtkPicker to<br>
> ignore<br>
> > some vtkPolyData (ie always pick the underlying data).<br>
> ><br>
> > Thanks<br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20120419/22dffd1f/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20120419/22dffd1f/attachment-0001.htm</a>><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: not available<br>
Type: image/png<br>
Size: 27306 bytes<br>
Desc: not available<br>
URL: <<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20120419/22dffd1f/attachment-0002.png" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20120419/22dffd1f/attachment-0002.png</a>><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: not available<br>
Type: image/png<br>
Size: 25353 bytes<br>
Desc: not available<br>
URL: <<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20120419/22dffd1f/attachment-0003.png" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20120419/22dffd1f/attachment-0003.png</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 19 Apr 2012 12:03:10 -0600<br>
From: David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>><br>
Subject: Re: [vtkusers] Fill in 2D vtkPolyData<br>
To: Jonathan Morra <<a href="mailto:jonmorra@gmail.com">jonmorra@gmail.com</a>><br>
Cc: VTK Mailing List <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
Message-ID:<br>
<CANwS1=<a href="mailto:EtFBm4QANFf9Y_fS0uRDce58EeJvo8HHK2kFJxa53J7A@mail.gmail.com">EtFBm4QANFf9Y_fS0uRDce58EeJvo8HHK2kFJxa53J7A@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
Hi Jonathan,<br>
<br>
This is why I haven't added this filter to VTK yet. ?When the input<br>
has multiple contours, the code doesn't yet have the necessary logic<br>
for determining which contours are holes. ?In your case, it has<br>
incorrectly marked the large contour as a hole.<br>
<br>
Unfortunately I cannot provide you with a timeline for when I will<br>
finish this filter, lately I've been crazy busy on other projects.<br>
But if you want to give it a shot yourself, take a look at the code<br>
for?vtkContourToPolygonFilter::MakePolysFromContours(). The<br>
section that needs to be modified is the block that starts with<br>
"if (normal == 0)".<br>
<br>
?- David<br>
<br>
<br>
On Thu, Apr 19, 2012 at 11:44 AM, Jonathan Morra <<a href="mailto:jonmorra@gmail.com">jonmorra@gmail.com</a>> wrote:<br>
><br>
> After using your filter for a little while, for the most part it works great, however I have discovered a few cases where it doesn't work. ?I've attached a screen shot showing a failure, ?The first image is the input vtkPolyData, and the second is the result of running through your filter. ?Can you determine what is going on? ?If not, I'd be happy to give you the poly data I'm using, just let me know how to export it to disk, and I can email it to you.<br>
><br>
> Thanks<br>
><br>
> PS The behavior seems unpredictable, as sometimes with shapes just as complicated it works fine, I can't seem to tell what makes it fail.<br>
><br>
><br>
><br>
><br>
><br>
><br>
> On Tue, Apr 10, 2012 at 12:26 PM, David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>> wrote:<br>
>><br>
>> Use the PickableOff() method (on the actor, not the data).<br>
>><br>
>> On Tue, Apr 10, 2012 at 1:17 PM, Jonathan Morra <<a href="mailto:jonmorra@gmail.com">jonmorra@gmail.com</a>> wrote:<br>
>> > One more question along this same line. ?Now that I have opaque vtkPolyData,<br>
>> > I'm noticing that my vtkPicker is no longer hitting the same data it was<br>
>> > before, it's hitting the now opaque poly data. ?This makes sense to me, but<br>
>> > I don't want it to happen. ?Is there a way to tell the vtkPicker to ignore<br>
>> > some vtkPolyData (ie always pick the underlying data).<br>
>> ><br>
>> > Thanks<br>
><br>
><br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Fri, 20 Apr 2012 09:55:09 +0900<br>
From: Rong Xu <<a href="mailto:xurong1981@gmail.com">xurong1981@gmail.com</a>><br>
Subject: [vtkusers] Fwd: About relationship between a point and a<br>
cube<br>
To: VTKUsers <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
Message-ID:<br>
<CAN=5JPaiVFbaHXMQceXBr0=ozRZQO=xGGgA=<a href="mailto:BruGyiA%2BoQemWA@mail.gmail.com">BruGyiA+oQemWA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="gb2312"<br>
<br>
Dear David Daria:<br>
<br>
2012/4/20 David Doria <<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>><br>
<br>
> 2012/4/19 Rong Xu <<a href="mailto:xurong1981@gmail.com">xurong1981@gmail.com</a>><br>
><br>
>> Dear all:<br>
>><br>
>> I am doing work on a judgement about relationship between a point and an<br>
>> arbitrary cube. I have known the 8 coordinates of the cube vertex and have<br>
>> draw it out, and also I have known the coordinate of one point. Then I want<br>
>> to judge whether this point is inside the cube or outside the cube.<br>
>><br>
>> One of my idea is first I rotate the arbitrary cube to make its three<br>
>> edges coincide with three axises (x, y, and z), and make one of its<br>
>> vertices on the origin of the coordinate system. But I don't know whether<br>
>> there are methods in VTK that can be used to realize this purpose ? Or does<br>
>> anyone have any other ideas on judging the relationship between the point<br>
>> and the cube ?<br>
>><br>
>> Thank you very much for your ideas !<br>
>><br>
>><br>
> I'm not sure I followed completely, but it sounds like you might be<br>
> looking for a "point inside object" test?<br>
><br>
> <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PointInsideObject" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PointInsideObject</a><br>
><br>
<br>
That'a very useful to realize my purpose, and also save my much time !<br>
<br>
Thank you very much!<br>
<br>
<br>
><br>
> David<br>
><br>
<br>
<br>
<br>
--<br>
<br>
---------------------<br>
Best Regards!<br>
<br>
===============================================<br>
Rong Xu, Ph.D Student<br>
Ohya Lab<br>
Graduate School of Global Information and Telecommunication<br>
Studies (GITS), Waseda University<br>
1-6-1 Nishi Waseda, Shinjuku-ku, Tokyo, Japan (?169-8050)<br>
<br>
Tel: <a href="tel:%2B81-80-4208-1207" value="+818042081207">+81-80-4208-1207</a><br>
E-mail: <a href="mailto:xurong1981@gmail.com">xurong1981@gmail.com</a><br>
<a href="mailto:xurong@fuji.waseda.jp">xurong@fuji.waseda.jp</a><br>
===============================================<br>
<br>
<br>
<br>
<br>
--<br>
<br>
---------------------<br>
Best Regards!<br>
<br>
===============================================<br>
Rong Xu, Ph.D Student<br>
Ohya Lab<br>
Graduate School of Global Information and Telecommunication<br>
Studies (GITS), Waseda University<br>
1-6-1 Nishi Waseda, Shinjuku-ku, Tokyo, Japan (?169-8050)<br>
<br>
Tel: <a href="tel:%2B81-80-4208-1207" value="+818042081207">+81-80-4208-1207</a><br>
E-mail: <a href="mailto:xurong1981@gmail.com">xurong1981@gmail.com</a><br>
<a href="mailto:xurong@fuji.waseda.jp">xurong@fuji.waseda.jp</a><br>
===============================================<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20120420/741c7abf/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20120420/741c7abf/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Fri, 20 Apr 2012 09:57:49 +0200 (CEST)<br>
From: Tuan Ha Tran <<a href="mailto:tuan-ha.tran@insa-lyon.fr">tuan-ha.tran@insa-lyon.fr</a>><br>
Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class<br>
vtkJPEGWriter and function SetInput<br>
To: Sebastien Jourdain <<a href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>><br>
Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID: <8d4f3f55-e720-4fac-b458-1bcee450c0b5@zstore2><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi Seb,<br>
So, in the log file, it "bad X server connections" with "vtkXOpenGLRenderWindow".<br>
I checked the configuration of pw-config.properties but nothing abnormal.<br>
If you have any idea ...<br>
<br>
----- Original Message -----<br>
From: Sebastien Jourdain <<a href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>><br>
To: Tuan Ha Tran <<a href="mailto:tuan-ha.tran@insa-lyon.fr">tuan-ha.tran@insa-lyon.fr</a>><br>
Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>, Frederic Cervenansky <<a href="mailto:frederic.cervenansky@creatis.insa-lyon.fr">frederic.cervenansky@creatis.insa-lyon.fr</a>><br>
Sent: Thu, 19 Apr 2012 15:30:40 +0200 (CEST)<br>
Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class vtkJPEGWriter and function SetInput<br>
<br>
Try to stop all the services (tomcat + activemq). Remove all the logs<br>
of tomcat and the one that are inside WORK_DIR/logs that you setup in<br>
CMake and that is specified inside the pw-config.propertie.<br>
<br>
Once done, start again activemq and tomcat. Test again and if it<br>
fails, you will have to look at all those logs to see if you have any<br>
feedback of the reason of the issue...<br>
<br>
Seb<br>
<br>
On Thu, Apr 19, 2012 at 4:43 AM, Tuan Ha Tran wrote:<br>
> Seb,<br>
> All theses problems are gone, but now, the latest :<br>
> When I tried to create a new session, now nothing appears, and I have, in my<br>
> "Apache-activemq" shell "INFO | Transport failed: java.io.EOFException"<br>
> If you can help me ..... thank you very much indeed<br>
><br>
><br>
><br>
><br>
> ----- Original Message -----<br>
> From: Sebastien Jourdain<br>
> To: Tuan Ha Tran<br>
> Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>, Frederic Cervenansky<br>
><br>
> Sent: Wed, 18 Apr 2012 19:01:48 +0200 (CEST)<br>
> Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class<br>
> vtkJPEGWriter and function SetInput<br>
><br>
> What do you mean by "my apache-tomcat-7.0.26" ?<br>
> If it's a tgz file that you download with your user, you DO NOT HAVE<br>
> TO read the documentation<br>
> "<a href="http://www.paraview.org/Wiki/ParaViewWeb_with_system_tomcat_package" target="_blank">http://www.paraview.org/Wiki/ParaViewWeb_with_system_tomcat_package</a>"<br>
><br>
> By system tomcat, I mean: "apt-get install tomcat"<br>
> And with system tomcat, it is trickier to install ParaViewWeb due to<br>
> security reason... (class path, security grant...)<br>
> That's why a custom read me is provided otherwise, you just setup a<br>
> path where you want tomcat to write its data and that's it...<br>
><br>
> Seb<br>
><br>
><br>
> On Wed, Apr 18, 2012 at 12:52 PM, Sebastien Jourdain<br>
> wrote:<br>
>> How did you installed tomcat ?<br>
>><br>
>> Seb<br>
>><br>
>> On Wed, Apr 18, 2012 at 11:59 AM, Tuan Ha Tran<br>
>> wrote:<br>
>>> So the result is "No", always the same error.<br>
>>> Yes, another information : I didn't find any file named<br>
>>> /etc/init.d/tomcat6,<br>
>>> /var/lib/tomcat6/conf/policy.d/03catalina.policy,<br>
>>> /var/lib/tomcat6/conf/policy.d/04webapps.policy<br>
>>> so I went to conf folder in my apache-tomcat-7.0.26 and added all in<br>
>>> "catalina.policy"<br>
>>><br>
>>><br>
>>><br>
>>> ----- Original Message -----<br>
>>> From: Tuan Ha Tran<br>
>>> To: Sebastien Jourdain<br>
>>> Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>, Frederic Cervenansky<br>
>>><br>
>>> Sent: Wed, 18 Apr 2012 17:53:48 +0200 (CEST)<br>
>>> Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class<br>
>>> vtkJPEGWriter and function SetInput<br>
>>><br>
>>> Thank you for your reponse.<br>
>>> As I said, I followed the tutorial in the<br>
>>> "<a href="http://www.paraview.org/Wiki/ParaViewWeb_with_system_tomcat_package" target="_blank">http://www.paraview.org/Wiki/ParaViewWeb_with_system_tomcat_package</a>"<br>
>>><br>
>>> cd ..<br>
>>> chown -R tomcat6 paraviewweb-work<br>
>>> chgrp -R tomcat6 paraviewweb-work<br>
>>><br>
>>><br>
>>> And, the right is set to tomcat (because there is an error "no user named<br>
>>> tomcat6") (I don't know if we can use root)<br>
>>> However, I will try with root and we'll see.<br>
>>> Thank again Seb<br>
>>><br>
>>><br>
>>> ----- Original Message -----<br>
>>> From: Sebastien Jourdain<br>
>>> To: Tuan Ha Tran<br>
>>> Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>, Frederic Cervenansky<br>
>>><br>
>>> Sent: Wed, 18 Apr 2012 17:31:51 +0200 (CEST)<br>
>>> Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class<br>
>>> vtkJPEGWriter and function SetInput<br>
>>><br>
>>> Hi Tuan,<br>
>>><br>
>>> Those your local tomcat that run under your user has the right to<br>
>>> write in that directory ?<br>
>>><br>
>>> /var/lib/tomcat6/paraviewweb-work/ ?<br>
>>><br>
>>> Seb<br>
>>><br>
>>> On Wed, Apr 18, 2012 at 11:10 AM, Tuan Ha Tran<br>
>>> wrote:<br>
>>>> Hi Seb,<br>
>>>> I have another thing to ask you (I'm sorry if this question is<br>
>>>> already<br>
>>>> asked, but I found my problem different)<br>
>>>> I use super build to build ParaViewWeb with all the settings by<br>
>>>> default.<br>
>>>> It's done.<br>
>>>><br>
>>>> Next :<br>
>>>> - I downloaded the apache-tomcat-7.0.26<br>
>>>> - Copied all the *.war generated by the SuperBuild into<br>
>>>> tomcat7.0.26's<br>
>>>> webapps folder<br>
>>>> - Copied pw-config.properties into apache-tomcat-7.0.26/lib<br>
>>>><br>
>>>> To run PWApps,<br>
>>>> - I started JMS broker d4apache Activemq, the latest version is<br>
>>>> 5.5.1<br>
>>>> (./activemq-admin start)<br>
>>>> - I started server Tomcat (./catalina.sh start)<br>
>>>><br>
>>>> Result: when I tried to open a session in PWApps @<br>
>>>> <a href="http://localhost:8080/PWApp/" target="_blank">http://localhost:8080/PWApp/</a><br>
>>>> the error appeared : An error occured during the loading.<br>
>>>> org.hibernate.exception.GenericJDBCException: Cannot open connection<br>
>>>><br>
>>>><br>
>>>> It's absolutely a problem with hibernate, the connection with the<br>
>>>> database. But I don't quite understand how to fix this.<br>
>>>> Do we have to modify pw-config.properties? What do we have to do?<br>
>>>><br>
>>>> About the working directory, I followed the tutorial @<br>
>>>> <a href="http://www.paraview.org/Wiki/ParaViewWeb_with_system_tomcat_package" target="_blank">http://www.paraview.org/Wiki/ParaViewWeb_with_system_tomcat_package</a>.<br>
>>>> Thank you for your help.<br>
>>>><br>
>>>><br>
>>>> ********************************************************************<br>
>>>> ***************** pw-config.properties<br>
>>>> **********************************<br>
>>>> ********************************************************************<br>
>>>><br>
>>>> # Directory used to store application files<br>
>>>> pw.working.directory=/var/lib/tomcat6/paraviewweb-work/<br>
>>>><br>
>>>> # Logging level that should be used [DEBUG, INFO, WARNING, ERROR,<br>
>>>> CRITICAL]<br>
>>>> pw.logging.level=ERROR<br>
>>>><br>
>>>> # Do we enable logging [on, off, yes, no]<br>
>>>> paraview.logging=OFF<br>
>>>> pw.logging=ON<br>
>>>><br>
>>>> # Inactivity timeout for garbage collecting PWServer applications<br>
>>>> # time is given in minute<br>
>>>> pw.garbage.collector.timeout=5<br>
>>>><br>
>>>> # Administration page user credentials<br>
>>>> pw.admin.login=admin<br>
>>>> pw.admin.password=admin<br>
>>>><br>
>>>> # Total number of resources available<br>
>>>> pw.max.resources=5<br>
>>>><br>
>>>> # PWServer executable path settings<br>
>>>><br>
>>>><br>
>>>> pw.executable.path.default=/var/lib/tomcat6/paraviewweb-work/bin/PWServer.sh<br>
>>>> #<br>
>>>><br>
>>>><br>
>>>> pw.executable.path.parallel=/home/thtran/projects/ParaViewWeb/install-pw/bin/PWServer<br>
>>>> # pw.executable.path.manta=/home/seb/tmp/ParaWeb-work/exec/manta.sh<br>
>>>><br>
>>>> # pvserver executable path settings<br>
>>>> # pvserver.executable.path.demo=/home/seb/tmp/ParaWeb-work/exec/demo.sh<br>
>>>><br>
>>>> # Plugin directory settings<br>
>>>> pw.plugins.default=/var/lib/tomcat6/paraviewweb-work/plugins<br>
>>>> # pw.plugins.parallel=/usr/local/PVW/PWSer_WD/plugins<br>
>>>> # pw.plugins.manta=/usr/local/PVW/PWSer_WD/plugins<br>
>>>><br>
>>>> # Resource consumption definition<br>
>>>> pw.resource.consumption.default=1<br>
>>>> # pw.resource.consumption.parallel=4<br>
>>>> # pw.resource.consumption.manta=2<br>
>>>><br>
>>>> # Optional thirdpart properties<br>
>>>> pw.gwt-app.data=/var/lib/tomcat6/paraviewweb-work/data<br>
>>>> pw.gwt-app.states=/var/lib/tomcat6/paraviewweb-work/states<br>
>>>> # pw.gwt-app.webgl=/usr/local/PVW/PWSer_WD/webgl<br>
>>>> pw.gwt-app.confs=default<br>
>>>> # Optional PWApp upload properties<br>
>>>> # - size in MegaBytes<br>
>>>> # - timeout in minute<br>
>>>> # - types provides the set of extension allowed<br>
>>>> pw.gwt-app.upload.size=10<br>
>>>> pw.gwt-app.upload.timeout=2<br>
>>>> pw.gwt-app.upload.types=vtp:vtk<br>
>>>><br>
>>>> # Remote server command line<br>
>>>> # * Tomcat will call any script in the following directory and will<br>
>>>> execute<br>
>>>> the<br>
>>>> # following command line where portnumber is an available portnumber:<br>
>>>> # > fullScriptPath username password<br>
>>>> # * Documentation on How to start a pvserver<br>
>>>> # - <a href="http://www.cmake.org/Wiki/Setting_up_a_ParaView_Server" target="_blank">http://www.cmake.org/Wiki/Setting_up_a_ParaView_Server</a><br>
>>>> # pw.remote.settings=/usr/local/PVW/PWSer_WD/remote-settings<br>
>>>><br>
>>>> pw.remote.log.dir=/var/lib/tomcat6/paraviewweb-work/logs<br>
>>>><br>
>>>> # Optional PWStateApp working directory<br>
>>>><br>
>>>><br>
>>>> pw.state.working.directory=/var/lib/tomcat6/paraviewweb-work/states-workdir<br>
>>>><br>
>>>> ***********************************************************<br>
>>>> ************ end of pw-config.properties*************************<br>
>>>> ***********************************************************<br>
>>>><br>
>>>><br>
>>>> ----- Original Message -----<br>
>>>> From: Sebastien Jourdain<br>
>>>> To: Tuan Ha Tran<br>
>>>> Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>>>> Sent: Fri, 06 Apr 2012 19:33:40 +0200 (CEST)<br>
>>>> Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class<br>
>>>> vtkJPEGWriter and function SetInput<br>
>>>><br>
>>>> You should use ParaView 3.14.<br>
>>>><br>
>>>> I'm sure you are doing something wrong that I'm not aware of, because<br>
>>>> I'm using ParaViewWeb with ParaView 3.14 myself. So if I managed to<br>
>>>> build it, you should too, unless we are doing something different.<br>
>>>><br>
>>>> What did you do with the SuperBuild ? Did it manage to fetch ParaView<br>
>>>> and ParaViewWeb and start building those as well as their dependency<br>
>>>> like apr ?<br>
>>>><br>
>>>> Seb<br>
>>>><br>
>>>> On Fri, Apr 6, 2012 at 11:04 AM, Tuan Ha Tran wrote:<br>
>>>>> Hi,<br>
>>>>> I tried your solution with SuperBuild but the problem still exist.<br>
>>>>> I wonder if I should reuse ParaView 3.10.1?<br>
>>>>><br>
>>>>> Thank you Seb<br>
>>>>><br>
>>>>> ----- Original Message -----<br>
>>>>> From: "Sebastien Jourdain"<br>
>>>>> To: "Tuan Ha Tran"<br>
>>>>> Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>>>>> Sent: Friday, April 6, 2012 4:53:43 PM<br>
>>>>> Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class<br>
>>>>> vtkJPEGWriter and function SetInput<br>
>>>>><br>
>>>>> Hi Tuan Ha Tran,<br>
>>>>><br>
>>>>> The documentation was written when ParaView 3.10 was out and that<br>
>>>>> version was lacking some fixed that were on git/master at that time<br>
>>>>> but I should definitely update the documentation to recommend to use<br>
>>>>> ParaView 3.14 and not git/master.<br>
>>>>> In fact, two weeks ago the latest changes in VTK that breaks its<br>
>>>>> backward compatibility went into ParaView and for which I didn't get<br>
>>>>> the time to update ParaViewWeb.<br>
>>>>><br>
>>>>> Regarding your ParaView build issue, I'm wondering what you did... But<br>
>>>>> anyway, if you want to ease the build process, you should definitely<br>
>>>>> try to use the SuperBuild package so every third party get<br>
>>>>> automatically compiled for you with the correct arguments and options.<br>
>>>>><br>
>>>>> <a href="http://www.paraview.org/Wiki/ParaViewWeb_SuperBuild" target="_blank">http://www.paraview.org/Wiki/ParaViewWeb_SuperBuild</a><br>
>>>>><br>
>>>>> Seb<br>
>>>>><br>
>>>>> On Fri, Apr 6, 2012 at 9:25 AM, Tuan Ha Tran wrote:<br>
>>>>>> Seb,<br>
>>>>>> Thank you for your reply. I just followed the instructions in the<br>
>>>>>> ParaViewWeb site.<br>
>>>>>> - Mkdir ParaViewWeb<br>
>>>>>> - Clone git from it address<br>
>>>>>><br>
>>>>>> I used the Ccmake command (in build-pw) for the source in the<br>
>>>>>> ParaViewWeb<br>
>>>>>> directory (build-pw is a sub-directory of ParaViewWeb). I compiled and<br>
>>>>>> then<br>
>>>>>> the errors.<br>
>>>>>> I used the latest release (3.14) of ParaView.<br>
>>>>>><br>
>>>>>> there was a problem with ParaView, it is the problem of share library.<br>
>>>>>> but I resolved this by adding -fPIC in the CFLAGS and CXXFLAGS, I<br>
>>>>>> don't<br>
>>>>>> know<br>
>>>>>> if that is the problem.<br>
>>>>>><br>
>>>>>> so, the vtkJPEGWriter is in the ParaView folder?<br>
>>>>>><br>
>>>>>> Thank you once more.<br>
>>>>>><br>
>>>>>> ----- Original Message -----<br>
>>>>>> From: "Sebastien Jourdain"<br>
>>>>>> To: "Tuan Ha Tran"<br>
>>>>>> Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>>>>>> Sent: Friday, April 6, 2012 3:11:17 PM<br>
>>>>>> Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class<br>
>>>>>> vtkJPEGWriter and function SetInput<br>
>>>>>><br>
>>>>>> Hi Tuan Ha Tran,<br>
>>>>>><br>
>>>>>> how did you build ParaViewWeb ? Did you do from the super build or<br>
>>>>>> from the main repository ?<br>
>>>>>> ParaViewWeb basically rely on ParaView that embed VTK which embed that<br>
>>>>>> vtkJPEGWriter.cxx<br>
>>>>>> Which version of ParaView did you used ? The latest release (3.14) is<br>
>>>>>> known to work...<br>
>>>>>><br>
>>>>>> Seb<br>
>>>>>><br>
>>>>>><br>
>>>>>> On Fri, Apr 6, 2012 at 5:12 AM, Tuan Ha Tran wrote:<br>
>>>>>>> Hi everybody,<br>
>>>>>>> I have a problem when trying to compile ParaViewWeb<br>
>>>>>>> This is the detail of my problem<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> ***********************************************************************<br>
>>>>>>> %] Built target ParaWebPlugin<br>
>>>>>>> Scanning dependencies of target PWServer<br>
>>>>>>> [ 30%] Building CXX object<br>
>>>>>>> ParaViewAdapter/CMakeFiles/PWServer.dir/vtkPWProcessingEngine.cxx.o<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> /home/thtran/projects/ParaViewWeb/ParaViewAdapter/vtkPWProcessingEngine.cxx:<br>
>>>>>>> In member function ?double<br>
>>>>>>> vtkPWProcessingEngine::ProcessAndSendImage(const<br>
>>>>>>> char*, vtkImageData*)?:<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> /home/thtran/projects/ParaViewWeb/ParaViewAdapter/vtkPWProcessingEngine.cxx:439:19:<br>
>>>>>>> error: ?class vtkJPEGWriter? has no member named ?SetInput?<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> /home/thtran/projects/ParaViewWeb/ParaViewAdapter/vtkPWProcessingEngine.cxx:448:18:<br>
>>>>>>> error: ?class vtkPNGWriter? has no member named ?SetInput?<br>
>>>>>>> make[2]: ***<br>
>>>>>>> [ParaViewAdapter/CMakeFiles/PWServer.dir/vtkPWProcessingEngine.cxx.o]<br>
>>>>>>> Error<br>
>>>>>>> 1<br>
>>>>>>> make[1]: *** [ParaViewAdapter/CMakeFiles/PWServer.dir/all] Error 2<br>
>>>>>>> make: *** [all] Error 2<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> *************************************************************************<br>
>>>>>>><br>
>>>>>>> When I went to the "wtkPWProcesingEngine.cxx", I found out that<br>
>>>>>>> wtkJPEGWriter is included by #include vtkJPEGWriter.h". But I<br>
>>>>>>> couldn't<br>
>>>>>>> find<br>
>>>>>>> wtkJPEGWriter.h neither vtkJPEGWriter.cxx.<br>
>>>>>>><br>
>>>>>>> When I tried to look for vtkJPEGWriter.cxx by Google, I found this<br>
>>>>>>> file<br>
>>>>>>> but I couldn't find any function "SetInput".<br>
>>>>>>><br>
>>>>>>> When I tried to deactivate the line where SetInput is located,<br>
>>>>>>> ParaViewWeb compile, but I think there are some problems with it.<br>
>>>>>>><br>
>>>>>>> I want to know if someone has the same problem? How to fix that?<br>
>>>>>>> Thank you all.<br>
>>>>>>><br>
>>>>>>> Ha<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> _______________________________________________<br>
>>>>>>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>>>>>>><br>
>>>>>>> Visit other Kitware open-source projects at<br>
>>>>>>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>>>>>>><br>
>>>>>>> Please keep messages on-topic and check the VTK FAQ at:<br>
>>>>>>> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>>>>>>><br>
>>>>>>> Follow this link to subscribe/unsubscribe:<br>
>>>>>>> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>>>><br>
>>><br>
><br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20120420/a1576e71/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20120420/a1576e71/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Fri, 20 Apr 2012 02:42:21 -0700 (PDT)<br>
From: FrankWhite <<a href="mailto:frankwhite@live.nl">frankwhite@live.nl</a>><br>
Subject: [vtkusers] Reset Window Level / Pressing 'r' key<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID: <<a href="mailto:1334914941826-5653790.post@n5.nabble.com">1334914941826-5653790.post@n5.nabble.com</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
Hi<br>
<br>
Does anyone know the code behind pressing the 'r' key or how to duplicate<br>
its functionality?<br>
<br>
I want the camera to reset such that all actors are in the center of the<br>
window.<br>
<br>
I tried:<br>
- renderer->ResetCamera();<br>
- renderer->Render();<br>
- Invoking the ResetWindowLevel event<br>
- ..<br>
<br>
None seem to do the job right. Only when I press 'r' it is centered<br>
correctly.<br>
<br>
I hope someone can shed some light over this.<br>
<br>
Thanks in advance.<br>
<br>
Frank W.<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Reset-Window-Level-Pressing-r-key-tp5653790p5653790.html" target="_blank">http://vtk.1045678.n5.nabble.com/Reset-Window-Level-Pressing-r-key-tp5653790p5653790.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Fri, 20 Apr 2012 11:05:10 +0000<br>
From: Dan Barker <<a href="mailto:dbpvusrlist@hotmail.co.uk">dbpvusrlist@hotmail.co.uk</a>><br>
Subject: [vtkusers] Loading Point Data using Python<br>
To: <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
Message-ID: <DUB111-W280B736982AC122574DA28E4220@phx.gbl><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
<br>
Dear All,<br>
I have some data files which are written by our simulation they are .vtp format with point data. Each point has several properties such as "Density" or "Pressure" associated with it. I wish to load these files using a python script which I can then use to look at their properties and extract the results I'm interested in. I have successfully loaded the files and I can read the points positions' but I have no idea how to access the accompanying properties, could anybody suggest how to do this?<br>
Currently to load the file I am doing the following;<br>
reader = vtk.vtkXMLPolyDataReader()reader.SetFileName(file)reader.Update()data = reader.GetOutput()data.Update()<br>
print(str(type(data))) #outputs <type 'vtkobject'><br>
for i in range(data.GetNumberOfPoints()): p = data.GetPoints().GetPoint(i) #p is a tuple with the x,y & z coordinates.<br>
<br>
Thanks,<br>
Dan<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20120420/3aed46ea/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20120420/3aed46ea/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Fri, 20 Apr 2012 08:07:17 -0400<br>
From: David Doria <<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>><br>
Subject: Re: [vtkusers] Reset Window Level / Pressing 'r' key<br>
To: FrankWhite <<a href="mailto:frankwhite@live.nl">frankwhite@live.nl</a>><br>
Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID:<br>
<<a href="mailto:CABDpjTk0v3LALGffyQUX5%2BLbaTPBWTxbgREM6fvHGNaGGzq8dw@mail.gmail.com">CABDpjTk0v3LALGffyQUX5+LbaTPBWTxbgREM6fvHGNaGGzq8dw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
On Fri, Apr 20, 2012 at 5:42 AM, FrankWhite <<a href="mailto:frankwhite@live.nl">frankwhite@live.nl</a>> wrote:<br>
<br>
> Hi<br>
><br>
> Does anyone know the code behind pressing the 'r' key or how to duplicate<br>
> its functionality?<br>
><br>
> I want the camera to reset such that all actors are in the center of the<br>
> window.<br>
><br>
> I tried:<br>
> - renderer->ResetCamera();<br>
> - renderer->Render();<br>
> - Invoking the ResetWindowLevel event<br>
> - ..<br>
><br>
> None seem to do the job right. Only when I press 'r' it is centered<br>
> correctly.<br>
><br>
> I hope someone can shed some light over this.<br>
><br>
> Thanks in advance.<br>
><br>
> Frank W.<br>
><br>
<br>
In vtkInteractorStyle.cxx this is the relevant code in the OnChar()<br>
function:<br>
<br>
case 'r' :<br>
case 'R' :<br>
this->FindPokedRenderer(rwi->GetEventPosition()[0],<br>
rwi->GetEventPosition()[1]);<br>
if(this->CurrentRenderer!=0)<br>
{<br>
this->CurrentRenderer->ResetCamera();<br>
}<br>
else<br>
{<br>
vtkWarningMacro(<<"no current renderer on the interactor style.");<br>
}<br>
rwi->Render();<br>
break;<br>
<br>
As you can see all it does is call ResetCamera(). The centering is exactly<br>
the job of the ResetCamera() function - why do you think it is not working<br>
correctly? Can you make the shortest possible example to show us a case<br>
where it doesn't work?<br>
<br>
David<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20120420/79ceb010/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20120420/79ceb010/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 8<br>
Date: Fri, 20 Apr 2012 08:11:37 -0400<br>
From: Sebastien Jourdain <<a href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>><br>
Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class<br>
vtkJPEGWriter and function SetInput<br>
To: Tuan Ha Tran <<a href="mailto:tuan-ha.tran@insa-lyon.fr">tuan-ha.tran@insa-lyon.fr</a>><br>
Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID:<br>
<CABObKxcXMA2VAH6YZokPq=<a href="mailto:6inTW6-JLH89GdtRGaowoGSSs34Q@mail.gmail.com">6inTW6-JLH89GdtRGaowoGSSs34Q@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=windows-1252<br>
<br>
Sure I do.<br>
<br>
The PWServer process need to have access to the X server as it is<br>
using OpenGL to do the rendering.<br>
Basically tomcat need to run on a graphical session, and that session<br>
needs to remains open. Otherwise, you will need to build ParaView with<br>
OSMesa. OSMesa will use the CPU instead of of the GPU and therefore<br>
will be slower but then you will be able to run the server without any<br>
graphical session.<br>
<br>
That's the whole purpose of that wiki section which is meant to<br>
advanced user that have some constraints on their deployment... (No<br>
GPU and want to use system package)<br>
<br>
ParaViewWeb with system tomcat package: This section explain how to<br>
use a system tomcat package with ParaViewWeb on headless server.<br>
(Offscreen rendering + system security setting)<br>
<br>
Seb<br>
<br>
On Fri, Apr 20, 2012 at 3:57 AM, Tuan Ha Tran <<a href="mailto:tuan-ha.tran@insa-lyon.fr">tuan-ha.tran@insa-lyon.fr</a>> wrote:<br>
> Hi Seb,<br>
> ?? So, in the log file, it "bad X server connections"<br>
> with?"vtkXOpenGLRenderWindow".<br>
> ?? I checked the configuration of pw-config.properties but nothing abnormal.<br>
> ?? If you have any idea ...<br>
><br>
><br>
> ----- Original Message -----<br>
> From: Sebastien Jourdain <<a href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>><br>
> To: Tuan Ha Tran <<a href="mailto:tuan-ha.tran@insa-lyon.fr">tuan-ha.tran@insa-lyon.fr</a>><br>
> Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>, Frederic Cervenansky<br>
> <<a href="mailto:frederic.cervenansky@creatis.insa-lyon.fr">frederic.cervenansky@creatis.insa-lyon.fr</a>><br>
> Sent: Thu, 19 Apr 2012 15:30:40 +0200 (CEST)<br>
> Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class<br>
> vtkJPEGWriter and function SetInput<br>
><br>
> Try to stop all the services (tomcat + activemq). Remove all the logs<br>
> of tomcat and the one that are inside WORK_DIR/logs that you setup in<br>
> CMake and that is specified inside the pw-config.propertie.<br>
><br>
> Once done, start again activemq and tomcat. Test again and if it<br>
> fails, you will have to look at all those logs to see if you have any<br>
> feedback of the reason of the issue...<br>
><br>
> Seb<br>
><br>
> On Thu, Apr 19, 2012 at 4:43 AM, Tuan Ha Tran wrote:<br>
>> Seb,<br>
>> All theses problems are gone, but now, the latest :<br>
>> When I tried to create a new session, now nothing appears, and I have, in<br>
>> my<br>
>> "Apache-activemq" shell "INFO | Transport failed: java.io.EOFException"<br>
>> If you can help me ..... thank you very much indeed<br>
>><br>
>><br>
>><br>
>><br>
>> ----- Original Message -----<br>
>> From: Sebastien Jourdain<br>
>> To: Tuan Ha Tran<br>
>> Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>, Frederic Cervenansky<br>
>><br>
>> Sent: Wed, 18 Apr 2012 19:01:48 +0200 (CEST)<br>
>> Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class<br>
>> vtkJPEGWriter and function SetInput<br>
>><br>
>> What do you mean by "my apache-tomcat-7.0.26" ?<br>
>> If it's a tgz file that you download with your user, you DO NOT HAVE<br>
>> TO read the documentation<br>
>> "<a href="http://www.paraview.org/Wiki/ParaViewWeb_with_system_tomcat_package" target="_blank">http://www.paraview.org/Wiki/ParaViewWeb_with_system_tomcat_package</a>"<br>
>><br>
>> By system tomcat, I mean: "apt-get install tomcat"<br>
>> And with system tomcat, it is trickier to install ParaViewWeb due to<br>
>> security reason... (class path, security grant...)<br>
>> That's why a custom read me is provided otherwise, you just setup a<br>
>> path where you want tomcat to write its data and that's it...<br>
>><br>
>> Seb<br>
>><br>
>><br>
>> On Wed, Apr 18, 2012 at 12:52 PM, Sebastien Jourdain<br>
>> wrote:<br>
>>> How did you installed tomcat ?<br>
>>><br>
>>> Seb<br>
>>><br>
>>> On Wed, Apr 18, 2012 at 11:59 AM, Tuan Ha Tran<br>
>>> wrote:<br>
>>>> So the result is "No", always the same error.<br>
>>>> Yes, another information : I didn't find any file named<br>
>>>> ???????????? /etc/init.d/tomcat6,<br>
>>>> ???????????? /var/lib/tomcat6/conf/policy.d/03catalina.policy,<br>
>>>> ???????????? /var/lib/tomcat6/conf/policy.d/04webapps.policy<br>
>>>> so I went to conf folder in my apache-tomcat-7.0.26 and added all in<br>
>>>> "catalina.policy"<br>
>>>><br>
>>>><br>
>>>><br>
>>>> ----- Original Message -----<br>
>>>> From: Tuan Ha Tran<br>
>>>> To: Sebastien Jourdain<br>
>>>> Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>, Frederic Cervenansky<br>
>>>><br>
>>>> Sent: Wed, 18 Apr 2012 17:53:48 +0200 (CEST)<br>
>>>> Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class<br>
>>>> vtkJPEGWriter and function SetInput<br>
>>>><br>
>>>> Thank you for your reponse.<br>
>>>> As I said, I followed the tutorial in the<br>
>>>> "<a href="http://www.paraview.org/Wiki/ParaViewWeb_with_system_tomcat_package" target="_blank">http://www.paraview.org/Wiki/ParaViewWeb_with_system_tomcat_package</a>"<br>
>>>><br>
>>>> cd ..<br>
>>>> chown -R tomcat6 paraviewweb-work<br>
>>>> chgrp -R tomcat6 paraviewweb-work<br>
>>>><br>
>>>><br>
>>>> And, the right is set to tomcat (because there is an error "no user<br>
>>>> named<br>
>>>> tomcat6") (I don't know if we can use root)<br>
>>>> However, I will try with root and we'll see.<br>
>>>> Thank again Seb<br>
>>>><br>
>>>><br>
>>>> ----- Original Message -----<br>
>>>> From: Sebastien Jourdain<br>
>>>> To: Tuan Ha Tran<br>
>>>> Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>, Frederic Cervenansky<br>
>>>><br>
>>>> Sent: Wed, 18 Apr 2012 17:31:51 +0200 (CEST)<br>
>>>> Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class<br>
>>>> vtkJPEGWriter and function SetInput<br>
>>>><br>
>>>> Hi Tuan,<br>
>>>><br>
>>>> Those your local tomcat that run under your user has the right to<br>
>>>> write in that directory ?<br>
>>>><br>
>>>> /var/lib/tomcat6/paraviewweb-work/ ?<br>
>>>><br>
>>>> Seb<br>
>>>><br>
>>>> On Wed, Apr 18, 2012 at 11:10 AM, Tuan Ha Tran<br>
>>>> wrote:<br>
>>>>> Hi Seb,<br>
>>>>> ??? I have another thing to ask you (I'm sorry if this question is<br>
>>>>> already<br>
>>>>> asked, but I found my problem different)<br>
>>>>> ? ? I use super build to build ParaViewWeb with all the settings by<br>
>>>>> default.<br>
>>>>> It's done.<br>
>>>>><br>
>>>>> ? ? Next :<br>
>>>>> ? ? - I downloaded the apache-tomcat-7.0.26<br>
>>>>> ? ? - Copied all the *.war generated by the SuperBuild into<br>
>>>>> tomcat7.0.26's<br>
>>>>> webapps folder<br>
>>>>> ??? - Copied pw-config.properties into apache-tomcat-7.0.26/lib<br>
>>>>><br>
>>>>> ??? To run PWApps,<br>
>>>>> ??? - I started JMS broker d4apache Activemq, the latest version is<br>
>>>>> 5.5.1<br>
>>>>> (./activemq-admin start)<br>
>>>>> ??? - I started server Tomcat (./catalina.sh start)<br>
>>>>><br>
>>>>> ??? Result: when I tried to open a session in PWApps @<br>
>>>>> <a href="http://localhost:8080/PWApp/" target="_blank">http://localhost:8080/PWApp/</a><br>
>>>>> ??? the error appeared : An error occured during the loading.<br>
>>>>> org.hibernate.exception.GenericJDBCException: Cannot open connection<br>
>>>>><br>
>>>>><br>
>>>>> ??? It's absolutely a problem with hibernate, the connection with the<br>
>>>>> database. But I don't quite understand how to fix this.<br>
>>>>> ??? Do we have to modify pw-config.properties? What do we have to do?<br>
>>>>><br>
>>>>> ??? About the working directory, I followed the tutorial @<br>
>>>>> <a href="http://www.paraview.org/Wiki/ParaViewWeb_with_system_tomcat_package" target="_blank">http://www.paraview.org/Wiki/ParaViewWeb_with_system_tomcat_package</a>.<br>
>>>>> ? ? Thank you for your help.<br>
>>>>><br>
>>>>><br>
>>>>> ********************************************************************<br>
>>>>> ***************** pw-config.properties<br>
>>>>> **********************************<br>
>>>>> ********************************************************************<br>
>>>>><br>
>>>>> # Directory used to store application files<br>
>>>>> pw.working.directory=/var/lib/tomcat6/paraviewweb-work/<br>
>>>>><br>
>>>>> # Logging level that should be used [DEBUG, INFO, WARNING, ERROR,<br>
>>>>> CRITICAL]<br>
>>>>> pw.logging.level=ERROR<br>
>>>>><br>
>>>>> # Do we enable logging [on, off, yes, no]<br>
>>>>> paraview.logging=OFF<br>
>>>>> pw.logging=ON<br>
>>>>><br>
>>>>> # Inactivity timeout for garbage collecting PWServer applications<br>
>>>>> # time is given in minute<br>
>>>>> pw.garbage.collector.timeout=5<br>
>>>>><br>
>>>>> # Administration page user credentials<br>
>>>>> pw.admin.login=admin<br>
>>>>> pw.admin.password=admin<br>
>>>>><br>
>>>>> # Total number of resources available<br>
>>>>> pw.max.resources=5<br>
>>>>><br>
>>>>> # PWServer executable path settings<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> pw.executable.path.default=/var/lib/tomcat6/paraviewweb-work/bin/PWServer.sh<br>
>>>>> #<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> pw.executable.path.parallel=/home/thtran/projects/ParaViewWeb/install-pw/bin/PWServer<br>
>>>>> # pw.executable.path.manta=/home/seb/tmp/ParaWeb-work/exec/manta.sh<br>
>>>>><br>
>>>>> # pvserver executable path settings<br>
>>>>> # pvserver.executable.path.demo=/home/seb/tmp/ParaWeb-work/exec/demo.sh<br>
>>>>><br>
>>>>> # Plugin directory settings<br>
>>>>> pw.plugins.default=/var/lib/tomcat6/paraviewweb-work/plugins<br>
>>>>> # pw.plugins.parallel=/usr/local/PVW/PWSer_WD/plugins<br>
>>>>> # pw.plugins.manta=/usr/local/PVW/PWSer_WD/plugins<br>
>>>>><br>
>>>>> # Resource consumption definition<br>
>>>>> pw.resource.consumption.default=1<br>
>>>>> # pw.resource.consumption.parallel=4<br>
>>>>> # pw.resource.consumption.manta=2<br>
>>>>><br>
>>>>> # Optional thirdpart properties<br>
>>>>> pw.gwt-app.data=/var/lib/tomcat6/paraviewweb-work/data<br>
>>>>> pw.gwt-app.states=/var/lib/tomcat6/paraviewweb-work/states<br>
>>>>> # pw.gwt-app.webgl=/usr/local/PVW/PWSer_WD/webgl<br>
>>>>> pw.gwt-app.confs=default<br>
>>>>> # Optional PWApp upload properties<br>
>>>>> # - size in MegaBytes<br>
>>>>> # - timeout in minute<br>
>>>>> # - types provides the set of extension allowed<br>
>>>>> pw.gwt-app.upload.size=10<br>
>>>>> pw.gwt-app.upload.timeout=2<br>
>>>>> pw.gwt-app.upload.types=vtp:vtk<br>
>>>>><br>
>>>>> # Remote server command line<br>
>>>>> #? * Tomcat will call any script in the following directory and will<br>
>>>>> execute<br>
>>>>> the<br>
>>>>> #??? following command line where portnumber is an available<br>
>>>>> portnumber:<br>
>>>>> #?????? > fullScriptPath username password<br>
>>>>> #? * Documentation on How to start a pvserver<br>
>>>>> #??? - <a href="http://www.cmake.org/Wiki/Setting_up_a_ParaView_Server" target="_blank">http://www.cmake.org/Wiki/Setting_up_a_ParaView_Server</a><br>
>>>>> # pw.remote.settings=/usr/local/PVW/PWSer_WD/remote-settings<br>
>>>>><br>
>>>>> pw.remote.log.dir=/var/lib/tomcat6/paraviewweb-work/logs<br>
>>>>><br>
>>>>> # Optional PWStateApp working directory<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> pw.state.working.directory=/var/lib/tomcat6/paraviewweb-work/states-workdir<br>
>>>>><br>
>>>>> ***********************************************************<br>
>>>>> ************ end of pw-config.properties*************************<br>
>>>>> ***********************************************************<br>
>>>>><br>
>>>>><br>
>>>>> ----- Original Message -----<br>
>>>>> From: Sebastien Jourdain<br>
>>>>> To: Tuan Ha Tran<br>
>>>>> Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>>>>> Sent: Fri, 06 Apr 2012 19:33:40 +0200 (CEST)<br>
>>>>> Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class<br>
>>>>> vtkJPEGWriter and function SetInput<br>
>>>>><br>
>>>>> You should use ParaView 3.14.<br>
>>>>><br>
>>>>> I'm sure you are doing something wrong that I'm not aware of, because<br>
>>>>> I'm using ParaViewWeb with ParaView 3.14 myself. So if I managed to<br>
>>>>> build it, you should too, unless we are doing something different.<br>
>>>>><br>
>>>>> What did you do with the SuperBuild ? Did it manage to fetch ParaView<br>
>>>>> and ParaViewWeb and start building those as well as their dependency<br>
>>>>> like apr ?<br>
>>>>><br>
>>>>> Seb<br>
>>>>><br>
>>>>> On Fri, Apr 6, 2012 at 11:04 AM, Tuan Ha Tran wrote:<br>
>>>>>> Hi,<br>
>>>>>> ?I tried your solution with SuperBuild but the problem still exist.<br>
>>>>>> ?I wonder if I should reuse ParaView 3.10.1?<br>
>>>>>><br>
>>>>>> ?Thank you Seb<br>
>>>>>><br>
>>>>>> ----- Original Message -----<br>
>>>>>> From: "Sebastien Jourdain"<br>
>>>>>> To: "Tuan Ha Tran"<br>
>>>>>> Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>>>>>> Sent: Friday, April 6, 2012 4:53:43 PM<br>
>>>>>> Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class<br>
>>>>>> vtkJPEGWriter and function SetInput<br>
>>>>>><br>
>>>>>> Hi Tuan Ha Tran,<br>
>>>>>><br>
>>>>>> The documentation was written when ParaView 3.10 was out and that<br>
>>>>>> version was lacking some fixed that were on git/master at that time<br>
>>>>>> but I should definitely update the documentation to recommend to use<br>
>>>>>> ParaView 3.14 and not git/master.<br>
>>>>>> In fact, two weeks ago the latest changes in VTK that breaks its<br>
>>>>>> backward compatibility went into ParaView and for which I didn't get<br>
>>>>>> the time to update ParaViewWeb.<br>
>>>>>><br>
>>>>>> Regarding your ParaView build issue, I'm wondering what you did... But<br>
>>>>>> anyway, if you want to ease the build process, you should definitely<br>
>>>>>> try to use the SuperBuild package so every third party get<br>
>>>>>> automatically compiled for you with the correct arguments and options.<br>
>>>>>><br>
>>>>>> <a href="http://www.paraview.org/Wiki/ParaViewWeb_SuperBuild" target="_blank">http://www.paraview.org/Wiki/ParaViewWeb_SuperBuild</a><br>
>>>>>><br>
>>>>>> Seb<br>
>>>>>><br>
>>>>>> On Fri, Apr 6, 2012 at 9:25 AM, Tuan Ha Tran wrote:<br>
>>>>>>> Seb,<br>
>>>>>>> Thank you for your reply. I just followed the instructions in the<br>
>>>>>>> ParaViewWeb site.<br>
>>>>>>> - Mkdir ParaViewWeb<br>
>>>>>>> - Clone git from it address<br>
>>>>>>><br>
>>>>>>> I used the Ccmake command (in build-pw) for the source in the<br>
>>>>>>> ParaViewWeb<br>
>>>>>>> directory (build-pw is a sub-directory of ParaViewWeb). I compiled<br>
>>>>>>> and<br>
>>>>>>> then<br>
>>>>>>> the errors.<br>
>>>>>>> I used the latest release (3.14) of ParaView.<br>
>>>>>>><br>
>>>>>>> there was a problem with ParaView, it is the problem of share<br>
>>>>>>> library.<br>
>>>>>>> but I resolved this by adding -fPIC in the CFLAGS and CXXFLAGS, I<br>
>>>>>>> don't<br>
>>>>>>> know<br>
>>>>>>> if that is the problem.<br>
>>>>>>><br>
>>>>>>> so, the vtkJPEGWriter is in the ParaView folder?<br>
>>>>>>><br>
>>>>>>> Thank you once more.<br>
>>>>>>><br>
>>>>>>> ----- Original Message -----<br>
>>>>>>> From: "Sebastien Jourdain"<br>
>>>>>>> To: "Tuan Ha Tran"<br>
>>>>>>> Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>>>>>>> Sent: Friday, April 6, 2012 3:11:17 PM<br>
>>>>>>> Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class<br>
>>>>>>> vtkJPEGWriter and function SetInput<br>
>>>>>>><br>
>>>>>>> Hi Tuan Ha Tran,<br>
>>>>>>><br>
>>>>>>> how did you build ParaViewWeb ? Did you do from the super build or<br>
>>>>>>> from the main repository ?<br>
>>>>>>> ParaViewWeb basically rely on ParaView that embed VTK which embed<br>
>>>>>>> that<br>
>>>>>>> vtkJPEGWriter.cxx<br>
>>>>>>> Which version of ParaView did you used ? The latest release (3.14) is<br>
>>>>>>> known to work...<br>
>>>>>>><br>
>>>>>>> Seb<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> On Fri, Apr 6, 2012 at 5:12 AM, Tuan Ha Tran wrote:<br>
>>>>>>>> Hi everybody,<br>
>>>>>>>> ? I have a problem when trying to compile ParaViewWeb<br>
>>>>>>>> ? This is the detail of my problem<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>> ***********************************************************************<br>
>>>>>>>> %] Built target ParaWebPlugin<br>
>>>>>>>> Scanning dependencies of target PWServer<br>
>>>>>>>> [ 30%] Building CXX object<br>
>>>>>>>> ParaViewAdapter/CMakeFiles/PWServer.dir/vtkPWProcessingEngine.cxx.o<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>> /home/thtran/projects/ParaViewWeb/ParaViewAdapter/vtkPWProcessingEngine.cxx:<br>
>>>>>>>> In member function ?double<br>
>>>>>>>> vtkPWProcessingEngine::ProcessAndSendImage(const<br>
>>>>>>>> char*, vtkImageData*)?:<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>> /home/thtran/projects/ParaViewWeb/ParaViewAdapter/vtkPWProcessingEngine.cxx:439:19:<br>
>>>>>>>> error: ?class vtkJPEGWriter? has no member named ?SetInput?<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>> /home/thtran/projects/ParaViewWeb/ParaViewAdapter/vtkPWProcessingEngine.cxx:448:18:<br>
>>>>>>>> error: ?class vtkPNGWriter? has no member named ?SetInput?<br>
>>>>>>>> make[2]: ***<br>
>>>>>>>><br>
>>>>>>>> [ParaViewAdapter/CMakeFiles/PWServer.dir/vtkPWProcessingEngine.cxx.o]<br>
>>>>>>>> Error<br>
>>>>>>>> 1<br>
>>>>>>>> make[1]: *** [ParaViewAdapter/CMakeFiles/PWServer.dir/all] Error 2<br>
>>>>>>>> make: *** [all] Error 2<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>> *************************************************************************<br>
>>>>>>>><br>
>>>>>>>> When I went to the "wtkPWProcesingEngine.cxx", I found out that<br>
>>>>>>>> wtkJPEGWriter is included by #include vtkJPEGWriter.h". But I<br>
>>>>>>>> couldn't<br>
>>>>>>>> find<br>
>>>>>>>> wtkJPEGWriter.h neither vtkJPEGWriter.cxx.<br>
>>>>>>>><br>
>>>>>>>> When I tried to look for vtkJPEGWriter.cxx by Google, I found this<br>
>>>>>>>> file<br>
>>>>>>>> but I couldn't find any function "SetInput".<br>
>>>>>>>><br>
>>>>>>>> When I tried to deactivate the line where SetInput is located,<br>
>>>>>>>> ParaViewWeb compile, but I think there are some problems with it.<br>
>>>>>>>><br>
>>>>>>>> I want to know if someone has the same problem? How to fix that?<br>
>>>>>>>> Thank you all.<br>
>>>>>>>><br>
>>>>>>>> Ha<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>> _______________________________________________<br>
>>>>>>>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>>>>>>>><br>
>>>>>>>> Visit other Kitware open-source projects at<br>
>>>>>>>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>>>>>>>><br>
>>>>>>>> Please keep messages on-topic and check the VTK FAQ at:<br>
>>>>>>>> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>>>>>>>><br>
>>>>>>>> Follow this link to subscribe/unsubscribe:<br>
>>>>>>>> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>>>>><br>
>>>><br>
>><br>
><br>
<br>
<br>
------------------------------<br>
<br>
Message: 9<br>
Date: Fri, 20 Apr 2012 08:33:10 -0400<br>
From: David E DeMarle <<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>><br>
Subject: Re: [vtkusers] Loading Point Data using Python<br>
To: Dan Barker <<a href="mailto:dbpvusrlist@hotmail.co.uk">dbpvusrlist@hotmail.co.uk</a>><br>
Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID:<br>
<<a href="mailto:CANjZAi-O7si2d%2BLEJR7%2BkVDAfn5eOPwLCigoEQj5PyBHJ%2BsZhA@mail.gmail.com">CANjZAi-O7si2d+LEJR7+kVDAfn5eOPwLCigoEQj5PyBHJ+sZhA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
On Fri, Apr 20, 2012 at 7:05 AM, Dan Barker <<a href="mailto:dbpvusrlist@hotmail.co.uk">dbpvusrlist@hotmail.co.uk</a>> wrote:<br>
> Dear All,<br>
><br>
> I have some data files which are written by our simulation they are .vtp<br>
> format with point data. Each point has several properties such as "Density"<br>
> or "Pressure" associated with it. I wish to load these files using a python<br>
> script which I can then use to look at their properties and extract the<br>
> results I'm interested in. I have successfully loaded the files and I can<br>
> read the points positions' but I have no idea how to access the accompanying<br>
> properties, could anybody suggest how to do this?<br>
><br>
> Currently to load the file I am doing the following;<br>
><br>
> reader = vtk.vtkXMLPolyDataReader()<br>
> reader.SetFileName(file)<br>
> reader.Update()<br>
> data = reader.GetOutput()<br>
> data.Update()<br>
><br>
> print(str(type(data))) ?#outputs <type 'vtkobject'><br>
><br>
> ?for i in range(data.GetNumberOfPoints()):<br>
> ? p = data.GetPoints().GetPoint(i) #p is a tuple with the x,y & z<br>
<br>
valueFoo = data.GetPointData().GetArray("Foo").GetTuple(i)<br>
valueBar = data.GetPointData().GetArray("Bar").GetTuple(i)<br>
<br>
> coordinates.<br>
><br>
><br>
> Thanks,<br>
><br>
> Dan<br>
><br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
<br>
<br>
------------------------------<br>
<br>
Message: 10<br>
Date: Fri, 20 Apr 2012 17:11:22 +0200 (CEST)<br>
From: Tuan Ha Tran <<a href="mailto:tuan-ha.tran@insa-lyon.fr">tuan-ha.tran@insa-lyon.fr</a>><br>
Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class<br>
vtkJPEGWriter and function SetInput<br>
To: Sebastien Jourdain <<a href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>><br>
Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID: <914b1394-85ac-4688-8f01-b017b2099124@zstore2><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Seb,<br>
So I found the solution, I think that is obvious to you but however, I'll write out my solution so it could be useful later.<br>
In CCMake of ParaView, because there is "bad X server connection", so we must disable X<br>
- VTK_OPENGL_HAS_OSMESA ON<br>
- VTK_USE_OFFSCREEN ON<br>
- VTK_USE_X OFF<br>
<br>
And then bingo.<br>
So thank you very much for helping me all these times.<br>
<br>
----- Original Message -----<br>
From: Sebastien Jourdain <<a href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>><br>
To: Tuan Ha Tran <<a href="mailto:tuan-ha.tran@insa-lyon.fr">tuan-ha.tran@insa-lyon.fr</a>><br>
Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>, Frederic Cervenansky <<a href="mailto:frederic.cervenansky@creatis.insa-lyon.fr">frederic.cervenansky@creatis.insa-lyon.fr</a>><br>
Sent: Fri, 20 Apr 2012 14:11:37 +0200 (CEST)<br>
Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class vtkJPEGWriter and function SetInput<br>
<br>
Sure I do.<br>
<br>
The PWServer process need to have access to the X server as it is<br>
using OpenGL to do the rendering.<br>
Basically tomcat need to run on a graphical session, and that session<br>
needs to remains open. Otherwise, you will need to build ParaView with<br>
OSMesa. OSMesa will use the CPU instead of of the GPU and therefore<br>
will be slower but then you will be able to run the server without any<br>
graphical session.<br>
<br>
That's the whole purpose of that wiki section which is meant to<br>
advanced user that have some constraints on their deployment... (No<br>
GPU and want to use system package)<br>
<br>
ParaViewWeb with system tomcat package: This section explain how to<br>
use a system tomcat package with ParaViewWeb on headless server.<br>
(Offscreen rendering + system security setting)<br>
<br>
Seb<br>
<br>
On Fri, Apr 20, 2012 at 3:57 AM, Tuan Ha Tran wrote:<br>
> Hi Seb,<br>
> So, in the log file, it "bad X server connections"<br>
> with "vtkXOpenGLRenderWindow".<br>
> I checked the configuration of pw-config.properties but nothing abnormal.<br>
> If you have any idea ...<br>
><br>
><br>
> ----- Original Message -----<br>
> From: Sebastien Jourdain<br>
> To: Tuan Ha Tran<br>
> Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>, Frederic Cervenansky<br>
><br>
> Sent: Thu, 19 Apr 2012 15:30:40 +0200 (CEST)<br>
> Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class<br>
> vtkJPEGWriter and function SetInput<br>
><br>
> Try to stop all the services (tomcat + activemq). Remove all the logs<br>
> of tomcat and the one that are inside WORK_DIR/logs that you setup in<br>
> CMake and that is specified inside the pw-config.propertie.<br>
><br>
> Once done, start again activemq and tomcat. Test again and if it<br>
> fails, you will have to look at all those logs to see if you have any<br>
> feedback of the reason of the issue...<br>
><br>
> Seb<br>
><br>
> On Thu, Apr 19, 2012 at 4:43 AM, Tuan Ha Tran wrote:<br>
>> Seb,<br>
>> All theses problems are gone, but now, the latest :<br>
>> When I tried to create a new session, now nothing appears, and I have, in<br>
>> my<br>
>> "Apache-activemq" shell "INFO | Transport failed: java.io.EOFException"<br>
>> If you can help me ..... thank you very much indeed<br>
>><br>
>><br>
>><br>
>><br>
>> ----- Original Message -----<br>
>> From: Sebastien Jourdain<br>
>> To: Tuan Ha Tran<br>
>> Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>, Frederic Cervenansky<br>
>><br>
>> Sent: Wed, 18 Apr 2012 19:01:48 +0200 (CEST)<br>
>> Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class<br>
>> vtkJPEGWriter and function SetInput<br>
>><br>
>> What do you mean by "my apache-tomcat-7.0.26" ?<br>
>> If it's a tgz file that you download with your user, you DO NOT HAVE<br>
>> TO read the documentation<br>
>> "<a href="http://www.paraview.org/Wiki/ParaViewWeb_with_system_tomcat_package" target="_blank">http://www.paraview.org/Wiki/ParaViewWeb_with_system_tomcat_package</a>"<br>
>><br>
>> By system tomcat, I mean: "apt-get install tomcat"<br>
>> And with system tomcat, it is trickier to install ParaViewWeb due to<br>
>> security reason... (class path, security grant...)<br>
>> That's why a custom read me is provided otherwise, you just setup a<br>
>> path where you want tomcat to write its data and that's it...<br>
>><br>
>> Seb<br>
>><br>
>><br>
>> On Wed, Apr 18, 2012 at 12:52 PM, Sebastien Jourdain<br>
>> wrote:<br>
>>> How did you installed tomcat ?<br>
>>><br>
>>> Seb<br>
>>><br>
>>> On Wed, Apr 18, 2012 at 11:59 AM, Tuan Ha Tran<br>
>>> wrote:<br>
>>>> So the result is "No", always the same error.<br>
>>>> Yes, another information : I didn't find any file named<br>
>>>> /etc/init.d/tomcat6,<br>
>>>> /var/lib/tomcat6/conf/policy.d/03catalina.policy,<br>
>>>> /var/lib/tomcat6/conf/policy.d/04webapps.policy<br>
>>>> so I went to conf folder in my apache-tomcat-7.0.26 and added all in<br>
>>>> "catalina.policy"<br>
>>>><br>
>>>><br>
>>>><br>
>>>> ----- Original Message -----<br>
>>>> From: Tuan Ha Tran<br>
>>>> To: Sebastien Jourdain<br>
>>>> Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>, Frederic Cervenansky<br>
>>>><br>
>>>> Sent: Wed, 18 Apr 2012 17:53:48 +0200 (CEST)<br>
>>>> Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class<br>
>>>> vtkJPEGWriter and function SetInput<br>
>>>><br>
>>>> Thank you for your reponse.<br>
>>>> As I said, I followed the tutorial in the<br>
>>>> "<a href="http://www.paraview.org/Wiki/ParaViewWeb_with_system_tomcat_package" target="_blank">http://www.paraview.org/Wiki/ParaViewWeb_with_system_tomcat_package</a>"<br>
>>>><br>
>>>> cd ..<br>
>>>> chown -R tomcat6 paraviewweb-work<br>
>>>> chgrp -R tomcat6 paraviewweb-work<br>
>>>><br>
>>>><br>
>>>> And, the right is set to tomcat (because there is an error "no user<br>
>>>> named<br>
>>>> tomcat6") (I don't know if we can use root)<br>
>>>> However, I will try with root and we'll see.<br>
>>>> Thank again Seb<br>
>>>><br>
>>>><br>
>>>> ----- Original Message -----<br>
>>>> From: Sebastien Jourdain<br>
>>>> To: Tuan Ha Tran<br>
>>>> Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>, Frederic Cervenansky<br>
>>>><br>
>>>> Sent: Wed, 18 Apr 2012 17:31:51 +0200 (CEST)<br>
>>>> Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class<br>
>>>> vtkJPEGWriter and function SetInput<br>
>>>><br>
>>>> Hi Tuan,<br>
>>>><br>
>>>> Those your local tomcat that run under your user has the right to<br>
>>>> write in that directory ?<br>
>>>><br>
>>>> /var/lib/tomcat6/paraviewweb-work/ ?<br>
>>>><br>
>>>> Seb<br>
>>>><br>
>>>> On Wed, Apr 18, 2012 at 11:10 AM, Tuan Ha Tran<br>
>>>> wrote:<br>
>>>>> Hi Seb,<br>
>>>>> I have another thing to ask you (I'm sorry if this question is<br>
>>>>> already<br>
>>>>> asked, but I found my problem different)<br>
>>>>> I use super build to build ParaViewWeb with all the settings by<br>
>>>>> default.<br>
>>>>> It's done.<br>
>>>>><br>
>>>>> Next :<br>
>>>>> - I downloaded the apache-tomcat-7.0.26<br>
>>>>> - Copied all the *.war generated by the SuperBuild into<br>
>>>>> tomcat7.0.26's<br>
>>>>> webapps folder<br>
>>>>> - Copied pw-config.properties into apache-tomcat-7.0.26/lib<br>
>>>>><br>
>>>>> To run PWApps,<br>
>>>>> - I started JMS broker d4apache Activemq, the latest version is<br>
>>>>> 5.5.1<br>
>>>>> (./activemq-admin start)<br>
>>>>> - I started server Tomcat (./catalina.sh start)<br>
>>>>><br>
>>>>> Result: when I tried to open a session in PWApps @<br>
>>>>> <a href="http://localhost:8080/PWApp/" target="_blank">http://localhost:8080/PWApp/</a><br>
>>>>> the error appeared : An error occured during the loading.<br>
>>>>> org.hibernate.exception.GenericJDBCException: Cannot open connection<br>
>>>>><br>
>>>>><br>
>>>>> It's absolutely a problem with hibernate, the connection with the<br>
>>>>> database. But I don't quite understand how to fix this.<br>
>>>>> Do we have to modify pw-config.properties? What do we have to do?<br>
>>>>><br>
>>>>> About the working directory, I followed the tutorial @<br>
>>>>> <a href="http://www.paraview.org/Wiki/ParaViewWeb_with_system_tomcat_package" target="_blank">http://www.paraview.org/Wiki/ParaViewWeb_with_system_tomcat_package</a>.<br>
>>>>> Thank you for your help.<br>
>>>>><br>
>>>>><br>
>>>>> ********************************************************************<br>
>>>>> ***************** pw-config.properties<br>
>>>>> **********************************<br>
>>>>> ********************************************************************<br>
>>>>><br>
>>>>> # Directory used to store application files<br>
>>>>> pw.working.directory=/var/lib/tomcat6/paraviewweb-work/<br>
>>>>><br>
>>>>> # Logging level that should be used [DEBUG, INFO, WARNING, ERROR,<br>
>>>>> CRITICAL]<br>
>>>>> pw.logging.level=ERROR<br>
>>>>><br>
>>>>> # Do we enable logging [on, off, yes, no]<br>
>>>>> paraview.logging=OFF<br>
>>>>> pw.logging=ON<br>
>>>>><br>
>>>>> # Inactivity timeout for garbage collecting PWServer applications<br>
>>>>> # time is given in minute<br>
>>>>> pw.garbage.collector.timeout=5<br>
>>>>><br>
>>>>> # Administration page user credentials<br>
>>>>> pw.admin.login=admin<br>
>>>>> pw.admin.password=admin<br>
>>>>><br>
>>>>> # Total number of resources available<br>
>>>>> pw.max.resources=5<br>
>>>>><br>
>>>>> # PWServer executable path settings<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> pw.executable.path.default=/var/lib/tomcat6/paraviewweb-work/bin/PWServer.sh<br>
>>>>> #<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> pw.executable.path.parallel=/home/thtran/projects/ParaViewWeb/install-pw/bin/PWServer<br>
>>>>> # pw.executable.path.manta=/home/seb/tmp/ParaWeb-work/exec/manta.sh<br>
>>>>><br>
>>>>> # pvserver executable path settings<br>
>>>>> # pvserver.executable.path.demo=/home/seb/tmp/ParaWeb-work/exec/demo.sh<br>
>>>>><br>
>>>>> # Plugin directory settings<br>
>>>>> pw.plugins.default=/var/lib/tomcat6/paraviewweb-work/plugins<br>
>>>>> # pw.plugins.parallel=/usr/local/PVW/PWSer_WD/plugins<br>
>>>>> # pw.plugins.manta=/usr/local/PVW/PWSer_WD/plugins<br>
>>>>><br>
>>>>> # Resource consumption definition<br>
>>>>> pw.resource.consumption.default=1<br>
>>>>> # pw.resource.consumption.parallel=4<br>
>>>>> # pw.resource.consumption.manta=2<br>
>>>>><br>
>>>>> # Optional thirdpart properties<br>
>>>>> pw.gwt-app.data=/var/lib/tomcat6/paraviewweb-work/data<br>
>>>>> pw.gwt-app.states=/var/lib/tomcat6/paraviewweb-work/states<br>
>>>>> # pw.gwt-app.webgl=/usr/local/PVW/PWSer_WD/webgl<br>
>>>>> pw.gwt-app.confs=default<br>
>>>>> # Optional PWApp upload properties<br>
>>>>> # - size in MegaBytes<br>
>>>>> # - timeout in minute<br>
>>>>> # - types provides the set of extension allowed<br>
>>>>> pw.gwt-app.upload.size=10<br>
>>>>> pw.gwt-app.upload.timeout=2<br>
>>>>> pw.gwt-app.upload.types=vtp:vtk<br>
>>>>><br>
>>>>> # Remote server command line<br>
>>>>> # * Tomcat will call any script in the following directory and will<br>
>>>>> execute<br>
>>>>> the<br>
>>>>> # following command line where portnumber is an available<br>
>>>>> portnumber:<br>
>>>>> # > fullScriptPath username password<br>
>>>>> # * Documentation on How to start a pvserver<br>
>>>>> # - <a href="http://www.cmake.org/Wiki/Setting_up_a_ParaView_Server" target="_blank">http://www.cmake.org/Wiki/Setting_up_a_ParaView_Server</a><br>
>>>>> # pw.remote.settings=/usr/local/PVW/PWSer_WD/remote-settings<br>
>>>>><br>
>>>>> pw.remote.log.dir=/var/lib/tomcat6/paraviewweb-work/logs<br>
>>>>><br>
>>>>> # Optional PWStateApp working directory<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> pw.state.working.directory=/var/lib/tomcat6/paraviewweb-work/states-workdir<br>
>>>>><br>
>>>>> ***********************************************************<br>
>>>>> ************ end of pw-config.properties*************************<br>
>>>>> ***********************************************************<br>
>>>>><br>
>>>>><br>
>>>>> ----- Original Message -----<br>
>>>>> From: Sebastien Jourdain<br>
>>>>> To: Tuan Ha Tran<br>
>>>>> Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>>>>> Sent: Fri, 06 Apr 2012 19:33:40 +0200 (CEST)<br>
>>>>> Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class<br>
>>>>> vtkJPEGWriter and function SetInput<br>
>>>>><br>
>>>>> You should use ParaView 3.14.<br>
>>>>><br>
>>>>> I'm sure you are doing something wrong that I'm not aware of, because<br>
>>>>> I'm using ParaViewWeb with ParaView 3.14 myself. So if I managed to<br>
>>>>> build it, you should too, unless we are doing something different.<br>
>>>>><br>
>>>>> What did you do with the SuperBuild ? Did it manage to fetch ParaView<br>
>>>>> and ParaViewWeb and start building those as well as their dependency<br>
>>>>> like apr ?<br>
>>>>><br>
>>>>> Seb<br>
>>>>><br>
>>>>> On Fri, Apr 6, 2012 at 11:04 AM, Tuan Ha Tran wrote:<br>
>>>>>> Hi,<br>
>>>>>> I tried your solution with SuperBuild but the problem still exist.<br>
>>>>>> I wonder if I should reuse ParaView 3.10.1?<br>
>>>>>><br>
>>>>>> Thank you Seb<br>
>>>>>><br>
>>>>>> ----- Original Message -----<br>
>>>>>> From: "Sebastien Jourdain"<br>
>>>>>> To: "Tuan Ha Tran"<br>
>>>>>> Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>>>>>> Sent: Friday, April 6, 2012 4:53:43 PM<br>
>>>>>> Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class<br>
>>>>>> vtkJPEGWriter and function SetInput<br>
>>>>>><br>
>>>>>> Hi Tuan Ha Tran,<br>
>>>>>><br>
>>>>>> The documentation was written when ParaView 3.10 was out and that<br>
>>>>>> version was lacking some fixed that were on git/master at that time<br>
>>>>>> but I should definitely update the documentation to recommend to use<br>
>>>>>> ParaView 3.14 and not git/master.<br>
>>>>>> In fact, two weeks ago the latest changes in VTK that breaks its<br>
>>>>>> backward compatibility went into ParaView and for which I didn't get<br>
>>>>>> the time to update ParaViewWeb.<br>
>>>>>><br>
>>>>>> Regarding your ParaView build issue, I'm wondering what you did... But<br>
>>>>>> anyway, if you want to ease the build process, you should definitely<br>
>>>>>> try to use the SuperBuild package so every third party get<br>
>>>>>> automatically compiled for you with the correct arguments and options.<br>
>>>>>><br>
>>>>>> <a href="http://www.paraview.org/Wiki/ParaViewWeb_SuperBuild" target="_blank">http://www.paraview.org/Wiki/ParaViewWeb_SuperBuild</a><br>
>>>>>><br>
>>>>>> Seb<br>
>>>>>><br>
>>>>>> On Fri, Apr 6, 2012 at 9:25 AM, Tuan Ha Tran wrote:<br>
>>>>>>> Seb,<br>
>>>>>>> Thank you for your reply. I just followed the instructions in the<br>
>>>>>>> ParaViewWeb site.<br>
>>>>>>> - Mkdir ParaViewWeb<br>
>>>>>>> - Clone git from it address<br>
>>>>>>><br>
>>>>>>> I used the Ccmake command (in build-pw) for the source in the<br>
>>>>>>> ParaViewWeb<br>
>>>>>>> directory (build-pw is a sub-directory of ParaViewWeb). I compiled<br>
>>>>>>> and<br>
>>>>>>> then<br>
>>>>>>> the errors.<br>
>>>>>>> I used the latest release (3.14) of ParaView.<br>
>>>>>>><br>
>>>>>>> there was a problem with ParaView, it is the problem of share<br>
>>>>>>> library.<br>
>>>>>>> but I resolved this by adding -fPIC in the CFLAGS and CXXFLAGS, I<br>
>>>>>>> don't<br>
>>>>>>> know<br>
>>>>>>> if that is the problem.<br>
>>>>>>><br>
>>>>>>> so, the vtkJPEGWriter is in the ParaView folder?<br>
>>>>>>><br>
>>>>>>> Thank you once more.<br>
>>>>>>><br>
>>>>>>> ----- Original Message -----<br>
>>>>>>> From: "Sebastien Jourdain"<br>
>>>>>>> To: "Tuan Ha Tran"<br>
>>>>>>> Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
>>>>>>> Sent: Friday, April 6, 2012 3:11:17 PM<br>
>>>>>>> Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class<br>
>>>>>>> vtkJPEGWriter and function SetInput<br>
>>>>>>><br>
>>>>>>> Hi Tuan Ha Tran,<br>
>>>>>>><br>
>>>>>>> how did you build ParaViewWeb ? Did you do from the super build or<br>
>>>>>>> from the main repository ?<br>
>>>>>>> ParaViewWeb basically rely on ParaView that embed VTK which embed<br>
>>>>>>> that<br>
>>>>>>> vtkJPEGWriter.cxx<br>
>>>>>>> Which version of ParaView did you used ? The latest release (3.14) is<br>
>>>>>>> known to work...<br>
>>>>>>><br>
>>>>>>> Seb<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> On Fri, Apr 6, 2012 at 5:12 AM, Tuan Ha Tran wrote:<br>
>>>>>>>> Hi everybody,<br>
>>>>>>>> I have a problem when trying to compile ParaViewWeb<br>
>>>>>>>> This is the detail of my problem<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>> ***********************************************************************<br>
>>>>>>>> %] Built target ParaWebPlugin<br>
>>>>>>>> Scanning dependencies of target PWServer<br>
>>>>>>>> [ 30%] Building CXX object<br>
>>>>>>>> ParaViewAdapter/CMakeFiles/PWServer.dir/vtkPWProcessingEngine.cxx.o<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>> /home/thtran/projects/ParaViewWeb/ParaViewAdapter/vtkPWProcessingEngine.cxx:<br>
>>>>>>>> In member function ?double<br>
>>>>>>>> vtkPWProcessingEngine::ProcessAndSendImage(const<br>
>>>>>>>> char*, vtkImageData*)?:<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>> /home/thtran/projects/ParaViewWeb/ParaViewAdapter/vtkPWProcessingEngine.cxx:439:19:<br>
>>>>>>>> error: ?class vtkJPEGWriter? has no member named ?SetInput?<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>> /home/thtran/projects/ParaViewWeb/ParaViewAdapter/vtkPWProcessingEngine.cxx:448:18:<br>
>>>>>>>> error: ?class vtkPNGWriter? has no member named ?SetInput?<br>
>>>>>>>> make[2]: ***<br>
>>>>>>>><br>
>>>>>>>> [ParaViewAdapter/CMakeFiles/PWServer.dir/vtkPWProcessingEngine.cxx.o]<br>
>>>>>>>> Error<br>
>>>>>>>> 1<br>
>>>>>>>> make[1]: *** [ParaViewAdapter/CMakeFiles/PWServer.dir/all] Error 2<br>
>>>>>>>> make: *** [all] Error 2<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>> *************************************************************************<br>
>>>>>>>><br>
>>>>>>>> When I went to the "wtkPWProcesingEngine.cxx", I found out that<br>
>>>>>>>> wtkJPEGWriter is included by #include vtkJPEGWriter.h". But I<br>
>>>>>>>> couldn't<br>
>>>>>>>> find<br>
>>>>>>>> wtkJPEGWriter.h neither vtkJPEGWriter.cxx.<br>
>>>>>>>><br>
>>>>>>>> When I tried to look for vtkJPEGWriter.cxx by Google, I found this<br>
>>>>>>>> file<br>
>>>>>>>> but I couldn't find any function "SetInput".<br>
>>>>>>>><br>
>>>>>>>> When I tried to deactivate the line where SetInput is located,<br>
>>>>>>>> ParaViewWeb compile, but I think there are some problems with it.<br>
>>>>>>>><br>
>>>>>>>> I want to know if someone has the same problem? How to fix that?<br>
>>>>>>>> Thank you all.<br>
>>>>>>>><br>
>>>>>>>> Ha<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>> _______________________________________________<br>
>>>>>>>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>>>>>>>><br>
>>>>>>>> Visit other Kitware open-source projects at<br>
>>>>>>>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>>>>>>>><br>
>>>>>>>> Please keep messages on-topic and check the VTK FAQ at:<br>
>>>>>>>> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>>>>>>>><br>
>>>>>>>> Follow this link to subscribe/unsubscribe:<br>
>>>>>>>> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>>>>><br>
>>>><br>
>><br>
><br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20120420/b609d430/attachment.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20120420/b609d430/attachment.htm</a>><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
vtkusers mailing list<br>
<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
<br>
End of vtkusers Digest, Vol 96, Issue 24<br>
****************************************<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Dorian A. Flowers<br><br><div>I don't believe you have to be better than everybody else. I believe you have to be better than you ever thought you could be.</div>
<div><div>Ken Venturi</div></div><br>