Re: [Paraview] another target with the same name already exists whenexecuting CMake for plugin project

2012-03-26 Thread Boettcher, Prof. Dr. Peter
Thank you all!

 

Turning on shared libs solved the problem for CMake. However, when I compile 
ParaView I get an error related to xdmf.dll which is not built because of 
external  linker problem:

 

Bibliothek C:\ParaView-3.14.0\bin\bin\Release\Xdmf.lib und Objekt 
C:\ParaView-3.14.0\bin\bin\Release\Xdmf.exp werden erstellt.

XdmfDOM.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol 
_vtk_libxml2___xmlIndentTreeOutput in Funktion public: __thiscall 
XdmfDOM::XdmfDOM(void) (??0XdmfDOM@@QAE@XZ).

XdmfDOM.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol 
_vtk_libxml2_xmlNodeDump in Funktion public: char const * __thiscall 
XdmfDOM::Serialize(struct _xmlNode *) 
(?Serialize@XdmfDOM@@QAEPBDPAU_xmlNode@@@Z).

XdmfDOM.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol 
_vtk_libxml2_xmlXIncludeProcess in Funktion public: struct _xmlNode * 
__thiscall XdmfDOM::__Parse(char const *,struct _xmlDoc * *) 
(?__Parse@XdmfDOM@@QAEPAU_xmlNode@@PBDPAPAU_xmlDoc@@@Z).

XdmfDOM.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol 
_vtk_libxml2_xmlXPathFreeContext in Funktion public: struct _xmlNode * 
__thiscall XdmfDOM::FindElementByPath(char const *) 
(?FindElementByPath@XdmfDOM@@QAEPAU_xmlNode@@PBD@Z).

XdmfDOM.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol 
_vtk_libxml2_xmlXPathFreeObject in Funktion public: struct _xmlNode * 
__thiscall XdmfDOM::FindElementByPath(char const *) 
(?FindElementByPath@XdmfDOM@@QAEPAU_xmlNode@@PBD@Z).

XdmfDOM.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol 
_vtk_libxml2_xmlXPathEvalExpression in Funktion public: struct _xmlNode * 
__thiscall XdmfDOM::FindElementByPath(char const *) 
(?FindElementByPath@XdmfDOM@@QAEPAU_xmlNode@@PBD@Z).

XdmfDOM.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol 
_vtk_libxml2_xmlXPathNewContext in Funktion public: struct _xmlNode * 
__thiscall XdmfDOM::FindElementByPath(char const *) 
(?FindElementByPath@XdmfDOM@@QAEPAU_xmlNode@@PBD@Z).

XdmfLightData.obj : error LNK2019: Verweis auf nicht aufgelöstes externes 
Symbol _vtk_libxml2_xmlStrlen in Funktion protected: char const * 
__thiscall XdmfLightData::DupChars(void *) 
(?DupChars@XdmfLightData@@IAEPBDPAX@Z).

C:\ParaView-3.14.0\bin\bin\Release\Xdmf.dll : fatal error LNK1120: 8 nicht 
aufgelöste externe Verweise.

Das Buildprotokoll wurde unter 
file://c:\ParaView-3.14.0\bin\Utilities\Xdmf2\libsrc\Xdmf.dir\Release\BuildLog.htm
 
file:///c:\ParaView-3.14.0\bin\Utilities\Xdmf2\libsrc\Xdmf.dir\Release\BuildLog.htm
  gespeichert.

Xdmf - 9 Fehler, 81 Warnung(en)

 

Thanks - Peter.

 

Von: Biddiscombe, John A. [mailto:biddi...@cscs.ch] 
Gesendet: Sonntag, 25. März 2012 22:52
An: Boettcher, Prof. Dr. Peter; paraview@paraview.org
Betreff: RE: another target with the same name already exists whenexecuting 
CMake for plugin project

 

I've had this problem too. Seems that if you forget to turn on shared libs when 
you build paraview, then the find_package stuff for paraview causes these odd 
errors when you try to build plugins. Try turning on shared libs if you didn't 
already have it enabled. If it was already, then disregard this email.

 

JB

 

From: paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org] On 
Behalf Of Boettcher, Prof. Dr. Peter
Sent: 25 March 2012 21:54
To: paraview@paraview.org
Subject: [Paraview] another target with the same name already exists when 
executing CMake for plugin project

 

I try to compile one of the example plugins (GUIView) and get the following 
error when executing CMake (2.8.6)

 

CMake Error at C:/ParaView-3.14.0/bin/VTK/ParaViewTargets.cmake:16 
(ADD_EXECUTABLE):

