[Paraview] vtkUniformGrid

2009-11-25 Thread Benjamin Schindler

Hi

I'm writing a filter which creates a vtkUniformGrid as its output. The 
grid is setup is done using the following code:


   vtkUniformGrid *grid = 
vtkUnformGrid::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT));

   grid->Initialize();
   grid->SetOrigin(origin.data());
   grid->SetDimensions(bins.data());
   grid->GetDimensions(); // Call this so the dimensions array is set - 
stupid VTK

   grid->SetNumberOfScalarComponents(3);
   grid->SetScalarTypeToDouble();
   grid->SetSpacing(spacing.data());
   grid->AllocateScalars();

I checked that spacing, origin and bins are set correctly.

Yet, when I run this filter (without setting any data, that data will 
therefore be noise), I get an output in paraview without Extent, without 
an Origin and without a bounding box, 0 cells etc.


What am I doing wrong here?

___
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] Disabling auto-drawing in ParaView

2009-11-25 Thread Adriano Gagliardi

Hi,

Is it possible to disable auto-drawing of data in ParaView after a filter is
applied? For example, I'd like to apply 3 filters, one after the other, but
I only want to see the result presented in the render window after the last
one has been applied. At the moment, after each filter is run, it
auto-redraws it on screen and can get a bit annoying.

Cheers,

Adriano

===

Adriano Gagliardi MEng PhD
Project Scientist
Computational Aerodynamics
Aircraft Research Association Ltd.
Manton Lane
Bedford

Tel: 01234 32 4644
E-mail: agaglia...@ara.co.uk
Url: www.ara.co.uk 


---
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


Re: [Paraview] Tecplot reader error

2009-11-25 Thread Fred Fred


Actually this is not a time varying series but there are several zones:

ZONE T="domain1"
 STRANDID=0, SOLUTIONTIME=0
 I=43, J=45, K=5, ZONETYPE=Ordered
 DATAPACKING=BLOCK
 VARLOCATION=([4-12]=CELLCENTERED)
 AUXDATA CGNS.CGNSBase_t="Base#1"
 AUXDATA CGNS.Zone_t="domain1"
 DT=(DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE 
DOUBLE DOUBLE )
 4.352440754E-02 4.352440754E-02 4.352440754E-02 4.352440754E-02 4.352440754E-02
[...]
 1.710705371E+01 1.603499243E+01
ZONE T="domain3"
 STRANDID=0, SOLUTIONTIME=0
 I=49, J=89, K=9, ZONETYPE=Ordered
 DATAPACKING=BLOCK
 VARLOCATION=([4-12]=CELLCENTERED)
 AUXDATA CGNS.CGNSBase_t="Base#1"
 AUXDATA CGNS.Zone_t="domain3"
 DT=(DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE 
DOUBLE DOUBLE )
 -1.454322089E-02 -1.453761256E-02 -1.452607960E-02 -1.450552743E-02 
-1.447481920E-02
[...]

and always the same time value : STRANDID=0, SOLUTIONTIME=0
I tried to withdraw this line everywhere but I get another error:

ERROR: In /usr/local/ParaView3/VTK/IO/vtkTecplotReader.cxx, line 1714
vtkTecplotReader (0x25249ca0): /Users/wifridlefer/Data/TM/Jalon2/CAS_MT2.dat: 
The record type -1.988960529E-02 found in the file is unknown.

Any idea?


Date: Fri, 20 Nov 2009 11:55:55 -0500
Subject: Re: [Paraview] Tecplot reader error
From: zhanping@kitware.com
To: agaglia...@ara.co.uk
CC: stan1...@hotmail.fr; paraview@paraview.org

Adriano:
 
   You are correct. 
 
   This ad-hoc way works by means of vtkFileSeriesReader.cxx.
 
   Thanks.
 
   -Zhanping


On Fri, Nov 20, 2009 at 11:48 AM, Adriano Gagliardi  
wrote:



Zhanping,
 
This method will not allow you to use any of the time-dependent filters, right 
(like FFT)?
 
Adriano
 
===

