Re: [Paraview] particletracer

2009-02-19 Thread John Biddiscombe

Martin



4. Selecting my dataset go to filters and particletracer. In the new
window I'm choosing 'source' as input port. Under 'select source(s)' I'm
holding down the shift key and click on temporal cache and line. Then I
click OK.
  

WRONG!

The input is the termporal data (Temporal Cache)
The source is the seed points (Line)

There is a reason why there are TWO separate filter inputs. I'd have 
thought that that was so blindingly obvious that it didn't need explanation.


the inputs should be called Temporal Input and Seeds, but 
unfortunately, the XML doesn't let me override the names inherited from 
StreamTracer.


JB



___
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] Mesh edition / modification with paraview

2009-02-19 Thread Cyril Giraudon

Thanks a lot for this response Berk.

I will think about it. Not easy apparently.
The structured mesh edition (for FDTD purpose) is a particular task, and 
no library exists :-(.
I envisage to write an app based upon paraview, I need Paraview's large 
data handling capability.


Cheers,

Cyril Giraudon.


Berk Geveci a écrit :

Can the output of a filter be the input once modified and without a copy ?
(I don't want to create a new vtkDataSet each time an operation is executed)



No, it can't. VTK is designed such that filters never change their
input. Otherwise, the demand-driven pipeline paradigm breaks down.

You can write a custom application based on VTK or ParaView that does
not use the pipeline and can allow editing of meshes in place.
However, this would probably take some significant amount of work.
Another issue you would encounter is that VTK data structures are
designed to be efficient in memory usage and time to setup but not for
quick editing. This follows the demand-driven pipeline design.

My recommendation would probably be to use VTK/ParaView in conjunction
with another library that provides good support for mesh editing.

Best,
-berk

On Mon, Feb 16, 2009 at 6:08 AM, cyril giraudon cyril.girau...@free.fr wrote:
  

Thanks David for your answer,

Can the output of a filter be the input once modified and without a copy ?
(I don't want to create a new vtkDataSet each time an operation is executed)

I'd like to handle a huge amount of data (1000^3 cubes minimum), is the
IO operation can be a problem for the save to disk task of the mesh ?

Cheers,

Cyril.


David E DeMarle a écrit :


Yes.

ParaView stores data in vtkDataSets, and each filter in ParaView takes
in one or more vtkDataSets, looks at them, and produces one or more
vtkDataSets (often by shallow copying the inputs).

If you understand the vtkDataSet and vtkAlgorithm API's well enough,
the operations you describe are fairly easy to accomplish. (See the
python programmable filter wiki page for examples).

However, providing a good UI that lets the user control which parts of
the DataSet geometry and topology are modified is not altogether
trivial. That would probably require significant use of vtkWidgets to
create the visual editing tools, ParaView's Proxy/Property pattern to
map the tools behavior over to the server side filter properties, and
how ParaView's QT ObjectPanel interfaces exposes properties in the
client application.


On Fri, Feb 13, 2009 at 11:09 AM, Cyril Giraudon cyril.girau...@free.fr wrote:

  

Hello,

Paraview is very well known in the data visualisation area.

However, I'd like to know whether it is possible to write a plugin able to
modify a mesh, for instance to move a selected point of a mesh.
By extension, would it be possible to use paraview (with a new plugin) to
edit a structured orthogonal mesh in order to add/remove an edge, a face or
an element (a cube) ?

Thanks a lot,

Cyril Giraudon.

___
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




  


___
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] Parallel VTK

2009-02-19 Thread Utkarsh Ayachit
FYI, the [ParaView] in the subject line is added automatically by the
mailing list, you don't have to add it explicitly.

On Wed, Feb 18, 2009 at 1:58 PM, Samuele Zampini lelelel...@libero.it wrote:
 Hi all,
 I am trying to use this database (actually, I am attaching just an
 example) with the ParallelVTK language for Paraview.
 I get an error message. What's, to you?

 Thanks for help,
 Samuele.

 PS: sorry if this is the 2nd email, but I forgot to write [Paraview] in the
 subject
 ___
 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] Changing the default volume mapper in Paraview?

2009-02-19 Thread Utkarsh Ayachit
I know it's kind of hacky, but you can simply edit the XML file and
change the mapper used. Look at
Servers/ServerManager/Resources/rendering.xml. In the XML for
UniformGridVolumeRepresentation
change FixedPointVolumeRayCastMapper to something else. Then after the
definition for FixedPointVolumeRayCastMapper, add a new definition for
the VolumeTextureMapper3D and use that in the
UniformGridVolumeRepresentation. I am not sure it's going to work
out of the box. But work a try.

Utkarsh

On Wed, Feb 18, 2009 at 6:42 PM, Biao She sheb...@gmail.com wrote:
 Hi everyone.
 I have debugged paraview for days. The reason is that I want to use
 vtkOpenGLVolumeTextureMapper3d mapper instead of the default volume mapper
 vtkFixedPointVolumeRayCastMapper in Paraview.
 Till now, I haven't figured out how to do that. Has anyone done this before?
 Any hint and help is greatly appreciated.
 Thanks,

 Aaron



 ___
 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] VTK 5.4 Release (Please Read!)

2009-02-19 Thread Olesen, Mark
After 5.4 is released, can we expect (hope) for a move from CVS to git
or subversion? 

 

/mark