add_executable cannot create imported target vtkEncodeString because

another target with the same name already exists.

Call Stack (most recent call first):

C:/ParaView-3.14.0/bin/VTK/VTKConfig.cmake:244 (INCLUDE)

C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindVTK.cmake:73 
(FIND_PACKAGE)

C:/ParaView-3.14.0/ParaViewUse.cmake:9 (FIND_PACKAGE)

CMakeLists.txt:9 (INCLUDE)

 

I build Paraview (3.14.0) and QT with VS2005 successfully. I have another 
Paraview binary (3.14.0) installed on the same machine but no separate VTK 
sources.

 

Any idea what is going on?

 

Regards, Peter.

 

___
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] another target with the same name already exists whenexecuting CMake for plugin project

2012-03-26 Thread Biddiscombe, John A.
might just be that libxml+xdmf didn't rebuild themselves when you turned on 
shared libs. Try wiping the build parts of those projects and rerunning cmake 
then build again.

JB

From: Boettcher, Prof. Dr. Peter 
[mailto:boettc...@kleintierklinik.uni-leipzig.de]
Sent: 26 March 2012 11:27
To: Biddiscombe, John A.; paraview@paraview.org; Jagjeet Nain
Subject: AW: another target with the same name already exists whenexecuting 
CMake for plugin project

Thank you all!

Turning on shared libs solved the problem for CMake. However, when I compile 
ParaView I get an error related to xdmf.dll which is not built because of 
external  linker problem:

Bibliothek C:\ParaView-3.14.0\bin\bin\Release\Xdmf.lib und Objekt 
C:\ParaView-3.14.0\bin\bin\Release\Xdmf.exp werden erstellt.
XdmfDOM.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol 
_vtk_libxml2___xmlIndentTreeOutput in Funktion public: __thiscall 
XdmfDOM::XdmfDOM(void) (??0XdmfDOM@@QAE@XZ).
XdmfDOM.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol 
_vtk_libxml2_xmlNodeDump in Funktion public: char const * __thiscall 
XdmfDOM::Serialize(struct _xmlNode *) 
(?Serialize@XdmfDOM@@QAEPBDPAU_xmlNode@@@Z).
XdmfDOM.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol 
_vtk_libxml2_xmlXIncludeProcess in Funktion public: struct _xmlNode * 
__thiscall XdmfDOM::__Parse(char const *,struct _xmlDoc * *) 
(?__Parse@XdmfDOM@@QAEPAU_xmlNode@@PBDPAPAU_xmlDoc@@@Z).
XdmfDOM.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol 
_vtk_libxml2_xmlXPathFreeContext in Funktion public: struct _xmlNode * 
__thiscall XdmfDOM::FindElementByPath(char const *) 
(?FindElementByPath@XdmfDOM@@QAEPAU_xmlNode@@PBD@Z).
XdmfDOM.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol 
_vtk_libxml2_xmlXPathFreeObject in Funktion public: struct _xmlNode * 
__thiscall XdmfDOM::FindElementByPath(char const *) 
(?FindElementByPath@XdmfDOM@@QAEPAU_xmlNode@@PBD@Z).
XdmfDOM.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol 
_vtk_libxml2_xmlXPathEvalExpression in Funktion public: struct _xmlNode * 
__thiscall XdmfDOM::FindElementByPath(char const *) 
(?FindElementByPath@XdmfDOM@@QAEPAU_xmlNode@@PBD@Z).
XdmfDOM.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol 
_vtk_libxml2_xmlXPathNewContext in Funktion public: struct _xmlNode * 
__thiscall XdmfDOM::FindElementByPath(char const *) 
(?FindElementByPath@XdmfDOM@@QAEPAU_xmlNode@@PBD@Z).
XdmfLightData.obj : error LNK2019: Verweis auf nicht aufgelöstes externes 
Symbol _vtk_libxml2_xmlStrlen in Funktion protected: char const * 
__thiscall XdmfLightData::DupChars(void *) 
(?DupChars@XdmfLightData@@IAEPBDPAX@Z).
C:\ParaView-3.14.0\bin\bin\Release\Xdmf.dll : fatal error LNK1120: 8 nicht 
aufgelöste externe Verweise.
Das Buildprotokoll wurde unter 
file://c:\ParaView-3.14.0\bin\Utilities\Xdmf2\libsrc\Xdmf.dir\Release\BuildLog.htmfile:///c:\ParaView-3.14.0\bin\Utilities\Xdmf2\libsrc\Xdmf.dir\Release\BuildLog.htm
 gespeichert.