Adriano Gagliardi MEng PhD
Project Scientist
Computational Aerodynamics
Aircraft Research Association Ltd.
Manton Lane
Bedford

Tel: 01234 32 4644

E-mail: agaglia...@ara.co.uk
Url: www.ara.co.uk 

 



From: paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org] On 
Behalf Of Zhanping Liu

Sent: 20 November 2009 16:35
To: Fred Fred
Cc: paraview@paraview.org
Subject: Re: [Paraview] Tecplot reader error







Fred:
 
   The problem was actually caused by "STRANDID=0, SOLUTIONTIME=0". Currently 
the Tecplot reader, a simplified version, does not support loading time series 
data. If you really want load multiple time steps of data, you need to remove 
these two tokens from the zone header(s). And you need put each time step as an 
individual file, e.g., file000.tec, file001.tec, ... and et al. Then you can 
select all of them by means of 'file*.tec' when opening the file dialog. In 
this way, you will still be able to view the dataset at multiple steps.

 
   Sorry for the lack of time series data support and we are considering if we 
need to add it.
 
  Thanks.
 
  -Zhanping


On Fri, Nov 20, 2009 at 10:08 AM, Zhanping Liu  wrote:


Fred:
 
   I will fix it.
 
  Thanks.
 
  -Zhanping





On Fri, Nov 20, 2009 at 9:13 AM, Fred Fred  wrote:





I am not a tecplot file format specialist but I need to read such files 
provided by other people.
The header of my file is as follow:

TITLE = "Translation of CGNS file elsAoutput.cgns"
VARIABLES = "CoordinateX"

"CoordinateY"
"CoordinateZ"
"TurbulentDissipation"
"Density"
"TurbulentDistance"
"TurbulentDistanceIndex"
"EnergyStagnationDensity"

"MomentumZ"
"MomentumY"
"MomentumX"
"TurbulentEnergyKineticDensity"
DATASETAUXDATA Common.DensityVar="5"
DATASETAUXDATA Common.StagnationEnergyVar="8"

DATASETAUXDATA Common.TurbulentDissipationRateVar="4"
DATASETAUXDATA Common.UVar="11"
DATASETAUXDATA Common.VectorVarsAreVelocity="FALSE"
DATASETAUXDATA Common.VVar="10"

DATASETAUXDATA Common.WVar="9"
ZONE T="domain1"
 STRANDID=0, SOLUTIONTIME=0
 I=43, J=45, K=5, ZONETYPE=Ordered
 DATAPACKING=BLOCK
 VARLOCATION=([4-12]=CELLCENTERED)
 AUXDATA CGNS.CGNSBase_t="Base#1"

 AUXDATA CGNS.Zone_t="domain1"

I get this errors:

ERROR: In /usr/local/ParaView3/VTK/IO/vtkTecplotReader.cxx, line 1714
vtkTecplotReader (0x25198950): /Data/dataset.dat: The record type DATAPACKING 
found in the file is unknown.



ERROR: In /usr/local/ParaView3/VTK/IO/vtkTecplotReader.cxx, line 1714
vtkTecplotReader (0x25198950): /Data/dataset.dat: The record type BLOCK found 
in the file is unknown.


ERROR: In /usr/local/ParaView3/VTK/IO/vtkTecplotReader.cxx, line 1714

vtkTecplotReader (0x25198950): /Data/dataset.dat: The record type VARLOCATION 
found in the file is unknown.


ERROR: In /usr/local/ParaView3/VTK/IO/vtkTecplotReader.cxx, line 1714
vtkTecplotReader (0x25198950): /Data/dataset.dat: The record type [4-12] found 
in the file is unknown.



ERROR: In /usr/local/ParaView3/VTK/IO/vtkTecplotReader.cxx, line 1714
vtkTecplotReader (0x25198950): /Data/dataset.dat: The record type CELLCENTERED 
found in the file is unknown.


ERROR: In /usr/local/ParaView3/VTK/IO/vtkTecplotReader.cxx, line 1714

vtkTecplotReader (0x25198950): /Data/dataset.dat: The record type AUXDATA