-Original Message-
From: paraview-boun...@paraview.org
[mailto:paraview-boun...@paraview.org] On Behalf Of Bob Obara
Sent: Monday, January 19, 2009 8:13 PM
To: vtk-develop...@public.kitware.com; paraview@paraview.org
Subject: [Paraview] VTK 5.4 Release (Please Read!)

 

In the next couple weeks we are planning to start the process of
creating the 5.4 version of VTK.  If you have tests on the main branch
that are currently failing on the dashboard please take the time correct
them next week.  Please hold off committing any changes that you will
not be able fully debug/test until after VTK has been branched for the
5.4 release.  We will let you know asap when the date of the CVS freeze
of VTK has been set.

 

Thank you for your time and help.

 

Bob

 

Robert M. O'Bara, MEng.

Research  Development Engineer

 

Kitware Inc.

28 Corporate Drive

Suite 101

Clifton Park, NY 12065

 


This e-mail message and any attachments may contain 
legally privileged, confidential or proprietary Information, 
or information otherwise protected by law of EMCON 
Technologies, its affiliates, or third parties. This notice 
serves as marking of its Confidential status as defined 
in any confidentiality agreements concerning the sender 
and recipient. If you are not the intended recipient(s), 
or the employee or agent responsible for delivery of this 
message to the intended recipient(s), you are hereby 
notified that any dissemination, distribution or copying 
of this e-mail message is strictly prohibited. 
If you have received this message in error, please 
immediately notify the sender and delete this e-mail 
message from your computer.

___
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] Getting proxy names from proxy manager.

2009-02-19 Thread Utkarsh Ayachit
The cout is never shown since GetProxyName() returns 0 for the second
time around. A cleaner alternative would be to use the
vtkSMProxyIterator to iterate  over a group (using
iter-Begin(sources)).

Utkarsh

On Wed, Feb 11, 2009 at 4:29 PM, Juan Fernando Duque Lombana
jduqu...@eafit.edu.co wrote:
 Using the following c++ code:

 myBox=builder-createSource(sources, CubeSource, s);
 myBox-rename(QString(VWTBoundary));
 myBox-setModifiedState(pqProxy::UNMODIFIED);
 pqOutputPort* opPort = myBox-getOutputPort(0);
 builder-createDataRepresentation(opPort,myActiveView.current());

 I've been able to create an unitary box named in my pipeline VWTBoundary .

 Using the following code:

vtkSMProxyManager *pxm = vtkSMProxyManager::GetProxyManager();
cout  RUNNING  endl;
unsigned int nproxies=pxm-GetNumberOfProxies(sources);
 cout  Nproxies:   nproxies  endl;
 for(unsigned int i =0; i  nproxies; i++)
 {
 vtkSMProxy *proxy = pxm-GetProxy(sources,i);
 cout  pxm-GetProxyName(sources,i)  endl;
 }
 cout  FINNISHING endl;

 I'm suppously able to get the proxy names of the group sources.

 The question is as follows:

 When I generate a single box, the code works flawlessly. When I have 2
 proxies with the same name on the pipeline, the code doesn't seems to finish
 (I never get the last cout output).
 Any Ideas?

 Thanks in advance!

 ... Juan Fernando Duque Lombana.

 ___
 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] Visualizing histogram

2009-02-19 Thread pat marion
Hi,

Sorry I missed this email until now.  I have some python code that
demonstrates how to use the new vtk based charts and vtkTable.  Using
this python interface it should be possible to save a screenshot of
the barchart or XY plot.  I have the code as a patch but it won't be
committed until after the vtk 5.4 release.

Pat

On Wed, Feb 11, 2009 at 12:10 PM, Mark Richardson m...@elemtech.com wrote:

 Pat had some python code to test the chart python wrapping, but it doesn't 
 look like it's in cvs. The api should be similar to c++ though. You can look 
 at vtk/guisupport/qt/testing/cxx/TestVtkBarChartView.cxx as an example. 
 You'll just have to convert it to python calls and import the right modules. 
 I haven't played with vtk python, so I'm not sure what module the views show 
 up in.

 Mark

 - Original Message -
 From: Jacques Papper jpap...@ara.co.uk
 To: Mark Richardson m...@elemtech.com
 Cc: paraview paraview@paraview.org
 Sent: Wednesday, February 11, 2009 4:38:09 AM GMT -07:00 US/Canada Mountain
 Subject: RE: [Paraview] Visualizing histogram

 How can I access this through pvpython ?
 Do you have any example to put me on the right track ?

 Thanks
 Jacques

 -Original Message-
 From: Mark Richardson [mailto:m...@elemtech.com]
 Sent: 10 February 2009 17:28
 To: Jacques Papper
 Cc: paraview
 Subject: Re: [Paraview] Visualizing histogram


 The new charts in vtk/guisupport/qt/chart have support for strings and
 numbers on the axes. The old charts only support numbers. We're currently
 integrating the new charts into paraview. Then, you'll be able to view the
 vtkTable.

 The chart views in vtk/guisupport/qt can be displayed using python. There
 are some tests you can use as an example (I can't remember where they are at
 the moment). I'm not sure how well that will work in paraview though. It may
 have to be done stand-alone.

 Mark Richardson

 - Original Message -
 From: Jacques Papper jpap...@ara.co.uk
 To: John Biddiscombe biddi...@cscs.ch, paraview
 paraview@paraview.org
 Sent: Tuesday, February 10, 2009 9:30:29 AM GMT -07:00 US/Canada Mountain
 Subject: [Paraview] Visualizing histogram

 John,

 Thanks a lot for your help. I have re-used part of your code to create a
 Multi-block to table filter. (Basically exactly the same as your
 probeIntegration but without the integration step).
 The problem I have now is in creating a histogram which has the Block Id
 (String - first column of data in my vtkTable) on the x axis and the data on
 the y axis.
 It seems that the histogram plotting capability in ParaView can not handle
 String Ids instead of numbers.

 - Has anyone implemented such capability ?

 - What is the best way to access the vtkTable object through Python directly
 (to then possibly use some python plotting facility)?

 - Is it possible to create an image (Jpg, png etc..) from Python of an XY
 plot or a Bar Chart ?

 Jacques PAPPER
 Applied CFD Team Leader
 Tel: +44 (0) 1234 324677


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


 ---
 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] Emissive polygons?

2009-02-19 Thread Berk Geveci
I am probably confused here but isn't setting ambient to larger than 0
in vtkProperty supposed to do that?

-berk

On Wed, Feb 18, 2009 at 4:23 PM, Moreland, Kenneth kmo...@sandia.gov wrote:
 I'm afraid not.  It looks like that functionality is not even support in
 VTK.  Implementing light emission that is constant for whole objects would
 be pretty straightforward, but would require modifying code all the way to
 VTK's rendering layer.

 -Ken


 On 2/18/09 1:55 PM, Eric E. Monson emon...@cs.duke.edu wrote:

 Hello,

 I'm not sure if I'm using the proper terminology, but is it possible
 in ParaView to give polygons or 3d cells an emissive property for
 the lighting, so they give off light instead of reflecting it?

 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




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


 ___
 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] Extract cell type from unstructured grid

2009-02-19 Thread Berk Geveci
And then use the Cell Types array in the Threshold filter, I guess?

-berk

On Wed, Feb 18, 2009 at 11:55 AM, Moreland, Kenneth kmo...@sandia.gov wrote:
 Paul,

 I don't know of any existing filter to do that, but a pretty simple
 programmable filter can do it.  Here is the script that will achieve it.
  Just create a custom filter and copy this into the script.

 input = self.GetUnstructuredGridInput() output =
 self.GetUnstructuredGridOutput()
 output.GetPointData().PassData(input.GetPointData())
 output.GetCellData().PassData(input.GetCellData()) cellTypes =
 vtk.vtkUnsignedCharArray() cellTypes.DeepCopy(input.GetCellTypesArray())
 cellTypes.SetName(Cell Types) output.GetCellData().AddArray(cellTypes)
 If you plan to use this multiple times, you probably want to wrap this in a
 custom filter.

 -Ken


 On 2/18/09 5:07 AM, Paul Edwards paul.m.edwa...@gmail.com wrote:

 Hello,

 Does anyone know an easy way to extract all cells of a particular type from
 an unstructured grid (without writing code either a plugin or python
 script)?  I was thinking it be possible with the calculator and the number
 of points in a cell but I can't get access to that.

 Thanks,
 Paul



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


 ___
 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] Changing the default volume mapper in Paraview?

2009-02-19 Thread pat marion
There is a combo box in the Display tab that allows you to select the
volume mapper, but it looks like that combo box is not working.  I
know it used to work, does anyone know what happened?

Pat

On Thu, Feb 19, 2009 at 7:38 AM, Utkarsh Ayachit
utkarsh.ayac...@kitware.com wrote:
 I know it's kind of hacky, but you can simply edit the XML file and
 change the mapper used. Look at
 Servers/ServerManager/Resources/rendering.xml. In the XML for
 UniformGridVolumeRepresentation
 change FixedPointVolumeRayCastMapper to something else. Then after the
 definition for FixedPointVolumeRayCastMapper, add a new definition for
 the VolumeTextureMapper3D and use that in the
 UniformGridVolumeRepresentation. I am not sure it's going to work
 out of the box. But work a try.

 Utkarsh

 On Wed, Feb 18, 2009 at 6:42 PM, Biao She sheb...@gmail.com wrote:
 Hi everyone.
 I have debugged paraview for days. The reason is that I want to use
 vtkOpenGLVolumeTextureMapper3d mapper instead of the default volume mapper
 vtkFixedPointVolumeRayCastMapper in Paraview.
 Till now, I haven't figured out how to do that. Has anyone done this before?
 Any hint and help is greatly appreciated.
 Thanks,

 Aaron



 ___
 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

___
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] Parallel VTK

2009-02-19 Thread Samuele Zampini
Dear Berk,
I've switched from source to Source but nothing happened. Better, I get
a crash, now, instead of an error message.

Any other idea?

Thanks,
Samuele.

Il giorno gio, 19/02/2009 alle 09.41 -0500, Berk Geveci ha scritto:

 Hi Samuele,
 
 As you can see in the error, the pvtr file is missing the Source
 attribute for each piece. Keep in mind that the XML format is case
 sensitive. You should switch from source to Source.
 
 -berk
 
 On Wed, Feb 18, 2009 at 1:03 PM, Samuele Zampini lelelel...@libero.it wrote:
  Hi all,
  I am trying to use this database (actually, I am attaching just an
  example) with the ParallelVTK language for Paraview.
  I get an error message. What's, to you?
 
  Thanks for help,
  Samuele.
  ___
  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
 
 


dati2.vtr
Description: XML document


dati.pvtr
Description: XML document


dati1.vtr
Description: XML document
___
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] Changing the default volume mapper in Paraview?

2009-02-19 Thread Utkarsh Ayachit
The combo-box is only for unstructured volume rendering (and works
perfectly fine for that). I believe Biao is taking about image data
volume rendering.

Utkarsh

On Thu, Feb 19, 2009 at 10:06 AM, pat marion pat.mar...@kitware.com wrote:
 There is a combo box in the Display tab that allows you to select the
 volume mapper, but it looks like that combo box is not working.  I
 know it used to work, does anyone know what happened?

 Pat

 On Thu, Feb 19, 2009 at 7:38 AM, Utkarsh Ayachit
 utkarsh.ayac...@kitware.com wrote:
 I know it's kind of hacky, but you can simply edit the XML file and
 change the mapper used. Look at
 Servers/ServerManager/Resources/rendering.xml. In the XML for
 UniformGridVolumeRepresentation
 change FixedPointVolumeRayCastMapper to something else. Then after the
 definition for FixedPointVolumeRayCastMapper, add a new definition for
 the VolumeTextureMapper3D and use that in the
 UniformGridVolumeRepresentation. I am not sure it's going to work
 out of the box. But work a try.

 Utkarsh

 On Wed, Feb 18, 2009 at 6:42 PM, Biao She sheb...@gmail.com wrote:
 Hi everyone.
 I have debugged paraview for days. The reason is that I want to use
 vtkOpenGLVolumeTextureMapper3d mapper instead of the default volume mapper
 vtkFixedPointVolumeRayCastMapper in Paraview.
 Till now, I haven't figured out how to do that. Has anyone done this before?
 Any hint and help is greatly appreciated.
 Thanks,

 Aaron



 ___
 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


___
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] AnatomicaOrientation and TransformMatrix

2009-02-19 Thread David Fuentes



The TransformMatrix and AnatomicalOrientation seem to have no effect on 
the positioning of the data in an MHA file within paraview


TransformMatrix = 1 0 0 0 1 0 0 0 1
AnatomicalOrientation = RAI



shouldn't


TransformMatrix = 1 0 0 0 0 1 0 1 0


produce a 90 deg rotation about the x-axis 
of the data in an mha file ?

___
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] Emissive polygons?

2009-02-19 Thread Moreland, Kenneth
No, they are different (although you might be able to get a similar effect).  
The ambient light represents a base level of lighting coming from all 
directions that is formed (in real life) by light coming actual light sources 
and bouncing around the objects in the room.  It is the light that illuminates 
an object that is in shadow from all light sources.  Because OpenGL does not 
compute the amount of light that gets scattered around the scene, for each 
light you specify an ambient parameter representing the amount you expect the 
light to be bouncing around the scene.  OpenGL also allows you to specify 
different colors for ambient and diffuse reflection of materials.  In real 
life, these are always the same, but changing them sometimes allows you to work 
around some of the approximations that OpenGL makes.

Emission is light that originates directly from an object.  It is a color that 
is completely impendent of any lights (because the light is coming from the 
object itself).  Objects like turned on light bulbs or glow-in-the-dark toys 
have emission.  Unlike in real life, light from polygons with emission in 
OpenGL do not affect other objects (another approximation introduced by OpenGL).

For more information, check out the chapter on Lighting in the red OpenGL book.

-Ken


On 2/19/09 7:45 AM, Berk Geveci berk.gev...@kitware.com wrote:

I am probably confused here but isn't setting ambient to larger than 0
in vtkProperty supposed to do that?

-berk

On Wed, Feb 18, 2009 at 4:23 PM, Moreland, Kenneth kmo...@sandia.gov wrote:
 I'm afraid not.  It looks like that functionality is not even support in
 VTK.  Implementing light emission that is constant for whole objects would
 be pretty straightforward, but would require modifying code all the way to
 VTK's rendering layer.

 -Ken


 On 2/18/09 1:55 PM, Eric E. Monson emon...@cs.duke.edu wrote:

 Hello,

 I'm not sure if I'm using the proper terminology, but is it possible
 in ParaView to give polygons or 3d cells an emissive property for
 the lighting, so they give off light instead of reflecting it?

 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




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


 ___
 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






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

___
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] Extracting data

2009-02-19 Thread Rakesh Hammond
Hi

I have a multi-block time series data set (23 blocks).  I select some blocks
(0,6,12,18) using extractBlock
filter.  I then use the plot over line to plot some variables in my selected
blocks.

If i wanted to save the extracted blocks, i can save as a *.vtm file.
However, it only saves the current time step
as far as I can see.  Is there any way of saving all of the time steps (of
the extracted data).

I guess basically, I am trying to save a sub set of my initial data set, and
my problem is it is only saving the
current time step.  Can some one tell me what I am doing wrong?

Regards,
Rakesh
___
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] Changing the default volume mapper in Paraview?

2009-02-19 Thread Biao She
I didn't add a new proxy definition for OpenGLVolumeTextureMapper3D.
Instead, I change the definition for VolumeFixedPointRayCastMapper to
something like that:
SubProxy
 Proxy name=VolumeFixedPointRayCastMapper
   proxygroup=mappers
   proxyname=OpenGLVolumeTextureMapper3D
 /Proxy
  /SubProxy
It didn't work.
By now, I have tried to add a new proxy definition for
OpenGLVolumeTextureMapper3D, but I got the same error message. The
following is the XML proxy I wrote:
SubProxy
Proxy name=VolumeOpenGLTexture3DMapper
  proxygroup=mappers
  proxyname=OpenGLVolumeTextureMapper3D
/Proxy
ExposedProperties
  Property name=SampleDistance /
/ExposedProperties
/SubProxy
I am wondering if I understand you incorrect.
Also, I notice that in the vtkSMUniformGridVolumeRepresentationProxy.cxx
file (Servers/ServerManager/), between line 100~117, there are some code
specifically related to VolumeFixedPointRayCastMapper, do I need to change
these codes too?

Thanks very much for your help.

Biao



On Thu, Feb 19, 2009 at 12:57 PM, Utkarsh Ayachit 
utkarsh.ayac...@kitware.com wrote:

 Did you add a new proxy definition for the
 OpenGLVolumeTextureMapper3D proxy? Look at the definition for
 VolumeFixedPointRayCastMapper (it's further down in the file).
 You'll need to add a similar one for the OpenGLVolumeTextureMapper3D
 proxy.

 On Thu, Feb 19, 2009 at 2:55 PM, Biao She sheb...@gmail.com wrote:
  Thanks for your help.
  I have tried to change FixedPointVolumeRayCastMapper to something else
 in
  the XML file. However, it still didn't work.
  I am pretty new to these XML files. To the best of my knowledge, I
 changed
  the XML file to:
  SubProxy
  Proxy name=VolumeFixedPointRayCastMapper
proxygroup=mappers
proxyname=OpenGLVolumeTextureMapper3D
  /Proxy
   /SubProxy
  I simply delete the ExposedProperties part for this mapper, because I
  don't know how to decide which property should be exposed.
  After those changes, I opened the iron_protein.vtk data with paraview.
 Here
  is the error message I got:
 
  Unhandled exception at 0x0519e423(vtkPVServerManager.dll) in
 paraview.exe:
  0xC005: Access violation reading location 0x.
 
  Is that because the proxyname is wrong? Or do
  I have to expose some properties?
 
  Biao
 
  On Thu, Feb 19, 2009 at 9:17 AM, Utkarsh Ayachit
  utkarsh.ayac...@kitware.com wrote:
 
  The combo-box is only for unstructured volume rendering (and works
  perfectly fine for that). I believe Biao is taking about image data
  volume rendering.
 
  Utkarsh
 
  On Thu, Feb 19, 2009 at 10:06 AM, pat marion pat.mar...@kitware.com
  wrote:
   There is a combo box in the Display tab that allows you to select the
   volume mapper, but it looks like that combo box is not working.  I
   know it used to work, does anyone know what happened?
  
   Pat
  
   On Thu, Feb 19, 2009 at 7:38 AM, Utkarsh Ayachit
   utkarsh.ayac...@kitware.com wrote:
   I know it's kind of hacky, but you can simply edit the XML file and
   change the mapper used. Look at
   Servers/ServerManager/Resources/rendering.xml. In the XML for
   UniformGridVolumeRepresentation
   change FixedPointVolumeRayCastMapper to something else. Then after
 the
   definition for FixedPointVolumeRayCastMapper, add a new definition
 for
   the VolumeTextureMapper3D and use that in the
   UniformGridVolumeRepresentation. I am not sure it's going to work
   out of the box. But work a try.
  
   Utkarsh
  
   On Wed, Feb 18, 2009 at 6:42 PM, Biao She sheb...@gmail.com wrote:
   Hi everyone.
   I have debugged paraview for days. The reason is that I want to use
   vtkOpenGLVolumeTextureMapper3d mapper instead of the default volume
   mapper
   vtkFixedPointVolumeRayCastMapper in Paraview.
   Till now, I haven't figured out how to do that. Has anyone done this
   before?
   Any hint and help is greatly appreciated.
   Thanks,
  
   Aaron
  
  
  
   ___
   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
  
  
 




-- 
She, Biao
Department of Computing Science,
University of Alberta, Edmonton, Canada
___
Powered by www.kitware.com

Visit other Kitware open-source 

Re: [Paraview] Changing the default volume mapper in Paraview?

2009-02-19 Thread Biao She
Sorry, please ignore the first question. I know what you mean right now.
But, please look at the second question:
Also, I notice that in the vtkSMUniformGridVolumeRepresentationProxy.cxx
file (Servers/ServerManager/), between line 100~117, there are some code
specifically related to VolumeFixedPointRayCastMapper, do I need to change
these codes too?

Thanks,

Biao

On Thu, Feb 19, 2009 at 2:27 PM, Biao She sheb...@gmail.com wrote:

 I didn't add a new proxy definition for OpenGLVolumeTextureMapper3D.
 Instead, I change the definition for VolumeFixedPointRayCastMapper to
 something like that:
 SubProxy
  Proxy name=VolumeFixedPointRayCastMapper
proxygroup=mappers
proxyname=OpenGLVolumeTextureMapper3D
  /Proxy
   /SubProxy
 It didn't work.
 By now, I have tried to add a new proxy definition for
 OpenGLVolumeTextureMapper3D, but I got the same error message. The
 following is the XML proxy I wrote:
 SubProxy
 Proxy name=VolumeOpenGLTexture3DMapper
   proxygroup=mappers
   proxyname=OpenGLVolumeTextureMapper3D
 /Proxy
 ExposedProperties
   Property name=SampleDistance /
 /ExposedProperties
 /SubProxy
 I am wondering if I understand you incorrect.
 Also, I notice that in the vtkSMUniformGridVolumeRepresentationProxy.cxx
 file (Servers/ServerManager/), between line 100~117, there are some code
 specifically related to VolumeFixedPointRayCastMapper, do I need to change
 these codes too?

 Thanks very much for your help.

 Biao



 On Thu, Feb 19, 2009 at 12:57 PM, Utkarsh Ayachit 
 utkarsh.ayac...@kitware.com wrote:

 Did you add a new proxy definition for the
 OpenGLVolumeTextureMapper3D proxy? Look at the definition for
 VolumeFixedPointRayCastMapper (it's further down in the file).
 You'll need to add a similar one for the OpenGLVolumeTextureMapper3D
 proxy.

 On Thu, Feb 19, 2009 at 2:55 PM, Biao She sheb...@gmail.com wrote:
  Thanks for your help.
  I have tried to change FixedPointVolumeRayCastMapper to something else
 in
  the XML file. However, it still didn't work.
  I am pretty new to these XML files. To the best of my knowledge, I
 changed
  the XML file to:
  SubProxy
  Proxy name=VolumeFixedPointRayCastMapper
proxygroup=mappers
proxyname=OpenGLVolumeTextureMapper3D
  /Proxy
   /SubProxy
  I simply delete the ExposedProperties part for this mapper, because I
  don't know how to decide which property should be exposed.
  After those changes, I opened the iron_protein.vtk data with paraview.
 Here
  is the error message I got:
 
  Unhandled exception at 0x0519e423(vtkPVServerManager.dll) in
 paraview.exe:
  0xC005: Access violation reading location 0x.
 
  Is that because the proxyname is wrong? Or do
  I have to expose some properties?
 
  Biao
 
  On Thu, Feb 19, 2009 at 9:17 AM, Utkarsh Ayachit
  utkarsh.ayac...@kitware.com wrote:
 
  The combo-box is only for unstructured volume rendering (and works
  perfectly fine for that). I believe Biao is taking about image data
  volume rendering.
 
  Utkarsh
 
  On Thu, Feb 19, 2009 at 10:06 AM, pat marion pat.mar...@kitware.com
  wrote:
   There is a combo box in the Display tab that allows you to select the
   volume mapper, but it looks like that combo box is not working.  I
   know it used to work, does anyone know what happened?
  
   Pat
  
   On Thu, Feb 19, 2009 at 7:38 AM, Utkarsh Ayachit
   utkarsh.ayac...@kitware.com wrote:
   I know it's kind of hacky, but you can simply edit the XML file and
   change the mapper used. Look at
   Servers/ServerManager/Resources/rendering.xml. In the XML for
   UniformGridVolumeRepresentation
   change FixedPointVolumeRayCastMapper to something else. Then after
 the
   definition for FixedPointVolumeRayCastMapper, add a new definition
 for
   the VolumeTextureMapper3D and use that in the
   UniformGridVolumeRepresentation. I am not sure it's going to work
   out of the box. But work a try.
  
   Utkarsh
  
   On Wed, Feb 18, 2009 at 6:42 PM, Biao She sheb...@gmail.com
 wrote:
   Hi everyone.
   I have debugged paraview for days. The reason is that I want to use
   vtkOpenGLVolumeTextureMapper3d mapper instead of the default volume
   mapper
   vtkFixedPointVolumeRayCastMapper in Paraview.
   Till now, I haven't figured out how to do that. Has anyone done
 this
   before?
   Any hint and help is greatly appreciated.
   Thanks,
  
   Aaron
  
  
  
   ___
   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
   

Re: [Paraview] Changing the default volume mapper in Paraview?

2009-02-19 Thread Utkarsh Ayachit
No, unless you changed the name for the subproxy which is the name
in SubProxyProxy name=.. //SubProxy. I'll leave that as is so
the vtkSMUniformGridVolumeRepresentationProxy will just work.

On Thu, Feb 19, 2009 at 4:33 PM, Biao She sheb...@gmail.com wrote:
 Sorry, please ignore the first question. I know what you mean right now.
 But, please look at the second question:
 Also, I notice that in the vtkSMUniformGridVolumeRepresen
 tationProxy.cxx file (Servers/ServerManager/), between line 100~117, there
 are some code specifically related to VolumeFixedPointRayCastMapper, do I
 need to change these codes too?

 Thanks,

 Biao

 On Thu, Feb 19, 2009 at 2:27 PM, Biao She sheb...@gmail.com wrote:

 I didn't add a new proxy definition for OpenGLVolumeTextureMapper3D.
 Instead, I change the definition for VolumeFixedPointRayCastMapper to
 something like that:
 SubProxy
  Proxy name=VolumeFixedPointRayCastMapper
proxygroup=mappers
proxyname=OpenGLVolumeTextureMapper3D
  /Proxy
   /SubProxy
 It didn't work.
 By now, I have tried to add a new proxy definition for
 OpenGLVolumeTextureMapper3D, but I got the same error message. The
 following is the XML proxy I wrote:
 SubProxy
 Proxy name=VolumeOpenGLTexture3DMapper
   proxygroup=mappers
   proxyname=OpenGLVolumeTextureMapper3D
 /Proxy
 ExposedProperties
   Property name=SampleDistance /
 /ExposedProperties
 /SubProxy
 I am wondering if I understand you incorrect.
 Also, I notice that in the vtkSMUniformGridVolumeRepresentationProxy.cxx
 file (Servers/ServerManager/), between line 100~117, there are some code
 specifically related to VolumeFixedPointRayCastMapper, do I need to change
 these codes too?

 Thanks very much for your help.

 Biao



 On Thu, Feb 19, 2009 at 12:57 PM, Utkarsh Ayachit
 utkarsh.ayac...@kitware.com wrote:

 Did you add a new proxy definition for the
 OpenGLVolumeTextureMapper3D proxy? Look at the definition for
 VolumeFixedPointRayCastMapper (it's further down in the file).
 You'll need to add a similar one for the OpenGLVolumeTextureMapper3D
 proxy.

 On Thu, Feb 19, 2009 at 2:55 PM, Biao She sheb...@gmail.com wrote:
  Thanks for your help.
  I have tried to change FixedPointVolumeRayCastMapper to something
  else in
  the XML file. However, it still didn't work.
  I am pretty new to these XML files. To the best of my knowledge, I
  changed
  the XML file to:
  SubProxy
  Proxy name=VolumeFixedPointRayCastMapper
proxygroup=mappers
proxyname=OpenGLVolumeTextureMapper3D
  /Proxy
   /SubProxy
  I simply delete the ExposedProperties part for this mapper, because I
  don't know how to decide which property should be exposed.
  After those changes, I opened the iron_protein.vtk data with paraview.
  Here
  is the error message I got:
 
  Unhandled exception at 0x0519e423(vtkPVServerManager.dll) in
  paraview.exe:
  0xC005: Access violation reading location 0x.
 
  Is that because the proxyname is wrong? Or do
  I have to expose some properties?
 
  Biao
 
  On Thu, Feb 19, 2009 at 9:17 AM, Utkarsh Ayachit
  utkarsh.ayac...@kitware.com wrote:
 
  The combo-box is only for unstructured volume rendering (and works
  perfectly fine for that). I believe Biao is taking about image data
  volume rendering.
 
  Utkarsh
 
  On Thu, Feb 19, 2009 at 10:06 AM, pat marion pat.mar...@kitware.com
  wrote:
   There is a combo box in the Display tab that allows you to select
   the
   volume mapper, but it looks like that combo box is not working.  I
   know it used to work, does anyone know what happened?
  
   Pat
  
   On Thu, Feb 19, 2009 at 7:38 AM, Utkarsh Ayachit
   utkarsh.ayac...@kitware.com wrote:
   I know it's kind of hacky, but you can simply edit the XML file and
   change the mapper used. Look at
   Servers/ServerManager/Resources/rendering.xml. In the XML for
   UniformGridVolumeRepresentation
   change FixedPointVolumeRayCastMapper to something else. Then after
   the
   definition for FixedPointVolumeRayCastMapper, add a new definition
   for
   the VolumeTextureMapper3D and use that in the
   UniformGridVolumeRepresentation. I am not sure it's going to work
   out of the box. But work a try.
  
   Utkarsh
  
   On Wed, Feb 18, 2009 at 6:42 PM, Biao She sheb...@gmail.com
   wrote:
   Hi everyone.
   I have debugged paraview for days. The reason is that I want to
   use
   vtkOpenGLVolumeTextureMapper3d mapper instead of the default
   volume
   mapper
   vtkFixedPointVolumeRayCastMapper in Paraview.
   Till now, I haven't figured out how to do that. Has anyone done
   this
   before?
   Any hint and help is greatly appreciated.
   Thanks,
  
   Aaron
  
  
  
   ___
   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 

Re: [Paraview] Changing the default volume mapper in Paraview?

2009-02-19 Thread Biao She
Thanks very much for your help, Utkarsh.
The OpenGLVolumeTextureMapper3D works right now.
Just for future reference, here are instructions to make a volume mapper
available in paraview:
1. open the rendering.xml file at the
/$Paraveiw-Source-Directory/Servers/ServerManager/Resources directory.
2. copy the SourceProxy definition of FixedPointVolumeRayCastMapper, paste
it after the definition and made the following changes: (the bold ones are
the places where I made changes )
SourceProxy name=*OpenGLVolumeTextureMapper3D*
  class=*vtkOpenGLVolumeTextureMapper3D*
  InputProperty
name=Input
command=SetInputConnection
DataTypeDomain name=input_type
  DataType value=vtkImageData/
/DataTypeDomain
  /InputProperty
  StringVectorProperty
name=SelectScalarArray
command=SelectScalarArray
number_of_elements=1
animateable=0
ArrayListDomain name=array_list attribute_type=Scalars
  RequiredProperties
Property name=Input function=Input/
  /RequiredProperties
/ArrayListDomain
  /StringVectorProperty
  IntVectorProperty
name=ScalarMode
command=SetScalarMode
default_values=3
number_of_elements=1
animateable=0
EnumerationDomain name=enum
  Entry value=0 text=Default/
  Entry value=1 text=PointData/
  Entry value=2 text=CellData/
  Entry value=3 text=PointFieldData/
  Entry value=4 text=CellFieldData/
/EnumerationDomain
  /IntVectorProperty
  IntVectorProperty
name=LockSampleDistanceToInputSpacing
command=SetLockSampleDistanceToInputSpacing
default_values=1
number_of_elements=1
animateable=0
BooleanDomain name=bool /
  /IntVectorProperty
  !-- End of FixedPointVolumeRayCastMapper --
/SourceProxy
3. find the SubProxy of VolumeFixedPointRayCastMapper, make the following
change (bold):
SubProxy
Proxy name=VolumeFixedPointRayCastMapper
  proxygroup=mappers
  proxyname=*OpenGLVolumeTextureMapper3D*
/Proxy
ExposedProperties
  Property name=LockSampleDistanceToInputSpacing /
/ExposedProperties
/SubProxy
4. find the header file of vtkOpenGLVolumeTextureMapper3D at the
/$Paraveiw-Source-Directory/VTK/VolumeRendering/ directory.
add *vtkSetClampMacro( LockSampleDistanceToInputSpacing, int, 0, 1 );* as
public method,
add *int  LockSampleDistanceToInputSpacing;* as a protected variable.
5. compile your program and go.

I understand that vtkOpenGLVolumeTextureMapper3D mapper doesn't need a
property of LockSampleDistanceToInputSpacing, but this is the fastest way
for me to make the mapper works.
Any clue about how to get rid of the variable?
Thanks again for all the helps!

Biao

On Thu, Feb 19, 2009 at 2:35 PM, Utkarsh Ayachit 
utkarsh.ayac...@kitware.com wrote:

 No, unless you changed the name for the subproxy which is the name
 in SubProxyProxy name=.. //SubProxy. I'll leave that as is so
 the vtkSMUniformGridVolumeRepresentationProxy will just work.

 On Thu, Feb 19, 2009 at 4:33 PM, Biao She sheb...@gmail.com wrote:
  Sorry, please ignore the first question. I know what you mean right now.
  But, please look at the second question:
  Also, I notice that in the vtkSMUniformGridVolumeRepresen
  tationProxy.cxx file (Servers/ServerManager/), between line 100~117,
 there
  are some code specifically related to VolumeFixedPointRayCastMapper, do I
  need to change these codes too?
 
  Thanks,
 
  Biao
 
  On Thu, Feb 19, 2009 at 2:27 PM, Biao She sheb...@gmail.com wrote:
 
  I didn't add a new proxy definition for OpenGLVolumeTextureMapper3D.
  Instead, I change the definition for VolumeFixedPointRayCastMapper to
  something like that:
  SubProxy
   Proxy name=VolumeFixedPointRayCastMapper
 proxygroup=mappers
 proxyname=OpenGLVolumeTextureMapper3D
   /Proxy
/SubProxy
  It didn't work.
  By now, I have tried to add a new proxy definition for
  OpenGLVolumeTextureMapper3D, but I got the same error message. The
  following is the XML proxy I wrote:
  SubProxy
  Proxy name=VolumeOpenGLTexture3DMapper
proxygroup=mappers
proxyname=OpenGLVolumeTextureMapper3D
  /Proxy
  ExposedProperties
Property name=SampleDistance /
  /ExposedProperties
  /SubProxy
  I am wondering if I understand you incorrect.
  Also, I notice that in the vtkSMUniformGridVolumeRepresentationProxy.cxx
  file (Servers/ServerManager/), between line 100~117, there are some code
  specifically related to VolumeFixedPointRayCastMapper, do I need to
 change
  these codes too?
 
  Thanks very much for your help.
 
  Biao
 
 
 
  On Thu, Feb 19, 2009 at 12:57 PM, Utkarsh Ayachit
  utkarsh.ayac...@kitware.com wrote:
 
  Did you add a new proxy definition for the
  OpenGLVolumeTextureMapper3D proxy? Look at the definition 

[Paraview] Change reader file name in python loaded state

2009-02-19 Thread Eric E. Monson

Hey again,

Back maybe around PV 3.2, I could load a state file in Python (outside  
of PV) which included readers for pvd files. I could find the proxies  
for the file readers, and then change the file name, update the  
pipeline, and then save or display an animation using the new data  
set. I haven't tried this for a while because I'm now working with  
Xdmf files, and the reader didn't work with ParaView  Python well  
enough until more recently.


Now, when I try the same scripts, the reader on which I change the  
file name doesn't show anything at all in the render view. (i.e. I  
have two readers in my pipeline -- if I don't change any file names I  
can load in the state file and animate fine -- if I change one file  
name only that element of my visualization drops out, but I can see  
and animate the other -- if I change both names the renderview looks  
blank during the whole animation.)


I'm doing something like:

from paraview import servermanger
servermanager.Connect()
servermanager.LoadState(/Users/emonson/Data/StateFile.pvsm)
pm = servermanager.ProxyManager()

reader = pm.GetProxy(sources,OriginalDataSet.xmf)
reader.FileName = /Users/emonson/Data/NewDataSet.xmf
reader.UpdatePipeline()
view = servermanager.GetRenderView()
view.StillRender()

I see that in CVS there is a reader.FileNameChanged(), but calling  
that doesn't seem to fix it.


Is there something obvious I'm failing to do, or does this look like  
this should work?


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