Xdmf - 9 Fehler, 81 Warnung(en)

Thanks - Peter.

Von: Biddiscombe, John A. 
[mailto:biddi...@cscs.ch]mailto:[mailto:biddi...@cscs.ch]
Gesendet: Sonntag, 25. März 2012 22:52
An: Boettcher, Prof. Dr. Peter; 
paraview@paraview.orgmailto:paraview@paraview.org
Betreff: RE: another target with the same name already exists whenexecuting 
CMake for plugin project

I've had this problem too. Seems that if you forget to turn on shared libs when 
you build paraview, then the find_package stuff for paraview causes these odd 
errors when you try to build plugins. Try turning on shared libs if you didn't 
already have it enabled. If it was already, then disregard this email.

JB

From: paraview-boun...@paraview.orgmailto:paraview-boun...@paraview.org 
[mailto:paraview-boun...@paraview.org]mailto:[mailto:paraview-boun...@paraview.org]
 On Behalf Of Boettcher, Prof. Dr. Peter
Sent: 25 March 2012 21:54
To: paraview@paraview.orgmailto:paraview@paraview.org
Subject: [Paraview] another target with the same name already exists when 
executing CMake for plugin project

I try to compile one of the example plugins (GUIView) and get the following 
error when executing CMake (2.8.6)


CMake Error at C:/ParaView-3.14.0/bin/VTK/ParaViewTargets.cmake:16 
(ADD_EXECUTABLE):

add_executable cannot create imported target vtkEncodeString because

another target with the same name already exists.

Call Stack (most recent call first):

C:/ParaView-3.14.0/bin/VTK/VTKConfig.cmake:244 (INCLUDE)

C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindVTK.cmake:73 
(FIND_PACKAGE)

C:/ParaView-3.14.0/ParaViewUse.cmake:9 (FIND_PACKAGE)

CMakeLists.txt:9 (INCLUDE)

I build Paraview (3.14.0) and QT with VS2005 successfully. I have another 
Paraview binary (3.14.0) installed on the same machine but no separate VTK 
sources.

Any idea what is going on?

Regards, Peter.

___
Powered by www.kitware.com

Visit other Kitware open-source 

Re: [Paraview] Excluding elements from plot

2012-03-26 Thread Andreas Puettmann

Thank you, that works!

On 03/21/2012 09:37 PM, Andy Bauer wrote:
To get rid of those points you can use the Threshold filter and then 
view that.  Some grid types support blanking (soon all of them should) 
that could be put into your writer to specify that but I think the 
Threshold filter is the easiest way to go.


Andy

On Mon, Mar 19, 2012 at 12:57 PM, Andreas Puettmann 
a.puettm...@grs-sim.de mailto:a.puettm...@grs-sim.de wrote:


Hi everyone,

I am visualizing finite element data with Paraview.
Is there a possibility to exclude mesh points (or probably rather
elements) from being plotted when they have a certain value?

More specifically: In my data I have a very large amount of zero
values. Can I force somehow that these are not plotted at all
(e.g. in a 2D slice with surface representation)? What would be a
suitable filter?

Thanks in advance!
Andreas

-- 
Dipl.-Ing. Andreas Puettmann


German Research School for
Simulation Sciences GmbH
c/o Institute of Bio- and Geosciences 1
52425 Jülich | Germany

Tel +49 2461 61 5541 tel:%2B49%202461%2061%205541
Fax +49 2461 61 3870 tel:%2B49%202461%2061%203870
Web www.grs-sim.de http://www.grs-sim.de

Members: Forschungszentrum Jülich GmbH | RWTH Aachen University
Registered in the commercial register of the local court of
Düren (Amtsgericht Düren) under registration number HRB 5268
Registered office: Jülich
Executive board: Prof. Marek Behr, Ph.D | Dr. Norbert Drewes

___
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




--
Dipl.-Ing. Andreas Puettmann

German Research School for
Simulation Sciences GmbH
c/o Institute of Bio- and Geosciences 1
52425 Jülich | Germany

Tel +49 2461 61 5541
Fax +49 2461 61 3870
Web www.grs-sim.de

Members: Forschungszentrum Jülich GmbH | RWTH Aachen University
Registered in the commercial register of the local court of
Düren (Amtsgericht Düren) under registration number HRB 5268
Registered office: Jülich
Executive board: Prof. Marek Behr, Ph.D | Dr. Norbert Drewes

___
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] Surface Development on ParaView

2012-03-26 Thread Magician
Hi.

I'm considering to generate developed surface view on ParaView.
My VTK data contains cylindrical surfaces (defined on theta-z spaces),
and I want to convert them to flat planes (defined on x-y planes).
One idea is re-writing VTK file, but it's pretty troublesome.
Are there any ideas to do it easily?


Magician
___
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] Customize filter toolbar

2012-03-26 Thread Zenker, Dr. Matthias
Hi,

is there an easy way to customize the filter toolbar? For example, the Plot 
selection over time I filter is the one I use all the time. I would like to 
have a button on the toolbar, like there are buttons for the calculator, 
contour plot, clip, ...

How do I do it?

Thanks,

Matthias



_
ERBE Elektromedizin GmbH
Firmensitz: 72072 Tuebingen
Geschaeftsfuehrer: Christian O. Erbe, Reiner Thede
Registergericht: Stuttgart HRB 380137

___
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] Surface Development on ParaView

2012-03-26 Thread Moreland, Kenneth
In the past I have used the calculator filter to convert polar coordinates
to cartesian or vice versa.


-Ken

On 3/26/12 7:08 AM, Magician f_magic...@mac.com wrote:

Hi.

I'm considering to generate developed surface view on ParaView.
My VTK data contains cylindrical surfaces (defined on theta-z spaces),
and I want to convert them to flat planes (defined on x-y planes).
One idea is re-writing VTK file, but it's pretty troublesome.
Are there any ideas to do it easily?


Magician
___
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] Load many VTK from different folders at once

2012-03-26 Thread David E DeMarle
On Fri, Mar 23, 2012 at 6:13 PM, Lorenzo lovecraf...@gmail.com wrote:
 I've tied that, thank you.

 Now, my questions are:
 1. once I've saved a trace, how I run it in paraview?

Tools-Python Shell-Run Script

Better still, if you choose to save the trace as a macro (or just put
it into ~/.config/ParaVIew/Macros), it shows up in the macros toolbar
and you can just click to run it again.

 2. I see the trace keeps the files path. There's no way to include these file 
 paths within a dot_something file in the same sintax in such a way that I'll 
 load that file in paraview and it'll automatically load all the referenced 
 files?

The trace is just a python script. def a function that will read the
filename string, strip out the leading directory information, and
produce and loop over a list of the rest of the filenames from that.

Unfortunately python isn't tightly integrated enough yet to
automatically call your macro from the File-Open dialog.

David E DeMarle
Kitware, Inc.
RD Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909



On Fri, Mar 23, 2012 at 6:13 PM, Lorenzo lovecraf...@gmail.com wrote:
 I've tied that, thank you.

 Now, my questions are:
 1. once I've saved a trace, how I run it in paraview?
 2. I see the trace keeps the files path. There's no way to include these file 
 paths within a dot_something file in the same sintax in such a way that I'll 
 load that file in paraview and it'll automatically load all the referenced 
 files?

 For example this file would contain something like:

 geometry_1_vtk = LegacyVTKReader( 
 FileNames=['path/to/my/file/geometry_1.vtk'] )
 geometry_2_vtk = LegacyVTKReader( 
 FileNames=['path/to/my/file/geometry_2.vtk'] )
 geometry_3_vtk = LegacyVTKReader( 
 FileNames=['path/to/my/file/geometry_3.vtk'] )
 geometry_4_vtk = LegacyVTKReader( 
 FileNames=['path/to/my/file/geometry_4.vtk'] )
 …
 geometry_N_vtk = LegacyVTKReader( 
 FileNames=['path/to/my/file/geometry_5.vtk'] )

 Thank you!

 Lore
 Il giorno 23/mar/2012, alle ore 21:40, David E DeMarle ha scritto:

 Tools-Start Trace
 ..do something..
 Tools-Stop Trace

 In 3.8 I think it was buried under tools-python shell.

 David E DeMarle
 Kitware, Inc.
 RD Engineer
 21 Corporate Drive
 Clifton Park, NY 12065-8662
 Phone: 518-881-4909



 On Fri, Mar 23, 2012 at 4:38 PM, Lorenzo lovecraf...@gmail.com wrote:
 Sorry David, what do you mean with record a trace?


 Il giorno 23/mar/2012, alle ore 19:03, David E DeMarle ha scritto:

 You can also record either a trace or a state file in paraview where
 you load a couple of files, then edit that recorded file in a text
 editor and add in the additional files. Of the two, the trace file,
 being a python script, is easier to edit and programmatically extend.

 David E DeMarle
 Kitware, Inc.
 RD Engineer
 21 Corporate Drive
 Clifton Park, NY 12065-8662
 Phone: 518-881-4909



 On Fri, Mar 23, 2012 at 1:34 PM, Lorenzo lovecraf...@gmail.com wrote:
 Thank you Frank;
 I know about this, I just would like to find a way to load everything as 
 a vtk as well…


 Il giorno 23/mar/2012, alle ore 17:47, Albina, Frank ha scritto:

 Hi Lorenzo!

 Maybe you'd better off with reading the OpenFOAM solution with the 
 built-in OpenFOAM reader. Just create in your case directory an empty 
 OF.foam file and you can start reading the solution by opening this file 
 from the GUI.

 Hope this helps.

 Frank.

 -Original Message-
 From: paraview-boun...@paraview.org 
 [mailto:paraview-boun...@paraview.org] On Behalf Of Lorenzo
 Sent: Freitag, 23. März 2012 17:11
 To: paraview@paraview.org
 Subject: Re: [Paraview] Load many VTK from different folders at once

 I was thinking: maybe there's a way to create a text files (or something 
 in another format) which contains the paths to the vtk files I need to 
 open and this file could be submitted to paraview to automate the whole 
 process of opening every each one of the vtk files...

 What do you think?

 Thank you!


 Il giorno 22/mar/2012, alle ore 20:26, lore ha scritto:

 Hi all,
 I am using openFoam and when I run foamToVTK I get many vtk files every 
 each
 one of which is contained in a different folder. If my geometry is made 
 up by
 many .stl different files then I get the same number of folders. This 
 is quite
 annoying when I need to load up the whole geometry because I need to 
 enter
 the first folder and load the first .vtk, then go to 
 file--open--enter the
 second folder and load the second .vtk and so on until I loaded all the 
 files I
 need. As you may understand this is quite time consuming... Any way to 
 do the
 whole process at once?

 I think the best way would be to link together all of these vtk files 
 into one
 single file (even of a different format) using a script (sh, python, 
 bash...??).

 This is something you may do with the .stl files, if they are in binary 
 format
 you may concatenate the content of each one of them into a single 
 different
 file and then load just that one to 

Re: [Paraview] Customize filter toolbar

2012-03-26 Thread David E DeMarle
You can record a trace in which you just apply that filter, and then
save the trace as a macro.  It won't be in the common filters toolbar,
but it will be in the macros toolbar which is by default right next to
it.

If you are building from source you can add the filter to the Common
group in Applications/ParaView/ParaViewFilters.xml.

You could also write a plugin that does it.

David E DeMarle
Kitware, Inc.
RD Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909



On Mon, Mar 26, 2012 at 9:27 AM, Zenker, Dr. Matthias
matthias.zen...@erbe-med.com wrote:
 Hi,

 is there an easy way to customize the filter toolbar? For example, the “Plot
 selection over time” I filter is the one I use all the time. I would like to
 have a button on the toolbar, like there are buttons for the calculator,
 contour plot, clip, …

 How do I do it?

 Thanks,

 Matthias



 _
 ERBE Elektromedizin GmbH
 Firmensitz: 72072 Tuebingen
 Geschaeftsfuehrer: Christian O. Erbe, Reiner Thede
 Registergericht: Stuttgart HRB 380137


 ___
 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] Customize filter toolbar

2012-03-26 Thread Zenker, Dr. Matthias
Hi David,

thank you for the hints. Unfortunately it doesn't work for me that way. The 
macro I get is

-
try: paraview.simple
except: from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()

my_file_pvd = GetActiveSource()
PlotSelectionOverTime8 = PlotSelectionOverTime()

Render()


I must admit that I don't know Python at all. It's not the same language as in 
Life of Brian...  ;-))
I have had a look in the ParaView Manual which did not enlighten me for this 
specific problem.
When I execute the macro above, ParaView creates a Plot SelectionOverTime 
object, but when I hit Apply, nothing happens. Also it seems to me that the 
Macro expects a specific name for the dataset. How can I generalize it, once it 
works?

Thanks for some more hints...

Matthias


-Ursprüngliche Nachricht-
Von: David E DeMarle [mailto:dave.dema...@kitware.com]
Gesendet: Montag, 26. März 2012 16:00
An: Zenker, Dr. Matthias
Cc: paraview@paraview.org
Betreff: Re: [Paraview] Customize filter toolbar

You can record a trace in which you just apply that filter, and then save the 
trace as a macro.  It won't be in the common filters toolbar, but it will be in 
the macros toolbar which is by default right next to it.

If you are building from source you can add the filter to the Common group in 
Applications/ParaView/ParaViewFilters.xml.

You could also write a plugin that does it.

David E DeMarle
Kitware, Inc.
RD Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909



On Mon, Mar 26, 2012 at 9:27 AM, Zenker, Dr. Matthias 
matthias.zen...@erbe-med.com wrote:
 Hi,

 is there an easy way to customize the filter toolbar? For example, the
 Plot selection over time I filter is the one I use all the time. I
 would like to have a button on the toolbar, like there are buttons for
 the calculator, contour plot, clip, ...

 How do I do it?

 Thanks,

 Matthias



 _
 ERBE Elektromedizin GmbH
 Firmensitz: 72072 Tuebingen
 Geschaeftsfuehrer: Christian O. Erbe, Reiner Thede
 Registergericht: Stuttgart HRB 380137


 ___
 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



_
ERBE Elektromedizin GmbH
Firmensitz: 72072 Tuebingen
Geschaeftsfuehrer: Christian O. Erbe, Reiner Thede
Registergericht: Stuttgart HRB 380137

___
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] Citing Paraview

2012-03-26 Thread David E DeMarle
The 2004 edition described ParaView 2.x. The 2007 edition described
ParaView 3.x.

Either would be fine to cite.

David E DeMarle
Kitware, Inc.
RD Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909



On Tue, Mar 20, 2012 at 11:39 PM, Tristan Chaplin
tristan.chap...@gmail.com wrote:
 Hi,

 Is the correct citation for Paraview still:

 Henderson, A. ParaView Guide, A Parallel Visualization Application.
 Kitware Inc., 2007.

 and is it still the book at:

 http://www.amazon.com/ParaView-Guide-Parallel-Visualization-Application/dp/1930934149

 (it says it was published 2004).

 Apologies if this information has been posted somewhere recently, I can't
 seem to find it.

 Thanks,
 Tristan

 ___
 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] Load many VTK from different folders at once

2012-03-26 Thread Lorenzo
Thank you David;

I think I also found something:
http://www.cfd-online.com/Forums/openfoam-post-processing/94538-separate-vtk-files-openfoam-fields-synchronous-time.html#post332912
http://www.cacr.caltech.edu/~slombey/asci/vtk/

I think in the latter it says that you may link many vtp files within an amr or 
pvd file. Would that work as I would? I mean: I would create this file with the 
paths in it using a simple script and then I could load this file in paraview 
to have everything at once… I only need to know whether that may work with .vtp 
only files or with vtk files as well. In case it would only work with vtk 
files, is there any way to convert them from vtk to vtp?

Thank you all again for your time!

Lorenzo


Il giorno 26/mar/2012, alle ore 15:52, David E DeMarle ha scritto:

 On Fri, Mar 23, 2012 at 6:13 PM, Lorenzo lovecraf...@gmail.com wrote:
 I've tied that, thank you.
 
 Now, my questions are:
 1. once I've saved a trace, how I run it in paraview?
 
 Tools-Python Shell-Run Script
 
 Better still, if you choose to save the trace as a macro (or just put
 it into ~/.config/ParaVIew/Macros), it shows up in the macros toolbar
 and you can just click to run it again.
 
 2. I see the trace keeps the files path. There's no way to include these 
 file paths within a dot_something file in the same sintax in such a way that 
 I'll load that file in paraview and it'll automatically load all the 
 referenced files?
 
 The trace is just a python script. def a function that will read the
 filename string, strip out the leading directory information, and
 produce and loop over a list of the rest of the filenames from that.
 
 Unfortunately python isn't tightly integrated enough yet to
 automatically call your macro from the File-Open dialog.
 
 David E DeMarle
 Kitware, Inc.
 RD Engineer
 21 Corporate Drive
 Clifton Park, NY 12065-8662
 Phone: 518-881-4909
 
 
 
 On Fri, Mar 23, 2012 at 6:13 PM, Lorenzo lovecraf...@gmail.com wrote:
 I've tied that, thank you.
 
 Now, my questions are:
 1. once I've saved a trace, how I run it in paraview?
 2. I see the trace keeps the files path. There's no way to include these 
 file paths within a dot_something file in the same sintax in such a way that 
 I'll load that file in paraview and it'll automatically load all the 
 referenced files?
 
 For example this file would contain something like:
 
 geometry_1_vtk = LegacyVTKReader( 
 FileNames=['path/to/my/file/geometry_1.vtk'] )
 geometry_2_vtk = LegacyVTKReader( 
 FileNames=['path/to/my/file/geometry_2.vtk'] )
 geometry_3_vtk = LegacyVTKReader( 
 FileNames=['path/to/my/file/geometry_3.vtk'] )
 geometry_4_vtk = LegacyVTKReader( 
 FileNames=['path/to/my/file/geometry_4.vtk'] )
 …
 geometry_N_vtk = LegacyVTKReader( 
 FileNames=['path/to/my/file/geometry_5.vtk'] )
 
 Thank you!
 
 Lore
 Il giorno 23/mar/2012, alle ore 21:40, David E DeMarle ha scritto:
 
 Tools-Start Trace
 ..do something..
 Tools-Stop Trace
 
 In 3.8 I think it was buried under tools-python shell.
 
 David E DeMarle
 Kitware, Inc.
 RD Engineer
 21 Corporate Drive
 Clifton Park, NY 12065-8662
 Phone: 518-881-4909
 
 
 
 On Fri, Mar 23, 2012 at 4:38 PM, Lorenzo lovecraf...@gmail.com wrote:
 Sorry David, what do you mean with record a trace?
 
 
 Il giorno 23/mar/2012, alle ore 19:03, David E DeMarle ha scritto:
 
 You can also record either a trace or a state file in paraview where
 you load a couple of files, then edit that recorded file in a text
 editor and add in the additional files. Of the two, the trace file,
 being a python script, is easier to edit and programmatically extend.
 
 David E DeMarle
 Kitware, Inc.
 RD Engineer
 21 Corporate Drive
 Clifton Park, NY 12065-8662
 Phone: 518-881-4909
 
 
 
 On Fri, Mar 23, 2012 at 1:34 PM, Lorenzo lovecraf...@gmail.com wrote:
 Thank you Frank;
 I know about this, I just would like to find a way to load everything as 
 a vtk as well…
 
 
 Il giorno 23/mar/2012, alle ore 17:47, Albina, Frank ha scritto:
 
 Hi Lorenzo!
 
 Maybe you'd better off with reading the OpenFOAM solution with the 
 built-in OpenFOAM reader. Just create in your case directory an empty 
 OF.foam file and you can start reading the solution by opening this 
 file from the GUI.
 
 Hope this helps.
 
 Frank.
 
 -Original Message-
 From: paraview-boun...@paraview.org 
 [mailto:paraview-boun...@paraview.org] On Behalf Of Lorenzo
 Sent: Freitag, 23. März 2012 17:11
 To: paraview@paraview.org
 Subject: Re: [Paraview] Load many VTK from different folders at once
 
 I was thinking: maybe there's a way to create a text files (or 
 something in another format) which contains the paths to the vtk files 
 I need to open and this file could be submitted to paraview to automate 
 the whole process of opening every each one of the vtk files...
 
 What do you think?
 
 Thank you!
 
 
 Il giorno 22/mar/2012, alle ore 20:26, lore ha scritto:
 
 Hi all,
 I am using openFoam and when I run foamToVTK I get many vtk files 
 every each
 one of which 

Re: [Paraview] Load many VTK from different folders at once

2012-03-26 Thread David E DeMarle
pvd files can not point to the older style vtk files, they can only
point to the newer xml based vt? (vtu/vtp/vti etc) files.

A script to convert between them build a two element pipeline
consisting of a vtkDataSetReader connected to a vtkXMLPolyDataWriter.
Set the FileNames on both and call Write() on the writer to make the
converted
file.

David E DeMarle
Kitware, Inc.
RD Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909



On Mon, Mar 26, 2012 at 10:58 AM, Lorenzo lovecraf...@gmail.com wrote:
 Thank you David;

 I think I also found something:
 http://www.cfd-online.com/Forums/openfoam-post-processing/94538-separate-vtk-files-openfoam-fields-synchronous-time.html#post332912
 http://www.cacr.caltech.edu/~slombey/asci/vtk/

 I think in the latter it says that you may link many vtp files within an amr 
 or pvd file. Would that work as I would? I mean: I would create this file 
 with the paths in it using a simple script and then I could load this file in 
 paraview to have everything at once… I only need to know whether that may 
 work with .vtp only files or with vtk files as well. In case it would only 
 work with vtk files, is there any way to convert them from vtk to vtp?

 Thank you all again for your time!

 Lorenzo


 Il giorno 26/mar/2012, alle ore 15:52, David E DeMarle ha scritto:

 On Fri, Mar 23, 2012 at 6:13 PM, Lorenzo lovecraf...@gmail.com wrote:
 I've tied that, thank you.

 Now, my questions are:
 1. once I've saved a trace, how I run it in paraview?

 Tools-Python Shell-Run Script

 Better still, if you choose to save the trace as a macro (or just put
 it into ~/.config/ParaVIew/Macros), it shows up in the macros toolbar
 and you can just click to run it again.

 2. I see the trace keeps the files path. There's no way to include these 
 file paths within a dot_something file in the same sintax in such a way 
 that I'll load that file in paraview and it'll automatically load all the 
 referenced files?

 The trace is just a python script. def a function that will read the
 filename string, strip out the leading directory information, and
 produce and loop over a list of the rest of the filenames from that.

 Unfortunately python isn't tightly integrated enough yet to
 automatically call your macro from the File-Open dialog.

 David E DeMarle
 Kitware, Inc.
 RD Engineer
 21 Corporate Drive
 Clifton Park, NY 12065-8662
 Phone: 518-881-4909



 On Fri, Mar 23, 2012 at 6:13 PM, Lorenzo lovecraf...@gmail.com wrote:
 I've tied that, thank you.

 Now, my questions are:
 1. once I've saved a trace, how I run it in paraview?
 2. I see the trace keeps the files path. There's no way to include these 
 file paths within a dot_something file in the same sintax in such a way 
 that I'll load that file in paraview and it'll automatically load all the 
 referenced files?

 For example this file would contain something like:

 geometry_1_vtk = LegacyVTKReader( 
 FileNames=['path/to/my/file/geometry_1.vtk'] )
 geometry_2_vtk = LegacyVTKReader( 
 FileNames=['path/to/my/file/geometry_2.vtk'] )
 geometry_3_vtk = LegacyVTKReader( 
 FileNames=['path/to/my/file/geometry_3.vtk'] )
 geometry_4_vtk = LegacyVTKReader( 
 FileNames=['path/to/my/file/geometry_4.vtk'] )
 …
 geometry_N_vtk = LegacyVTKReader( 
 FileNames=['path/to/my/file/geometry_5.vtk'] )

 Thank you!

 Lore
 Il giorno 23/mar/2012, alle ore 21:40, David E DeMarle ha scritto:

 Tools-Start Trace
 ..do something..
 Tools-Stop Trace

 In 3.8 I think it was buried under tools-python shell.

 David E DeMarle
 Kitware, Inc.
 RD Engineer
 21 Corporate Drive
 Clifton Park, NY 12065-8662
 Phone: 518-881-4909



 On Fri, Mar 23, 2012 at 4:38 PM, Lorenzo lovecraf...@gmail.com wrote:
 Sorry David, what do you mean with record a trace?


 Il giorno 23/mar/2012, alle ore 19:03, David E DeMarle ha scritto:

 You can also record either a trace or a state file in paraview where
 you load a couple of files, then edit that recorded file in a text
 editor and add in the additional files. Of the two, the trace file,
 being a python script, is easier to edit and programmatically extend.

 David E DeMarle
 Kitware, Inc.
 RD Engineer
 21 Corporate Drive
 Clifton Park, NY 12065-8662
 Phone: 518-881-4909



 On Fri, Mar 23, 2012 at 1:34 PM, Lorenzo lovecraf...@gmail.com wrote:
 Thank you Frank;
 I know about this, I just would like to find a way to load everything 
 as a vtk as well…


 Il giorno 23/mar/2012, alle ore 17:47, Albina, Frank ha scritto:

 Hi Lorenzo!

 Maybe you'd better off with reading the OpenFOAM solution with the 
 built-in OpenFOAM reader. Just create in your case directory an empty 
 OF.foam file and you can start reading the solution by opening this 
 file from the GUI.

 Hope this helps.

 Frank.

 -Original Message-
 From: paraview-boun...@paraview.org 
 [mailto:paraview-boun...@paraview.org] On Behalf Of Lorenzo
 Sent: Freitag, 23. März 2012 17:11
 To: paraview@paraview.org
 Subject: Re: [Paraview] Load many VTK from 

[Paraview] camera animation Paraview doesn't work

2012-03-26 Thread wang

Dear Paraview users,

I'm using Paraview.3.14. What I tried is to use camera path or 
Interpolate camera locations to zoom in or out of the object. But so 
far it is only possible to rotate the object. No matter what values the 
camera position gets the object doesn't goes away or near from the view.


I saw some people had the same problem before, but haven't seen any 
answer to this. Has anyone a solution to this?


Thanks in advance!
Xueli

___
Powered by www.kitware.com

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

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

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