[Paraview] how useful has been UserVoice

2009-11-25 Thread Ricardo Reis


  I don't see many new things there and no news/feedback for most of the 
top ranking requests. So was the experiment a failure, as been discarded 
or am I being just impatient?


 best,

 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

 Keep them Flying! Ajude a/help Aero Fénix!

 http://www.aeronauta.com/aero.fenix

 http://www.flickr.com/photos/rreis/___
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] vtkUniformGrid

2009-11-25 Thread Biddiscombe, John A.
Benjamin

make sure your request information looks a bit like this

//
int vtkRegularGridSource::RequestInformation(
  vtkInformation* request,
  vtkInformationVector** inputVector,
  vtkInformationVector* outputVector)
{
  this->ComputeInformation(request, inputVector, outputVector);
  //
  vtkInformation* outInfo = outputVector->GetInformationObject(0);
  outInfo->Set(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(), 
0, this->Dimension[0]-1, 
0, this->Dimension[1]-1, 
0, this->Dimension[2]-1 );
  // Make sure these are correctly set
  outInfo->Set(vtkDataObject::ORIGIN(), this->origin, 3);
  outInfo->Set(vtkDataObject::SPACING(), this->spacing, 3);
  return 1;
}
//


> -Original Message-
> From: paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org]
> On Behalf Of Benjamin Schindler
> Sent: 25 November 2009 10:08
> To: paraview@paraview.org
> Subject: [Paraview] vtkUniformGrid
> 
> Hi
> 
> I'm writing a filter which creates a vtkUniformGrid as its output. The
> grid is setup is done using the following code:
> 
> vtkUniformGrid *grid =
> vtkUnformGrid::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT));
> grid->Initialize();
> grid->SetOrigin(origin.data());
> grid->SetDimensions(bins.data());
> grid->GetDimensions(); // Call this so the dimensions array is set -
> stupid VTK
> grid->SetNumberOfScalarComponents(3);
> grid->SetScalarTypeToDouble();
> grid->SetSpacing(spacing.data());
> grid->AllocateScalars();
> 
> I checked that spacing, origin and bins are set correctly.
> 
> Yet, when I run this filter (without setting any data, that data will
> therefore be noise), I get an output in paraview without Extent, without
> an Origin and without a bounding box, 0 cells etc.
> 
> What am I doing wrong here?
> 
> ___
> 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] vtkUniformGrid

2009-11-25 Thread Benjamin Schindler
Hi John

To compute this information, I need the whole bounding box of the
incoming object. I assume it's not saved in WHOLE_EXTENT as it seems
integer based. Which key stores that info so I can output it in my reader?

Thanks - I tried these keys in the request_data function and it did have
some effect (I obviously need to do it earlier...)
Benjamin

Biddiscombe, John A. wrote:
> Benjamin
>
> make sure your request information looks a bit like this
>
> //
> int vtkRegularGridSource::RequestInformation(
>   vtkInformation* request,
>   vtkInformationVector** inputVector,
>   vtkInformationVector* outputVector)
> {
>   this->ComputeInformation(request, inputVector, outputVector);
>   //
>   vtkInformation* outInfo = outputVector->GetInformationObject(0);
>   outInfo->Set(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(), 
> 0, this->Dimension[0]-1, 
> 0, this->Dimension[1]-1, 
> 0, this->Dimension[2]-1 );
>   // Make sure these are correctly set
>   outInfo->Set(vtkDataObject::ORIGIN(), this->origin, 3);
>   outInfo->Set(vtkDataObject::SPACING(), this->spacing, 3);
>   return 1;
> }
> //
>
>
>   
>> -Original Message-
>> From: paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org]
>> On Behalf Of Benjamin Schindler
>> Sent: 25 November 2009 10:08
>> To: paraview@paraview.org
>> Subject: [Paraview] vtkUniformGrid
>>
>> Hi
>>
>> I'm writing a filter which creates a vtkUniformGrid as its output. The
>> grid is setup is done using the following code:
>>
>> vtkUniformGrid *grid =
>> vtkUnformGrid::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT));
>> grid->Initialize();
>> grid->SetOrigin(origin.data());
>> grid->SetDimensions(bins.data());
>> grid->GetDimensions(); // Call this so the dimensions array is set -
>> stupid VTK
>> grid->SetNumberOfScalarComponents(3);
>> grid->SetScalarTypeToDouble();
>> grid->SetSpacing(spacing.data());
>> grid->AllocateScalars();
>>
>> I checked that spacing, origin and bins are set correctly.
>>
>> Yet, when I run this filter (without setting any data, that data will
>> therefore be noise), I get an output in paraview without Extent, without
>> an Origin and without a bounding box, 0 cells etc.
>>
>> What am I doing wrong here?
>>
>> ___
>> 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] Disabling auto-drawing in ParaView

