[Paraview] Image Mathematics

2011-03-29 Thread Jérôme
Dear all,
I am trying to embed the vtkImageMathematics filter in ParaView, but I
have a pipeline issue (attached are the corresponding XML
servermanagers).
For one input operations (add K, invert, sin, cos,...) everything
works well. But for two inputs operations (Add, Multiply, Min,
Max,...) the pipeline browser does not show the connections between
the input images and the ImageMathematics filter. Note that updating
the pipeline produces the right output! The only problem is that I
cannot right-click and choose change input. Another consequence is
that a python-scripted state is not able to rebuild the pipeline.

FYI, I already developed a two-image-inputs filter (image convolution
with a kernel represented by another vtkImageData:
http://github.com/jeromevelut/vtkKinship) for which this issue doesn't
occur. Could it be the way the input informations are provided at the
VTK side of the filter ?

Thanks a lot,
Jerome
ServerManagerConfiguration
   ProxyGroup name=filters
  SourceProxy name=ImageMathematics1Input
   class=vtkImageMathematics
  label=Image Mathematics 1 Input
 Documentation
  long_help= 
  short_help= 
 /Documentation
 InputProperty
   name=Input
   command=SetInputConnection
   port_index=0
ProxyGroupDomain name=groups
   Group name=sources/
   Group name=filters/
/ProxyGroupDomain
DataTypeDomain name=input_type
   DataType value=vtkImageData/
/DataTypeDomain
Documentation
   Set the input to the Image Mathematics filter.
/Documentation
 /InputProperty

 IntVectorProperty
   name=Operation
   command=SetOperation
   number_of_elements=1
   default_values=4

EnumerationDomain name=enum
   Entry value=4 text=Invert/
   Entry value=5 text=Sin/
   Entry value=6 text=Cos/
   Entry value=7 text=Exp/
   Entry value=8 text=Log/
   Entry value=9 text=Abs/
   Entry value=10 text=Sqr/
   Entry value=11 text=Sqrt/
   Entry value=14 text=Atan/
   Entry value=15 text=Atan2/
   Entry value=16 text=Multiply by k/
   Entry value=17 text=Add c/
   Entry value=18 text=Conjugate/
   Entry value=20 text=Replace by k/
/EnumerationDomain
 /IntVectorProperty
 
 DoubleVectorProperty
  name=ConstantK
  command=SetConstantK
  number_of_elements=1
  default_values=1
 /DoubleVectorProperty
 
 DoubleVectorProperty
  name=ConstantC
  command=SetConstantC
  number_of_elements=1
  default_values=0
 /DoubleVectorProperty
 
 IntVectorProperty
   name=DivideByZeroToC
   command=SetDivideByZeroToC
   number_of_elements=1
   default_values=1
BooleanDomain name=boolean/
 /IntVectorProperty
 IntVectorProperty
   name=ReleaseDataFlag
   command=SetReleaseDataFlag
   number_of_elements=1
   default_values=0
   animateable=0
BooleanDomain name=boolean/
Documentation
   
/Documentation
 /IntVectorProperty
  /SourceProxy
   /ProxyGroup 
/ServerManagerConfiguration
ServerManagerConfiguration
   ProxyGroup name=filters
  SourceProxy name=ImageMathematics2Inputs
   class=vtkImageMathematics
  label=Image Mathematics 2 Inputs
 Documentation
  long_help= 
  short_help= 
 /Documentation
 InputProperty
   name=Input1
   command=SetInputConnection
ProxyGroupDomain name=groups
   Group name=sources/
   Group name=filters/
/ProxyGroupDomain
DataTypeDomain name=input_type
   DataType value=vtkImageData/
/DataTypeDomain
 /InputProperty
 
 InputProperty
   name=Input2
   command=SetInputConnection
		   port_index=1
ProxyGroupDomain name=groups
   Group name=sources/
   Group name=filters/
/ProxyGroupDomain
DataTypeDomain 

Re: [Paraview] Shortcut for toggling orthographic projection?

2011-03-29 Thread Paul Melis

Hi David,

Thanks for the tip. I just noticed the little Edit View Options button 
just above a view and that also gives quick(er) access to the projection 
setting.


Regards,
Paul

On 03/25/2011 06:53 PM, David E DeMarle wrote:
Does python trace capture that? If so, you can make a macro for each 
direction quite easily.


David E DeMarle
Kitware, Inc.
RD Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109


On Thu, Mar 24, 2011 at 11:24 AM, Paul Melis paul.me...@sara.nl 
mailto:paul.me...@sara.nl wrote:


Hi,

Is there in PV (3.8 / 3.10) a quick way to switch between
orthographic and perspective projection? The only method I see is
going through the menu (Edit - View settings - General - Use
Parallel Projection).

Thanks,
Paul
___
Powered by www.kitware.com http://www.kitware.com

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

Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview




___
Powered by www.kitware.com

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

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] ANN: Upcoming changes to ParaView Server Manager

2011-03-29 Thread Sebastien Jourdain
Hi Takuya,

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

Here is my feedback about it:

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

Yes

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

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

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

Yes

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

Yes

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

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

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

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

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

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

Thanks again for those valuable comments,

Seb
___
Powered by www.kitware.com

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

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] ANN: Upcoming changes to ParaView Server Manager

2011-03-29 Thread Takuya OSHIMA
Seb, thanks for the clarifications, especially pointing out
that Set/GetSession() are redundant.

 OLD: pm-SendStream(pxy-GetConnectionID(), pxy-GetServers(), stream)
 NEW: pxy-GetSession()-ExecuteStream(pxy-GetLocation(), stream)
 (where pm is a vtkProcessModule)
 
 Yes, but as you did it previously you can also do that
 NEW2: pxy-ExecuteStream(stream)

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

Takuya

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


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

 Hi Takuya,
 
 I'm glad that you gave a try and you managed to make your plugin work.
 Moreover, thanks for that cheat sheet.
 
 Here is my feedback about it:
 
 OLD: pxy-Set/GetServers() (where pxy is a vtkSMProxy)
 NEW: pxy-Set/GetLocation()
 
 Yes
 
 OLD: pxy-Set/GetConnectionID()
 NEW: pxy-Set/GetSession()
 
 Yes, but those lines should simply be removed as the session is set on
 the Proxy at its creation, therefore there is no point in doing it
 twice.
 
 OLD: pxy-GetID()
 NEW: VTKOBJECT(pxy) (a stream operator in client-server stream)
 
 Yes
 
 OLD: pm-SendSteram(this-GetConnectionID(), this-GetServers(), stream)
 NEW: this-ExecuteStream(stream) (where this is a vtkSMProxy)
 
 Yes
 
 OLD: pm-SendStream(pxy-GetConnectionID(), pxy-GetServers(), stream)
 NEW: pxy-GetSession()-ExecuteStream(pxy-GetLocation(), stream)
 (where pm is a vtkProcessModule)
 
 Yes, but as you did it previously you can also do that
 NEW2: pxy-ExecuteStream(stream)
 
 Also, what I noticed so far are
 * CoProcessing module does not build due to some missing headers.
 
 I'm going to look into that and fix it. Thanks to have notice it.
 
 * ParaViewCore/ServerManager/vtkSMDataSourceProxy.{cxx,h} are orphaned
  (have no reference from other sources or CMakeLists).
 
 Yes, I was planning to remove it. Are you using it ?
 
 Thanks again for those valuable comments,
 
 Seb
___
Powered by www.kitware.com

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

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] ANN: Upcoming changes to ParaView Server Manager

2011-03-29 Thread Takuya OSHIMA
Sorry I hit send too early:

 * ParaViewCore/ServerManager/vtkSMDataSourceProxy.{cxx,h} are orphaned
  (have no reference from other sources or CMakeLists).
 
 Yes, I was planning to remove it. Are you using it ?

No.

Takuya

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

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

 Hi Takuya,
 
 I'm glad that you gave a try and you managed to make your plugin work.
 Moreover, thanks for that cheat sheet.
 
 Here is my feedback about it:
 
 OLD: pxy-Set/GetServers() (where pxy is a vtkSMProxy)
 NEW: pxy-Set/GetLocation()
 
 Yes
 
 OLD: pxy-Set/GetConnectionID()
 NEW: pxy-Set/GetSession()
 
 Yes, but those lines should simply be removed as the session is set on
 the Proxy at its creation, therefore there is no point in doing it
 twice.
 
 OLD: pxy-GetID()
 NEW: VTKOBJECT(pxy) (a stream operator in client-server stream)
 
 Yes
 
 OLD: pm-SendSteram(this-GetConnectionID(), this-GetServers(), stream)
 NEW: this-ExecuteStream(stream) (where this is a vtkSMProxy)
 
 Yes
 
 OLD: pm-SendStream(pxy-GetConnectionID(), pxy-GetServers(), stream)
 NEW: pxy-GetSession()-ExecuteStream(pxy-GetLocation(), stream)
 (where pm is a vtkProcessModule)
 
 Yes, but as you did it previously you can also do that
 NEW2: pxy-ExecuteStream(stream)
 
 Also, what I noticed so far are
 * CoProcessing module does not build due to some missing headers.
 
 I'm going to look into that and fix it. Thanks to have notice it.
 
 * ParaViewCore/ServerManager/vtkSMDataSourceProxy.{cxx,h} are orphaned
  (have no reference from other sources or CMakeLists).
 
 Yes, I was planning to remove it. Are you using it ?
 
 Thanks again for those valuable comments,
 
 Seb
___
Powered by www.kitware.com

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

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] ANN: Upcoming changes to ParaView Server Manager

2011-03-29 Thread Sebastien Jourdain
Hi Takuya,

 NEW2: pxy-ExecuteStream(stream)

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

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

thanks,

Seb


 Takuya

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


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

 Hi Takuya,

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

 Here is my feedback about it:

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

 Yes

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

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

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

 Yes

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

 Yes

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

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

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

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

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

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

 Thanks again for those valuable comments,

 Seb

___
Powered by www.kitware.com

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

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Providing block names within .vtm files

2011-03-29 Thread Utkarsh Ayachit
FYI, I've added a feature request for the
same:http://public.kitware.com/Bug/view.php?id=12023

Utkarsh

On Fri, Mar 25, 2011 at 12:00 PM, Adriano Gagliardi
agaglia...@ara.co.uk wrote:

 Jean,

 Your fix works fine and pretty simple to implement. Should this be added as
 a feature request or possibly a bug?

 Regards,

 Adriano

 ===

 Adriano Gagliardi MEng PhD
 Business Sector Leader
 Computational Aerodynamics
 Aircraft Research Association Ltd.
 Manton Lane
 Bedford

 Tel: 01234 32 4644
 E-mail: agaglia...@ara.co.uk
 Url: www.ara.co.uk
 -Original Message-
 From: Favre Jean [mailto:jfa...@cscs.ch]
 Sent: 25 March 2011 12:05
 To: agaglia...@ara.co.uk; paraview@paraview.org
 Subject: RE: [Paraview] Providing block names within .vtm files


 I believe the functionality is missing. I have looked for it for many years.

 I just put together a quick hack, which seems to work fine for me. No
 exhaustive testing was done. It works for my test data, which are
 multi-blocks of multi-blocks. It could be generalized to multi-pieces too.
 I'll let a Kitware guru do that. :-)

 I modified VTK/IO/vtkXMLMultiBlockDataReader.cxx to get the attribute name

    // child is a leaf node, read and insert.
    const char* tagName = childXML-GetName();
    if (strcmp(tagName, DataSet) == 0)
      {
      vtkSmartPointervtkDataSet childDS;
      const char* name;
      if (this-ShouldReadDataSet(dataSetIndex))
        {
        // Read
        childDS.TakeReference(this-ReadDataset(childXML, filePath));
        name = childXML-GetAttribute(name);
        }
      // insert
      if (mblock)
        {
        mblock-SetBlock(index, childDS);
        mblock-GetMetaData(index)-Set(vtkCompositeDataSet::NAME(), name);
        }
      else if (mpiece)
        {
        mpiece-SetPiece(index, childDS);
        }
      dataSetIndex++;
      }
    // Child is a multiblock dataset itself. Create it.
    else if (mblock != 0
              strcmp(tagName, Block) == 0)
      {
      vtkMultiBlockDataSet* childDS = vtkMultiBlockDataSet::New();;
      this-ReadComposite(childXML, childDS, filePath, dataSetIndex);
      const char* name = childXML-GetAttribute(name);
      if (mblock)
        {
        mblock-SetBlock(index, childDS);
        mblock-GetMetaData(index)-Set(vtkCompositeDataSet::NAME(), name);
        }
      else if (mpiece)
        {
        vtkErrorMacro(Multipiece data can't have composite children.);
        return;
        }
      childDS-Delete();
      }


 -
 Jean M. Favre
 Swiss National Supercomputing Center

 =


 **
 This email contains information that is private and confidential and is 
 intended only for the addressee.
 If you are not the intended recipient please delete it and notify us 
 immediately by e-mailing the sender.
 Note: All email sent to or from this address may be accessed by someone other 
 than the recipient, for
 system management and security reasons.
 Aircraft Research Association Ltd.  Registered in England, Registration No 
 503668 Registered Office:
 Manton Lane, Bedford MK41 7PF England VAT No GB 196351245

 **
 ___
 Powered by www.kitware.com

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

 Please keep messages on-topic and check the ParaView Wiki at: 
 http://paraview.org/Wiki/ParaView

 Follow this link to subscribe/unsubscribe:
 http://www.paraview.org/mailman/listinfo/paraview

___
Powered by www.kitware.com

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

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Applying filters in sample app

2011-03-29 Thread Utkarsh Ayachit
The plane widget has a setVisiblity slot, you can connect the
checkbox to that slot.

Utkarsh

On Tue, Mar 29, 2011 at 10:16 AM, Reuter, Michael A. reute...@ornl.gov wrote:
 Hi Utkarsh,

  Thank you for the code. It works fine and gets me almost to where I want.
 When I use the implicit plane with the cut filter, I'm pulling up an
 object inspector widget for it. Is there a way I can attach the visibility
 of the plane to the check box in the inspector?

 Cheers,
 M



 On 3/25/11 7:54 PM, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote:

Guys,

Attached is a patch that demonstrates the use of 3D widgets for
manipulating clip plane.

Utkarsh

On Fri, Mar 25, 2011 at 8:06 AM,  owen.arn...@stfc.ac.uk wrote:
 Hi Utkarsh,

 I'd also like to see a coded example of this in action. If you have
something, could you post it to the list.

 Many thanks,

 Owen.

 -Original Message-
 From: paraview-boun...@paraview.org
[mailto:paraview-boun...@paraview.org] On Behalf Of Reuter, Michael A.
 Sent: 21 March 2011 14:08
 To: Utkarsh Ayachit
 Cc: paraview@paraview.org
 Subject: Re: [Paraview] Applying filters in sample app

 Hi Utkarsh,

  Thanks for the response. It would be greatly appreciated if you have
the
 time to provide some code for setting up the implicit plane. I have
 continued to try and diagnose things myself without much luck.

 Thanks,
 M

 On 3/18/11 10:49 AM, Utkarsh Ayachit utkarsh.ayac...@kitware.com
wrote:


Michael,

The interactive-widgets such as implicit plane widget are created by
the Properties panel to help user change some of the properties for
the filter. So yes, if your example, you will not see the implicit
plane widget at all. You'll have to manually create it and set it up
to update the properties of the clip filter as the user moves it. It
can be a bit tricky. But maybe I can hack up some code in your example
to show the implicit plane if you'd like.

Utkarsh

On Wed, Mar 16, 2011 at 2:01 PM, Reuter, Michael A. reute...@ornl.gov
wrote:
 Hi Utkarsh,

  Thanks, that did the trick. I'm also trying to get an
ImplicitPlaneWidget
 (IPW) up at the same time. Is the default behavior for the IPW to be
 invisible?

 M


 On 3/15/11 3:10 PM, Utkarsh Ayachit utkarsh.ayac...@kitware.com
wrote:

You're simply missing a line to hide the previous representation. I
just added in mpMainWindow::onCutButtonClicked before the render()
call and the slice shows up.

   this-ActiveSourceRepr-setVisible(false);

Utkarsh

On Tue, Mar 15, 2011 at 12:17 PM, Reuter, Michael A.
reute...@ornl.gov
wrote:
 Hi,

 I'm working on a sample application and I've been trying to make a
cut
appear on the data that is being viewed. I've followed the
methodology
used in the QuickContour application in my application, but the cut
never appears on the data view. I'm using the data file associated
with
the QuickContour application to test my application. I'm guessing I'm
just not understanding the required setup logic for behaviors and
reactions in order to get the cut to apply. If anyone can see where
I'm
being dumb, my code is located here:
https://github.com/mareuter/PVMockupGui. The cut is being applied in
the
mpMainWindow class in mpMainWindow::onCutButtonClicked. I am
currently
compiling against the ParaView git master on Ubuntu.

 Thanks,
 M


 Dr. Michael Reuter

 Scientific Data Analysis Group

 Neutron Scattering Science Division

 Oak Ridge National Laboratory


 Office: 1-865-241-7216

 Fax: 1-865-574-6080

 Email: reute...@ornl.gov

 ___
 Powered by www.kitware.com

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

 Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView

 Follow this link to subscribe/unsubscribe:
 http://www.paraview.org/mailman/listinfo/paraview




 ___
 Powered by www.kitware.com

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

 Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView

 Follow this link to subscribe/unsubscribe:
 http://www.paraview.org/mailman/listinfo/paraview
 --
 Scanned by iCritical.



___
Powered by www.kitware.com

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

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] Make install fails

2011-03-29 Thread Paul Melis

Hi,

With a freshly built PV 3.8.1 with CMake 2.8.4 I get (see attachement
for full log) this with make install:

[...]
-- Installing:
/home/opti/software/pv381reldebinfo/lib/paraview-3.8/purple-2/perl
-- Installing:
/home/opti/software/pv381reldebinfo/lib/paraview-3.8/purple-2/perl/auto
-- Installing:
/home/opti/software/pv381reldebinfo/lib/paraview-3.8/purple-2/perl/auto/Purple
-- Installing:
/home/opti/software/pv381reldebinfo/lib/paraview-3.8/gstreamer0.10
-- Installing:
/home/opti/software/pv381reldebinfo/lib/paraview-3.8/gstreamer0.10/gstreamer-0.10
-- Installing: /home/opti/software/pv381reldebinfo/lib/paraview-3.8/paraview
-- Installing:
/home/opti/software/pv381reldebinfo/lib/paraview-3.8/paraview/paraview
CMake Error at Applications/ParaView/cmake_install.cmake:70 (FILE):
   file INSTALL cannot make directory
   /home/opti/software/pv381reldebinfo/lib/paraview-3.8/paraview/paraview:
   Not a directory
Call Stack (most recent call first):
   Applications/cmake_install.cmake:37 (INCLUDE)
   cmake_install.cmake:49 (INCLUDE)


make: *** [install] Error 1


The reason installation fails is that
/home/opti/software/pv381reldebinfo/lib/paraview-3.8/paraview/paraview
is already present as a file (2,052,666 bytes). I've found several
installation issues on the list, but none like this. I also wonder why
all kinds of Paraview-unrelated stuff is in the output (see full log,
e.g. totem, open office, mono, vlc, xulrunner, ...). It's almost like
all installed packages on the system get somehow represented in the PV
lib/paraview-3.8 directory. Something like that might explain the clash,
as a system-wide PV 3.4.0 is also installed, from the normal Ubunty
package repo.


Perhaps relevant build options:

BUILD_SHARED_LIBS=ON
CMAKE_BUILD_TYPE=RelWithDebInfo
PARAVIEW_BUILD_QT_GUI=ON
PARAVIEW_ENABLE_PYTHON=ON
PARAVIEW_USE_MPI=OFF

Other info:
Ubuntu 10.04.2 x86_64
GCC 4.4.3
CMake 2.8.4 (built from source, no system cmake installed).


Regards,
Paul



pv.txt.gz
Description: GNU Zip compressed data
___
Powered by www.kitware.com

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

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Applying filters in sample app

2011-03-29 Thread Reuter, Michael A.
Thanks for the tip. I got it to connect and work.

Cheers,
M



On 3/29/11 10:56 AM, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote:

The plane widget has a setVisiblity slot, you can connect the
checkbox to that slot.

Utkarsh

On Tue, Mar 29, 2011 at 10:16 AM, Reuter, Michael A. reute...@ornl.gov
wrote:
 Hi Utkarsh,

  Thank you for the code. It works fine and gets me almost to where I
want.
 When I use the implicit plane with the cut filter, I'm pulling up an
 object inspector widget for it. Is there a way I can attach the
visibility
 of the plane to the check box in the inspector?

 Cheers,
 M



 On 3/25/11 7:54 PM, Utkarsh Ayachit utkarsh.ayac...@kitware.com
wrote:

Guys,

Attached is a patch that demonstrates the use of 3D widgets for
manipulating clip plane.

Utkarsh

On Fri, Mar 25, 2011 at 8:06 AM,  owen.arn...@stfc.ac.uk wrote:
 Hi Utkarsh,

 I'd also like to see a coded example of this in action. If you have
something, could you post it to the list.

 Many thanks,

 Owen.

 -Original Message-
 From: paraview-boun...@paraview.org
[mailto:paraview-boun...@paraview.org] On Behalf Of Reuter, Michael A.
 Sent: 21 March 2011 14:08
 To: Utkarsh Ayachit
 Cc: paraview@paraview.org
 Subject: Re: [Paraview] Applying filters in sample app

 Hi Utkarsh,

  Thanks for the response. It would be greatly appreciated if you have
the
 time to provide some code for setting up the implicit plane. I have
 continued to try and diagnose things myself without much luck.

 Thanks,
 M

 On 3/18/11 10:49 AM, Utkarsh Ayachit utkarsh.ayac...@kitware.com
wrote:


Michael,

The interactive-widgets such as implicit plane widget are created by
the Properties panel to help user change some of the properties for
the filter. So yes, if your example, you will not see the implicit
plane widget at all. You'll have to manually create it and set it up
to update the properties of the clip filter as the user moves it. It
can be a bit tricky. But maybe I can hack up some code in your example
to show the implicit plane if you'd like.

Utkarsh

On Wed, Mar 16, 2011 at 2:01 PM, Reuter, Michael A.
reute...@ornl.gov
wrote:
 Hi Utkarsh,

  Thanks, that did the trick. I'm also trying to get an
ImplicitPlaneWidget
 (IPW) up at the same time. Is the default behavior for the IPW to be
 invisible?

 M


 On 3/15/11 3:10 PM, Utkarsh Ayachit utkarsh.ayac...@kitware.com
wrote:

You're simply missing a line to hide the previous representation. I
just added in mpMainWindow::onCutButtonClicked before the render()
call and the slice shows up.

   this-ActiveSourceRepr-setVisible(false);

Utkarsh

On Tue, Mar 15, 2011 at 12:17 PM, Reuter, Michael A.
reute...@ornl.gov
wrote:
 Hi,

 I'm working on a sample application and I've been trying to make a
cut
appear on the data that is being viewed. I've followed the
methodology
used in the QuickContour application in my application, but the cut
never appears on the data view. I'm using the data file associated
with
the QuickContour application to test my application. I'm guessing
I'm
just not understanding the required setup logic for behaviors and
reactions in order to get the cut to apply. If anyone can see where
I'm
being dumb, my code is located here:
https://github.com/mareuter/PVMockupGui. The cut is being applied
in
the
mpMainWindow class in mpMainWindow::onCutButtonClicked. I am
currently
compiling against the ParaView git master on Ubuntu.

 Thanks,
 M


 Dr. Michael Reuter

 Scientific Data Analysis Group

 Neutron Scattering Science Division

 Oak Ridge National Laboratory


 Office: 1-865-241-7216

 Fax: 1-865-574-6080

 Email: reute...@ornl.gov

 ___
 Powered by www.kitware.com

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

 Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView

 Follow this link to subscribe/unsubscribe:
 http://www.paraview.org/mailman/listinfo/paraview




 ___
 Powered by www.kitware.com

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

 Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView

 Follow this link to subscribe/unsubscribe:
 http://www.paraview.org/mailman/listinfo/paraview
 --
 Scanned by iCritical.




___
Powered by www.kitware.com

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

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] paraview 3.11, from git, w mpi, Ensight sos

2011-03-29 Thread Ricardo Reis

On Tue, 29 Mar 2011, Robert Maynard wrote:


Hi Ricardo,

Can you please post your .sos file?


-  cut here -


FORMAT
type: master_server gold

SERVERS
number of servers:   2

#Server 1
machine id: tesla
executable:
data_path: .
casefile: pjet_0001.case

#Server 2
machine id: tesla
executable:
data_path: .
casefile: pjet_0002.case


-  cut here -



I can put the all case online for testing...



 Ricardo Reis

 'Non Serviam'

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

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

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

 contacts:  gtalk: kyriu...@gmail.com  skype: kyriusan
___
Powered by www.kitware.com

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

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] paraview 3.11, from git, w mpi, Ensight sos

2011-03-29 Thread Robert Maynard
Hi Ricardo,

It will be great if you can post all the ensight files and I will try
to replicate the problem.

On Tue, Mar 29, 2011 at 1:03 PM, Ricardo Reis rr...@aero.ist.utl.pt wrote:
 On Tue, 29 Mar 2011, Robert Maynard wrote:

 Hi Ricardo,

 Can you please post your .sos file?

 -  cut here -


 FORMAT
 type: master_server gold

 SERVERS
 number of servers:   2

 #Server 1
 machine id: tesla
 executable:
 data_path: .
 casefile: pjet_0001.case

 #Server 2
 machine id: tesla
 executable:
 data_path: .
 casefile: pjet_0002.case


 -  cut here -



 I can put the all case online for testing...



  Ricardo Reis

  'Non Serviam'

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

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

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

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




-- 
Robert Maynard
___
Powered by www.kitware.com

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

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] ANN: Upcoming changes to ParaView Server Manager

2011-03-29 Thread Sebastien Jourdain
Hi Folks,

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

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

* Replace in servermanager XML:

FileSeriesReaderProxy name=... ...

 with

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

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

Enjoy,

Seb


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

 Takuya

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

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

 Hi Takuya,

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

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

 thanks,

 Seb

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

___
Powered by www.kitware.com

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

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] ANN: Upcoming changes to ParaView Server Manager

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

I will look into that tomorrow.

Seb

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

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

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

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

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

 Thanks for any hint.

 Sven


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

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

 Thanks for your support,

 Seb

 = From the ParaView-developer list ===

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

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

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

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

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

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

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

 Seb

 PS: Additional informations on those changes are available here
 http://paraview.org/ParaView3/images/2/24/ParaViewCollaborationChanges.pdf
 ___
 Powered by www.kitware.com

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

 Please keep messages on-topic and check the ParaView Wiki at: 
 http://paraview.org/Wiki/ParaView

 Follow this link to subscribe/unsubscribe:
 http://www.paraview.org/mailman/listinfo/paraview


___
Powered by www.kitware.com

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

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview