[Paraview] Adding custom chart view

2009-01-13 Thread Nehme Bilal

Hello,

I'm trying yo create a filter to plot a histogram or a 
curve. The output of this filter will look like the one 
used for histogram filter.
I read the documentation on the wiki about how to create a 
custom view, and I think this is my start point. Is that 
true ? if yes, from witch class should myView inherits 
from ? pqGenericViewModule ? pqChartLayer ? pqView ? pqxxx 
?


How my pqMyView class will be linked to my vtkMyFilter 
Class ? how to pass my vtkDataArrays from my vtkMyFilter 
class to my pqMyView class ?


Thank you,

Nehme
___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Adding custom chart view

2009-01-13 Thread Utkarsh Ayachit
Are you creating new new view for your filter, or do you want to
simply show the output of the new filter in the current BarChart
view used by the Histogram filter?

If you are creating a totally new view, simply start by subclassing pqView.
In the filter's XML you can use a hint as follows to indicate to
ParaView which view to create by default for the filter.

Hints
!-- View can be used to specify the preferred view for the proxy --
View type=MyViewsXMLName /
 /Hints


On Tue, Jan 13, 2009 at 10:16 AM, Nehme Bilal nbi...@mirarco.org wrote:
 Hello,

 I'm trying yo create a filter to plot a histogram or a curve. The output of
 this filter will look like the one used for histogram filter.
 I read the documentation on the wiki about how to create a custom view, and
 I think this is my start point. Is that true ? if yes, from witch class
 should myView inherits from ? pqGenericViewModule ? pqChartLayer ? pqView ?
 pqxxx ?

 How my pqMyView class will be linked to my vtkMyFilter Class ? how to pass
 my vtkDataArrays from my vtkMyFilter class to my pqMyView class ?

 Thank you,

 Nehme
 ___
 ParaView mailing list
 ParaView@paraview.org
 http://www.paraview.org/mailman/listinfo/paraview

___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Adding custom chart view

2009-01-13 Thread Moreland, Kenneth
Nehme,

It sounds like you do not need to create a custom view.  You should be able to 
create a filter that generates the data and then use the existing bar chart and 
x-y plot views.  You can specify a Hint in the server manager xml for a 
filter to tell it which view to go to.  See the implementation of 
vtkPExtractHistogram and the corresponding ExtractHistogram entry in 
filters.xml for more details.

-Ken


On 1/13/09 8:16 AM, Nehme Bilal nbi...@mirarco.org wrote:

Hello,

I'm trying yo create a filter to plot a histogram or a
curve. The output of this filter will look like the one
used for histogram filter.
I read the documentation on the wiki about how to create a
custom view, and I think this is my start point. Is that
true ? if yes, from witch class should myView inherits
from ? pqGenericViewModule ? pqChartLayer ? pqView ? pqxxx
?

How my pqMyView class will be linked to my vtkMyFilter
Class ? how to pass my vtkDataArrays from my vtkMyFilter
class to my pqMyView class ?

Thank you,

Nehme
___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview




     Kenneth Moreland
***  Sandia National Laboratories
***
*** *** ***  email: kmo...@sandia.gov
**  ***  **  phone: (505) 844-8919
***  web:   http://www.cs.unm.edu/~kmorel

___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Difference between Compute Derivatives and Gradient (Unstructured)...

2009-01-13 Thread Moreland, Kenneth
 So its possible to change the gradient-filter to get a speedup? - nice.
 Please let me know when this change is checked in into the cvs-version
 of paraview - i will check it here again.

When I sent out my original email, I had already checked into CVS the
gradient filter optimization.  This morning I checked in another change that
allows you to run a faster but less accurate algorithm to get the point
gradients.

-Ken

     Kenneth Moreland
***  Sandia National Laboratories
***  
*** *** ***  email: kmo...@sandia.gov
**  ***  **  phone: (505) 844-8919
***  web:   http://www.cs.unm.edu/~kmorel



___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] Paraview multiple display

2009-01-13 Thread Biao She
Hi everyone.
I am trying to use paraview for side by side stereo display. I understand
that I can link cameras between two display areas. The problem is that I
don't know how to set a constant offset (like the distance between two eyes)
of camera position for two linked cameras.  Dose anybody have any idea?
Thanks very much!

Aaron
___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] removing domain constraints

2009-01-13 Thread Stephane PLOIX
Hi,

I am developing a helper class that do some prefiltering to remove 
constraints on the filters (need of point data instead of cell data for 
instance).
It provides warnings when an interpolation is performed, but should allow 
to have all the filters available at any time.
The pb I am now facing is that it seems that the constraints specified in 
the server xml are never removed in the inherited proxies. A typical usage 
is :

vtkInterpolatedContour is a class that can take point or cell centered 
data and pre-interpolate it internally to point-centered data if needed.

ServerManagerConfiguration
  ProxyGroup name=filters
SourceProxy
 name=InterpolatedContour
 base_proxygroup=filters
 base_proxyname=Contour
 class=vtkInterpolatedContour
 label=InterpolatedContour

  InputProperty
 name=Input
 command=SetInputConnection
ProxyGroupDomain name=groups
  Group name=sources/
  Group name=filters/
/ProxyGroupDomain
DataTypeDomain name=input_type
  DataType value=vtkDataSet/
/DataTypeDomain
!-- I DISABLE THE ATTRIBUTE_TYPE HERE, BUT PARAVIEW STILL REQUIRES POINT 
CENTERED DATA --
!--InputArrayDomain name=input_array attribute_type=point
  number_of_components=1/--
  /InputProperty

/SourceProxy
  /ProxyGroup
/ServerManagerConfiguration

I can copy paste and modify the whole xml from the contour filter, but it 
seems to me that would be nicer to be able to use the base_proxy 
mechanism, any idea?

Best regards,
Stephane

-
Stéphane Ploix
EDF RD 
1 avenue du Général de Gaulle
F-92141 Clamart Cedex
Phone : +33 (0)1 47 65 51 10
Email : stephane.ploix 'at' edf.fr___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] removing domain constraints

2009-01-13 Thread Utkarsh Ayachit
Stephane,

Unfortunately such more involved control for inheritance is not
provided by ParaView, hence you'll have to go with copying the xml and
changing it. The base_proxy mechanism is very simple (to say the
least), it does not support overriding anything (including
properties/domains) defined by the base _proxy.

Utkarsh

On Tue, Jan 13, 2009 at 12:54 PM, Stephane PLOIX stephane.pl...@edf.fr wrote:

 Hi,

 I am developing a helper class that do some prefiltering to remove
 constraints on the filters (need of point data instead of cell data for
 instance).
 It provides warnings when an interpolation is performed, but should allow to
 have all the filters available at any time.
 The pb I am now facing is that it seems that the constraints specified in
 the server xml are never removed in the inherited proxies. A typical usage
 is :

 vtkInterpolatedContour is a class that can take point or cell centered data
 and pre-interpolate it internally to point-centered data if needed.

 ServerManagerConfiguration
   ProxyGroup name=filters
 SourceProxy
  name=InterpolatedContour
  base_proxygroup=filters
  base_proxyname=Contour
  class=vtkInterpolatedContour
  label=InterpolatedContour

   InputProperty
  name=Input
  command=SetInputConnection
 ProxyGroupDomain name=groups
   Group name=sources/
   Group name=filters/
 /ProxyGroupDomain
 DataTypeDomain name=input_type
   DataType value=vtkDataSet/
 /DataTypeDomain
 !-- I DISABLE THE ATTRIBUTE_TYPE HERE, BUT PARAVIEW STILL REQUIRES POINT
 CENTERED DATA --
 !--InputArrayDomain name=input_array attribute_type=point
   number_of_components=1/--
   /InputProperty

 /SourceProxy
   /ProxyGroup
 /ServerManagerConfiguration

 I can copy paste and modify the whole xml from the contour filter, but it
 seems to me that would be nicer to be able to use the base_proxy mechanism,
 any idea?

 Best regards,
 Stephane

 -
 Stéphane Ploix
 EDF RD
 1 avenue du Général de Gaulle
 F-92141 Clamart Cedex
 Phone : +33 (0)1 47 65 51 10
 Email : stephane.ploix 'at' edf.fr
___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] trunk version - installation of shared lib

2009-01-13 Thread S. Levent Yilmaz
Hello,

Unlike the release versions, the trunk version doesn't install shared
libraries with make install. Is there a way to turn this on?

thanks
Levent
___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] paraview: uploading data files

2009-01-13 Thread Jamie Ruprecht


Hi everybody!
 
I am also new to this forum and new to paraview and python coding.
 
I am currently looking to create an animation of shallow water waves using 
paraview, but I am having some trouble uploading my data files.
At this stage, my data files are in excel files (.xls) and I am just wondering 
how I should go about converting them to paraview data files (.pvd) or the 
like, so that I may create an animation.
 
Any help would be much appreciated.
 