2009-11-25 Thread Eric E. Monson

Hey Adriano,

I don't think ParaView is built to do this, although I can see where  
it would be a very useful feature for some applications (I think this  
is the standard behavior in LLNL's VisIt).


As a workaround, if your three filters are always the same you can  
combine them into a Custom Filter, exposing the parameters you need to  
adjust each time. This allows you to set up the pipeline for all three  
filters (inside the custom filter black box) and only update when you  
hit Apply at the end.


-Eric

--
Eric E Monson
Duke Visualization Technology Group


On Nov 25, 2009, at 6:15 AM, Adriano Gagliardi wrote:



Hi,

Is it possible to disable auto-drawing of data in ParaView after a  
filter is
applied? For example, I'd like to apply 3 filters, one after the  
other, but
I only want to see the result presented in the render window after  
the last

one has been applied. At the moment, after each filter is run, it
auto-redraws it on screen and can get a bit annoying.

Cheers,

Adriano

===

Adriano Gagliardi MEng PhD
Project Scientist
Computational Aerodynamics
Aircraft Research Association Ltd.
Manton Lane
Bedford

Tel: 01234 32 4644
E-mail: agaglia...@ara.co.uk
Url: www.ara.co.uk


---
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] Tecplot reader error

2009-11-25 Thread Zhanping Liu
Hi Fred:

Is that convenient for me to have a copy of the whole tecplot file
(including the actual zone data in addition to the zone title)? Then I will
be glad to check the problem by removing the time-series tokens (STRANDID
and TIMESOLUTION) first. There seem to be other tokens indicating some
functionalities that the current simplified reader does not support yet.

Thanks.

-Zhanping

On Wed, Nov 25, 2009 at 6:47 AM, Fred Fred  wrote:

>
> Actually this is not a time varying series but there are several zones:
>
>
> ZONE T="domain1"
>  STRANDID=0, SOLUTIONTIME=0
>  I=43, J=45, K=5, ZONETYPE=Ordered
>  DATAPACKING=BLOCK
>  VARLOCATION=([4-12]=CELLCENTERED)
>  AUXDATA CGNS.CGNSBase_t="Base#1"
>  AUXDATA CGNS.Zone_t="domain1"
>  DT=(DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE
> DOUBLE DOUBLE )
>  4.352440754E-02 4.352440754E-02 4.352440754E-02 4.352440754E-02
> 4.352440754E-02
> [...]
>  1.710705371E+01 1.603499243E+01
> ZONE T="domain3"
>  STRANDID=0, SOLUTIONTIME=0
>  I=49, J=89, K=9, ZONETYPE=Ordered
>
>  DATAPACKING=BLOCK
>  VARLOCATION=([4-12]=CELLCENTERED)
>  AUXDATA CGNS.CGNSBase_t="Base#1"
>  AUXDATA CGNS.Zone_t="domain3"
>  DT=(DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE DOUBLE
> DOUBLE DOUBLE )
>  -1.454322089E-02 -1.453761256E-02 -1.452607960E-02 -1.450552743E-02
> -1.447481920E-02
> [...]
>
> and always the same time value : STRANDID=0, SOLUTIONTIME=0
> I tried to withdraw this line everywhere but I get another error:
>
>
> ERROR: In /usr/local/ParaView3/VTK/IO/vtkTecplotReader.cxx, line 1714
> vtkTecplotReader (0x25249ca0):
> /Users/wifridlefer/Data/TM/Jalon2/CAS_MT2.dat: The record type
> -1.988960529E-02 found in the file is unknown.
>
> Any idea?
>
>
> --
> Date: Fri, 20 Nov 2009 11:55:55 -0500
>
> Subject: Re: [Paraview] Tecplot reader error
> From: zhanping@kitware.com
> To: agaglia...@ara.co.uk
> CC: stan1...@hotmail.fr; paraview@paraview.org
>
>
> Adriano:
>
>You are correct.
>
>This ad-hoc way works by means of vtkFileSeriesReader.cxx.
>
>Thanks.
>
>-Zhanping
>
> On Fri, Nov 20, 2009 at 11:48 AM, Adriano Gagliardi 
> wrote:
>
>  Zhanping,
>
> This method will not allow you to use any of the time-dependent filters,
> right (like FFT)?
>
> Adriano
>
> ===
>
> Adriano Gagliardi MEng PhD
> Project Scientist
> Computational Aerodynamics
> Aircraft Research Association Ltd.
> Manton Lane
> Bedford
>
> Tel: 01234 32 4644
> E-mail: agaglia...@ara.co.uk
> Url: www.ara.co.uk
>
>
>  --
> *From:* paraview-boun...@paraview.org [mailto:
> paraview-boun...@paraview.org] *On Behalf Of *Zhanping Liu
> *Sent:* 20 November 2009 16:35
> *To:* Fred Fred
> *Cc:* paraview@paraview.org
> *Subject:* Re: [Paraview] Tecplot reader error
>
>   Fred:
>
>The problem was actually caused by "STRANDID=0, SOLUTIONTIME=0".
> Currently the Tecplot reader, a simplified version, does not support loading
> time series data. If you really want load multiple time steps of data, you
> need to remove these two tokens from the zone header(s). And you need put
> each time step as an individual file, e.g., file000.tec, file001.tec, ...
> and et al. Then you can select all of them by means of 'file*.tec' when
> opening the file dialog. In this way, you will still be able to view the
> dataset at multiple steps.
>
>Sorry for the lack of time series data support and we are considering if
> we need to add it.
>
>   Thanks.
>
>   -Zhanping
>
> On Fri, Nov 20, 2009 at 10:08 AM, Zhanping Liu 
> wrote:
>
> Fred:
>
>I will fix it.
>
>   Thanks.
>
>   -Zhanping
>
>   On Fri, Nov 20, 2009 at 9:13 AM, Fred Fred  wrote:
>
>   I am not a tecplot file format specialist but I need to read such files
> provided by other people.
> The header of my file is as follow:
>
> TITLE = "Translation of CGNS file elsAoutput.cgns"
> VARIABLES = "CoordinateX"
> "CoordinateY"
> "CoordinateZ"
> "TurbulentDissipation"
> "Density"
> "TurbulentDistance"
> "TurbulentDistanceIndex"
> "EnergyStagnationDensity"
> "MomentumZ"
> "MomentumY"
> "MomentumX"
> "TurbulentEnergyKineticDensity"
> DATASETAUXDATA Common.DensityVar="5"
> DATASETAUXDATA Common.StagnationEnergyVar="8"
> DATASETAUXDATA Common.TurbulentDissipationRateVar="4"
> DATASETAUXDATA Common.UVar="11"
> DATASETAUXDATA Common.VectorVarsAreVelocity="FALSE"
> DATASETAUXDATA Common.VVar="10"
> DATASETAUXDATA Common.WVar="9"
> ZONE T="domain1"
>  STRANDID=0, SOLUTIONTIME=0
>  I=43, J=45, K=5, ZONETYPE=Ordered
>  DATAPACKING=BLOCK
>  VARLOCATION=([4-12]=CELLCENTERED)
>  AUXDATA CGNS.CGNSBase_t="Base#1"
>  AUXDATA CGNS.Zone_t="domain1"
>
> I get this errors:
>
> ERROR: In /usr/local/ParaView3/VTK/IO/vtkTecplotReader.cxx, line 1714
> vtkTecplotReader (0x25198950): /Data/dataset.dat: The record type
> DATAPACKING found in the file is unknown.
>
>
> ERROR: In /usr/local/ParaView3/VTK/IO/vtkTecplotReader.cxx, line 1714
> vtkTecplotReader (0x25

[Paraview] Integrate Variables + Boxes

2009-11-25 Thread bastil2...@yahoo.de
Today I had a funny time with th eIntegrate Variables Filter. I got
reasonable results for variables and volumes but both were negative
instead of positive Strange.
I also had some fun in positioning an ExtractMeshByRegion Box using
Tranlation/Rotation/Scale. Especially translation is unclear to me how
it works. Why does in not use the Center and length convention from the
Box-source? I used a box-source to position my extraction.

Regards BastiL
___
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] rotating and shifting image data

2009-11-25 Thread Martin Luessi
Hi,

I'm working on a python script to open MRI images in NIFTI format in
paraview. I'm using "simple.ImageReader" to read the volume data.
However, the file header specifies a 4x4 matrix which transforms voxel
indices to coordinates in a reference coordinate system in mm, and I
would like to use the mm coordinates in paraview.

There is a VTK thread on doing this
(http://old.nabble.com/world-coordinates-and-image-data-td22217332.html)
and the solution was to use "vtkImageReslice" together with a
transform using "vtkMatrix4x4". However, the "vtkImageReslice" filter
does not seem to be present in the VTK version that comes with
ParaView (3.6.1-r1 on Gentoo). (Apart from this I couldn't figure out
how to use VTK filters on "simple.ImageReader").

Since this didn't work, I tried a different method. The 4x4 matrix in
the file is usually purely rotational and translational, I can extract
the rotation and translation parameters for each dimension from the
matrix and then simply rotate and shift the Image object. This can be
done in Python using

...
simple.Show(img)
props = simple.GetDisplayProperties(img)
props.Orientation = (180*alpha/pi, 180*beta/pi, 180*gamma/pi)
props.Position = (tx, ty, tz)
...

Where img is the "simple.ImageReader" object. This does rotate and
translate the volume (image). However, the problem is that if apply a
filter on it (e.g. Slice) the output of the filter is not shifted and
translated, and thus does not appear at the same location as the
image. I also tried using "simple.Transform" for the rotation and
translation, but it looks like it doesn't support Image objects as
input.

Any hints on how to do this are greatly appreciated.

Martin
___
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] rotating and shifting image data

2009-11-25 Thread François Bissey
On Thu, 26 Nov 2009 07:57:16 Martin Luessi wrote:
> However, the "vtkImageReslice" filter
> does not seem to be present in the VTK version that comes with
> ParaView (3.6.1-r1 on Gentoo). (Apart from this I couldn't figure out
> how to use VTK filters on "simple.ImageReader")
> 
vtkImageReslice seems to be in the source tarball on my Gentoo system.
There is a few issues on Gentoo may be you should file a bug.
Actually speaking of bugs can you take a screenshot? I cannot I get
"failed to create pixmap" and then a segfault. I cannot quite figure
what's wrong apart may be a bug in my openGL drivers.

Francois
___
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] Recent Xdmf volume rendering

2009-11-25 Thread Eric E. Monson

Hey all,

I just noticed today that I can't volume render my Xdmf ImageData sets  
in CVS ParaView (today's -- OS X 10.5.8, serial build, Qt 4.5.2 cocoa,  
cmake 2.9.20091003).


With the binary PV 3.6.1 I can load in a temporal collection or single  
3DCoRectMesh and it  volume renders fine. With current 3.7 (now using  
vtkXdmfReader2, I assume), this data shows up as "Image (Uniform  
Rectilinear Grid) with blanking" and I can choose volume rendering but  
nothing shows up in the render window.


Volume rendering of a Wavelet Source works just fine, so I'm wondering  
what the "with blanking" part is, and if that's what's causing my  
trouble?


Thanks,
-Eric

--
Eric E Monson
Duke Visualization Technology Group


___
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] rotating and shifting image data

2009-11-25 Thread Martin Luessi
On Wed, Nov 25, 2009 at 3:13 PM, François Bissey
 wrote:
> On Thu, 26 Nov 2009 07:57:16 Martin Luessi wrote:
>> However, the "vtkImageReslice" filter
>> does not seem to be present in the VTK version that comes with
>> ParaView (3.6.1-r1 on Gentoo). (Apart from this I couldn't figure out
>> how to use VTK filters on "simple.ImageReader")
>>
> vtkImageReslice seems to be in the source tarball on my Gentoo system.
> There is a few issues on Gentoo may be you should file a bug.
> Actually speaking of bugs can you take a screenshot? I cannot I get
> "failed to create pixmap" and then a segfault. I cannot quite figure
> what's wrong apart may be a bug in my openGL drivers.
>
> Francois

Thanks Francois, I will try to find out why vtkImageReslice is
missing. About the screenshot, this seems to have something to do with
you graphics driver. For me, it only work with ati-drivers (Radeon
HD4830), it does not work with xf86-video-intel (Intel X3100) and
xf86-video-radeonhd (ATI X1300). It seems to have something to do with
this bug:

http://bugs.gentoo.org/show_bug.cgi?id=279060

I'm getting the "GL_VERSION_1_4_DEPRECATED" on the systems where it
doesn't work.



-- 
__
Martin Luessi, M.S.
Ph.D. Candidate
Department of Electrical Engineering and Computer Science
Northwestern University
http://ivpl.eecs.northwestern.edu/people/mluessi
___
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] rotating and shifting image data

2009-11-25 Thread Martin Luessi
Ok, I found the vtkImageReslice filter:

from paraview.vtk.imaging import vtkImageReslice

I didn't realize that it was "hidden" in the imaging module. This
brings me back to the question on how to use vtkImageReslice with the
simple.ImageReader object. Is this possible, or do I have to use the
vtkImageReader instead?

best,

Martin



-- 
__
Martin Luessi, M.S.
Ph.D. Candidate
Department of Electrical Engineering and Computer Science
Northwestern University
http://ivpl.eecs.northwestern.edu/people/mluessi
___
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] Off Screen Rendering

2009-11-25 Thread chew ping

 

Dear all,

 

so based on the timer log results that i collected, what i read about 
offscreen-rendering and the explanation below, can i conclude the followings? 
someone pls correct me if i'm wrong!

 

with --use-offscreen-rendering


X windows are disabled on all server processes
all server processes render the geometry locally
then each server processes sends the image to the client for compositing
there's NO data gathering to process 0, meaning the master doesn't collect all 
images from each processes for composting, then only send it to the client for 
rendering
that's why --use-offscreen-rendering is faster
 

 

without --use-offscreen-rendering


X windows are enabled on all server processes
all server processes the raw data, then send all geometry to process 0
process 0 gather all geometry then send them to the client to render
the client does all the rendering job
that's why without --use-offscreen-rendering is slower
 

 

any help / reply is highly appreciated
 
Best Regards,
chewping


 


Date: Fri, 20 Nov 2009 10:57:25 +0800
From: weaponfire2...@163.com
To: lcp8...@msn.com
CC: paraview@paraview.org
Subject: Re:[Paraview] Off Screen Rendering


hi chew ping:
  The Problem:"Display is not accessible on the server side. Remote rendering 
will be disabled.", it means that not all server start up X Server, so the 
server will process the raw data and send all geometry to the client to render.
  The client do all the rendering job, that's the reason why case 2 is so slow, 
I think.
  When you use off screen, all server processes render the geometry locally , 
send image to client to composite, so case 1 much faster than case 2.
  I hope this can help you, for I got the same problem before. Good luck.



 

在2009-11-20,"chew ping"  写道:

Dear all,
 
i'm doing parallel rendering using 2 machines (np4), i notice an obvious 
difference between using offscreen-rendering (faster) and without 
offscreen-rendering (much slower). i realize this from the timer log:
 
 
Case 1: with offscreen-rendering
--
 
Local Process
Still Render, 0.666444 seconds
Execute vtkMPIMoveData id: 519, 0.000199 seconds
Execute vtkPolyDataMapper id: 311, 0.000106 seconds
 
 
Server, Process 0
Execute vtkFileSeriesReader id: 238, 0.645881 seconds
Execute vtkPVGeometryFilter id: 305, 0.005891 seconds
Execute vtkPVCacheKeeper id: 516, 7.8e-05 seconds
Execute vtkMPIMoveData id: 519, 0.000212 seconds
Execute vtkOrderedCompositeDistributor , 0.000152 seconds
Execute vtkPolyDataMapper id: 311, 0.000274 seconds
 
Server, Process 1
Execute vtkFileSeriesReader id: 238, 0.000275 seconds
Execute vtkPVGeometryFilter id: 305, 0.005299 seconds
Execute vtkPVCacheKeeper id: 516, 7.7e-05 seconds
Execute vtkMPIMoveData id: 519, 0.000147 seconds
Execute vtkOrderedCompositeDistributor , 0.000117 seconds
Execute vtkPolyDataMapper id: 311, 9.9e-05 seconds
 
Server, Process 2
Execute vtkFileSeriesReader id: 238, 0.000258 seconds
Execute vtkPVGeometryFilter id: 305, 0.004765 seconds
Execute vtkPVCacheKeeper id: 516, 7.7e-05 seconds
Execute vtkMPIMoveData id: 519, 0.000147 seconds
Execute vtkOrderedCompositeDistributor , 0.000111 seconds
Execute vtkPolyDataMapper id: 311, 9.5e-05 seconds
 
Server, Process 3
Execute vtkFileSeriesReader id: 238, 0.000352 seconds
Execute vtkPVGeometryFilter id: 305, 0.005351 seconds
Execute vtkPVCacheKeeper id: 516, 7.7e-05 seconds
Execute vtkMPIMoveData id: 519, 0.000168 seconds
Execute vtkOrderedCompositeDistributor , 0.000111 seconds
Execute vtkPolyDataMapper id: 311, 0.000108 seconds
 
---
 
 
 
Case 2: without offscreen-rendering
---
 
Local Process
Still Render, 4.86495 seconds
Execute vtkMPIMoveData id: 520, 2.81566 seconds
Execute vtkPolyDataMapper id: 312, 0.00012 seconds
Execute vtkPolyDataMapper id: 148, 7.6e-05 seconds 
 
 
Server, Process 0
Execute vtkFileSeriesReader id: 239, 0.659133 seconds
Execute vtkPVGeometryFilter id: 306, 0.026125 seconds
Execute vtkPVCacheKeeper id: 517, 7.8e-05 seconds
Execute vtkMPIMoveData id: 520, 2.53214 seconds
Dataserver gathering to 0, 1.98166 seconds
Dataserver sending to client, 0.549715 seconds
Execute vtkOrderedCompositeDistributor , 0.000175 seconds
 
Server, Process 1
Execute vtkFileSeriesReader id: 239, 0.000446 seconds
Execute vtkPVGeometryFilter id: 306, 0.026313 seconds
Execute vtkPVCacheKeeper id: 517, 7.3e-05 seconds
Execute vtkMPIMoveData id: 520, 0.232435 seconds
Dataserver gathering to 0, 0.232117 seconds
Execute vtkOrderedCompositeDistributor , 0.00012 seconds
 
Server, Process 2
Execute vtkFileSeriesReader id: 239, 0.000519 seconds
Execute vtkPVGeometryFilter id: 306, 0.026063 seconds
Execute vtkPVCacheKeeper id: 517, 7e-05 seconds
Execute vtkMPIMoveData id: 520, 1.31373 seconds
Dataserver gathering to 0, 1.31341 seconds
Execute vtkOrderedCompositeDistributor , 0.000119 seconds
 
Se