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