Jamie.
_
It's simple! Sell your car for just $40 at CarPoint.com.au
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fsecure%2Dau%2Eimrworldwide%2Ecom%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801459%2Fpi%5F1004813%2Fai%5F859641_t=762955845_r=tig_OCT07_m=EXT___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Paraview multiple display

2009-01-13 Thread Biao She
Hi Paraviewers.
I guess that I didn't make my question clear in my last email. Here comes
two specific questions:
1. I have tried camera link and property link separately to do my job. If I
use camera link to link the camears in two views, after I rotate the camera
in one view, the other camera will update itself automatically (The two
views are exactly the same at all time). However, if I use property link,
the other camera won't update itself unless I click on its view area (It
needs focus to update). For property link, I only link two properties:
CameraPosition and CameraViewUp. Is there a way that I can make the
other camera update itself automatically?
2. I can't find any CameraRotation property, is there a way to link the
rotation matrix of camera in different views? That means, the two different
cameras in the two different views will multiply the same rotation matrix
after a rotation.
Thanks very much for your time!

Aaron

On Tue, Jan 13, 2009 at 10:51 AM, Biao She sheb...@gmail.com wrote:

 Hi everyone.
 I am trying to use paraview for side by side stereo display. I understand
 that I can link cameras between two display areas. The problem is that I
 don't know how to set a constant offset (like the distance between two eyes)
 of camera position for two linked cameras.  Dose anybody have any idea?
 Thanks very much!

 Aaron




-- 
She, Biao
Department of Computing Science,
University of Alberta, Edmonton, Canada
___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] time dependent mha

2009-01-13 Thread David Fuentes


Is there a time dependent format for mha files ?
___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] paraview: uploading data files

2009-01-13 Thread Michael Jackson
You will probably have to write some sort of custom reader for your  
data. This can be just a simple stand-alone program that converts your  
data into the .pvd file or you can make the reader a ParaView plugin  
so that ParaView can open your data file(s).


The first thing you will probably want to do is export the data from  
excel into a CSV file for easier reading.


Next you can write the code for your reader. If you can give some more  
information about what exactly the data in the xls files represents  
the community may be able to guide you further. For example is the  
data xyz coordinates for a triangular mesh? Is it voxel data? Is it  
image data?


There are lots of examples for all of those around the net and from  
various folks on the list (including myself).


Cheers
_
Mike Jackson  mike.jack...@bluequartz.net
BlueQuartz Softwarewww.bluequartz.net
Principal Software Engineer  Dayton, Ohio



On Jan 13, 2009, at 6:42 PM, Jamie Ruprecht wrote:



Hi everybody!

I am also new to this forum and new to paraview and python coding.

I am currently looking to create an animation of shallow water waves  
using paraview, but I am having some trouble uploading my data files.
At this stage, my data files are in excel files (.xls) and I am just  
wondering how I should go about converting them to paraview data  
files (.pvd) or the like, so that I may create an animation.


Any help would be much appreciated.

Jamie.

Sell your car for just $40 at CarPoint.com.au It's simple! 
___

ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Transform filter from python

2009-01-13 Thread Jérôme
Hi,

Just an idea: It seems that the error message warns about typo... Are
you sure it is translation and not Translation ?

regards,

Jerome

2009/1/13 Jorge Mario Mazo jmm.mecan...@gmail.com:
 I'm trying to use the TransformFilter

 but I do not know how to set the paramater for the filter

 help(servermanager.filters.TransformFilter)

 did not say much

 just
 
  SetPropertyWithName(self, pname, arg)
  |  Generic method for setting the value of a property.
 #

 fig.ListProperties()
 ['Input', 'Transform']

 fig.GetProperty('Transform')
 Property name= Transform value = None


 I  tried
  fig.SetPropertyWithName('translation', [1,0,0])

 fig.SetPropertyWithName('translation',[1,0,0])
 Traceback (most recent call last):
  File console, line 1, in module
  File 
 /Users/jmazo/ParaView-3.4.0/Build/Utilities/VTKPythonWrapping/paraview/servermanager.py,
 line 162, in SetPropertyWithName
raise exceptions.RuntimeError, Property %s does not exist. Please
 check the property name for typos. % pname
 RuntimeError: Property translation does not exist. Please check the
 property name for typos.



 same happened for rotation, scaling

 So i'm totally lost


 thanks in advance!
 ___
 ParaView mailing list
 ParaView@paraview.org
 http://www.paraview.org/mailman/listinfo/paraview

___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview