Re: [Paraview] had to make up a value for selection: what am I doing wrong?

2008-09-05 Thread Utkarsh Ayachit

Great, in that case, I shall commit the fix to CVS sometime today.

Utkarsh

Takuya OSHIMA wrote:

Hi Utkarsh,

Thanks a lot, it did fix the issue!

Takuya

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


From: Utkarsh Ayachit [EMAIL PROTECTED]
Subject: Re: [Paraview] had to make up a value for selection: what am I doing 
wrong?
Date: Thu, 04 Sep 2008 15:01:33 -0400


Takuya,

Can you try the attached patch and see if that fixes the issue?

Now the pqSMAdaptor tries to obtain the array status from the information 
property is not available in the property itself.

Utkarsh



Takuya OSHIMA wrote:

Hi Utkarsh,
I had another look into the issue again, and concluded that it's a bug
in ParaView. The tracker ID is #7583.
The main problem was indeed in the removal of the
this-Internal-Property-ResetToDefault() call. Before the removal
the ResetToDefault() call subsequently executed
vtkSMArraySelectionDomain::SetDefaultValues() which copies the
contents of associated information property to the
StringVectorProperty.
However with the removal now there's nothing which links the
information property and the StringVector property, despite the
server-client downlink (client/server stream-information
helper-information property-array selection domain-string vector
property) worked properly until the update of ArraySelectionDomain
which interfaces the two properties. Hence the StringDomain of the
newly added array name is found in
pqSMAdaptor::getSelectionProperty(vtkSMProperty*, unsigned int) while
the corresponding StringVectorProperty is not, which led to the had
to make up a value for selection text output.
I think the fix intended by the removal of ResetToDefault() must be
done elsewhere.
For clarification, I attached a pseudo reader plugin to demonstrate
the problem. Just build as a usual plugin, load into ParaView, and try
reading any stub file with the *.pseudo extension. After clicking
Apply, you'll see the had to make up... message every time you move
the timestep back and forth.
Takuya OSHIMA, Ph.D.
Faculty of Engineering, Niigata University
8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN
From: Utkarsh Ayachit [EMAIL PROTECTED]
Subject: Re: [Paraview] had to make up a value for selection: what am I doing 
wrong?
Date: Mon, 04 Aug 2008 07:51:01 -0400


Mark,

Thanks for the investigation. Let me take a look at it. Problem is indeed due 
to arrays appearing.

Utkarsh

Olesen, Mark wrote:

Taking Takuya's hint, I reverted to revision 1.6 of

  Qt/Components/pqSignalAdaptorSelectionTreeWidget.cxx

and it did indeed stop the multitude of had to make up a value that
were cluttering up my message window.

The problem arises in my cases when the number of entries in a
vtkDataArraySelection changes - eg, new fields or mesh parts appear or
disappear between time-steps.
Perhaps this hint might help in localizing the problem.


/mark


-Original Message-
From: [EMAIL PROTECTED] [mailto:paraview-
[EMAIL PROTECTED] On Behalf Of Takuya OSHIMA
Sent: Tuesday, July 29, 2008 3:12 PM
To: paraview@paraview.org
Subject: Re: [Paraview] had to make up a value for selection: what
am I doing wrong?

Hi ParaView developers,

As I got no answer so far from the list, I did some digging with a
debugger. As a result it's looking more like a bug in ParaView, but
I'm not confident yet. So far what I found are threefold:

1. If I revert the following modification to
pqSignalAdaptorSelectionTreeWidget.cxx on 2008-07-02

Index: pqSignalAdaptorSelectionTreeWidget.cxx
===
RCS file:
/cvsroot/ParaView3/ParaView3/Qt/Components/pqSignalAdaptorSelectionTre
eWidget.cxx,v
retrieving revision 1.6
retrieving revision 1.7
diff -r1.6 -r1.7
187,188c187,190

   this-Internal-Property-ResetToDefault();
---

  // Domain changes should not change the property values. This is

overriding

  // the value loaded from state files etc.
  // this-Internal-Property-ResetToDefault();

, the had to make up a value message disappeared and reader worked
as expected. This coincides with my thought that the problem started
at around a month ago.

2. After doing AddArray() to the selection object in the reader,
ParaView does seem to recognize the newly added item, since in

void vtkSMArraySelectionInformationHelper::UpdateProperty(
  vtkIdType connectionId,  int serverIds, vtkClientServerID objectId,
  vtkSMProperty* prop)

numArrays turned out to have the expected number of arrays, and the
results of GetArgument() were precisely expected values. I could
confirm the new item is added to prop (the last argument in the
function prototype above) through SetElement(). The address prop
pointed to was 0x078c5b38 in the tracked case.

3. However, when

void pqSignalAdaptorSelectionTreeWidget::domainChanged()

was executed later, the address this-Internal-Property pointed to
was 0x078cd688, which was different from what prop

Re: [Paraview] vtkScalars used in Paraview?

2008-09-10 Thread Utkarsh Ayachit
vtkScalars? Even VTK doesn't have such a class. Are you sure you have 
the correct name for the class you are looking for?


Utkarsh

Natalie Happenhofer wrote:

Hi!
Isn´t the vtk class vtkScalars used in Paraview? I didn´t find the .h 
or .cxx file for it. How can I add it, i.e. where do I place the source 
and which cMakeLists files do I have to alter to get it compiled with 
the rest?


thx,
Natalie


Express yourself instantly with MSN Messenger! MSN Messenger 
http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/





___
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] 3D view update issue

2008-09-15 Thread Utkarsh Ayachit

Is this on Mac? Berk and Dave D. have been seeing this on their Macs.

Utkarsh

Moreland, Kenneth wrote:

Recently I have been noticing an update issue with the 3D views.  For
example, create a sphere source and hit apply.  Nothing is shown in the 3D
view until you click in it.

Has anyone else been seeing this?

-Ken

     Kenneth Moreland
***  Sandia National Laboratories
***
*** *** ***  email: [EMAIL PROTECTED]
**  ***  **  phone: (505) 844-8919
***  fax:   (505) 845-0833



___
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] Excluding properties from state files

2008-09-16 Thread Utkarsh Ayachit
Set  'is_internal=1' and that property won't be saved in the state 
file. It also means that it's default value won't be pushed on to the 
underlying VTK object when the proxy is created. If you change the 
value, however, then it will be pushed as usual.


Utkarsh

Paul Edwards wrote:

Hi,

Sorry to post this again - I still haven't found a solution.  Is there
a way to stop the state file (pvsm) from storing the property?  I.e.
is there an attribute I can add in the XML file?  I would like
ParaView to call the function to get the property instead.

Thanks in advance,
Paul
___
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] python scripts

2008-09-24 Thread Utkarsh Ayachit

That's weird.
from paraview import servermanager
should work from all the 3 locations client, pvbatch or pvpython.

Can you try the following script and print your path in all the three 
applications?


import sys
print sys.path

Utkarsh

Patrick Shinpaugh wrote:

Hi,
I've been writing some python scripts and running them through the 
paraview GUI. I start the scripts with


   from paraview import servermanager

When I use pvpython or pvbatch to run the same scripts I receive an error:

[project] pvpython paraview.py
Traceback (most recent call last):
 File paraview.py, line 1, in module
   from paraview import servermanager
 File /home/project/paraview.py, line 1, in module
   from paraview import servermanager
ImportError: cannot import name servermanager


After messing with this for a while I finally tried:

   import servermanager

which worked.

Question: Why is there a difference in the way the servermanager is 
imported between paraview gui and pvpython/pvbatch? Have other people 
run across this issue? This is version 3.2.2. Is it possible there is 
something wrong my build? If this is something I just have to live with, 
is there a way to prevent the error from closing the script/interpreter, 
check to see if the first import failed and then run the second import?


Thanks,
Pat


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


Re: [Paraview] Calling a self made writer from a self made filter

2008-10-23 Thread Utkarsh Ayachit

Hey Rafael,

First, you'll have to add a property to your filter to call the method 
that requests the writing as follows:


SourceProxy name=MyFilter class=vtkMyFilter
  ...
  Property name=Save
command=Save /
  ...
/SourceProxy

Then you have to create a custom object panel (look at the wiki for 
plugin examples) which adds a button and then a callback  to do 
something as follows:


void pqMyPanel::callback()
{
  this-proxy()-InvokeCommand(Save);
}

Utkarsh



Rafael March wrote:

Hey Folks,

I'm programming a filter, and I would like to be able to call automatically a 
writer(which I have also programmed), as the user hits a specific PushButton in 
the ObjectPanel.I mean: I want to have a SAVE button, and as the user hits it, 
it should save the model in my own format. How can I do this ?

Thanks,
Rafael March.


  


___
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] Starting paraview with --server option

2008-10-24 Thread Utkarsh Ayachit

Guy,

You'll have to setup the server configuration first from the GUI. Start 
paraview then choose File|Connect. In the Choose Server dialog you can 
set up your server configuration using Add Server and give it a name -- 
say myLocalHost. Then you can use the following:


paraview --server=myLocalHost

Utkarsh

Guy HUBERT wrote:

Hello,

I need to start Paraview with connexion to pvserver 3.4.0 on port 1 on 
Windows XP SP3 .

I start pvserver in a command shell.

I start paraview 3.4.0 in another shell with the following syntax.
   paraview --server=localhost
   paraview --server=127.0.0.1
   paraview --server=127.0.0.1:1
   paraview --server=cs://localhost:1


I got always a message of this type :
 Could not connect to requested server  xx . Creating default builtin 
connection
 where x is the string given after --server=

What is the right syntax ?

Thanks
Guy


___
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] Full screen mode

2008-10-27 Thread Utkarsh Ayachit
There's no way of doing that currently, but please feel free to add a 
feature request on the bug tracker at

www.paraview.org/Bug

Utkarsh

Renato N. Elias wrote:


Folks, does anybody know if it's possible to put ParaView in full screen 
mode? Maybe undocking the main screen, I don't know. I already tried by 
clicking everywhere without any lucky... It should be easy to implement 
since PV supports tiled displays.


Regards

Renato.


___
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] Poor movie quality (revisited)

2008-10-27 Thread Utkarsh Ayachit

Hi Renato,

I am confused, why do you say unchecking use-offscreen hasn't helped 
much? I can see that pv-3.4.0_offscreen-UNCHECKED.avi is well-lit when 
compared with pv-3.4.0_offscreen-CHECKED.avi, or am I missing something 
here?


Utkarsh

Renato N. Elias wrote:

Hi Utkarsh,

yes, I'm using a Windows machine and the offscreen rendering option has 
not helped so much :-(


Just for comparison, I produced the same movie using PV3.4.0 and 
PV2.6.2. Take a look:


ParaView-3.4.0 (Offscreen rendering for screenshots UNchecked):
http://www.nacad.ufrj.br/~rnelias/paraview/movies/pv-3.4.0_offscreen-UNCHECKED.avi 



ParaView-3.4.0 (Offscreen rendering for screenshots checked):
http://www.nacad.ufrj.br/~rnelias/paraview/movies/pv-3.4.0_offscreen-CHECKED.avi 



ParaView-2.6.2:
http://www.nacad.ufrj.br/~rnelias/paraview/movies/pv-2.6.2.avi

What do you think?

Renato.


Utkarsh Ayachit wrote:

Renato,

Is this on a windows machine? Can you try the following:
* Go to View|Settings
* In the Options dialog choose the Render View  in the tree view on 
the left pane and then set Use Offscreen Rendering for Screenshots 
to unchecked and then save the animation. Is this any better?


Utkarsh


Renato N. Elias wrote:


Some time ago I reported the poor quality of the movies that I've 
been creating in PV version 3. They seem darkened (I turned on the 
lights) and with low resolution (952 x 554 seems to be a good 
resolution). No one answered me and I concluded that the problem was 
some misconfiguration I made. Ok, but the problem is that I'm still 
not able to save any avi file with a decent quality using PV3. In 
PV2, any movie produced had, at least, the same quality of the still 
images rendered on main window. What's the difference between PV2 and 
PV3 in terms of movie rendering? Is there anything that I could 
configure to solve it?


Thanks for any help

Renato.


___
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] How to start pvserver from python ?

2008-10-27 Thread Utkarsh Ayachit
There is no option to start a remote pvserver from python directly. But 
you can certainly use python's process management API to fork a new 
pvserver processes etc.


Utkarsh

Guy HUBERT wrote:

Hello,

Via paraview python servermanager, we can connect to a running pvserver with python. But, is it possible to launch a pvserver on a remote computer from servermanager before connecting via servermanager module ? 


Or is it necessary to use python sockets ?

Thanks
Guy
___
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] unexpected behavior w/ Load State command

2008-11-13 Thread Utkarsh Ayachit
On loading state we purposefully clear the undo stack since loading 
state is a complex operation and undoing that is not possible.


Utkarsh

Geoff Draper wrote:
I also notice that when Load State is invoked, the undo/redo stack is 
cleared.  Is that a result of the current views being destroyed? 
(mentioned by Utkarsh, below)


thanks,
Geoff

On Tue, 11 Nov 2008, Geoff Draper wrote:


Ken, Utkarsh,

Thank you for your responses.  In reference to Utkarsh's comment near 
the end of his note: I think it would be a good idea to automatically 
delete existing objects before loading state, although I can see the 
logic of the current approach as well.  Maybe this could be toggled 
via a Preferences option?


--Geoff

On Tue, 11 Nov 2008, Moreland, Kenneth wrote:


Geoff,

I just added a feature request for the color loss issue.  It's not 
specifically wrong, but I can see how it can be annoying.


 http://www.paraview.org/Bug/view.php?id=8081

As with respect to the large disk, this is caused simply by the 
fact that the disk is larger than the cone.  ParaView resizes the 
window whenever an object is made visible when no other objects are 
made visible.  When you loaded the new state, the smaller cone was 
made visible first, which caused the window to resize to its bounds.  
When the disk is made visible, it looks larger because the camera is 
zoomed in.  It would be really annoying to have the camera reset 
every time you made an object visible.  (Trust me, we tried it.)


-Ken


From: [EMAIL PROTECTED] [EMAIL PROTECTED] 
On Behalf Of Utkarsh Ayachit [EMAIL PROTECTED]

Sent: Tuesday, November 11, 2008 6:31 AM
To: Geoff Draper
Cc: paraview@paraview.org
Subject: Re: [Paraview] unexpected behavior w/ Load State command

Geoff,

When one sets up display properties from the Display tab, these
properties apply to the way that data is shown in the current active
view. When state file is loaded, all current views are destroyed and new
views, as specified in the state file, are created and only those
objects that were visible in the state file remain visible. Since new
views are created (and old ones destroyed) all the changes you made to
the Display tab are lost.

Actually, there's even talk of deleting all existing objects before
loading state. If that's done then you'd even loose the disc source.

Utkarsh

Geoff Draper wrote:
I'm not sure if this is a bug, or if I'm just misusing the tools. 
Please

advise.  To duplicate what I'm seeing:

(1) Start with a blank scene. Create a simple object (e.g. Sources -
Cone, and Apply).
(3) Save it as a .pvsm file (File - Save State)
(4) Exit ParaView, and restart it.
(5) Create another simple object (e.g. Sources - Disk, and Apply).
(6) On the Display tab, click Set Solid Color and pick a color for 
the

disk.
(7) Restore the previous file (File - Load State). The disk 
disappears.

(8) No problem, we simply make the both objects visible by clicking the
eye icon in the Pipeline Browser.

(9) Now for the unexpected part (for me, anyway): When the disk object
reappears, it has lost its color, and is rendered about twice as large
as before.

Is this how it's supposed to work?  Thank you for any insight you could
offer!

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


___
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


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


Re: [Paraview] Python Programmable Filter

2008-11-13 Thread Utkarsh Ayachit

Jacques,

Couple of ways to solve your problem:

* Solution One:
If you don't want to deal with the fact that your data is a 
vtkMultiblockDataSet, apply the Merge Blocks filter after each of the 
Extract Block filters and then connect to the Programmable Filter to 
to the output from the Merge Blocks and then your current script 
should work just fine. The Merge Blocks will convert the 
vtkMultiBlockDataSet to a vtkUnstructuredGrid on which your script is 
applicable.


* Solution Two:
input0 = self.GetInputDataObject(0,0)
input1 = self.GetInputDataObject(0,1)
output = self.GetOutputDataObject(0)

input0Block0 = input0.GetBlock(0)
input1Block0 = input1.GetBlock(0)

output.CopyStructure(input0)
outputBlock0 = input0Block0.NewInstance()
outputBlock0.CopyStructure(input0Block0)
output.SetBlock(0, outputBlock0)

outputBlock0.GetPointData().AddArray(input0Block0.GetPointData().GetArray(pressure1))
outputBlock0.GetPointData().AddArray(input1Block0.GetPointData().GetArray(pressure2))

The above script will work if you are extracting a single block using 
the Extract Block filter. If you want to merge arrays for all the blocks 
in the input you'll have to iterate over the datasets in the 
vtkMultiblockDataset. Take a look at

http://www.paraview.org/Wiki/Python_Programmable_Filter#Dealing_with_Composite_Datasets

Utkarsh


Jacques Papper wrote:

Here is what I am doing at the moment.
-Load geometry 1
-Extract wing block

-Load geometry 2
-Extract wing block

Then use the resample filter with wing1 as input and wing2 as source
(this works)

The last bit is missing (that is merging the data from wing2 with the 
resampled data)


Jacques

2008/11/13 Berk Geveci [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]


Programmable filter can still be made to work. Do the datasets have
multiple parts? I am not sure how resampling would work with multiple
parts. It is impossible to guess which parts map to which parts...

-berk

On Thu, Nov 13, 2008 at 8:28 AM, Jacques Papper
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
  They are multi-block datasets from Ensight Reader.
  Is there another way of dealing with this then ?
  Jacques
 
  2008/11/13 Berk Geveci [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
 
  Are the inputs multi-block datasets by any chance?
 
 
  -berk
 
  On Thu, Nov 13, 2008 at 6:03 AM, Jacques Papper
  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
   Hi Berk,
  
   I am trying out your suggestion of merging arrays :
  
   input0 = self.GetInputDataObject(0,0)
   input1 = self.GetInputDataObject(0,1)
   output = self.GetOutputDataObject(0)
  
  
output.GetPointData().AddArray(input0.GetPointData().GetArray(pressure1))
  
  
output.GetPointData().AddArray(input1.GetPointData().GetArray(pressure2))
  
   but I get the following error message :
  
 File string, line 2, in module
 File string, line 4, in RequestData
   AttributeError: GetPointData
  
   I also tried just using the programmable filter on one source
and with
   the
   following code, and  I get the same error :
  
   input0=self.GetInputDataObject(0,0)
   input0.GetPointData()
  
   I am using version 3.4.0
  
   ___
   ParaView mailing list
   ParaView@paraview.org mailto:ParaView@paraview.org
   http://www.paraview.org/mailman/listinfo/paraview
  
  
 
 





___
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] paraview 3.4 segmentation fault

2008-11-13 Thread Utkarsh Ayachit

That seems to be a bug in the 3D widget code.
I've added a bug:
http://paraview.org/Bug/view.php?id=8091

Utkarsh

Jean Favre wrote:


I have got a problem with very large data, bounding box is [0, 0, 0] [ 
15e18, 15e18, 15e18]


The Clip and Cutter filters (when created via the GUI) cause a seg fault.

ParaView itself is capable of cutting the data with the following Python 
script


/cut.Input = reader
cut.Input = servermanager.OutputPort(reader, 0)

plane1 = servermanager.implicit_functions.Plane()
plane1.Normal = [1,0,0]
plane1.Origin = [7.5e18, 7.5e18, 7.5e18]
cut.CutFunction = plane1

view = servermanager.GetRenderView()
repCut = servermanager.CreateRepresentation(cut, view)/

If the same operation is done via the GUI, ParaView crashes immediately.
Are the developpers aware of that?

--
Jean --
Swiss National Supercomputing Center




___
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] : plot

2008-11-14 Thread Utkarsh Ayachit

Samuele,

You have to use CVS paraview. This feature is not available in 3.4.
With CVS ParaView, you should split the view and create a new XY plot 
view and then turn on the visibility for this reader in that view.


Utkarsh

Samuele Zampini wrote:

Dear Utkarsh,
I have tried to follow your advice...
But my Disply menu is different (see picture attached)...
How can I do?


Il giorno ven, 14/11/2008 alle 12.21 -0500, Utkarsh Ayachit ha scritto:

Samuele,

Attached your file converted to a CSV file (I've remove all  % and blank 
lines and make it a 3 column table).


With CVS paraview you can simple load this in and then plot usign the XY 
plot. I've attached an image showing the options choosen on the display 
tab (don;t forget to choose Attribute Mode == Rows).


Utkarsh

Samuele Zampini wrote:
 Hello,
 I would like to know if it is possible to plot - with Paraview - such a 
 text file. I should get a 2D plot.

 The first column is the x and the second is the y.
 
 Could you help?
 
 Thanks,

 SZ
 
 
 
 
 ___

 ParaView mailing list
 ParaView@paraview.org mailto: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] vtkSMProxy saving/restoring

2008-11-19 Thread Utkarsh Ayachit

Nehme,

What properties are you changing/trying to restore? Is tempProxy of 
the same type as src?


Utkarsh

Nehme Bilal wrote:

Hello,

Sorry I missed a few commas in the last message. this is the correct one:

I am looking for a way to save a proxy properties and restore it later.
The only way I found is by saving and restoring the state using:
virtual vtkPVXMLElement* SaveState(vtkPVXMLElement* root);
virtual int LoadState(vtkPVXMLElement* element, vtkSMStateLoaderBase* 
loader);


I don't want to use LoadState because this method create a new proxy. I 
just want to restore all properties to the existing proxy.
There is also a method called Copy (void Copy(vtkSMProxy* src), this 
method will copy all src properties to another proxy:


//copying properties to tempProxy
tempProxy-Copy(src,0,vtkSMProxy::COPY_PROXY_PROPERTY_VALUES_BY_CLONING);

I tried to change some display properties in Paraview and then restore 
using:

src-Copy(tempProxy,0,vtkSMProxy::COPY_PROXY_PROPERTY_VALUES_BY_CLONING);
src-UpdateVTKObjects();

but nothing is restored ! why? Is there any other way to do that?
(suppose that I have only on source)

Thank you


___
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] vtkSMProxy saving/restoring

2008-11-19 Thread Utkarsh Ayachit

Here's one way of doing it:

vtkSMProxyManager* pxm = vtkSMObject::GetProxyManager();
vtkSMProxy *tempProxy = pxm-NewProxy(
  src-GetXMLGroup(),
  src-GetXMLName());
tempProxy-Copy(src);


src-Copy(tempProxy);

Utkarsh

Nehme Bilal wrote:


tempProxy is just a proxy I created using:
vtkSMProxy tempProxy = vtkSMProxy::New();

I am trying to save/restore all the object properties displayed in the 
object inspector.


On Wed, 19 Nov 2008 09:30:55 -0500
 Utkarsh Ayachit [EMAIL PROTECTED] wrote:

Nehme,

What properties are you changing/trying to restore? Is tempProxy of 
the same type as src?


Utkarsh

Nehme Bilal wrote:

Hello,

Sorry I missed a few commas in the last message. this is the correct 
one:


I am looking for a way to save a proxy properties and restore it later.
The only way I found is by saving and restoring the state using:
virtual vtkPVXMLElement* SaveState(vtkPVXMLElement* root);
virtual int LoadState(vtkPVXMLElement* element, vtkSMStateLoaderBase* 
loader);


I don't want to use LoadState because this method create a new proxy. 
I just want to restore all properties to the existing proxy.
There is also a method called Copy (void Copy(vtkSMProxy* src), this 
method will copy all src properties to another proxy:


//copying properties to tempProxy
tempProxy-Copy(src,0,vtkSMProxy::COPY_PROXY_PROPERTY_VALUES_BY_CLONING); 



I tried to change some display properties in Paraview and then 
restore using:
src-Copy(tempProxy,0,vtkSMProxy::COPY_PROXY_PROPERTY_VALUES_BY_CLONING); 


src-UpdateVTKObjects();

but nothing is restored ! why? Is there any other way to do that?
(suppose that I have only on source)

Thank you


___
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] vtkSMProxy saving/restoring

2008-11-19 Thread Utkarsh Ayachit
What state loader are you using? If you use vtkSMPQStateLoader or 
subclass it should not try to reassing IDs.


Utkarsh

Geoff Draper wrote:

Hello,

I'm also facing a related problem when I save/restore vtkSMProxy's. The 
proxy ID is stored in the XML file. So when I reload the proxies, the 
StateLoader attempts to recreate the proxy with the same ID as before. 
But because I'm running a new ParaView session, sometimes the saved ID 
has already been reserved by another object in the current session, 
causing a collision.


When this happens, ParaView aborts inside the function:
vtkClientServerInterpreter::ProcessCommandAssign(const 
vtkClientServerStream css, int midx)

The error message is Attempt to assign existing ID.

Has anyone else ever dealt with this before?  Is there a known 
workaround? Am I completely off base?


Thank you!
--Geoff

On Wed, 19 Nov 2008, Nehme Bilal wrote:



Thank you Utkarsh !

it works but I have some problems like:
- after restoring the proxy, changing some display properties in 
Paraview has no effect (like color ...)
- only the display properties are saved/restored. (variables in object 
inspector properties tab are not restored)


It's probably the way that I'm casting the source proxy and some staff 
like that.


I'll try to solve these problems and let you know.

thank you !


On Wed, 19 Nov 2008 10:20:52 -0500
Utkarsh Ayachit [EMAIL PROTECTED] wrote:

Here's one way of doing it:

vtkSMProxyManager* pxm = vtkSMObject::GetProxyManager();
vtkSMProxy *tempProxy = pxm-NewProxy(
  src-GetXMLGroup(),
  src-GetXMLName());
tempProxy-Copy(src);


src-Copy(tempProxy);

Utkarsh

Nehme Bilal wrote:


tempProxy is just a proxy I created using:
vtkSMProxy tempProxy = vtkSMProxy::New();

I am trying to save/restore all the object properties displayed in 
the object inspector.


On Wed, 19 Nov 2008 09:30:55 -0500
 Utkarsh Ayachit [EMAIL PROTECTED] wrote:

Nehme,

What properties are you changing/trying to restore? Is tempProxy 
of the same type as src?


Utkarsh

Nehme Bilal wrote:

Hello,

Sorry I missed a few commas in the last message. this is the 
correct one:


I am looking for a way to save a proxy properties and restore it 
later.

The only way I found is by saving and restoring the state using:
virtual vtkPVXMLElement* SaveState(vtkPVXMLElement* root);
virtual int LoadState(vtkPVXMLElement* element, 
vtkSMStateLoaderBase* loader);


I don't want to use LoadState because this method create a new 
proxy. I just want to restore all properties to the existing proxy.
There is also a method called Copy (void Copy(vtkSMProxy* src), 
this method will copy all src properties to another proxy:


//copying properties to tempProxy
tempProxy-Copy(src,0,vtkSMProxy::COPY_PROXY_PROPERTY_VALUES_BY_CLONING); 

I tried to change some display properties in Paraview and then 
restore using:
src-Copy(tempProxy,0,vtkSMProxy::COPY_PROXY_PROPERTY_VALUES_BY_CLONING); 
src-UpdateVTKObjects();


but nothing is restored ! why? Is there any other way to do that?
(suppose that I have only on source)

Thank you


___
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


___
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] vtkSMProxy saving/restoring

2008-11-19 Thread Utkarsh Ayachit
UndoRedo states are not meant to loaded across different sessions. If 
loaded in the same session such ID conflicts should not occur.


Utkarsh

Geoff Draper wrote:
I'm using vtkSMUndoRedoStateLoader, which is the state loader used by 
pqUndoStack.  My proxies are encapsulated within vtkUndoSet objects when 
they are saved/restored.


--Geoff

On Wed, 19 Nov 2008, Utkarsh Ayachit wrote:

What state loader are you using? If you use vtkSMPQStateLoader or 
subclass it should not try to reassing IDs.


Utkarsh

Geoff Draper wrote:

Hello,

I'm also facing a related problem when I save/restore vtkSMProxy's. 
The proxy ID is stored in the XML file. So when I reload the proxies, 
the StateLoader attempts to recreate the proxy with the same ID as 
before. But because I'm running a new ParaView session, sometimes the 
saved ID has already been reserved by another object in the current 
session, causing a collision.


When this happens, ParaView aborts inside the function:
vtkClientServerInterpreter::ProcessCommandAssign(const 
vtkClientServerStream css, int midx)

The error message is Attempt to assign existing ID.

Has anyone else ever dealt with this before?  Is there a known 
workaround? Am I completely off base?


Thank you!
--Geoff

On Wed, 19 Nov 2008, Nehme Bilal wrote:



Thank you Utkarsh !

it works but I have some problems like:
- after restoring the proxy, changing some display properties in 
Paraview has no effect (like color ...)
- only the display properties are saved/restored. (variables in 
object inspector properties tab are not restored)


It's probably the way that I'm casting the source proxy and some 
staff like that.


I'll try to solve these problems and let you know.

thank you !


On Wed, 19 Nov 2008 10:20:52 -0500
Utkarsh Ayachit [EMAIL PROTECTED] wrote:

Here's one way of doing it:

vtkSMProxyManager* pxm = vtkSMObject::GetProxyManager();
vtkSMProxy *tempProxy = pxm-NewProxy(
  src-GetXMLGroup(),
  src-GetXMLName());
tempProxy-Copy(src);


src-Copy(tempProxy);

Utkarsh

Nehme Bilal wrote:


tempProxy is just a proxy I created using:
vtkSMProxy tempProxy = vtkSMProxy::New();

I am trying to save/restore all the object properties displayed in 
the object inspector.


On Wed, 19 Nov 2008 09:30:55 -0500
 Utkarsh Ayachit [EMAIL PROTECTED] wrote:

Nehme,

What properties are you changing/trying to restore? Is 
tempProxy of the same type as src?


Utkarsh

Nehme Bilal wrote:

Hello,

Sorry I missed a few commas in the last message. this is the 
correct one:


I am looking for a way to save a proxy properties and restore it 
later.

The only way I found is by saving and restoring the state using:
virtual vtkPVXMLElement* SaveState(vtkPVXMLElement* root);
virtual int LoadState(vtkPVXMLElement* element, 
vtkSMStateLoaderBase* loader);


I don't want to use LoadState because this method create a new 
proxy. I just want to restore all properties to the existing proxy.
There is also a method called Copy (void Copy(vtkSMProxy* src), 
this method will copy all src properties to another proxy:


//copying properties to tempProxy
tempProxy-Copy(src,0,vtkSMProxy::COPY_PROXY_PROPERTY_VALUES_BY_CLONING); 
I tried to change some display properties in Paraview and then 
restore using:
src-Copy(tempProxy,0,vtkSMProxy::COPY_PROXY_PROPERTY_VALUES_BY_CLONING); 
src-UpdateVTKObjects();


but nothing is restored ! why? Is there any other way to do that?
(suppose that I have only on source)

Thank you


___
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


___
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] vtkSMProxy saving/restoring

2008-11-19 Thread Utkarsh Ayachit
For saving the object inspector properties you'll have to save/restore 
the state for the source proxy (and not merely it's representation proxy).


Utkarsh

Nehme Bilal wrote:


Thank you Utkarsh !

it works but I have some problems like:
- after restoring the proxy, changing some display properties in 
Paraview has no effect (like color ...)
- only the display properties are saved/restored. (variables in object 
inspector properties tab are not restored)


It's probably the way that I'm casting the source proxy and some staff 
like that.


I'll try to solve these problems and let you know.

thank you !


On Wed, 19 Nov 2008 10:20:52 -0500
 Utkarsh Ayachit [EMAIL PROTECTED] wrote:

Here's one way of doing it:

vtkSMProxyManager* pxm = vtkSMObject::GetProxyManager();
vtkSMProxy *tempProxy = pxm-NewProxy(
  src-GetXMLGroup(),
  src-GetXMLName());
tempProxy-Copy(src);


src-Copy(tempProxy);

Utkarsh

Nehme Bilal wrote:


tempProxy is just a proxy I created using:
vtkSMProxy tempProxy = vtkSMProxy::New();

I am trying to save/restore all the object properties displayed in 
the object inspector.


On Wed, 19 Nov 2008 09:30:55 -0500
 Utkarsh Ayachit [EMAIL PROTECTED] wrote:

Nehme,

What properties are you changing/trying to restore? Is tempProxy 
of the same type as src?


Utkarsh

Nehme Bilal wrote:

Hello,

Sorry I missed a few commas in the last message. this is the 
correct one:


I am looking for a way to save a proxy properties and restore it 
later.

The only way I found is by saving and restoring the state using:
virtual vtkPVXMLElement* SaveState(vtkPVXMLElement* root);
virtual int LoadState(vtkPVXMLElement* element, 
vtkSMStateLoaderBase* loader);


I don't want to use LoadState because this method create a new 
proxy. I just want to restore all properties to the existing proxy.
There is also a method called Copy (void Copy(vtkSMProxy* src), 
this method will copy all src properties to another proxy:


//copying properties to tempProxy
tempProxy-Copy(src,0,vtkSMProxy::COPY_PROXY_PROPERTY_VALUES_BY_CLONING); 



I tried to change some display properties in Paraview and then 
restore using:
src-Copy(tempProxy,0,vtkSMProxy::COPY_PROXY_PROPERTY_VALUES_BY_CLONING); 


src-UpdateVTKObjects();

but nothing is restored ! why? Is there any other way to do that?
(suppose that I have only on source)

Thank you


___
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] vtkSMProxy saving/restoring

2008-11-19 Thread Utkarsh Ayachit
Ah I think I know the problem. vtkSMProxy::Copy() copies all properties 
even those on the sub proxies. A representation is a complex beast with 
several internal subproxies which are linked up internally. You actually 
 simply want to save/restore the exposed properties so I'd do something 
like follows:


void Copy(vtkSMProxy* src, vtkSMProxy* dest)
{
vtkSMPropertyIterator* iter = dest-NewPropertyIterator();
for (iter-Begin(); !iter-IsAtEnd(); iter-Next())
  {
  vtkSMProperty* destProp = iter-GetProperty();
  vtkSMProperty* srcProp = src-GetProperty(iter-GetKey());
  if (destProp  srcProp)
{
destProp-Copy(srcProp);
}
  }
iter-Delete();
}

Use the above Copy instead of vtkSMProxy::Copy().

Utkarsh



Nehme Bilal wrote:


Hi again,

I did save and restore the source proxy and representations and it's 
working.
All display properties are saved/restored perfectly, but after 
restoring, changing color or Style properties from the object 
inspector has no effect. Other properties like visible or 
Transformation works !


after restoring I called:
vtkSMObject::GetProxyManager()-UpdateRegisteredProxiesInOrder();

but it didn't solve the problem.



On Wed, 19 Nov 2008 13:14:27 -0500
 Utkarsh Ayachit [EMAIL PROTECTED] wrote:
For saving the object inspector properties you'll have to save/restore 
the state for the source proxy (and not merely it's representation 
proxy).


Utkarsh

Nehme Bilal wrote:


Thank you Utkarsh !

it works but I have some problems like:
- after restoring the proxy, changing some display properties in 
Paraview has no effect (like color ...)
- only the display properties are saved/restored. (variables in 
object inspector properties tab are not restored)


It's probably the way that I'm casting the source proxy and some 
staff like that.


I'll try to solve these problems and let you know.

thank you !


On Wed, 19 Nov 2008 10:20:52 -0500
 Utkarsh Ayachit [EMAIL PROTECTED] wrote:

Here's one way of doing it:

vtkSMProxyManager* pxm = vtkSMObject::GetProxyManager();
vtkSMProxy *tempProxy = pxm-NewProxy(
  src-GetXMLGroup(),
  src-GetXMLName());
tempProxy-Copy(src);


src-Copy(tempProxy);

Utkarsh

Nehme Bilal wrote:


tempProxy is just a proxy I created using:
vtkSMProxy tempProxy = vtkSMProxy::New();

I am trying to save/restore all the object properties displayed in 
the object inspector.


On Wed, 19 Nov 2008 09:30:55 -0500
 Utkarsh Ayachit [EMAIL PROTECTED] wrote:

Nehme,

What properties are you changing/trying to restore? Is tempProxy 
of the same type as src?


Utkarsh

Nehme Bilal wrote:

Hello,

Sorry I missed a few commas in the last message. this is the 
correct one:


I am looking for a way to save a proxy properties and restore it 
later.

The only way I found is by saving and restoring the state using:
virtual vtkPVXMLElement* SaveState(vtkPVXMLElement* root);
virtual int LoadState(vtkPVXMLElement* element, 
vtkSMStateLoaderBase* loader);


I don't want to use LoadState because this method create a new 
proxy. I just want to restore all properties to the existing proxy.
There is also a method called Copy (void Copy(vtkSMProxy* src), 
this method will copy all src properties to another proxy:


//copying properties to tempProxy
tempProxy-Copy(src,0,vtkSMProxy::COPY_PROXY_PROPERTY_VALUES_BY_CLONING); 



I tried to change some display properties in Paraview and then 
restore using:
src-Copy(tempProxy,0,vtkSMProxy::COPY_PROXY_PROPERTY_VALUES_BY_CLONING); 


src-UpdateVTKObjects();

but nothing is restored ! why? Is there any other way to do that?
(suppose that I have only on source)

Thank you


___
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] reg file loading

2008-11-21 Thread Utkarsh Ayachit

What is the error you are getting? What version of ParaView are you using?

Utkarsh

L Susithra wrote:

Hello,
I've a data ( velocity fields, x,y,z for each node )from the simulation 
and i need to load it in paraview to visulaise the flow field. i 
converted the data as .csv from excel  and when i read it from paraview, 
i am not able to load the data , getting an error. It just reads the 
first column only (xvelocity). I am not sure is there a specific way to 
load the data. It would be a great help  if any one could suggest me.


Thanks


Free up your senses. Experience reality up close on MSN video Try it! 
http://video.msn.com/?mkt=en-in





___
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] Why does this programmable source not work outside the paraview GUI

2008-11-21 Thread Utkarsh Ayachit
The answer is simple: you are missing the UpdateVTKObjects() call to 
'apply' the change to the property.


If you going to use ...GetProperty(..).SetElement(...) API then after 
the property has been set, one must call proxy.UpdateVTKObjects().


so in your example:
...
pgsrc.GetProperty(Script).SetElement(0,  ... )
pgsrc.UpdateVTKObjects()

Alternatively  you can simply do:
pgsrc.Script = .

and then you don't have to worry about calling UpdateVTKObjects().

Utkarsh



Louis at M-Tech wrote:

Hi All,

 

Why does this piece of code containing a programmable source not work 
OUTSIDE the paraview GUI?


 

a) When the source is changed to ConeSource() it works (see Label 1 in 
the code below).


 

b) Also when the Script content is pasted inside the paraview GUI 
scripting editor, it does work – so the script contents itself is ok.


 

When the code is run directly from a python command line only an empty 
graphis window is displayed – as if the script part is faulty.


 


Thanks in advance,

Louis

 


HERE IS THE EXAMPLE:

@@

from paraview import servermanager

connection = servermanager.Connect()

pgsrc=servermanager.sources.ProgrammableSource()

 

 


pgsrc.GetProperty(Script).SetElement(0, 

 


import vtk

pts=vtk.vtkPoints()

pts.Initialize()

pts.InsertNextPoint(0,0,0)

pts.InsertNextPoint(1,0,.0)

pts.InsertNextPoint(2,1,0)

pts.InsertNextPoint(3,3,0.)

 


cel=vtk.vtkCellArray()

cel.Initialize()

cel.InsertNextCell(4) # number of points

cel.InsertCellPoint(0)

cel.InsertCellPoint(1)

cel.InsertCellPoint(2)

cel.InsertCellPoint(3)

 


output = self.GetOutput()

output.SetPoints(pts)

output.SetStrips(cel)

 


)

 

 


view = servermanager.CreateRenderView()

 


# This programmable source pgsrc does not display

rep = servermanager.CreateRepresentation(pgsrc,view)

 


# Label 1: This source do display

#coneSource = servermanager.sources.ConeSource()

#rep = servermanager.CreateRepresentation(coneSource,view)

 

 


view.StillRender()

view.ResetCamera()

view.StillRender()

 




 





___
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] error linking a plugin - dll

2008-11-21 Thread Utkarsh Ayachit

Make sure your header and cxx files look something like follows:

vtkDataCalulator.h -

#include vtkDataSetAlgorithm.h

class VTK_EXPORT vtkDataCalculator : public vtkDataSetAlgorithm
{
public:
  static vtkDataCalculator* New();
  vtkTypeRevisionMacro(vtkDataCalculator, vtkDataSetAlgorithm);
...
};


vtkDataCalculator.cxx-

#include vtkDataCalculator.h
#include vtkObjectFactory.h

vtkStandardNewMacro(vtkDataCalculator);
vtkCxxRevisionMacro(vtkDataCalculator, $Revision$);





Natalie Happenhofer wrote:

Hi!
I´m writing a new filter called vtkDataCalculator, which should 
add/subtract/multiply/ divide the point data arrays of two datasets.
Having written now a very simple version which just adds the point data, 
I try to build it as a Plugin and I get the error


Linking Cxx Shared Library ...\bin\libDataCalculator.dll
Creating library file: ..\bin\libDataCalculator.dll.a
CMakeFiles\DataCalculator.dir\vtkDataCalculator.obj: In function 
'ZN17vtkDataCalculator3NewEv':
C:/ParaviewSource/ParaView3/Plugins/vtkDataCalculator.h:14 undefined 
reference to 'vtable for vtkDataCalculator'

collect2: ld returned 1 exit status


I believe that I miss to specify a Macro, I just put

vtkTypeMacro(vtkDataCalculator,vtkDataSetAlgorithm);

in my Headerfile.

If there is a Macro missing, does anyone know, which one?
And if it´s something else .. what´s wrong?

thx for help,
Natalie


Express yourself instantly with MSN Messenger! MSN Messenger 
http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/





___
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] Got programmable filter to work outside PV GUI - but still not programmable source

2008-11-21 Thread Utkarsh Ayachit
Please avoid changing the subject line for a continuing thread. It makes 
it easier to track the message thread.


Thanks
Utkarsh

Louis at M-Tech wrote:

Hi

 

I got programmable filter to work outside the paraview GUI - but still 
not the programmable source; See the example below – if you want to try 
out the programmable source, just set ptr = pgsrc instead of ptr = pgflt 
– see below.


 

I am still puzzled why the programmable source does not work. It works 
within the paraview GUI – but not outside. To see how it works within 
the paraview GUI do the following:


Open paraview

Create a programmable source

Copy the script part below into the GUI editor

Click apply

.

 

 


Regards,

Louis

 

 


$$

 


from paraview import servermanager

connection = servermanager.Connect()

#

pgsrc = servermanager.sources.ProgrammableSource()

pgflt = servermanager.filters.ProgrammableFilter()

#

#ptr = pgsrc

ptr = pgflt

#

ptr.GetProperty(Script).SetElement(0, 

import vtk

pts=vtk.vtkPoints()

pts.Initialize()

pts.InsertNextPoint(0,0,0)

pts.InsertNextPoint(1,0,.0)

pts.InsertNextPoint(2,1,0)

pts.InsertNextPoint(3,3,0.)

 


cel=vtk.vtkCellArray()

cel.Initialize()

cel.InsertNextCell(4) # number of points

cel.InsertCellPoint(0)

cel.InsertCellPoint(1)

cel.InsertCellPoint(2)

cel.InsertCellPoint(3)

 


output = self.GetOutput()

output.SetPoints(pts)

output.SetStrips(cel)

)

 


pgflt.Input = pgsrc

 


view = servermanager.CreateRenderView()

rep = servermanager.CreateRepresentation(ptr,view)

 


view.StillRender()

view.ResetCamera()

view.StillRender()

 


$$$

 





___
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] file-transfer in paraview -- pvserver

2008-12-04 Thread Utkarsh Ayachit

Jens,

When operating in client-server mode (connected to a pvserver), ParaView 
can only open data files located on the server side (option c). The 
Open File is indeed browsing the server side directory structure when 
connection to a server node.


Utkarsh

Jens wrote:

Hi,

Can anyone tell me how file-transfer is done if paraview(client/server)
is used?

a) does paraview(client) always sends the whole data (for me a lot of
GBytes) to pvserver,
b) or do I have to have a directory, which is mounted on the client and
server at the same position,
c) or is there even a way to select a file stored on the pvserver-node,
through paraview(client)

c would be the best, but I cannot see anything like this in the Open
File dialog.
If b is the way to go - will this lead to network traffic?

Greetings
Jens
___
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] default_server.pvsc in PV-3.4.0

2008-12-08 Thread Utkarsh Ayachit
Ramesh,

Try putting the file in under lib/paraview-3-4 (same location as
paraview-real executable).

Utkarsh

On Fri, Nov 21, 2008 at 10:04 AM, Rakesh Hammond
[EMAIL PROTECTED] wrote:
 Dear all,

 I am trying to use the default_server.pvsc file to load up profiles,
 which are site specifi rather than user specific - as explained in the
 wiki page, this can be done by adding default_server.pvsc file to the
 bin directory.  I got this to work without any problem.

 However, duing compilation, I specified an INSTALL_PREFIX, if I now
 copy the above file to this bin directory (this gets created when
 doing make install), paraview loads up ok, but it shows nothing in the
 server dialog box.  It looks like, I need to copy some more files
 across. Does anyone know which files its looking for?

 Can some one please give me some pointers on how to solve this problem?

 Thanks,
 Rakesh

 ps : I am running PV-3.4.0 on Linux
 ___
 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] reg file loading

2008-12-08 Thread Utkarsh Ayachit
Is it possible that your csv file has a blank line at the end?

Anyways, currently there's currently no direct way of visualizing the
data read in by CSV except in the spreadsheet view to simply look at
the raw data (or plots in CVS paraview). You'll have to write a python
programmable filter or source. Look at
http://www.paraview.org/Wiki/Here_are_some_more_examples_of_simple_ParaView_3_python_filters.
The first example illustrates reading a CSV as a set of points.

Utkarsh

On Sun, Nov 23, 2008 at 5:31 AM, L Susithra [EMAIL PROTECTED] wrote:
 Hi,
 Thanks for your response.
  I am getting this error:
 ERROR: In ..\..\..\ParaView3\VTK\Filtering\vtkTable.cxx, line 194

 vtkTable (0B71C660): Incorrect number of tuples in SetRow

 The version is 3.4.0.

 i have first three columns are node positions and the next three columns are
 corresponding x,y,z velocity vectors. I am not sure which format i should
 use it to load the data for flow visualization.

 Thanks


 Date: Fri, 21 Nov 2008 14:22:18 -0500
 To: [EMAIL PROTECTED]
 CC: paraview@paraview.org
 Subject: Re: [Paraview] reg file loading
 From: [EMAIL PROTECTED]

 What is the error you are getting? What version of ParaView are you using?

 Utkarsh

 L Susithra wrote:
  Hello,
  I've a data ( velocity fields, x,y,z for each node )from the simulation
  and i need to load it in paraview to visulaise the flow field. i
  converted the data as .csv from excel and when i read it from paraview,
  i am not able to load the data , getting an error. It just reads the
  first column only (xvelocity). I am not sure is there a specific way to
  load the data. It would be a great help if any one could suggest me.
 
  Thanks
 
  
  Free up your senses. Experience reality up close on MSN video Try it!
  http://video.msn.com/?mkt=en-in
 
 
  
 
  ___
  ParaView mailing list
  ParaView@paraview.org
  http://www.paraview.org/mailman/listinfo/paraview

 
 Calling TV buffs! Get TV listings, gossip on your fave stars and updates on
 hot new shows Try it now!
___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Object Panel - Model Communication

2008-12-16 Thread Utkarsh Ayachit
To get back values from the server, you can use either information
properties or information objects.

Information properties are properites with information_only=1 set in
the XML (eg. in Servers/ServerManager/Resources/rendering.xml the
Camera proxy has CameraPositionInfo as an information property).
Such properties need an InformationHelper which knows how to obtain
the values from the server. For simple Get*() methods, you can use the
SimpleDoubleInformationHelper/ or SimpleIntInformationHelper /
etc. based on the type of the property. Complex information helpers
can be written as well. Look at TimeStepsInformationHelper
(vtkSMTimeStepsInformationHelper.h|cxx) as an example.

Information objects are used to get data from server which cannot be
simply put in a property for example information about the data object
produced by a filter (vtkPVDataInformation). These are
vtkPVInformation subclasses. You can create you own vtkPVInformation
subclass that knows how to collect information and then
serialize/deserialize it for transfer to the client from the server
(if needed). To gather such information, one uses
vtkProcessModule::GatherInformation(vtkIdType connectionID,
vtkTypeUInt32 serverFlags, vtkPVInformation* info, vtkClientServerID
id) where id is vtkSMProxy::GetID() returned for the proxy from
which you want to collect the information.

In your case, information property may be an easier solution -- if I
understand your problem correctly.

There is a pqServerManagerModel instance accessible as
pqApplicationCore::instance()-getServerManagerModel() that can be
used to access sources/filters their representations, views etc. Take
a look at Qt/Core/pqServerManagerModel.h for the API. That should help
you access the visualization pipeline.

How to get, for instance, the ids of the nodes which are displayed
after the application of a filter to the model ?
Not sure I understand what you mean by that. Can you please elaborate?

Utkarsh

On Tue, Dec 16, 2008 at 6:38 AM, Rafael March rafaelmar...@yahoo.com wrote:
 Hey all,

 I'm programming a filter with a custom Object Panel,
 and I'm feeling a little bit lost about the ParaView architecture and
 code design.

 My great problem is the comunication between the
 Object Panel and the Model. I know I can't have a pointer to my
 vtkUnstructuredGrid displayed, 'cause they are not necessarily at the
 same machine or process. I also know that I'm able to send information
 to the model through properties, since I can get the vtkSMProxy in my
 panel. But what about the way back ? Is there a way to send information
 from the display view to the panel ? How can I display in a QTable, for
 instance, the nodes of my model which have some property equals to 1 ?

 Another problem is the Visualization Pipeline: is there a way to walk on
 it ?
 I mean, if I have a filter name, am I able to get the the filter no
 matter where it is in the Pipeline ?

 Sorry for the mess with the questions. I hope I made it clear and someone
 can help me ! :)

 Regards,
 Rafael March.

 ___
 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] bug in ParaView 3.4.0 server

2008-12-17 Thread Utkarsh Ayachit
Is there any error message shown on the server? Doesn't look like you
are able to render on the server.

Utkarsh

On Wed, Dec 17, 2008 at 10:29 AM, Stephen Wornom
stephen.wor...@sophia.inria.fr wrote:
 Utkarsh Ayachit wrote:

 Are there any error messages outputted on the server side?
 Can you try this:
 When connected to the server and looking at the outline (which you say
 is rendered fine) go to Edit|Settings. In the Options dialog open up
 the Render View tree on the left pane and select Server. There in
 the Remote Rendering Paramaters group ensure that Remote Render
 Threshold is set to 0 and checked. Now hit Ok.

 The thresh hold was by default 3 mb. When I set it to 0, the client crashes
 each time I try to establish a connection.
 Navier Waiting for server...
 ERROR: In /tmp/ParaView-3.4.0/Servers/Common/vtkServerConnection.cxx, line
 67
 vtkServerConnection (0x5dd9240): Server Connection Closed!

 Is it important that each cpu has two cores?
 Stephen

  Does the outline still
 render fine? If not I am guess there's some issue with rendering on
 the server side.

 Utkarsh

 On Wed, Dec 17, 2008 at 3:46 AM, Stephen Wornom
 stephen.wor...@sophia.inria.fr wrote:


 I am trying to visualize a data set with 500,000 vertices using pv 3.4.0
 without success.

 1-step 1: I start the server with this script
 --
 #!/bin/sh
 #PBS -N Paraview_32
 #PBS -l nodes=16:nef:ppn=2
 #PBS -l walltime=4:00:00
 cd $PBS_O_WORKDIR
 server=`hostname`

 ulimit -s unlimited

 echo The server is listening on host $server 
 #/usr/local/bin/mpiexec2 /usr/local/paraview/bin/pvserver
 --use-offscreen-rendering

 mpiexec --comm=mpich2 /home/install/paraview-340/bin/pvserver
 --use-offscreen-rendering

 step 2: I identify which processor is listening on host
 ---

 step 3: I open pv 3.4.0 on the client, enter the server name and host

 ---
 The files are read correctly on the client and the outline of the mesh
 can
 be seen on the client screen. When I try to visualize a solution field
 (points, wireframe, surface) I get the following error.

 ERROR: In /tmp/ParaView-3.4.0/Servers/Common/vtkServerConnection.cxx,
 line 67
 vtkServerConnection (0x5df84f0): Server Connection Closed!

 step 4: when I do on the server
 --
 ls -al /tmp/ParaView-3.4.0/Servers/Common/vtkServerConnection.cxx
 I get
 cannot access /tmp/ParaView-3.4.0/Servers/Common/vtkServerConnection.cxx:
 No
 such file or directory

 step 5: If I copy all the vtu,...etc files to the client and open pv
 --
 3.4.0, we can visualize the same data with no
 problems (the paraview server on the server is not used).

 Can anyone help resolved the problem. I can send all the files to anyone
 who
 will help resolve the problem.
 Thanks,
 Stephen
 p.s.
 The above works correctly with a small mesh (43,000 vertices) using
 8-procs.
 The above was with a mesh (500,000 vertices)using 32-processors.

 ___
 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



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


Re: [Paraview] bug in ParaView 3.4.0 server

2008-12-17 Thread Utkarsh Ayachit
Are you by any chance using the binaries distributed on
www.paraview.org? If so, are you trying to to run the pvserver with
mpiexec/mpirun? The distributed binaries are not built with MPI
support so cannot be run with mpi. I am asking this since in your
error messages there seem to be some mpiexec error messages.

Utkarsh

On Wed, Dec 17, 2008 at 11:51 AM, Utkarsh Ayachit
utkarsh.ayac...@kitware.com wrote:
 Is it possible for you to attach a debugger to the pvserver and
 provide the stack trace for where it crashes? My guess is it's failing
 when creating the render window.

 Utkarsh

 On Wed, Dec 17, 2008 at 11:43 AM, Stephen Wornom
 stephen.wor...@sophia.inria.fr wrote:
 Utkarsh Ayachit wrote:

 Is there any error message shown on the server? Doesn't look like you
 are able to render on the server.ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x123f8e60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x1083ae60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0xfb25e60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x9e35e60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x1f59be60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x1ba5ae60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x4bede60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x12834e60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x1be08e60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x15bcfe60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x88f1e60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x8006e60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x1e10be60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x1308ce60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x12977e60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x156dfe60): Failed to set up server
 socket.

 mpiexec: Warning: task 0 died with signal 11 (Segmentation fault).
 mpiexec: Warning: tasks 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31 exited
 with status 1.
 mpiexec: Warning: tasks 2,4,6,8,10,12,14,16,18,20,22,24,26,28,30 died with
 signal 15 (Terminated).
 stephen


 Utkarsh

 On Wed, Dec 17, 2008 at 10:29 AM, Stephen Wornom
 stephen.wor...@sophia.inria.fr wrote:


 Utkarsh Ayachit wrote:


 Are there any error messages outputted on the server side?
 Can you try this:
 When connected to the server and looking at the outline (which you say
 is rendered fine) go to Edit|Settings. In the Options dialog open up
 the Render View tree on the left pane and select Server. There in
 the Remote Rendering Paramaters group ensure that Remote Render
 Threshold is set to 0 and checked. Now hit Ok.


 The thresh hold was by default 3 mb. When I set it to 0, the client
 crashes
 each time I try to establish a connection.
 Navier Waiting for server...
 ERROR: In /tmp/ParaView-3.4.0/Servers/Common/vtkServerConnection.cxx,
 line
 67
 vtkServerConnection (0x5dd9240): Server Connection Closed!

 Is it important that each cpu has two cores?
 Stephen



  Does the outline still
 render fine? If not I am guess there's some issue with rendering on
 the server side.

 Utkarsh

 On Wed, Dec 17, 2008 at 3:46 AM, Stephen Wornom

Re: [Paraview] bug in ParaView 3.4.0 server

2008-12-17 Thread Utkarsh Ayachit
Is it possible for you to attach a debugger to the pvserver and
provide the stack trace for where it crashes? My guess is it's failing
when creating the render window.

Utkarsh

On Wed, Dec 17, 2008 at 11:43 AM, Stephen Wornom
stephen.wor...@sophia.inria.fr wrote:
 Utkarsh Ayachit wrote:

 Is there any error message shown on the server? Doesn't look like you
 are able to render on the server.ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x123f8e60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x1083ae60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0xfb25e60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x9e35e60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x1f59be60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x1ba5ae60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x4bede60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x12834e60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x1be08e60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x15bcfe60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x88f1e60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x8006e60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x1e10be60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x1308ce60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x12977e60): Failed to set up server
 socket.

 ERROR: In
 /tmp/ParaView-3.4.0/Servers/Common/vtkProcessModuleConnectionManager.cxx,
 line 180
 vtkProcessModuleConnectionManager (0x156dfe60): Failed to set up server
 socket.

 mpiexec: Warning: task 0 died with signal 11 (Segmentation fault).
 mpiexec: Warning: tasks 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31 exited
 with status 1.
 mpiexec: Warning: tasks 2,4,6,8,10,12,14,16,18,20,22,24,26,28,30 died with
 signal 15 (Terminated).
 stephen


 Utkarsh

 On Wed, Dec 17, 2008 at 10:29 AM, Stephen Wornom
 stephen.wor...@sophia.inria.fr wrote:


 Utkarsh Ayachit wrote:


 Are there any error messages outputted on the server side?
 Can you try this:
 When connected to the server and looking at the outline (which you say
 is rendered fine) go to Edit|Settings. In the Options dialog open up
 the Render View tree on the left pane and select Server. There in
 the Remote Rendering Paramaters group ensure that Remote Render
 Threshold is set to 0 and checked. Now hit Ok.


 The thresh hold was by default 3 mb. When I set it to 0, the client
 crashes
 each time I try to establish a connection.
 Navier Waiting for server...
 ERROR: In /tmp/ParaView-3.4.0/Servers/Common/vtkServerConnection.cxx,
 line
 67
 vtkServerConnection (0x5dd9240): Server Connection Closed!

 Is it important that each cpu has two cores?
 Stephen



  Does the outline still
 render fine? If not I am guess there's some issue with rendering on
 the server side.

 Utkarsh

 On Wed, Dec 17, 2008 at 3:46 AM, Stephen Wornom
 stephen.wor...@sophia.inria.fr wrote:



 I am trying to visualize a data set with 500,000 vertices using pv
 3.4.0
 without success.

 1-step 1: I start the server with this script
 --
 #!/bin/sh
 #PBS -N Paraview_32
 #PBS -l nodes=16:nef:ppn=2
 #PBS -l walltime=4:00:00
 cd $PBS_O_WORKDIR
 server=`hostname`

 ulimit -s unlimited

 echo The server is listening on host

Re: [Paraview] bug in ParaView 3.4.0 server

2008-12-17 Thread Utkarsh Ayachit
Are there any error messages outputted on the server side?
Can you try this:
When connected to the server and looking at the outline (which you say
is rendered fine) go to Edit|Settings. In the Options dialog open up
the Render View tree on the left pane and select Server. There in
the Remote Rendering Paramaters group ensure that Remote Render
Threshold is set to 0 and checked. Now hit Ok. Does the outline still
render fine? If not I am guess there's some issue with rendering on
the server side.

Utkarsh

On Wed, Dec 17, 2008 at 3:46 AM, Stephen Wornom
stephen.wor...@sophia.inria.fr wrote:
 I am trying to visualize a data set with 500,000 vertices using pv 3.4.0
 without success.

 1-step 1: I start the server with this script
 --
 #!/bin/sh
 #PBS -N Paraview_32
 #PBS -l nodes=16:nef:ppn=2
 #PBS -l walltime=4:00:00
 cd $PBS_O_WORKDIR
 server=`hostname`

 ulimit -s unlimited

 echo The server is listening on host $server 
 #/usr/local/bin/mpiexec2 /usr/local/paraview/bin/pvserver
 --use-offscreen-rendering

 mpiexec --comm=mpich2 /home/install/paraview-340/bin/pvserver
 --use-offscreen-rendering

 step 2: I identify which processor is listening on host
 ---

 step 3: I open pv 3.4.0 on the client, enter the server name and host
 ---
 The files are read correctly on the client and the outline of the mesh can
 be seen on the client screen. When I try to visualize a solution field
 (points, wireframe, surface) I get the following error.

 ERROR: In /tmp/ParaView-3.4.0/Servers/Common/vtkServerConnection.cxx,
 line 67
 vtkServerConnection (0x5df84f0): Server Connection Closed!

 step 4: when I do on the server
 --
 ls -al /tmp/ParaView-3.4.0/Servers/Common/vtkServerConnection.cxx
 I get
 cannot access /tmp/ParaView-3.4.0/Servers/Common/vtkServerConnection.cxx: No
 such file or directory

 step 5: If I copy all the vtu,...etc files to the client and open pv
 --
 3.4.0, we can visualize the same data with no
 problems (the paraview server on the server is not used).

 Can anyone help resolved the problem. I can send all the files to anyone who
 will help resolve the problem.
 Thanks,
 Stephen
 p.s.
 The above works correctly with a small mesh (43,000 vertices) using 8-procs.
 The above was with a mesh (500,000 vertices)using 32-processors.

 ___
 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] Object Panel - Model Communication

2008-12-17 Thread Utkarsh Ayachit
Rafael,

It is possible to get the output of a filter in a custom panel. But it
most certainly is not recommended. Fetching data from the output of
any filter/source should be done only by views such as the render
view/xy line plot view/ spreadsheet view etc. However if you insist on
getting the data to the client side create a client-delivery
representation. Look at the implementation of Fetch() function  in
Utilities/VTKPythonWrapping/paraview/servermanager.py for details.
However I'd still recommend to rethink -- do you really need the full
data or just some meta-data that can be obtained from the
vtkPVDataInformation associated with the input?

Utkarsh

On Wed, Dec 17, 2008 at 10:58 AM, Rafael March rafaelmar...@yahoo.com wrote:
 Thanks a lot Utkarsh,

 I'm already testing and learning about the Information Properties, and I
 realized this is exactly what I need, concerning the Client/Server
 Communication.

 Let me try to explain what I asked about the visualization pipeline:
 Suppose I have an unstructured grid.Then, my filter associate an integer
 number, from 0 to 6, to each cell, according to an algorithm. My filter also
 implements a custom object panel. Then I clip my model, through the Clip
 Filter. Is it possible to get the output of the Clip (that is, the nodes
 that weren't cutted off )from my custom filter code (which stays before the
 Clip filter in the pipeline) ?

 Regards,
 Rafael March.

 --- On Tue, 12/16/08, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote:

 From: Utkarsh Ayachit utkarsh.ayac...@kitware.com
 Subject: Re: [Paraview] Object Panel - Model Communication
 To: rafaelmar...@yahoo.com
 Cc: paraview@paraview.org
 Date: Tuesday, December 16, 2008, 2:17 PM

 To get back values from the server, you can use either
 information
 properties or information objects.

 Information properties are properites with information_only=1 set
 in
 the XML (eg. in Servers/ServerManager/Resources/rendering.xml the
 Camera proxy has CameraPositionInfo as an information
 property).
 Such properties need an InformationHelper which knows how to obtain
 the values from the server. For simple Get*() methods, you can use the
 SimpleDoubleInformationHelper/ or SimpleIntInformationHelper /
 etc. based on the type of the property. Complex information helpers
 can be written as well. Look at
  TimeStepsInformationHelper
 (vtkSMTimeStepsInformationHelper.h|cxx) as an example.

 Information objects are used to get data from server which cannot be
 simply put in a property for example information about the data object
 produced by a filter (vtkPVDataInformation). These are
 vtkPVInformation subclasses. You can create you own vtkPVInformation
 subclass that knows how to collect information and then
 serialize/deserialize it for transfer to the client from the server
 (if needed). To gather such information, one uses
 vtkProcessModule::GatherInformation(vtkIdType connectionID,
 vtkTypeUInt32 serverFlags, vtkPVInformation* info, vtkClientServerID
 id) where id is vtkSMProxy::GetID() returned for the proxy from
 which you want to collect the information.

 In your case, information property may be an easier solution -- if I
 understand your problem correctly.

 There is a pqServerManagerModel instance
  accessible as
 pqApplicationCore::instance()-getServerManagerModel() that can be
 used to access sources/filters their representations, views etc. Take
 a look at Qt/Core/pqServerManagerModel.h for the API. That should help
 you access the visualization pipeline.

 How to get, for instance, the ids of the nodes which are displayed
 after the application of a filter to the model ?
 Not sure I understand what you mean by that. Can you please elaborate?

 Utkarsh

 On Tue, Dec 16, 2008 at 6:38 AM, Rafael March rafaelmar...@yahoo.com
 wrote:
 Hey all,

 I'm programming a filter with a custom Object Panel,
 and I'm feeling a little bit lost about the ParaView architecture and
 code design.

 My great problem is the comunication between the
 Object Panel and the Model. I know I can't have a pointer to my
 vtkUnstructuredGrid displayed, 'cause they are not
  necessarily at the
 same machine or process. I also know that I'm able to send information
 to the model through properties, since I can get the vtkSMProxy in my
 panel. But what about the way back ? Is there a way to send information
 from the display view to the panel ? How can I display in a QTable, for
 instance, the nodes of my model which have some property equals to 1 ?

 Another problem is the Visualization Pipeline: is there a way to
 walk on
 it ?
 I mean, if I have a filter name, am I able to get the the filter no
 matter where it is in the Pipeline ?

 Sorry for the mess with the questions. I hope I made it clear and someone
 can help me ! :)

 Regards,
 Rafael March.

 ___
 ParaView mailing list
 ParaView@paraview.org

  http://www.paraview.org/mailman/listinfo/paraview

Re: [Paraview] How to visualize multipart/multiblock models

2008-12-18 Thread Utkarsh Ayachit
Currently there is no way to hide-show individual blocks in a
multiblock dataset or assign colors to them. However, you can apply
the Extract Block filter to extract each individual blocks and then
apply colors to them or show/hide them.

Utkarsh

On Thu, Dec 18, 2008 at 6:15 AM, M. Nawijn naw...@gmail.com wrote:
 Hello,

 I am trying to find a way to subdivide a structural analysis model in
 several parts in such a way that I can post-process the results in
 Paraview. The primary objective for me is to be able to hide and show
 different parts of the structure. The model itself is not too large
 (say 50.000 cells). A bonus for me would be that I can assign a
 different color (or different properties in general) to each of the
 parts.

 I have tried a few things with Paraview:
1. Create a set of individual .VTU files and combine them in a
 .PVD file. This works very nice for building result sequences of the
 complete model.
2. Create a set of individual .VTU files and combine them in a
 .PVM file. This works in the sense that I can import a complete model
 build up from several pieces, but I cannot assign colors to each of
 the parts and are unable to hide and show individual parts (tried by
 using the extract datasets filter).
3. Create a XDMF XML file with 2 GRID elements in a single domain.
 This again allows me to import the model and show hide individual
 parts. I can still assign only 1 color to the complete model.

 Is subdivision into multiple showable/hideable parts, including
 individual color assignment, possible with either XDMF or VTK XML
 files?
 If so, can someone post a minimal example?


 BTW. I hope this is not a double post. I posted this message
 yesterday, but did not receive it though my subscription. I actually
 found this message in the Paraview mail-archive. Maybe there is a
 problem/restriction on the message format. I mailed from my GMAIL
 account in the default rich text format. I will try now in plain text.
 If it is a double post, please forgive me ;).


 Kind regards,

 Marco
 ___
 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] Problem with ParaView 3.4 and additional Filter...

2008-12-19 Thread Utkarsh Ayachit
Stefan,

Looks like you only loaded the xml for the filter. Loading of xml is
fine when exposing filters already present in VTK but not available to
ParaView GUI. The MyElevataionFilter.xml refers to a new filter class
vtkMyElevationFilter which needs to be compiled. Hence simply loading
xml is not valid here. Instead you should load the plugin shared
library that would be compiled if you turn on BUILD_EXAMPLES when
configuring paraview using CMake. On compiltation there will be
libSMMyElevation.so (or similar on  other platforms) that you can load
through the plugin manager.
Look at http://www.paraview.org/Wiki/Plugin_HowTo for details.

Utkarsh


On Fri, Dec 19, 2008 at 7:22 AM,  stefan.mel...@dlr.de wrote:
.
 Hi,


 i tried to load a filter from

 ParaView-3.4.0/Examples/Plugins/Filter/MyElevationFilter.xml

 to ParaView (3.4, binaries from paraview.org and the same in a self-compiled 
 version) with the dialog Tools/Manage Plugnis/Extensions - this works.

 But after applying it to an data-set the gui-crashes and i get the message:


 ERROR: In 
 /opt/PARAVIEW_3_4_build/ParaView-3.4.0/Servers/Common/vtkProcessModule.cxx, 
 line 1079
 vtkProcessModule (0x5107740): Cannot create object of type 
 vtkMyElevationFilter.
 while processing
 Message 0 = New
  Argument 0 = string_value {vtkMyElevationFilter}
  Argument 1 = id_value {554}



 ERROR: In 
 /opt/PARAVIEW_3_4_build/ParaView-3.4.0/Servers/Common/vtkProcessModule.cxx, 
 line 1080
 vtkProcessModule (0x5107740): Aborting execution for debugging purposes.


 Any ideas what is wrong? The Filter? The usage?

 Best regards and thank you,

   Stefan

 ___
 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] points and cells labels

2008-12-22 Thread Utkarsh Ayachit
One possible solution is to add the labels as a point data or cell
data array of type vtkStringArray and then use the selection
labeling mechanism to label with this string array.

Utkarsh

On Fri, Dec 19, 2008 at 6:04 PM, Nehme Bilal nbi...@mirarco.org wrote:
 Hello,

 Is it possible to put labels on points or cells using a filter ?

 Inside my filter code, I want to do something like:
 myPoint-setLabel(50 metres);

 the label must look like the selection inspector label and not the
 vtkVectorText one.

 Is there a way to do that ?
 ___
 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] points and cells labels

2008-12-22 Thread Utkarsh Ayachit
Nehme,

Is this in a custom application/python or ParaView GUI. In
python/custom-app you can yourself create (representations,
DataLabelRepresentation) representation proxy and connect it to the
output of your filter. Then it will label all points/cells.

Utkarsh

On Mon, Dec 22, 2008 at 9:24 AM, Nehme Bilal nbi...@mirarco.org wrote:

 Thanks Utkarsh for your response.

 that's what I already did. I used empty string on points where I don't want
 to display properties. But the user must use the selection inspector to see
 the labels. Is there a way to do the selection from the filter code. It will
 be perfect if I can select the points I want from inside the filter code, or
 simply select all points will help also.

 Thanks

 On Mon, 22 Dec 2008 09:16:43 -0500
  Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote:

 One possible solution is to add the labels as a point data or cell
 data array of type vtkStringArray and then use the selection
 labeling mechanism to label with this string array.

 Utkarsh

 On Fri, Dec 19, 2008 at 6:04 PM, Nehme Bilal nbi...@mirarco.org wrote:

 Hello,

 Is it possible to put labels on points or cells using a filter ?

 Inside my filter code, I want to do something like:
 myPoint-setLabel(50 metres);

 the label must look like the selection inspector label and not the
 vtkVectorText one.

 Is there a way to do that ?
 ___
 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] Object Panel - Model Communication

2008-12-22 Thread Utkarsh Ayachit
Rafael,

You are correct. DataSetAttributesInformation cannot provide you with
the actual data. I guess you will have fetch the whole data client.

Utkarsh

On Thu, Dec 18, 2008 at 11:04 AM, Rafael March rafaelmar...@yahoo.com wrote:
 Utkarsh,

 actually I would like to get vtkPointData from Server, the nodes global
 id's. I'm taking a look at the vtkPVDataSetAttributesInformation class, but
 I don't think it will provide this information, am I right ? As a meta data,
 I can't get really the data, just some information about it...

 Regards,
 Rafael.
 --- On Wed, 12/17/08, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote:

 From: Utkarsh Ayachit utkarsh.ayac...@kitware.com
 Subject: Re: [Paraview] Object Panel - Model Communication
 To: rafaelmar...@yahoo.com
 Cc: paraview@paraview.org
 Date: Wednesday, December 17, 2008, 9:32 PM

 Rafael,

 It is possible to get the output
  of a filter in a custom panel. But it
 most certainly is not recommended. Fetching data from the output of
 any filter/source should be done only by views such as the render
 view/xy line plot view/ spreadsheet view etc. However if you insist on
 getting the data to the client side create a client-delivery
 representation. Look at the implementation of Fetch() function  in
 Utilities/VTKPythonWrapping/paraview/servermanager.py for details.
 However I'd still recommend to rethink -- do you really need the full
 data or just some meta-data that can be obtained from the
 vtkPVDataInformation associated with the input?

 Utkarsh

 On Wed, Dec 17, 2008 at 10:58 AM, Rafael March rafaelmar...@yahoo.com
 wrote:
 Thanks a lot Utkarsh,

 I'm already testing and learning about the Information Properties, and
 I
 realized this is exactly what I need, concerning the Client/Server

  Communication.

 Let me try to explain what I asked about the visualization pipeline:
 Suppose I have an unstructured grid.Then, my filter associate an integer
 number, from 0 to 6, to each cell, according to an algorithm. My filter
 also
 implements a custom object panel. Then I clip my model, through the Clip
 Filter. Is it possible to get the output of the Clip (that is, the nodes
 that weren't cutted off )from my custom filter code (which stays
 before the
 Clip filter in the pipeline) ?

 Regards,
 Rafael March.

 --- On Tue, 12/16/08, Utkarsh Ayachit utkarsh.ayac...@kitware.com
 wrote:

 From: Utkarsh Ayachit utkarsh.ayac...@kitware.com
 Subject: Re: [Paraview] Object Panel - Model Communication
 To: rafaelmar...@yahoo.com
 Cc: paraview@paraview.org
 Date: Tuesday, December 16, 2008,
  2:17 PM

 To get back values from the server, you can use either
 information
 properties or information objects.

 Information properties are properites with information_only=1
 set
 in
 the XML (eg. in Servers/ServerManager/Resources/rendering.xml the
 Camera proxy has CameraPositionInfo as an
 information
 property).
 Such properties need an InformationHelper which knows how to
 obtain
 the values from the server. For simple Get*() methods, you can use the
 SimpleDoubleInformationHelper/ or SimpleIntInformationHelper
 /
 etc. based on the type of the property. Complex information helpers
 can be written as well. Look at
  TimeStepsInformationHelper
 (vtkSMTimeStepsInformationHelper.h|cxx) as an example.

 Information objects are used to get data from server which cannot be

  simply put in a property for example information about the data object
 produced by a filter (vtkPVDataInformation). These are
 vtkPVInformation subclasses. You can create you own vtkPVInformation
 subclass that knows how to collect information and then
 serialize/deserialize it for transfer to the client from the server
 (if needed). To gather such information, one uses
 vtkProcessModule::GatherInformation(vtkIdType connectionID,
 vtkTypeUInt32 serverFlags, vtkPVInformation* info, vtkClientServerID
 id) where id is vtkSMProxy::GetID() returned for the proxy
 from
 which you want to collect the information.

 In your case, information property may be an easier solution -- if I
 understand your problem correctly.

 There is a pqServerManagerModel instance
  accessible as
 pqApplicationCore::instance()-getServerManagerModel() that can
  be
 used to access sources/filters their representations, views etc. Take
 a look at Qt/Core/pqServerManagerModel.h for the API. That should help
 you access the visualization pipeline.

 How to get, for instance, the ids of the nodes which are displayed
 after the application of a filter to the model ?
 Not sure I understand what you mean by that. Can you please elaborate?

 Utkarsh

 On Tue, Dec 16, 2008 at 6:38 AM, Rafael March
 rafaelmar...@yahoo.com
 wrote:
 Hey all,

 I'm programming a filter with a custom Object Panel,
 and I'm feeling a little bit lost about the ParaView architecture
 and
 code design.

 My great problem is the comunication between the
 Object Panel and the Model. I know I can't have a pointer to my
 vtkUnstructuredGrid displayed,
  'cause

Re: [Paraview] ClientDeliveryRepresentation

2008-12-22 Thread Utkarsh Ayachit
Look at  vtkSMClientDeliveryStrategyProxy::UpdatePipelineInternal()
that's where the data  type is set on the data-transfer filter. BTW,
ClientDeliverRepresentation cannot deliver 3D image data. It can only
deliver 2D slices.

Utkarsh

On Mon, Dec 22, 2008 at 12:17 PM, jonathan grimm flym...@gmail.com wrote:
 How does the ClientDeliveryRepresentation choose what data type to send?
 I have two pipelines:
 Reader-ImageReslice-ClientDeliveryRepresentation-ImagePlaneWidget
 and
 Reader-ClientDeliveryRepresentation-hacked ImagePlaneWidget that allows
 pipeline inputs
 The first works beautifully, while the ImageReslice inside my second
 pipeline complains that it is getting polydata instead of imagedata.
 Any suggestions, besides producing an image plane widget that uses a server
 side reslice?

 --
 Sometimes it's hard to tell the dancer from the dance - Corwin in CoC

 ___
 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] points and cells labels

2008-12-23 Thread Utkarsh Ayachit
I don't see any way of doing it through a filter.

On Tue, Dec 23, 2008 at 10:08 AM, Nehme Bilal nbi...@mirarco.org wrote:

 Hi,

 Is this possible with C++ filter/reader or only in python/custom-app ?

 Nehme

 On Mon, 22 Dec 2008 09:32:51 -0500
  Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote:

 Nehme,

 Is this in a custom application/python or ParaView GUI. In
 python/custom-app you can yourself create (representations,
 DataLabelRepresentation) representation proxy and connect it to the
 output of your filter. Then it will label all points/cells.

 Utkarsh

 On Mon, Dec 22, 2008 at 9:24 AM, Nehme Bilal nbi...@mirarco.org wrote:

 Thanks Utkarsh for your response.

 that's what I already did. I used empty string on points where I don't
 want
 to display properties. But the user must use the selection inspector to
 see
 the labels. Is there a way to do the selection from the filter code. It
 will
 be perfect if I can select the points I want from inside the filter code,
 or
 simply select all points will help also.

 Thanks

 On Mon, 22 Dec 2008 09:16:43 -0500
  Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote:

 One possible solution is to add the labels as a point data or cell
 data array of type vtkStringArray and then use the selection
 labeling mechanism to label with this string array.

 Utkarsh

 On Fri, Dec 19, 2008 at 6:04 PM, Nehme Bilal nbi...@mirarco.org wrote:

 Hello,

 Is it possible to put labels on points or cells using a filter ?

 Inside my filter code, I want to do something like:
 myPoint-setLabel(50 metres);

 the label must look like the selection inspector label and not the
 vtkVectorText one.

 Is there a way to do that ?
 ___
 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] Warning in Paraview :

2008-12-30 Thread Utkarsh Ayachit
How are you getting this error? What are the actions that you
performed to get this error?

Utkarsh

On Tue, Dec 30, 2008 at 11:34 AM, Chaman Singh Verma csv...@gmail.com wrote:
 Hello,

 I get the following warning or error when I use Paraview:

 Internal state of frames has got messed up!

 What does it means ?

 csv


 ___
 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] Object Panel - Model Communication

2009-01-03 Thread Utkarsh Ayachit
You will have to create a custom panel. Look at the custom panel
example in Examples/Plugin.

Utkarsh

On Sat, Jan 3, 2009 at 4:29 PM, Nehme Bilal nbi...@mirarco.org wrote:

 Hi,

 I am trying to use DoubleArrayInformationHelper to get a vtkDoubleArray
 from server side and show it in my filter GUI.
 XML code:

  DoubleVectorProperty
 name=volumesArray
 command=GetVolumesArray
 information_only=1
DoubleArrayInformationHelper/
  /DoubleVectorProperty

 C++:
vtkDoubleArray* GetVolumesArray()
{
return this-volumesArray;
}
 The current code don't show anything in the GUI.
 I would like to see the content of volumesArray in a Table, List or a Tree
 widget.

 How can I do that ?

 Nehme



 From: Utkarsh Ayachit utkarsh.ayac...@kitware.com
 Subject: Re: [Paraview] Object Panel - Model Communication
 To: rafaelmar...@yahoo.com
 Cc: paraview@paraview.org
 Date: Tuesday, December 16, 2008, 2:17 PM

 To get back values from the server, you can use either
 information
 properties or information objects.

 Information properties are properites with information_only=1 set
 in
 the XML (eg. in Servers/ServerManager/Resources/rendering.xml the
 Camera proxy has CameraPositionInfo as an information
 property).
 Such properties need an InformationHelper which knows how to obtain
 the values from the server. For simple Get*() methods, you can use the
 SimpleDoubleInformationHelper/ or SimpleIntInformationHelper /
 etc. based on the type of the property. Complex information helpers
 can be written as well. Look at
 TimeStepsInformationHelper
 (vtkSMTimeStepsInformationHelper.h|cxx) as an example.

 Information objects are used to get data from server which cannot be
 simply put in a property for example information about the data object
 produced by a filter (vtkPVDataInformation). These are
 vtkPVInformation subclasses. You can create you own vtkPVInformation
 subclass that knows how to collect information and then
 serialize/deserialize it for transfer to the client from the server
 (if needed). To gather such information, one uses
 vtkProcessModule::GatherInformation(vtkIdType connectionID,
 vtkTypeUInt32 serverFlags, vtkPVInformation* info, vtkClientServerID
 id) where id is vtkSMProxy::GetID() returned for the proxy from
 which you want to collect the information.

 In your case, information property may be an easier solution -- if I
 understand your problem correctly.

 There is a pqServerManagerModel instance
 accessible as
 pqApplicationCore::instance()-getServerManagerModel() that can be
 used to access sources/filters their representations, views etc. Take
 a look at Qt/Core/pqServerManagerModel.h for the API. That should help
 you access the visualization pipeline.

 How to get, for instance, the ids of the nodes which are displayed
 after the application of a filter to the model ?
 Not sure I understand what you mean by that. Can you please elaborate?

 Utkarsh

 On Tue, Dec 16, 2008 at 6:38 AM, Rafael March rafaelmar...@yahoo.com
 wrote:

 Hey all,

 I'm programming a filter with a custom Object Panel,
 and I'm feeling a little bit lost about the ParaView architecture and
 code design.

 My great problem is the comunication between the
 Object Panel and the Model. I know I can't have a pointer to my
 vtkUnstructuredGrid displayed, 'cause they are not

 necessarily at the

 same machine or process. I also know that I'm able to send information
 to the model through properties, since I can get the vtkSMProxy in my
 panel. But what about the way back ? Is there a way to send information
 from the display view to the panel ? How can I display in a QTable, for
 instance, the nodes of my model which have some property equals to 1 ?

 Another problem is the Visualization Pipeline: is there a way to

 walk on

 it ?
 I mean, if I have a filter name, am I able to get the the filter no
 matter where it is in the Pipeline ?

 Sorry for the mess with the questions. I hope I made it clear and someone
 can help me ! :)

 Regards,
 Rafael March.

 ___
 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




 ___
 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] eternal Unknown CMake command QT4_WRAP_CPP. error

2009-01-07 Thread Utkarsh Ayachit
Jorge,

First of, you cannot build new plugins using an installed ParaView (at
for ParaView 3.4.* and earlier, it should work with CVS ParaView). You
need to download the source and build ParaView from scartch. Then set
the ParaView_DIR to the directory in which you've built ParaView.

Utkarsh

On Tue, Jan 6, 2009 at 5:50 PM, Jorge Mario Mazo jmm.mecan...@gmail.com wrote:
 hi there

 I did the find

 find / -name ParaViewConfig.cmake
 /Users/jmazo/Desktop/paraview/ParaViewConfig.cmake

 so I set

 yarumal8:Plugins jmazo$ export ParaView_DIR=/Users/jmazo/
 Desktop/paraview

 but I get the same error

 Unknown CMake command ADD_PARAVIEW_ACTION_GROUP.

 I'm running ccmake on

 /Users/jmazo/Desktop/fofo/ParaView-3.4.0/Examples/Plugins



 and when I did make install I set the dir to

 /Users/jmazo/gato

 I tried setting ParaView_DIR to

 /Users/jmazo/gato
 /Users/jmazo/Desktop/paraview/
 /Users/jmazo/Desktop/fofo/ParaView-3.4.0


 but I got the same error on all cases

 any ideas


 thanks


 On Tue, Jan 6, 2009 at 4:57 PM, Michael Jackson
 mike.jack...@bluequartz.net wrote:

 So you installed ParaView 3.4 into /Users/jmazo/gato?

 then ParaView_DIR should be /Users/jmazo/gato

 I think..

 Also, keep the discussion on list in case someone else wants to help out..

 ---
 Mike Jackson www.bluequartz.net



 On Jan 6, 2009, at 4:39 PM, Jorge Mario Mazo wrote:

 Hi there
 and sorry for the bothering


 I did the find

 find / -name ParaViewConfig.cmake
 /Users/jmazo/Desktop/paraview/ParaViewConfig.cmake

 so I set

 yarumal8:Plugins jmazo$ export ParaView_DIR=/Users/jmazo/Desktop/paraview

 but I get the same error

 Unknown CMake command ADD_PARAVIEW_ACTION_GROUP.

 I'm running ccmake on

 /Users/jmazo/Desktop/fofo/ParaView-3.4.0/Examples/Plugins



 and when I did make install I set the dir to

 /Users/jmazo/gato

 arumal8:gato jmazo$ pwd
 /Users/jmazo/gato
 yarumal8:gato jmazo$ ls
 binincludelibplugins


 thank you very much for all your help
 On Tue, Jan 6, 2009 at 4:24 PM, Michael Jackson
 mike.jack...@bluequartz.net wrote:
 You need to set the environment variable ParaView_DIR to the correct
 directory.

 ---
 Mike Jackson www.bluequartz.net




 On Jan 6, 2009, at 4:21 PM, Jorge Mario Mazo wrote:

 thanks for the quick answer
 but I get this error now
 
 CMake Error at CMakeLists.txt:4 (INCLUDE):
   i
  nclude could not find load file:

  /ParaViewConfig.cmake



  CMake Error at CMakeLists.txt:20 (ADD_PARAVIEW_ACTION_GROUP):
  Unknown CMake command ADD_PARAVIEW_ACTION_GROUP.
 

 a find gave me this:
 find / -name ParaViewConfig.cmake
 /Users/jmazo/Desktop/paraview/ParaViewConfig.cmake

 so moved the  file to / and now I get


  CMake Error at CMakeLists.txt:20 (ADD_PARAVIEW_ACTION_GROUP):
  Unknown CMake command ADD_PARAVIEW_ACTION_GROUP.


 the CMakeLists.txt looks like this
 ###
 IF (DEFINED ParaView_BINARY_DIR)
  INCLUDE(${ParaView_BINARY_DIR}/ParaViewConfig.cmake)
 ELSE (DEFINED ParaView_BINARY_DIR)
  INCLUDE($ENV{ParaView_DIR}/ParaViewConfig.cmake)
 ENDIF (DEFINED ParaView_BINARY_DIR)
 PROJECT(RoboMetClientPlugin)

 FIND_PACKAGE(Qt4)
 IF(QT4_FOUND)

 INCLUDE(${QT_USE_FILE})
  #-- All your Qt4 dependent code in here.


 CMAKELists.txt#
 # create a plugin that implements an object panel for a source proxy

 QT4_WRAP_CPP(MOC_SRCS MyToolBarActions.h)

 # we implement a pqConePanel.h for the ConeSource
 ADD_PARAVIEW_ACTION_GROUP(IFACES IFACE_SRCS CLASS_NAME MyToolBarActions
GROUP_NAME ToolBar/MyActions)

 # create a plugin for this panel
 ADD_PARAVIEW_PLUGIN(GUIMyToolBar 1.0
  GUI_INTERFACES ${IFACES}
  SOURCES MyToolBarActions.cxx ${MOC_SRCS} ${IFACE_SRCS})

 ENDIF (QT4_FOUND)

 ###


 On Tue, Jan 6, 2009 at 4:14 PM, Michael Jackson
 mike.jack...@bluequartz.net wrote:
 IF (DEFINED ParaView_BINARY_DIR)
  INCLUDE(${ParaView_BINARY_DIR}/ParaViewConfig.cmake)
 ELSE (DEFINED ParaView_BINARY_DIR)
  INCLUDE($ENV{ParaView_DIR}/ParaViewConfig.cmake)
 ENDIF (DEFINED ParaView_BINARY_DIR)
 PROJECT(RoboMetClientPlugin)

 FIND_PACKAGE(Qt4)
 IF(QT4_FOUND)

  INCLUDE(${QT_USE_FILE})
  #-- All your Qt4 dependent code in here.

 CMAKELists
 .txt#
 # create a plugin that implements an object panel for a source proxy

 QT4_WRAP_CPP(MOC_SRCS MyToolBarActions.h)

 # we implement a pqConePanel.h for the ConeSource
 ADD_PARAVIEW_ACTION_GROUP(IFACES IFACE_SRCS CLASS_NAME MyToolBarActions
GROUP_NAME ToolBar/MyActions)

 # create a plugin for this panel
 ADD_PARAVIEW_PLUGIN(GUIMyToolBar 1.0
  GUI_INTERFACES ${IFACES}
  SOURCES 

Re: [Paraview] calculator filter via python

2009-01-07 Thread Utkarsh Ayachit
Alas there's no way for the python programmable filter to ask for a
particular timestep currently. This should be remedied soon. Feel free
to add a bug report at:
www.paraview.org/Bug

Thanks
Utkarsh

On Fri, Jan 2, 2009 at 4:00 PM, Peter Brady petertbr...@gmail.com wrote:
 I don't think I can do what I originally intended via the calculator
 filter due to the need to access the data in center[i][k] which is a
 data array in my script but the function parser won't know what to do
 with it.  I was able to make some good progress using the programmable
 filter and the information on the wiki.

 My main question at this point is how do I access the time data from
 the programmable filter?  I am using multiblockdatasets.

 Thanks,
 Peter.

 On Fri, Jan 2, 2009 at 11:04 AM, Peter Brady petertbr...@gmail.com wrote:
 Hello all,

 I am trying to do calculations based on coordinate locations.  In the
 GUI I can simply select 'coordsX', 'coordsY', 'coordsZ'.  From python
 things seem to be more complicated.  I've tried the snippet below with
 several variations and keep getting errors

 calc_radius = servermanager.filters.Calculator(Input=g_cont)
 calc_radius.AddCoordinateScalarVariable('coordsX', 0)
 calc_radius.Function =
 'sqrt((coordsX-center[i][0])^2+(coordsY-center[i][1])^2+(coordsZ-center[i][2])^2)'
 calc_radius.UpdatePipeline()

 I've also tried
 calc_radius.AddCoordinateScalarVariable('coordsX')
 but I get the error:
 calc_radius.AddCoordinateScalarVariable('coordsX')
 TypeError: __call__() takes exactly 1 argument (2 given)

 I've also tried using the scalar array name ('G' in this case) in
 place of coordsX but have met the same error message.

 What is the correct way of doing this?

 Also, I've tried using the PV-Dump.py script that was suggested to me
 previously but am met with the error:

 Traceback (most recent call last):
  File console, line 1, in module
  File string, line 33, in allToPython
  File string, line 48, in proxiesToPython
  File string, line 149, in __orderProxies
 AttributeError: 'NoneType' object has no attribute 'groups'

 The offending lines are:
 def __orderProxies( proxies ):
Returns an array, where each entry contains the names of the proxies 
 that
depend on the previous array entry.
patternName   = re.compile(' *XMLName: *(.*)')
patternValues = re.compile(' *Values: *(.*)')
patternHex= re.compile('^0x[0-9a-f]+$')
pmanager  = servermanager.ProxyManager()

dependencies  = {}# COLLECT DEPS
for group in proxies: # For each proxy
  for name in proxies[group]:
dependencies[group+':'+name] = {} # Init its 
 depend.
proxy = proxies[group][name]

for prop in proxy:
 148  match = patternName.search( str(prop) )
 149  propName  = match.groups()[0]

 I was hoping that this script would be very helpful.  Anyone else have
 similar problems?

 Thanks in advance for your help,
 Peter.

 ___
 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] Building Plugin PV3.5 (Newbie)

2009-01-07 Thread Utkarsh Ayachit
The plugins in the Examples directory can be built by turning on the
BUILD_EXAMPLES cmake option. It's an advanced option so may not be
visible by default in your cmake gui.

Utkarsh

On Thu, Jan 1, 2009 at 12:07 PM, bastil2...@yahoo.de
bastil2...@yahoo.de wrote:
 Dear group,

 I try to build a plugin to Paraview following the wiki:

 http://paraview.org/Wiki/Plugin_HowTo#Adding_a_Filter

 I have a CVS-snapshot of Paraview and build it successfully. Now I try to
 add the example vtkMyElevationFilter to this Paraview. However, I do not
 understand how to build the Plugin with cmake. The wiki tells:

 Then using cmake and a build system, one can build a plugin for this new
 filter.

 I do not know how to run cmake / build the plugin. I tried running cmake .
 in the directory $PV_SOURCE/Examples/Plugins/Filter but cmake complains:
 CMake Error: Error in cmake code at
 /home/basti/Desktop/ParaView3/Examples/Plugins/Filter/CMakeLists.txt:6:
 Unknown CMake command ADD_PARAVIEW_PLUGIN.
 -- Configuring done

 Thanks BastiL


 ___
 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] How to visualize multipart/multiblock models

2009-01-07 Thread Utkarsh Ayachit
Jacques,

Is this functionality for a custom application developed over ParaView
or for a plugin extending standard ParaView?

Utkarsh

On Fri, Dec 19, 2008 at 5:00 AM, Jacques Papper jpap...@ara.co.uk wrote:
 Hi All,

 I have been thinking of a potential improvement for visualization of
 multipart models in ParaView.
 I would really like to develop the following functionality :

 Have support for multiple views where you can :
 - Select one or several blocks and move them to another view (maybe with a
 keyboard shortcut like alt+numberofView)
 - flip between the views by just typing a number on the keyboard
 - Have a system where blocks can only be present in one view at a time

 Would the structure of ParaView enable me to do this ? If so - where would I
 start ? I know that the pipeline and the extract selections offer somewhat a
 similar capability, but there are still a few things missing ?

 Jacques

 -Original Message-
 From: paraview-boun...@paraview.org [mailto:paraview-boun...@paraview.org]
 On Behalf Of Berk Geveci
 Sent: 18 December 2008 14:23
 To: M. Nawijn
 Cc: paraview@paraview.org
 Subject: Re: [Paraview] How to visualize multipart/multiblock models

 Hi Marco,

 Which version of ParaView are you using? In 3.4, you can create a vtm file
 that points to the individual vtu files. You can then color the blocks
 separately using the vtkCompositeIndex array (just color by it). You can
 control the color of each block by editing the color map.
 Alternatively, you can add a cell-centered, 3 component, unsigned char array
 (RGB) for each block to the file and then color by that array (make sure to
 turn off the Map Scalar option).

 As for turning on/off individual block, I am afraid you have to use the
 Extract Block filter to achieve that. I hope that we will have that option
 in the Display page in the future but it is not currently supported.

 What I described here should also work with Xdmf.

 -berk

 On Wed, Dec 17, 2008 at 11:12 AM, M. Nawijn naw...@gmail.com wrote:
 Hello,

 I am trying to find a way to subdivide a structural analysis model in
 several parts in such a way that I can post-process the results in
 Paraview.
 The primary objective for me is to be able to hide and show different
 parts of the structure. The model itself is not too large (say 50.000
 cells). A bonus for me would be that I can assign a different color
 (or different properties in general) to each of the parts.

 I have tried a few things with Paraview:
 1. Create a set of individual .VTU files and combine them in a
 .PVD file. This works very nice for building result sequences of the
 complete model.
 2. Create a set of individual .VTU files and combine them in a
 .PVM file. This works in the sense that I can import a complete model
 build up from several pieces, but I cannot assign colors to each of
 the parts and are unable to hide and show individual parts (tried by
 using the extract datasets filter).
 3. Create a XDMF XML file with 2 GRID elements in a single domain.
 This again allows me to import the model and show hide individual
 parts. I can still assign only 1 color to the complete model.

 Is subdivision into multiple showable/hideable parts, including
 individual color assignment, possible with either XDMF or VTK XML files?
 If so, can someone post a minimal example?

 Kind regards,

 Marco




 ___
 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


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


 ___
 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] ClientDeliveryRepresentation

2009-01-07 Thread Utkarsh Ayachit
When it comes to images there's whole lot of things to worry about
such as extents, extent translators etc etc. Adding support for
delivering image data in parallel may not be a trivial task.

Utkarsh

On Mon, Dec 29, 2008 at 1:04 PM, jonathan grimm flym...@gmail.com wrote:
 Can I write a strategy to make it support 3D Image data?
 Would a vtkImageDataStreamer solve this problem?

 On Mon, Dec 22, 2008 at 10:05 AM, Utkarsh Ayachit
 utkarsh.ayac...@kitware.com wrote:

 Look at  vtkSMClientDeliveryStrategyProxy::UpdatePipelineInternal()
 that's where the data  type is set on the data-transfer filter. BTW,
 ClientDeliverRepresentation cannot deliver 3D image data. It can only
 deliver 2D slices.

 Utkarsh

 On Mon, Dec 22, 2008 at 12:17 PM, jonathan grimm flym...@gmail.com
 wrote:
  How does the ClientDeliveryRepresentation choose what data type to send?
  I have two pipelines:
  Reader-ImageReslice-ClientDeliveryRepresentation-ImagePlaneWidget
  and
  Reader-ClientDeliveryRepresentation-hacked ImagePlaneWidget that
  allows
  pipeline inputs
  The first works beautifully, while the ImageReslice inside my second
  pipeline complains that it is getting polydata instead of imagedata.
  Any suggestions, besides producing an image plane widget that uses a
  server
  side reslice?
 
  --
  Sometimes it's hard to tell the dancer from the dance - Corwin in CoC
 
  ___
  ParaView mailing list
  ParaView@paraview.org
  http://www.paraview.org/mailman/listinfo/paraview
 
 



 --
 Sometimes it's hard to tell the dancer from the dance - Corwin in CoC

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


Re: [Paraview] Building Plugin PV3.5 (Newbie)

2009-01-07 Thread Utkarsh Ayachit
For new plugins you need to add the following two lines to the
CMakeLists.txt (you can add them to the examples in ParaView3/Examples
and build them separately).


FIND_PACKAGE(ParaView REQUIRED)
INCLUDE(${PARAVIEW_USE_FILE})


Utkarsh

On Wed, Jan 7, 2009 at 1:27 PM, bastil2...@yahoo.de bastil2...@yahoo.de wrote:
 Sure. I have ssen that. However, I do not know how to handle new (own
 developed) plugins. How can they be build? Thanks.

 BastiL

 Utkarsh Ayachit schrieb:
 The plugins in the Examples directory can be built by turning on the
 BUILD_EXAMPLES cmake option. It's an advanced option so may not be
 visible by default in your cmake gui.

 Utkarsh

 On Thu, Jan 1, 2009 at 12:07 PM, bastil2...@yahoo.de
 bastil2...@yahoo.de wrote:

 Dear group,

 I try to build a plugin to Paraview following the wiki:

 http://paraview.org/Wiki/Plugin_HowTo#Adding_a_Filter

 I have a CVS-snapshot of Paraview and build it successfully. Now I try to
 add the example vtkMyElevationFilter to this Paraview. However, I do not
 understand how to build the Plugin with cmake. The wiki tells:

 Then using cmake and a build system, one can build a plugin for this new
 filter.

 I do not know how to run cmake / build the plugin. I tried running cmake .
 in the directory $PV_SOURCE/Examples/Plugins/Filter but cmake complains:
 CMake Error: Error in cmake code at
 /home/basti/Desktop/ParaView3/Examples/Plugins/Filter/CMakeLists.txt:6:
 Unknown CMake command ADD_PARAVIEW_PLUGIN.
 -- Configuring done

 Thanks BastiL


 ___
 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] eternal Unknown CMake command QT4_WRAP_CPP. error

2009-01-07 Thread Utkarsh Ayachit
It sure is:
http://paraview.org/Wiki/Plugin_HowTo#Writing_Plugins

Utkarsh

On Wed, Jan 7, 2009 at 1:39 PM, Jorge Mario Mazo jmm.mecan...@gmail.com wrote:
 just to let you all know!

 that worked, thanks all for the help

 and shouldn't this be on the wiki?



 On Wed, Jan 7, 2009 at 1:26 PM, Utkarsh Ayachit
 utkarsh.ayac...@kitware.com wrote:

 Add the following two lines to your CMakeLists and set the
 ParaView_DIR to point to the  /Users/jmazo/ParaView-3.4.0/Build
 BEGIN=
 FIND_PACKAGE(ParaView REQUIRED)
 INCLUDE(${PARAVIEW_USE_FILE})
 END

 Utkarsh


 On Wed, Jan 7, 2009 at 1:18 PM, Jorge Mario Mazo jmm.mecan...@gmail.com
 wrote:
  Hi there
  I followed you instructions but still did not work
  here is what I did
  1. downloaded paraview-3.4.0.tar.gz, and uncompress it, and got a
  directory
  ParaView-3.4.0
yarumal8:ParaView-3.4.0 jmazo$ pwd
/Users/jmazo/ParaView-3.4.0
  2. Created the directory Build inside ParaView-3.4.0
  in there
  configured, BUILD_SHARED_LIBS=ON, VTK_USE_RPATH=ON, and PYTHON=ON
  build with make -j 8
 
  yarumal8:ParaView-3.4.0 jmazo$ pwd
  /Users/jmazo/ParaView-3.4.0
  yarumal8:ParaView-3.4.0 jmazo$ ls Build/
  ApplicationsDartConfiguration.tclTesting
  CMakeCache.txtDocumentationUtilities
  CMakeFilesMakefileVTK
  CMakeTmpParaView3CompileToolsConfig.cmakebin
  CPackConfig.cmakeParaViewConfig.cmake
  cmake_install.cmake
  CPackSourceConfig.cmakeParaViewLibraryDepends.cmake
  pqClient.adp
  CTestCustom.ctestPluginsvtkPQConfig.h
  CTestTestfile.cmakeQtvtkPVConfig.h
  CommonServers
  yarumal8:ParaView-3.4.0 jmazo$
 
  3. set the varialbes
 
  yarumal8:ParaView-3.4.0 jmazo$ echo $QTDIR
  /Users/jmazo/ParaView-3.4.0/Build
  yarumal8:ParaView-3.4.0 jmazo$ echo $ParaView_DIR
  /Users/jmazo/ParaView-3.4.0
 
  I had to add PACKAGE_FIND(Qt4) becuase I got the QT4_WRAP error
  so here is the CMakeList
 
  yarumal8:Plugins jmazo$ cat GUIToolBar/CMakeLists.txt
  FIND_PACKAGE(Qt4)
 
  # create a plugin that implements an object panel for a source proxy
 
  QT4_WRAP_CPP(MOC_SRCS MyToolBarActions.h)
 
  # we implement a pqConePanel.h for the ConeSource
  ADD_PARAVIEW_ACTION_GROUP(IFACES IFACE_SRCS CLASS_NAME MyToolBarActions
GROUP_NAME ToolBar/MyActions)
 
  # create a plugin for this panel
  ADD_PARAVIEW_PLUGIN(GUIMyToolBar 1.0
  GUI_INTERFACES ${IFACES}
  SOURCES MyToolBarActions.cxx ${MOC_SRCS}
  ${IFACE_SRCS})
 
 
  yarumal8:Plugins jmazo$ cmake GUIToolBar
  -- The C compiler identification is GNU
  -- The CXX compiler identification is GNU
  -- Check for working C compiler: /usr/bin/gcc
  -- Check for working C compiler: /usr/bin/gcc -- works
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working CXX compiler: /usr/bin/c++
  -- Check for working CXX compiler: /usr/bin/c++ -- works
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Looking for Q_WS_X11
  -- Looking for Q_WS_X11 - not found.
  -- Looking for Q_WS_WIN
  -- Looking for Q_WS_WIN - not found.
  -- Looking for Q_WS_QWS
  -- Looking for Q_WS_QWS - not found.
  -- Looking for Q_WS_MAC
  -- Looking for Q_WS_MAC - found
  -- Found Qt-Version 4.3.5
  -- Found OpenSSL: /usr/lib/libssl.dylib
  CMake Error at CMakeLists.txt:8 (ADD_PARAVIEW_ACTION_GROUP):
Unknown CMake command ADD_PARAVIEW_ACTION_GROUP.
 
 
  CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present.  A line of code such as
 
  cmake_minimum_required(VERSION 2.6)
 
should be added at the top of the file.  The version specified may be
  lower
if you wish to support older CMake versions for this project.  For
  more
information run cmake --help-policy CMP.
  This warning is for project developers.  Use -Wno-dev to suppress it.
 
  -- Configuring incomplete, errors occurred!
 
  ###
 
  :(
 
  Still lost
 
  thanks a lot
 
  On Wed, Jan 7, 2009 at 12:02 PM, Michael Jackson
  mike.jack...@bluequartz.net wrote:
 
  Here is what we are saying for ParaView 3.4.0
 
  1: Download the source for PV 3.4.0 from the kitware website.
  2: Uncompress the file, this should create a folder ParaView
  3: cd into ParaView
  4: mkdir Build
  5: cd Build
  6: ccmake ../
   6a: Turn ON SHARED_LIBS
   6b: [c]onfigure
   6c: [g]enerate
  7: make  ( Wait a long time for the build. use the -jx flag for make to
  speed up the compile)
  8: You are done with paraview build. DO NOT install paraview
  anywhere.
 
  Assume this was done in /home/jmazo/paraview/Build
  export QTDIR=/home/jmazo/paraview/Build
 
  Now try to build your plugin. Qt and ParaView specific macros should be
  found

Re: [Paraview] Filter that acts only on selected nodes

2009-01-08 Thread Utkarsh Ayachit
Look at vtkExtractSelection. Similar to that, you'll have to create a
2 input filter whose one input is a vtkSelection with other is the
data object to be selected.

On Thu, Jan 8, 2009 at 9:43 AM, Rafael March rafaelmar...@yahoo.com wrote:
 Hey all,

 I want to program a filter - an algorithm - that acts only on the current
 selected nodes or cells in the screen. How can I get this information from
 the vtkInformationVector** inputVector, which is actually the input of any
 VTK filter ?

 Thanks,
 Rafael March.


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


Re: [Paraview] Csv files and time series

2009-01-14 Thread Utkarsh Ayachit
Francois,

I've just committed a fix to the CVS head to make it possible to read
a file-series of CSV files so that one can animate through them.

Utkarsh

On Wed, Jan 14, 2009 at 5:29 AM, Francois Beaubert
francois.beaub...@univ-valenciennes.fr wrote:
 Hi all,

 I'm able to import some very simple csv file but can't animate them in time.
 Say for example that I have a serie of csv files like this:

 file_1.csv
 file_2.csv
 file_3.csv
 file_4.csv

 When I want to import them Paraview show them as a file series in the
 open-file panel, import is ok but I can't animate them.

 Is animation not supported for those csv files ?

 How can I convert them to vtk file format ?
 I know how to do this for 2d or 3D data set but not for simple 1D DATA ...
 don't find some good info on the last one

 Here is an example of one of my csv file where X is the spatial coordinate,
 C the concentration of a scalar and U the magnitude of a velocity

  X(m),C,U
  0.2000E+01, 0.6948E+01, 0.5703E+01
  0.2101E+01, 0.79500017E+01, 0.5802E+01
  0.2200E+01, 0.8948E+01, 0.5901E+01
  0.2300E+01, 0.9948E+01, 0.6000E+01
  0.2401E+01, 0.10950001E+01, 0.6099E+01
  0.2500E+01, 0.1200E+01, 0.6203E+01
  0.2601E+01, 0.11049998E+01, 0.6302E+01
  0.2700E+01, 0.1005E+01, 0.6401E+01
  0.2800E+01, 0.9052E+01, 0.6500E+01
  0.2901E+01, 0.8042E+01, 0.6599E+01
  0.3000E+01, 0.7052E+01, 0.6703E+01

 Thank you for reading
 Regards

 François


 --
 Ce message a été vérifié par MailScanner
 pour des virus ou des polluriels et rien de
 suspect n'a été trouvé.

 ___
 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] how to control paraview from python

2009-01-15 Thread Utkarsh Ayachit
You cannot make an external python interpretor or pvpython control an
separate paraview process. To be able to affect ParaView GUI through
python you have to use the python shell provided by the GUI.

Utkarsh

On Wed, Jan 14, 2009 at 7:24 PM, Jorge Mario Mazo
jmm.mecan...@gmail.com wrote:
 Hi there

 I have a python script that does a lot of stuff to some vrml files, it
 works perfect if its ran from the paraview python shell,
 but when I run it from outside paraview, the script runs, but it does
 not visualizes anything. I dont how to tell python to use the
 open paraview.
 I also tried to create a server pvserver, connect my script to that
 server and then I opened paraview and connected it to that server

 but I keep getting

 The startup command failed to start ... check your PATH and file permissions

 what should my PATH have?

 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


Re: [Paraview] python scripting - import cvs file

2009-01-15 Thread Utkarsh Ayachit
Where are you typing the python script: the python shell or the
Script parameter for the Programmable Filter/Programmable Source?


On Wed, Jan 14, 2009 at 7:17 PM, Pierre-Olivier Dallaire
pierre-olivier.dalla...@videotron.ca wrote:
 Good evening,
 I'm trying to import a text file in order to superimpose the results with
 some OpenFOAM results.
 I'm using a python script to read the text file; however, the basic script
 provided at
 http://cmake.org/Wiki/Here_are_some_more_examples_of_simple_ParaView_3_python_filters
 fails at pdo = self.GetOutput() :

 Traceback (most recent call last):
   File paraview_cvs.py, line 21, in module
 pdo = self.GetOutput()
 NameError: name 'self' is not defined
 Not sure what is wrong - any idea ?
 Best regards,
 PO

 ___
 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] GUIToolbar in python? or XML to python

2009-01-15 Thread Utkarsh Ayachit
 Hi there is there a way to create a GUIToolbar icon in python

* Not really. Python cannot be used to control/modify the GUI
components per say.

 or is there to write a XML view, that trows the data parameters to a
 python script, instead of c++ classes,
 pretty much like the helix.xml plugin example.

 * Well, in your view plugin, you can create a new vtkSMViewProxy
subclass that passes parameters to an internal python interpretor.
Otherwise however, there's no direct way of doing this.

 btw how can I hide the ...from the helix source plugin!!!

* To hide any property use the show hint as under:

Proxy ...
  ...
  Hints
Property name=Script show=0 /
!-- this will not show the Script property in the GUI --
  /Hints
/Proxy

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


Re: [Paraview] python scripting - import cvs file

2009-01-15 Thread Utkarsh Ayachit
 These scripts are meant to be used at values for the Script paramater
for Programmable Filter or Programmable Source as identified by the
title. These will not directly work from the python shell or pvpython.
Create a Programmable Source from the Sources menu in the ParaView
GUI and try pasting the script in the Script entry box on the
Paramaters panel.

Utkarsh

On Thu, Jan 15, 2009 at 9:44 AM, Pierre-Olivier Dallaire
pierre-olivier.dalla...@videotron.ca wrote:
 python shell, I'm using pvpython script.py


 On 15-Jan-09, at 9:20 AM, Utkarsh Ayachit wrote:

 Where are you typing the python script: the python shell or the
 Script parameter for the Programmable Filter/Programmable Source?


 On Wed, Jan 14, 2009 at 7:17 PM, Pierre-Olivier Dallaire
 pierre-olivier.dalla...@videotron.ca wrote:

 Good evening,
 I'm trying to import a text file in order to superimpose the results with
 some OpenFOAM results.
 I'm using a python script to read the text file; however, the basic
 script
 provided at

 http://cmake.org/Wiki/Here_are_some_more_examples_of_simple_ParaView_3_python_filters
 fails at pdo = self.GetOutput() :

 Traceback (most recent call last):
  File paraview_cvs.py, line 21, in module
   pdo = self.GetOutput()
 NameError: name 'self' is not defined
 Not sure what is wrong - any idea ?
 Best regards,
 PO

 ___
 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] Calling a vtk filter from my custom filter

2009-01-15 Thread Utkarsh Ayachit
You can instantiate the vtkExtractEdges filter and connect it to
shallow copy of your input (don't directly connect the input to avoid
nasty pipleine update issues) and then call Update() on the
vtkExtractEdges to make it execute. Then you can shallow copy
vtkExtractEdges' output to your own or further processes it.


On Thu, Jan 15, 2009 at 10:29 AM, Rafael March rafaelmar...@yahoo.com wrote:
 Hi ParaView Community,

 I'm programming a filter, and I would like to call the vtkExtractEdges
 filter from it. Since my filter acts on vtkPolyData, it extends
 vtkPolyDataAlgorithm.

 The problem is, the requestData() method of all filters are made protected,
 so that only derived classes are able to call it. Hence, I can't see how can
 I call this method from inside the body of my filter's code.

 What's the usual way to do things such this ?

 Thanks in advance,
 Rafael March.


 ___
 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] Changing Representation toolbar

2009-01-16 Thread Utkarsh Ayachit
Jerome,

It's definitely possible using a plugin to create a new toolbar that
acts as both the representation chooser as well as slice selector.
Look at the toolbar plugin example on the Wiki and then look at
pqDisplayRepresentationWidget ( in
Qt/Components/pqDisplayRepresentationWidget.h|cxx) to see the code for
the  current representation toolbar.

pqDisplayRepresentationWidget is indeed the representation toolbar, so
for simply changing the source code, that's the one you should be
looking at.

Utkarsh

On Fri, Jan 16, 2009 at 3:28 AM, Jérôme jerome.ve...@gmail.com wrote:
 Hi,

 I wonder how I can add the slice slider of a slice representation in
 the representation toolbar. First, is it possible within a plugin ? If
 not, I can make changes in ParaView source code, but I didn't find how
 the combo box for the representation is added, so I cannot do the same
 !

 Thanks a lot,

 Jerome
 ___
 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] [vtk-developers] vtkMultiBlockDataSet

2009-01-28 Thread Utkarsh Ayachit
That'd work. But it will copy other information (besides names), if
any was well.
You can explicitly get the value of vtkCompositeDataSet::NAME() key
from the input meta-data and if present copy it to the output.

if (input-GetMetaData(iblock)-Has(vtkCompositeDataSet::NAME()))
  {
  output-GetMetaData(oblock)-GetMetaData()-Set(vtkCompositeDataSet::NAME(),
   input-GetMetaData(iblock)-Get(vtkCompositeDataSet::NAME()));
  }

On Wed, Jan 28, 2009 at 5:12 AM, Jacques Papper jpap...@ara.co.uk wrote:
 Hi,

 This is my frist go at using the vtkMultiBlockDataSet interface.
 I am creating a vtkMultiblockDataSetAlgorithm which has for input a
 vtkMultiBlockDataSet with names for each block (EnSight data).
 I would like my algorithm to output a vtkMultiBlockDataSet which is
 completely different but keeps the names for each block.
 Should I do the following ?

 output-GetMetaData(iblock)-Copy(input-GetMetaData(iblock))
 (loop over iblock)


 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


 ___
 vtk-developers mailing list
 vtk-develop...@vtk.org
 http://www.vtk.org/mailman/listinfo/vtk-developers

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


Re: [Paraview] [paraview] difficulties understanding results of the curvature filter

2009-01-29 Thread Utkarsh Ayachit
Is it possible that the lookup table range is incorrect? Can you edit
color table range to not be as high as 820.

On Thu, Jan 29, 2009 at 5:15 AM, Pierre JUILLARD
pierre.juill...@gmail.com wrote:

 Hi all,

 I have been using the curvature filter in ParaView on a test case.
 Curvature seems indeed computed, but a single blue color is displayed on the
 screen.
 (picture joined)

 I was awaiting something more talkative: red color where the shape is
 curved, blue where it is flat...

 Did I miss a basic step?
 (you can see the pipeline on the screenshot)

 I can send the vtu file as well if that helps.
 (I don't do it because the mail limit size is quite low)

 Thanks in advance for your help!
 Regards,

 Pierre
 ___
 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] Paraview on a tiled display

2009-02-02 Thread Utkarsh Ayachit
I knew I should have looked it up before responding :), I stand corrected.

On Mon, Feb 2, 2009 at 1:00 PM, Moreland, Kenneth kmo...@sandia.gov wrote:
 Sorry, but that's not true at all.  It is in fact encouraged to have more
 processors than tiles when driving a tiled display.  All the processors,
 even the non-display ones, will be involved in the processing and parallel
 rendering work.

 -Ken


 On 1/30/09 11:43 AM, Utkarsh Ayachit utkarsh.ayac...@kitware.com wrote:

 The number of processes must match the number of tiles (num of tiles =
 tdx * tdy). In your case you have 8 processes are only 2*1 = 3 tiles?

 Utkarsh

 On Fri, Jan 30, 2009 at 10:21 AM, Camilo Marin
 igetmyjunkmailh...@gmail.com wrote:
 Hi all,


 We are trying to configure and run Paraview 3.4.0 on a tiled display with
 the following command:

 mpirun -np 8 --mca btl ^openib,udapl --mca btl_tcp_if_exclude lo
 --hostfile
 /home/imagine/ParaView/hosts /bin/env DISPLAY=:0
 ~/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/bin/pvserver
 --server-port=1100 -tdx=1 -tdy=2

 Then when we connect throught the paraview client it doesn't show in the
 two
 displays we requested.

 So, is there a guideline or some kind of command/configuration we are
 missing so it can be displayed as wished?



 Thnaks 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




  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] best way to update a custom reader

2009-02-03 Thread Utkarsh Ayachit
One possibility is to create a custom panel with a timer which
periodically calls RequestInformation() to update the timesteps.

Utkarsh

On Thu, Jan 29, 2009 at 2:25 AM, Dominik Szczerba domi...@itis.ethz.ch wrote:
 Hi,

 What is the best way to update my custom reader?
 I have a complex pipeline and my timesteps are continuously coming in -
 reloading the dataset and rebuilding the settings every time is not very
 funny.
 I CAN do it by calling RequestInformation (where I set the time range etc)
 each time I press 'left' or 'right' on the animation tab, but slows down
 playback, because the function does some extra IO. Maybe a custom filter
 calling RequestInformation of current dataset? Any other ideas?

 Dominik

 --
 Dominik Szczerba, Ph.D.
 Computational Physics Group
 IT'IS Foundation
 http://www.itis.ethz.ch
 ___
 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] How to know the type of a selection ?

2009-02-03 Thread Utkarsh Ayachit
First you'll need to locate the selection source proxy i.e. the proxy
that is producing the vtkSelection. Look at
pqSelectionManager::getIndices to see how to locate the selection
source. The selection source proxy will have a property named
FieldType. That can be used to determine if it's a cell selection or
point selection. Values for this property are:
  Entry value=0 text=CELL /
  Entry value=1 text=POINT /
  Entry value=2 text=FIELD /
  Entry value=3 text=VERTEX /
  Entry value=4 text=EDGE /

Utkarsh

On Tue, Feb 3, 2009 at 8:23 AM, Rafael March rafaelmar...@yahoo.com wrote:
 Hi,

 in programming of a plugin, I can get the ids of selected elements or points
 through pqSelectionManager. I would like to process the selection of cells
 and of points differently. The question is: how to get the type of the
 selection, if it is a point or cell one ? I've been looking at
 pqExtractSelectionsPanel, and it seems it only look at the comboBox
 displayed in the Panel. How can I know this ?

 Thanks all,
 Rafael March.


 ___
 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] Changing default representation for vtkImageData

2009-02-06 Thread Utkarsh Ayachit
Bryn,

It's not possible to change the default representation. However, it's
possible by wiring a plugin to do the same, would that help?

Utkarsh


On Fri, Feb 6, 2009 at 5:08 AM, Bryn Lloyd bll...@vision.ee.ethz.ch wrote:
 Hi,


 Is it possible to change the default representation of a given (existing)
 data type?

 I would like to set the default representation of vtkImageData to slice.

 Thanks
 Bryn



 ___
 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] Losing data when clip multi-block

2009-02-06 Thread Utkarsh Ayachit
Eric,

Does the loss of arrays happen even if you clip the orginal dataset by
itself (without grouping it using the group filter)?

Utkarsh

On Wed, Feb 4, 2009 at 3:53 PM, Eric E. Monson emon...@cs.duke.edu wrote:
 Hello,

 I'm creating a multi-block data set using the group filter and then clipping
 it. The results of the clip are always missing one of the scalars associated
 with the second data set that I highlighted before applying the group
 filter. This only seems to happen if one of the data sets has multiple
 scalars or vectors associated with it -- if they each only have one, nothing
 is lost in the clip. (ParaView 3.4 and CVS, OS X 10.5.6 and Windows XP
 32-bit, no MPI)

 I originally saw this with my own data, but I am able to easily replicate
 this by creating two point sources. I apply the Elevation filter to the
 first. Then, to the second I apply Brownian Vectors, plus a Calculator that
 computes the magnitude of those vectors. If I highlight Elevation and then
 Calculator, then Group and Clip, I lose the vector magnitude scalar at the
 Clip stage. If I highlight the Calculator and then the Elevation, then Group
 and Clip, I lose the elevation scalar.

 Please let me know if anyone has any ideas about where this could be coming
 from.

 Thanks a lot,
 -Eric

 --
 Eric E Monson
 Duke Visualization Technology Group


 ___
 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] Changing default representation for vtkImageData

2009-02-06 Thread Utkarsh Ayachit
Oh no, don't need to add a new representation. You'll create a new
autostart plugin
(http://www.paraview.org/Wiki/Plugin_HowTo#Autostart_Plugins). In this
plugin you'll have to create a new subclass for  pqDisplayPolicy and
then set it on the application core as follows:

pqApplicationCore::instance()-setDisplayPolicy(mypolicy);

In your pqDisplayPolicy subclass you can override the behaviour for
creating representations when a new source is created.

Utkarsh



On Fri, Feb 6, 2009 at 7:52 AM, Bryn Lloyd bll...@vision.ee.ethz.ch wrote:
 Hi Utkarsh

 Thanks for the answer. I had a look at the wikipage (Adding a new
 Representation), but it seemed too complicated for a small issue like this.

 -Bryn











 Utkarsh Ayachit wrote:

 Bryn,

 It's not possible to change the default representation. However, it's
 possible by wiring a plugin to do the same, would that help?

 Utkarsh


 On Fri, Feb 6, 2009 at 5:08 AM, Bryn Lloyd bll...@vision.ee.ethz.ch
 wrote:

 Hi,


 Is it possible to change the default representation of a given (existing)
 data type?

 I would like to set the default representation of vtkImageData to slice.

 Thanks
 Bryn



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




 --
 -
 Bryn Lloyd
 Computer Vision Laboratory
 ETH Zürich, Sternwartstrasse 7
 CH - 8092 Zürich, Switzerland
 Tel: +41 44 63 26668
 Fax: +41 44 63 21199
 -

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


Re: [Paraview] [ParaView3-Developer] Locking (MPI?) problems with ParaView 3.5

2009-02-10 Thread Utkarsh Ayachit
John,

Here's my understanding of what may be happening:
* pvclient has done a gather data information and is waiting to
receive that data
* pvserver0 has received this gather data request is asking all
satellites to gather data
* pvserver1 also received that gather data request but before is
starts processing it, pv1 needs to pass on the message to it's child
i.e process 3 (this is the fancy tree based message communication that
we are now using. So now, instead of the root node sending the message
to all processes one after the other, it uses a tree structure).
* pvserver2 I believe is happily waiting for the next message. It
already processed the gather data request, sent the response to the
root (although root has not processed that response yet) and now is
waiting for  the next request.
* pvserver3 is the rogue. It's stuck in Cancel, hence it won't
receive any messages other send to it. This cancel was not done as a
part of this gather data request but was done at the end of some
previous request. Thus it's not yet able to receive the gather data
request pvserver1 is trying to send, consequently freezing pvserver1.

Of course, this is just one possible explanation. I've attached a
patch. Can you please test if this overcomes the issue. If not, you
may also want to try by connecting the Cancel out all together. That
will at the least help us narrow down the problem.

Utkarsh


On Tue, Feb 10, 2009 at 2:56 AM, John Biddiscombe biddi...@cscs.ch wrote:
 I've been having problems with paraview 3.5 (CVS) since I started working on
 a parallel problem last week (which means it may have existed for some time,
 but I was doing other things).

 How to reproduce the problem
 Start pvserver on 4 (or more) nodes and pvclient on 1
 Create Sources/wavelet
 ParaView hangs indefinitley without showing bounding box of cube.

 Reproducibility : not always (3 out of 4 times - for me). Sometimes paraview
 completes as usual, but shows other hanging symptoms later on.

 ParaView 3.4 does not have this problem.

 Something seems to have changed between 3.4 and 3.5 which is affecting the
 client server delivery of data. It appears to be an MPI related issue. I
 have attached the debugger to all pvserver nodes and the stack traces are
 shown below

 To summarize :
 pvserver 3 : Cancelled a request
 pvserver 2 : waiting in ReceiveDataInternal
 pvserver 1 : still in vtkMPICommunicatorSendDatachar
 pvserver 0 : still in vtkMPICommunicatorSendDatachar
 pvclient : trying to Receive

 It seems that one of the pvserver nodes has given up sending, or has nothing
 to send and the others are waiting without end.

 Notes 1: It took me time to go from one node to the other and attach gdb, so
 if I stopped one task - another might have been affected before it had its
 stack trace dumped. I'm not very expert at gdb.

 Notes 2: ParaView 3.4 seems to work flawlessly. Something is different in
 3.5

 Notes 3: I ran the b_eff_io ( https://fs.hlrs.de/projects/par/mpi//b_eff_io/
 - NB. link unreliable) on 15 nodes and it completed without error and
 without any unusual behaviuor, so my instinct is that our hpmpi is working
 ok.

 Questions :
 1) Has anyone else observed this behaviour?
 2) Has anyone changed anything in the mpi-commmunicator code which might
 have caused this behaviour
 3) It's possible we have a network problem and this is causing the locking,
 but our logs do not show any errors - can we rule this out?
 4) If anyone has answered yes to 1/2, do they know what's wrong and can they
 fix it?

 I welcome help as this is preventing me finishing my current project.

 JB


 Stack trace for pvserver 3
 ==

 #0  0x003dbd4afba9 in sched_yield () from /lib64/tls/libc.so.6
 #1  0x002a9a725a97 in hpmp_yield () from
 /opt/hpmpi/lib/linux_amd64/libmpi.so.1
 #2  0x002a9a71f3b4 in hpmp_adv () from
 /opt/hpmpi/lib/linux_amd64/libmpi.so.1
 #3  0x002a9a757012 in hpmp_waitany () from
 /opt/hpmpi/lib/linux_amd64/libmpi.so.1
 #4  0x002a9a756cf0 in VMPI_Waitany () from
 /opt/hpmpi/lib/linux_amd64/libmpi.so.1
 #5  0x002a9a753a9e in VMPI_Wait () from
 /opt/hpmpi/lib/linux_amd64/libmpi.so.1
 #6  0x002a9a754520 in VMPI_Cancel () from
 /opt/hpmpi/lib/linux_amd64/libmpi.so.1
 #7  0x002a99e27045 in vtkMPICommunicator::Request::Cancel
 (this=0xacf740) at
 /users/biddisco/code/pv-meshless/VTK/Parallel/vtkMPICommunicator.cxx:973
 #8  0x002a95639e36 in vtkPVProgressHandler::CleanupSatellites
 (this=0xae8dd0) at
 /users/biddisco/code/pv-meshless/Servers/Common/vtkPVProgressHandler.cxx:399
 #9  0x002a95639c85 in vtkPVProgressHandler::CleanupPendingProgress
 (this=0xae8dd0) at
 /users/biddisco/code/pv-meshless/Servers/Common/vtkPVProgressHandler.cxx:337
 #10 0x002a956061ce in vtkProcessModule::CleanupPendingProgress
 (this=0x590ee0) at
 /users/biddisco/code/pv-meshless/Servers/Common/vtkProcessModule.cxx:1267
 #11 0x002a965b22f7 in vtkProcessModuleCommand (arlu=0x591d20,
 ob=0x590ee0, 

Re: [Paraview] [ParaView3-Developer] Locking (MPI?) problems with ParaView 3.5

2009-02-10 Thread Utkarsh Ayachit
Sweet. I've committed the patch to CVS.

On Tue, Feb 10, 2009 at 10:45 AM, John Biddiscombe biddi...@cscs.ch wrote:
 Utkarsh

 Looks good. 10 out of 10 successes with the patch applied (using 5 to 10
 pvserver nodes) - I'll try with more later when the rest of the machine is
 free.

 Thanks yet again for your help. If the problem comes back in another flavour
 I'll be sure to let you know.

 JB



 John,

 Here's my understanding of what may be happening:
 * pvclient has done a gather data information and is waiting to
 receive that data
 * pvserver0 has received this gather data request is asking all
 satellites to gather data
 * pvserver1 also received that gather data request but before is
 starts processing it, pv1 needs to pass on the message to it's child
 i.e process 3 (this is the fancy tree based message communication that
 we are now using. So now, instead of the root node sending the message
 to all processes one after the other, it uses a tree structure).
 * pvserver2 I believe is happily waiting for the next message. It
 already processed the gather data request, sent the response to the
 root (although root has not processed that response yet) and now is
 waiting for  the next request.
 * pvserver3 is the rogue. It's stuck in Cancel, hence it won't
 receive any messages other send to it. This cancel was not done as a
 part of this gather data request but was done at the end of some
 previous request. Thus it's not yet able to receive the gather data
 request pvserver1 is trying to send, consequently freezing pvserver1.

 Of course, this is just one possible explanation. I've attached a
 patch. Can you please test if this overcomes the issue. If not, you
 may also want to try by connecting the Cancel out all together. That
 will at the least help us narrow down the problem.

 Utkarsh


 On Tue, Feb 10, 2009 at 2:56 AM, John Biddiscombe biddi...@cscs.ch
 wrote:


 I've been having problems with paraview 3.5 (CVS) since I started working
 on
 a parallel problem last week (which means it may have existed for some
 time,
 but I was doing other things).

 How to reproduce the problem
 Start pvserver on 4 (or more) nodes and pvclient on 1
 Create Sources/wavelet
 ParaView hangs indefinitley without showing bounding box of cube.

 Reproducibility : not always (3 out of 4 times - for me). Sometimes
 paraview
 completes as usual, but shows other hanging symptoms later on.

 ParaView 3.4 does not have this problem.

 Something seems to have changed between 3.4 and 3.5 which is affecting
 the
 client server delivery of data. It appears to be an MPI related issue. I
 have attached the debugger to all pvserver nodes and the stack traces are
 shown below

 To summarize :
 pvserver 3 : Cancelled a request
 pvserver 2 : waiting in ReceiveDataInternal
 pvserver 1 : still in vtkMPICommunicatorSendDatachar
 pvserver 0 : still in vtkMPICommunicatorSendDatachar
 pvclient : trying to Receive

 It seems that one of the pvserver nodes has given up sending, or has
 nothing
 to send and the others are waiting without end.

 Notes 1: It took me time to go from one node to the other and attach gdb,
 so
 if I stopped one task - another might have been affected before it had
 its
 stack trace dumped. I'm not very expert at gdb.

 Notes 2: ParaView 3.4 seems to work flawlessly. Something is different in
 3.5

 Notes 3: I ran the b_eff_io (
 https://fs.hlrs.de/projects/par/mpi//b_eff_io/
 - NB. link unreliable) on 15 nodes and it completed without error and
 without any unusual behaviuor, so my instinct is that our hpmpi is
 working
 ok.

 Questions :
 1) Has anyone else observed this behaviour?
 2) Has anyone changed anything in the mpi-commmunicator code which might
 have caused this behaviour
 3) It's possible we have a network problem and this is causing the
 locking,
 but our logs do not show any errors - can we rule this out?
 4) If anyone has answered yes to 1/2, do they know what's wrong and can
 they
 fix it?

 I welcome help as this is preventing me finishing my current project.

 JB


 Stack trace for pvserver 3
 ==

 #0  0x003dbd4afba9 in sched_yield () from /lib64/tls/libc.so.6
 #1  0x002a9a725a97 in hpmp_yield () from
 /opt/hpmpi/lib/linux_amd64/libmpi.so.1
 #2  0x002a9a71f3b4 in hpmp_adv () from
 /opt/hpmpi/lib/linux_amd64/libmpi.so.1
 #3  0x002a9a757012 in hpmp_waitany () from
 /opt/hpmpi/lib/linux_amd64/libmpi.so.1
 #4  0x002a9a756cf0 in VMPI_Waitany () from
 /opt/hpmpi/lib/linux_amd64/libmpi.so.1
 #5  0x002a9a753a9e in VMPI_Wait () from
 /opt/hpmpi/lib/linux_amd64/libmpi.so.1
 #6  0x002a9a754520 in VMPI_Cancel () from
 /opt/hpmpi/lib/linux_amd64/libmpi.so.1
 #7  0x002a99e27045 in vtkMPICommunicator::Request::Cancel
 (this=0xacf740) at
 /users/biddisco/code/pv-meshless/VTK/Parallel/vtkMPICommunicator.cxx:973
 #8  0x002a95639e36 in vtkPVProgressHandler::CleanupSatellites
 (this=0xae8dd0) at

 

Re: [Paraview] Browsing server files from plugin

2009-02-11 Thread Utkarsh Ayachit
To get the server:
pqApplicationCore::instance()-getServerManagerModel()-getItemAtIndexpqServer*(0);

Utkarsh

On Tue, Feb 10, 2009 at 6:34 PM, Moreland, Kenneth kmo...@sandia.gov wrote:
 I have a plugin that adds toolbar actions.  From one of these actions I want
 to be able to open a dialog box to browse files on the server.  From within
 the plugin action, how do I get the active pqServer to point to the right
 connection?

 As an added bonus, how do I get a reference to the main window so that the
 dialog boxes have an appropriate parent?

 -Ken

  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] Why is PKdTree used for IMAGE Volume Rendering?

2009-02-12 Thread Utkarsh Ayachit
Do you have any unstructured data being rendering in  the scene?
KdTree is used to distribute that unstructured data in accordance with
the partitions provided by the structured data.

Utkarsh

On Thu, Feb 12, 2009 at 2:09 PM, Kevin H. Hobbs hob...@ohiou.edu wrote:
 I just tried to use ParaView from Tuesday's CVS (The network was down
 last night.) on both CPU cores to volume render a large (1/4 the size of
 available RAM) image.

 As soon as I selected volume render for the representation I saw the
 status bar show PKdTree and moments later all of the system memory was
 consumed and the system started swapping.

 I had to kill paraview and the pvserver processes from the console to
 end the swap-death.

 I reran paraview with only one CPU core and proceeded as normal.

 My question is: why is PKdTree needed at all for image data?

 For unstructured data it of course makes sense but for image data it
 just wastes a lot of RAM.

 I haven't tried parallel image volume rendering in a while so I don't
 know when this showed up.


 ___
 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] Why is PKdTree used for IMAGE Volume Rendering?

2009-02-12 Thread Utkarsh Ayachit
Kevin,

The KdTree is still built (using the partitions from the structured
dataset set itself -- hence isn't a very compute intensive task) just
in case it's needed to partition any unstructured data, hence you're
seeing the PKdTree progress. But I don't think that's where it is
hanging. Is the progress bar saying PKtree:100 ? It may actually have
frozen in the volume rendering code. Is it possible to attach a
debugger to any of the server processes and see where it's stuck
(provide the stack trace if possible)?

Utkarsh

On Thu, Feb 12, 2009 at 2:37 PM, Kevin H. Hobbs hob...@ohiou.edu wrote:
 On Thu, 2009-02-12 at 14:26 -0500, Utkarsh Ayachit wrote:
 Do you have any unstructured data being rendering in  the scene?

 No, just one big .vti image.

___
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] Why is PKdTree used for IMAGE Volume Rendering?

2009-02-12 Thread Utkarsh Ayachit
Ah and there's the bad news.
In case of image data for the if condition at vtkPKdTree.cxx:435,
I'd expect the condition to succeed and go to
this-ProcessUserDefinedCuts(..) however, it seems like that condition
is failing and it's going to this-MultiProcessBuildLocator(..) which
is used for unstructured datasets.

Are you able to reproduce the behavior with a simpler dataset (say
wavelet) or something that;s already in ParaViewData, or some dataset
that I can try it with? Also give me all the steps to reproduce the
problem (since I am not able to reproduce it with 5 procs using
Wavelet source).

Utkarsh


On Thu, Feb 12, 2009 at 3:24 PM, Kevin H. Hobbs hob...@ohiou.edu wrote:
 On Thu, 2009-02-12 at 14:56 -0500, Utkarsh Ayachit wrote:
 Kevin,

 The KdTree is still built (using the partitions from the structured
 dataset set itself -- hence isn't a very compute intensive task) just
 in case it's needed to partition any unstructured data, hence you're
 seeing the PKdTree progress. But I don't think that's where it is
 hanging. Is the progress bar saying PKtree:100 ?

 No, it only made it to 58

  It may actually have
 frozen in the volume rendering code. Is it possible to attach a
 debugger to any of the server processes and see where it's stuck
 (provide the stack trace if possible)?

 Paraview stops completely as soon as I attach but here is the first bt
 before it really hung up:

 (gdb) bt
 #0  vtkDataArrayTemplatedouble::DataChanged (this=0x2e89fa0)
at /home/kevin/kitware/ParaView3/VTK/Common/vtkDataArrayTemplate.txx:1202
 #1  0x7f035a9cc221 in vtkPoints::SetPoint () at 
 /home/kevin/kitware/ParaView3/VTK/Common/vtkPoints.h:126
 #2  vtkImageData::GetCell (this=0x2e897d0, cellId=48799904)
at /home/kevin/kitware/ParaView3/VTK/Filtering/vtkImageData.cxx:392
 #3  0x7f035aa00bed in vtkKdTree::ComputeCellCenters (this=0x28853d0, 
 set=0x0)
at /home/kevin/kitware/ParaView3/VTK/Filtering/vtkKdTree.cxx:677
 #4  0x7f035eee71eb in vtkPKdTree::MultiProcessBuildLocator 
 (this=0x28853d0, volBounds=0x2e91140)
at /home/kevin/kitware/ParaView3/VTK/Parallel/vtkPKdTree.cxx:498
 #5  0x7f035eee7683 in vtkPKdTree::BuildLocator (this=0x28853d0)
at /home/kevin/kitware/ParaView3/VTK/Parallel/vtkPKdTree.cxx:441
 #6  0x00769725 in vtkKdTreeManager::Update (this=0x2877c50)
at /home/kevin/kitware/ParaView3/Servers/Filters/vtkKdTreeManager.cxx:143
 #7  0x078fc403 in vtkKdTreeManagerCommand (arlu=0x24cfac0, 
 ob=0x2877c50, method=value optimized out,
m...@0x7fff6aeabc10, resultstre...@0x24ceb40)
at 
 /home/kevin/kitware/ParaView3_Build/Servers/Filters/vtkKdTreeManagerClientServer.cxx:123
 #8  0x7f035f40e36f in vtkClientServerInterpreter::ProcessCommandInvoke 
 (this=0x24cfac0, c...@0x7fff6aeac080,
midx=0) at 
 /home/kevin/kitware/ParaView3/Utilities/VTKClientServer/vtkClientServerInterpreter.cxx:384
 #9  0x7f035f41058e in vtkClientServerInterpreter::ProcessOneMessage 
 (this=0x24cfac0, c...@0x7fff6aeac080,
message=0) at 
 /home/kevin/kitware/ParaView3/Utilities/VTKClientServer/vtkClientServerInterpreter.cxx:214
 #10 0x7f035f4107fd in vtkClientServerInterpreter::ProcessStream 
 (this=0x24cfac0, c...@0x7fff6aeac080)
at 
 /home/kevin/kitware/ParaView3/Utilities/VTKClientServer/vtkClientServerInterpreter.cxx:183
 #11 0x001ae220 in vtkSelfConnection::ProcessStreamLocally 
 (this=value optimized out,
stre...@0x7fff6aeac080) at 
 /home/kevin/kitware/ParaView3/Servers/Common/vtkSelfConnection.cxx:120
 #12 0x0015e7ca in 
 vtkMPISelfConnection::SendStreamToServerNodeInternal (this=0x2985a40, 
 remoteId=-1,
stre...@0x7fff6aeac080) at 
 /home/kevin/kitware/ParaView3/Servers/Common/vtkMPISelfConnection.cxx:246
 #13 0x0015dc25 in vtkMPISelfConnection::SendStreamToDataServer 
 (this=0x2e89fa0,
stream=value optimized out) at 
 /home/kevin/kitware/ParaView3/Servers/Common/vtkMPISelfConnection.cxx:215
 ---Type return to continue, or q return to quit---
 #14 0x0015fb87 in vtkProcessModuleConnection::SendStream 
 (this=0x2985a40, servers=value optimized out,
stre...@0x7fff6aeac080) at 
 /home/kevin/kitware/ParaView3/Servers/Common/vtkProcessModuleConnection.cxx:225
 #15 0x001629a9 in vtkProcessModuleConnectionManager::SendStream 
 (this=value optimized out,
connectionID=value optimized out, serverFlags=1, stre...@0x7fff6aeac080, 
 reset=1)
at 
 /home/kevin/kitware/ParaView3/Servers/Common/vtkProcessModuleConnectionManager.cxx:536
 #16 0x0016a3ca in vtkProcessModule::SendStream (this=0x24d14c0, 
 connectionID=1, server=1,
stre...@0x7fff6aeac080, resetStream=1) at 
 /home/kevin/kitware/ParaView3/Servers/Common/vtkProcessModule.cxx:870
 #17 0x0015ae85 in vtkClientConnectionRMI (remoteArg=0x2f1c3c0, 
 remoteArgLength=value optimized out)
at /home/kevin/kitware/ParaView3/Servers/Common/vtkClientConnection.cxx:57
 #18 0x7f035eebef2d in vtkMultiProcessController::ProcessRMI

Re: [Paraview] Why is PKdTree used for IMAGE Volume Rendering?

2009-02-12 Thread Utkarsh Ayachit
Kevin,

Attached is a patch. Can you verify that it works after applying the
patch? If so, I'll commit it to CVS.

Thanks
Utkarsh

On Thu, Feb 12, 2009 at 4:45 PM, Kevin H. Hobbs hob...@ohiou.edu wrote:
 On Thu, 2009-02-12 at 15:34 -0500, Utkarsh Ayachit wrote:
 Ah and there's the bad news.
 In case of image data for the if condition at vtkPKdTree.cxx:435,
 I'd expect the condition to succeed and go to
 this-ProcessUserDefinedCuts(..) however, it seems like that condition
 is failing and it's going to this-MultiProcessBuildLocator(..) which
 is used for unstructured datasets.

 Are you able to reproduce the behavior with a simpler dataset (say
 wavelet) or something that;s already in ParaViewData, or some dataset
 that I can try it with?

 Yes, I was able to reproduce the problem with the wavelet source data.
 and I got a new datum as well.

 It seems I have to load the large image from a .vti file for the error
 to occur.

 The error does not occur when I create a large image in parallel with
 the wavelet source.

  Also give me all the steps to reproduce the
 problem (since I am not able to reproduce it with 5 procs using
 Wavelet source).

 Utkarsh

 In paraview connected to the builtin server I created a wavelet source
 with extents 0 1958 0 1498 0 77 to match my file.

 I then saved that to a vti file.

 I then restarted paraview and started a 2 core server that the dialog
 runs with

mpirun -np 2 \
/home/kevin/kitware/ParaView3_Build/bin/pvserver \
--use-offscreen-rendering

 I loaded the image then selected volume rendering for the
 representation.

 Then BLAMO swap-death.



Index: Servers/Filters/vtkKdTreeManager.cxx
===
RCS file: /cvsroot/ParaView3/ParaView3/Servers/Filters/vtkKdTreeManager.cxx,v
retrieving revision 1.7
diff -u -3 -p -r1.7 vtkKdTreeManager.cxx
--- Servers/Filters/vtkKdTreeManager.cxx	24 Nov 2008 14:32:41 -	1.7
+++ Servers/Filters/vtkKdTreeManager.cxx	12 Feb 2009 22:24:40 -
@@ -24,6 +24,7 @@
 #include vtkPoints.h
 #include vtkPVUpdateSuppressor.h
 #include vtkSmartPointer.h
+#include vtkSphereSource.h
 #include vtkUnstructuredGrid.h
 
 #define VTK_CREATE(type, name) \
@@ -38,7 +39,6 @@ class vtkKdTreeManager::vtkAlgorithmSet 
 vtkStandardNewMacro(vtkKdTreeManager);
 vtkCxxRevisionMacro(vtkKdTreeManager, $Revision: 1.7 $);
 vtkCxxSetObjectMacro(vtkKdTreeManager, StructuredProducer, vtkAlgorithm);
-vtkCxxSetObjectMacro(vtkKdTreeManager, KdTree, vtkPKdTree);
 //
 vtkKdTreeManager::vtkKdTreeManager()
 {
@@ -46,6 +46,7 @@ vtkKdTreeManager::vtkKdTreeManager()
   this-StructuredProducer = 0;
   this-KdTree = 0;
   this-NumberOfPieces = 1;
+  this-KdTreeInitialized = false;
 }
 
 //
@@ -95,6 +96,16 @@ void vtkKdTreeManager::RemoveAllProducer
 }
 
 //
+void vtkKdTreeManager::SetKdTree(vtkPKdTree* tree)
+{
+  if (this-KdTree != tree)
+{
+vtkSetObjectBodyMacro(KdTree, vtkPKdTree, tree);
+this-KdTreeInitialized = false;
+}
+}
+
+//
 void vtkKdTreeManager::Update()
 {
   vtkAlgorithmSet::iterator iter;
@@ -132,17 +143,26 @@ void vtkKdTreeManager::Update()
 }
 
   this-KdTree-RemoveAllDataSets();
-  for (dsIter = outputs.begin(); dsIter != outputs.end(); ++dsIter)
-{
-this-AddDataSetToKdTree(*dsIter);
-}
-
-  static bool initialized = false;
-  if (!initialized)
+  if (!this-KdTreeInitialized)
 {
+// HACK: This hack fixes the following issue:
+// * create wavelet (num procs = 4)
+// * volume render -- broken!!!
+// * change some wavelet parameter (force the KdTree to rebuild) and all's fine!
+// Seems like something doesn't get initialized correctly, I have no idea
+// what. This seems to overcome the issue.
+vtkSphereSource* sphere = vtkSphereSource::New();
+sphere-Update();
+this-KdTree-AddDataSet(sphere-GetOutput());
+sphere-Delete();
 this-KdTree-BuildLocator();
-initialized = true;
+this-KdTree-RemoveAllDataSets();
+this-KdTreeInitialized = true;
 }
+  for (dsIter = outputs.begin(); dsIter != outputs.end(); ++dsIter)
+{
+this-AddDataSetToKdTree(*dsIter);
+} 
 
   if (this-StructuredProducer)
 {
Index: Servers/Filters/vtkKdTreeManager.h
===
RCS file: /cvsroot/ParaView3/ParaView3/Servers/Filters/vtkKdTreeManager.h,v
retrieving revision 1.2
diff -u -3 -p -r1.2 vtkKdTreeManager.h
--- Servers/Filters/vtkKdTreeManager.h	7 Sep 2007 13:34:15 -	1.2
+++ Servers/Filters/vtkKdTreeManager.h	12 Feb 2009 22:24:40 -
@@ -65,6 +65,7 @@ protected:
 
   void AddDataSetToKdTree(vtkDataSet *data);
 
+  bool

Re: [Paraview] HyperOctree

2009-02-17 Thread Utkarsh Ayachit
There's already a bug http://paraview.org/Bug/view.php?id=5885

Utkarsh

On Tue, Feb 17, 2009 at 8:57 AM, Berk Geveci berk.gev...@kitware.com wrote:
 I fixed the two octree filters. Selection seems to crash due to a bug
 in the octree class and it is probably not that easy to fix. Please
 submit a bug report.

 -berk

 On Mon, Feb 16, 2009 at 11:09 AM, Jean Favre jfa...@cscs.ch wrote:

 I wonder if it is my own built (Linux box), or if something else is
 broken. I cannot do anything useful with the Octree Fractal source. I
 get crashes for most every action I try: selection of cells, or points,
 via the render window, or inside a Spreadsheet view. Octree Depth
 Scalars or Octree Depth Limit both cause a segmentation fault.

 Makes it difficult to debug my own reader since I cannot get the source
 example provided to work.

 Note that all ctest pass, with PV3.4 or PV CVS:

  73/908 Testing TestClipHyperOctree  Passed
  78/908 Testing TestHyperOctreeContourFilter Passed
  79/908 Testing TestHyperOctreeCutterPassed
  80/908 Testing TestHyperOctreeDual  Passed
  81/908 Testing TestHyperOctreeToUniformGrid Passed
 136/908 Testing HyperPython  Passed
 137/908 Testing HyperScalarBarPython Passed
 368/908 Testing TestHyperOctreeIOPassed

 What's the trick?

 Jean--
 Swiss National Supercomputing Center
 ___
 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] Current Pipeline instances.

2009-02-17 Thread Utkarsh Ayachit
QListpqPipelineSource* sources_and_filters =
pqApplicationCore::instance()-getServerManagerModel()-findItemspqPipelineSource*();


Utkarsh

On Tue, Feb 17, 2009 at 10:04 AM, Juan Fernando Duque Lombana
jduqu...@eafit.edu.co wrote:
 Good day,

 I've been looking inside paraview sourcecode and yet I haven't been able to
 find how could I get a list of all the instanced pipelines inside a server,
 any hint on that?

 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] ParaView data

2009-02-18 Thread Utkarsh Ayachit
Yes you can:
cvs -d :pserver:anon...@www.paraview.org:/cvsroot/ParaView3 co ParaViewData

On Wed, Feb 18, 2009 at 6:52 AM, Paul Edwards paul.m.edwa...@gmail.com wrote:
 Can I checkout the paraview data from the CVS?  There is only a link to the
 zipped up data on the website.  I want to get all the tests running on my
 system

 Thanks,
 Paul


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


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-20 Thread Utkarsh Ayachit
In that case simply remove  the command attribute from  the
LockSampleDistanceToInputSpacing property. That way ParaView will
not try to call that method on the vtkOpenGLVolumeTextureMapper3D
class.

Utkarsh

On Fri, Feb 20, 2009 at 2:25 PM, Biao She sheb...@gmail.com wrote:
 Yes, I have. But it doesn't work.

 On Fri, Feb 20, 2009 at 6:56 AM, Utkarsh Ayachit
 utkarsh.ayac...@kitware.com wrote:

 Have you tried just removing the property
 LockSampleDistanceToInputSpacing from the XML?

 Utkarsh

 On Thu, Feb 19, 2009 at 5:26 PM, Biao She sheb...@gmail.com wrote:
  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

Re: [Paraview] Location widgets properties

2009-02-23 Thread Utkarsh Ayachit
Nehme,

There's no easy way to do that. You'll have to use client-server
streams and manipulate the server side representation object directly.

Utkarsh

On Sun, Feb 22, 2009 at 12:33 AM, Nehmé Bilal nehmebi...@gmail.com wrote:
 Hello,

 I have a plugin that use location widgets to manipulate points position.
 To create the widgets, I use vtkSMNewWidgetRepresentationProxy.
 I am able to manipulate the points position correctly, but I would
 like to manipulate some other properties of these widgets specially
 colors.
 Anyone know how can I change the color of vtkSMNewWidgetRepresentationProxy ?

 Thank you
 ___
 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] Handshake failed :: but I'm using exactly the same CVS

2009-02-27 Thread Utkarsh Ayachit
Are you sure you updated with cvs up -dAP i.e. don't have any sticky
tags on one (or both) of the machines? Look at
vtkSocketCommunicator::GetVersion (in
ParaView/VTK/Parallel/vtkSockeCommunicator.cxx) are both reporting the
same version number?

Utkarsh



On Fri, Feb 27, 2009 at 10:16 AM, Ricardo Reis rr...@aero.ist.utl.pt wrote:

  Hi

  I'm getting a Handshake failed message between 2 machines. They are both
 debian, 64 bit. I have also just retrieved the cvs head, compiled in both
 machines. So, everything points they are the same build. But I'm getting
 this error with the You are probably using mismatching version. Has they
 are the same versions, must be some other kind of error no?

  Please advise.

  best regards,

  Ricardo Reis

  'Non Serviam'

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

  

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

  http://www.flickr.com/photos/rreis/
 ___
 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] Handshake failed :: but I'm using exactly the same CVS

2009-02-27 Thread Utkarsh Ayachit
Is that a debug build? Can you attach with a debugger and step into
vtkSocketCommunicator::ClientSideHandshake and
vtkSocketCommunicator::ServerSideHandshake and see where it's failing?
If it's not a debug build, adding couts at every location where
these methods return 0 may help.

Utkarsh

On Fri, Feb 27, 2009 at 4:19 PM, Ricardo Reis rr...@radiozero.pt wrote:
 On Fri, 27 Feb 2009, Utkarsh Ayachit wrote:

 Are you sure you updated with cvs up -dAP i.e. don't have any sticky
 tags on one (or both) of the machines? Look at
 vtkSocketCommunicator::GetVersion (in
 ParaView/VTK/Parallel/vtkSockeCommunicator.cxx) are both reporting the
 same version number?

 I have rm -rf ParaView3 before doing the cvs checkout (in both machines)



  Ricardo Reis

  Non Serviam

  Instigador - Cultural - Instigator

  Rádio Zero :: dilatação auditiva, expansão mental
  http://www.radiozero.pt

  Radio Zero is a founding member of Radia http://www.radia.fm
___
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] animation of two datasets

2009-03-04 Thread Utkarsh Ayachit
I am confused. If you have 2 views open at the same time and try to
save the animation, aren't you getting both the views saved in  the
animation? I just tried saving an animation with two 3D-Views, the
resulting movie does indeed have both the views (attached is a frame
from the movie).

Utkarsh

On Wed, Mar 4, 2009 at 9:06 AM, David E DeMarle
dave.dema...@kitware.com wrote:
 I can thing of a couple of things to try.

 First, show both data sets in the same view, use the transform filter
 or the translation property on the display tab of one data set to
 offset it from the other.
 Second:

 Second, split the view and make one data set visible in one side and
 the other visible in the other. Link the cameras, then save the
 animation. Both views are saved in the image files.

 Third, try the comparative view. Make a 2x1 grid, with one data set in
 the left and the other in the right. Use the animation inspector view
 to animate time. Record the movie, the movie images will contain all
 (both) grids.

 On Wed, Mar 4, 2009 at 12:37 AM, Keith D. Matthews
 ke...@alice.caltech.edu wrote:

 I'd like to make movie comparing two datasets.  I've made a single dataset
 movie by exporting the frames from the 3D View, and then assembling them
 using ffmpeg.

 Is it possible to export each frame from 2 3D Views to a single image?
 Or perhaps there is a better way to go about this.

 Thanks,
 Keith

 ___
 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




 --
 David E DeMarle
 Kitware, Inc.
 RD Engineer
 28 Corporate Drive
 Clifton Park, NY 12065-8662
 Phone: 518-371-3971 x109
 ___
 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

attachment: foo..jpg___
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] Graphical rendering: troubleshooting

2009-03-11 Thread Utkarsh Ayachit
What do you mean by you cannot visualize files? Does the main render
window show up (with center axes and all)? Can you create one of the
sources in the Sources menu and hit Apply, do you see the
visualization correctly?

Utkarsh

On Wed, Mar 11, 2009 at 12:31 PM, Hugo Gagnon
hugo.gagn...@mail.mcgill.ca wrote:
 I just installed Paraview via Fedora 10 repository. The main window opens
 correctly but I cannot visualize input files (in vtk format in my case). Are
 there any other graphical-related packages I should install too? I am using
 a built-in video GMA 950 on a macbook.

 Thanks for any input,

 Hugo.
 ___
 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] Better names for 'representations' ?

2009-03-12 Thread Utkarsh Ayachit
Eric,

The request does seem reasonable. However, with the upcoming changes
to the python API, it will provide better/nicer ways of locating
representations irrespective of their names. So the naming issue would
probably be redundant.

Utkarsh

On Wed, Mar 11, 2009 at 3:12 PM, Eric E. Monson emon...@cs.duke.edu wrote:
 Hello,

 I am wondering whether it would be possible or reasonable to have ParaView
 match the names of proxies in 'sources' and 'representations'?

 When working from Python, it's easy to get a proxy from 'sources' if you
 know its name from the pipeline. The name even changes when you edit it in
 the pipeline. In contrast, 'representations' proxies are named
 'DataRepresentation1', 'DataRepresentation2', etc., and to find the proper
 proxy I always have iterate through the representation proxies and check for
 a match between the proxy from 'sources' and the representation proxy Input.

 Since I don't understand much about all the client/server/proxy stuff, I
 don't know if this is a reasonable request, or if it's difficult for PV to
 do things internally like change the representation name when the source
 name is changed.

 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

___
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] pqLoadFromObjectPanel and implicit_functions

2009-03-12 Thread Utkarsh Ayachit
If your custom panel, put a frame or groupbox or some QWidget that you
want to act as the container for this widget. Then simply create the
pqProxySelectionWidget passing this frame as the parent.
Look at pqNamedWidgets.cxx and search for pqSMAdaptor::PROXYSELECTION
to see how this pqProxySelectionWidget is created/used etc.

Utkarsh

On Thu, Mar 12, 2009 at 9:25 AM, Nehme Bilal nehmebi...@gmail.com wrote:
 Hi,

 If I use an implicit_functions in a plugin, like Box, Plane or Sphere,
 it will provides it's own gui and add it to the existing gui of the
 plugin. But if I use a Qt designer gui, I can't access the gui of the
 implicit_functions and the 3D widgets will not show up in the 3D view
 !
 Is there a way to solve this problem ? ( I know that I can use
 pqAutoGeneratedObjectPanel but it will take me long time to reproduce
 my current custom panel )
 To use the implicit implicit_functions I added this code to my xml file:

      ProxyProperty name=CutFunction command=SetCutFunction
         label=Slice Type
        ProxyGroupDomain name=groups
          Group name=implicit_functions/
        /ProxyGroupDomain
           ProxyListDomain name=proxy_list
              Proxy group=implicit_functions name=Plane /
              Proxy group=implicit_functions name=Box /
              Proxy group=implicit_functions name=Sphere /
              Proxy group=implicit_functions name=Scalar /
           /ProxyListDomain
        Documentation
          This property sets the parameters of the slice function.
        /Documentation
      /ProxyProperty

 I am not sure also if this is the proper way of using
 implicit_functions. ( The plan widget never show up in the 3D view ! )

 Thank you,
 Nehme
 ___
 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] Feature request

2009-03-12 Thread Utkarsh Ayachit
Here's the link: http://paraview.org/Bug/


On Thu, Mar 12, 2009 at 9:40 AM, Renato Elias rnel...@gmail.com wrote:
 Just a suggestion: It would be great have the pipeline objects grouped when
 we have multiple views. Sometimes, when the pipeline is large, it's hard to
 find what object is in each view just looking for the visibility icon (that
 small eye).

 Cheers

 Renato.

 p.s.: I forgot the link to the bug/feature request system

 ___
 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] Graphical rendering: troubleshooting

2009-03-12 Thread Utkarsh Ayachit
Do other OpenGL based applications work? Try updating your graphics drivers.

Utkarsh

On Thu, Mar 12, 2009 at 11:31 AM, Hugo Gagnon
hugo.gagn...@mail.mcgill.ca wrote:
 Does the main render window show up (with center axes and all)?: It shows up, 
 but I can't see the center axes and all.

 Can you create one of the sources in the Sources menu and hit Apply?: No, 
 nothing appears.

 Do you see the visualization correctly?: No.

 Hugo.
 
 From: Utkarsh Ayachit [utkarsh.ayac...@kitware.com]
 Sent: Wednesday, March 11, 2009 2:02 PM
 To: Hugo Gagnon
 Cc: paraview@paraview.org
 Subject: Re: [Paraview] Graphical rendering: troubleshooting

 What do you mean by you cannot visualize files? Does the main render
 window show up (with center axes and all)? Can you create one of the
 sources in the Sources menu and hit Apply, do you see the
 visualization correctly?

 Utkarsh

 On Wed, Mar 11, 2009 at 12:31 PM, Hugo Gagnon
 hugo.gagn...@mail.mcgill.ca wrote:
 I just installed Paraview via Fedora 10 repository. The main window opens
 correctly but I cannot visualize input files (in vtk format in my case). Are
 there any other graphical-related packages I should install too? I am using
 a built-in video GMA 950 on a macbook.

 Thanks for any input,

 Hugo.
 ___
 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] Creating Animation in Paraview by Python scripting

2009-03-13 Thread Utkarsh Ayachit
Rouzbeh,

I've attached an example script showing how to create a camera
animation. This example simply orbits the camera about the focal
point.

Utkarsh

On Tue, Mar 10, 2009 at 12:30 PM, Rouzbeh Maani rma...@win.trlabs.ca wrote:
 Hello everybody

 I want to create an animation by Python scripting. I would like to set the
 position of camera in each frame(e.g. in the animation I want the camera
 to rotate around the object), but I could not find any example in which
 the position of the camera can be set in each frame.
 I would appreciate if anybody could help me.

 best regards

 Rouzbeh

 ___
 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

from paraview.servermanager import *

# Initialization to set up some visualization
if not ActiveConnection:
Connect()
cylinder = sources.CylinderSource()
view = CreateRenderView()
repr = CreateRepresentation(cylinder, view)
view.ResetCamera()

# Create an animation scene
scene = animation.AnimationScene()
# Add the view to the scene
scene.ViewModules = [view]
# Set the number of frame in one loop.
scene.NumberOfFrames = 1000

# Create an animation cue for the camera. This represents the track shown in
# the Animation View.
cue = animation.CameraAnimationCue()
cue.AnimatedProxy = view

# Add this cue to the scene.
scene.Cues = [cue]

# Now create keyframes. Let's say we are going to orbit around the object.
camera = view.GetActiveCamera()
num_of_keyframes = 10
for i in range(0, num_of_keyframes):
camera.Azimuth(360.0/num_of_keyframes)
keyframe = animation.CameraKeyFrame()
# set the value of the key frame to the current camera location.
keyframe.KeyTime = i*1.0/num_of_keyframes
keyframe.Position = camera.GetPosition()
keyframe.FocalPoint = camera.GetFocalPoint()
keyframe.ViewUp = camera.GetViewUp()
keyframe.ViewAngle = camera.GetViewAngle()
cue.KeyFrames.append(keyframe)

# Play the animation
scene.Play()
___
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] Graphical rendering: troubleshooting

2009-03-14 Thread Utkarsh Ayachit
Another solution may be to download/install Mesa
(http://www.mesa3d.org/) and then set your LD_LIBRARY_PATH to the mesa
libraries before starting ParaView. That way you'll be doing software
rendering without having to deal with the driver issues.

Utkarsh

On Sat, Mar 14, 2009 at 7:48 AM, Berk Geveci berk.gev...@kitware.com wrote:
 You seem to have OpenGL. However, the fact that glxgears is not
 showing anything either is making me think that you OpenGL drivers are
 not working properly. I don't have a lot of experience on Linux OpenGL
 drivers, other than nVidia ones. Unless someone else here has an
 answer, you will have to go to a Linux/X11/OpenGL related mailing
 list. You can also try updating your Linux distribution or installing
 another one...

 -berk

 On Sat, Mar 14, 2009 at 6:24 AM, Hugo Gagnon
 hugo.gagn...@mail.mcgill.ca wrote:
 See below for xdpyinfo's output. I do have glxgears installed, but I don't 
 see any gears, just a black screen.

 Hugo.

 [hugoch...@flash ~]$ xdpyinfo
 name of display:    :0.0
 version number:    11.0
 vendor string:    The X.Org Foundation
 vendor release number:    10503000
 X.Org version: 1.5.3
 maximum request size:  16777212 bytes
 motion buffer size:  256
 bitmap unit, bit order, padding:    32, LSBFirst, 32
 image byte order:    LSBFirst
 number of supported pixmap formats:    7
 supported pixmap formats:
    depth 1, bits_per_pixel 1, scanline_pad 32
    depth 4, bits_per_pixel 8, scanline_pad 32
    depth 8, bits_per_pixel 8, scanline_pad 32
    depth 15, bits_per_pixel 16, scanline_pad 32
    depth 16, bits_per_pixel 16, scanline_pad 32
    depth 24, bits_per_pixel 32, scanline_pad 32
    depth 32, bits_per_pixel 32, scanline_pad 32
 keycode range:    minimum 8, maximum 255
 focus:  window 0x3e8, revert to Parent
 number of extensions:    28
    BIG-REQUESTS
    Composite
    DAMAGE
    DOUBLE-BUFFER
    DPMS
    Extended-Visual-Information
    GLX
    MIT-SCREEN-SAVER
    MIT-SHM
    MIT-SUNDRY-NONSTANDARD
    RANDR
    RENDER
    SGI-GLX
    SHAPE
    SYNC
    TOG-CUP
    X-Resource
    XC-MISC
    XFIXES
    XFree86-DGA
    XFree86-DRI
    XFree86-Misc
    XFree86-VidModeExtension
    XINERAMA
    XInputExtension
    XKEYBOARD
    XTEST
    XVideo
 default screen number:    0
 number of screens:    1

 screen #0:
  dimensions:    1280x800 pixels (286x179 millimeters)
  resolution:    114x114 dots per inch
  depths (7):    24, 1, 4, 8, 15, 16, 32
  root window id:    0x7c
  depth of root window:    24 planes
  number of colormaps:    minimum 1, maximum 1
  default colormap:    0x20
  default number of colormap cells:    256
  preallocated pixels:    black 0, white 16777215
  options:    backing-store NO, save-unders NO
  largest cursor:    64x64
  current input event mask:    0xfac033
    KeyPressMask             KeyReleaseMask           EnterWindowMask
    LeaveWindowMask          KeymapStateMask          ExposureMask
    StructureNotifyMask      SubstructureNotifyMask   SubstructureRedirectMask
    FocusChangeMask          PropertyChangeMask       ColormapChangeMask
  number of visuals:    3
  default visual id:  0x21
  visual:
    visual id:    0x21
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff, 0xff00, 0xff
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x22
    class:    DirectColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff, 0xff00, 0xff
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x56
    class:    TrueColor
    depth:    32 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff, 0xff00, 0xff
    significant bits in color specification:    8 bits

 
 From: Berk Geveci [berk.gev...@kitware.com]
 Sent: Friday, March 13, 2009 8:41 PM
 To: Hugo Gagnon
 Cc: Utkarsh Ayachit; paraview@paraview.org
 Subject: Re: [Paraview] Graphical rendering: troubleshooting

 What does the output of xdpyinfo look like? Is there a glxgears
 installed on your system by any chance?

 -berk

 On Thu, Mar 12, 2009 at 7:00 PM, Hugo Gagnon
 hugo.gagn...@mail.mcgill.ca wrote:
 As a matter of fact I believe this is the only OpenGL application I happen 
 to have installed. In fact, now that you bring it, how can I check if my 
 graphic card support OpenGL, or if I have it installed on my computer at 
 all? I am using a built-in video GMA 950 on an Intel macbook. I have no 
 idea how to update graphics drivers too. By now you probably figured out 
 that I have limited Linux knowledge, therefore can you please provide me 
 with command lines to run?

 Hugo.
 
 From: Utkarsh Ayachit [utkarsh.ayac...@kitware.com]
 Sent: Thursday, March 12, 2009 11:57 AM
 To: Hugo Gagnon
 Cc: paraview@paraview.org
 Subject: Re: [Paraview

Re: [Paraview] Rep plugin example?

2009-03-16 Thread Utkarsh Ayachit
Eric,

Representation plugin needs a redesign/reimplementation before it can
be used easily by the community. Until that happens, we are going to
say that representation plugins are not fully supported.

Utkarsh

On Mon, Mar 16, 2009 at 9:14 AM, Eric E. Monson emon...@cs.duke.edu wrote:
 Hey,

 I'm not sure when it was added, but I just noticed that the Plugin HowTo on
 the wiki now lists  an example Examples/Plugins/Representation under Adding
 a new Representation, but that doesn't show up when up update from CVS. Did
 it get checked in yet (or am I just having a Monday morning brain problem)?

 Thanks,
 -Eric


 ___
 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] Qt4.5...

2009-03-23 Thread Utkarsh Ayachit
Make sure that your environment variable PATH is set to include the
directory containing  the Qt dlls.

2009/3/21 Hom Nath Gharti hng.em...@gmail.com:
 I tried to compile paraview from CVS with qt 4.5. Compilation is just fine.
 But when I run paraview I get the error

  Could not be located in the dynamic link library QtGui4.dll.

 I have only qt 4.5 installed.

 Windows Xp, Visaul studio .NET 2003

 Thanks,
 Hom Nath
 ___
 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] Transform surface independently from axes and boxes

2009-03-25 Thread Utkarsh Ayachit
Hopefully, I understand this correctly now. Just go to the Display
tab. If you scroll lower, you'll see a transformation section. Apply
the scale there. The scale will be applied to both the geometry as
well as the annotation, while the annotation will keep on showing
original data values.

Utkarsh

2009/3/25 blende32 blend...@gmx.net:
 Hi,

 the problem still exists. It seems not possible to scale only for display an
 let the
 annotation (Show cube axes) on unscaled values (the original values), which
 are not transformed. If I use the transform filter I manipulate the real
 data an then
 of course the annotation uses also the transformed values. I only will swage
 the
 surface for the display and screenshots, but the axes annotations should
 show the
 real values. Is this not possible? I use no geometry. The data are
 temperatures in Z,
 height in y and time in X.

 Karl

 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
 From: jerome.ve...@gmail.com
 To: blend...@gmx.net
 Date: 08:31:33, 03.24.2009
 Subject: Re: [Paraview] Transform surface independently from axes and boxes
 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~



 Hi,

I don't know if this possible. Maybe with the calculator : what about if
 you give as point data the original point coordinate, and then apply the
 transform ? PointData should not be modified. This is a brief idea : I even
 don't know how to set the axes to plot the point data instead of the
 geometry...

Good luck !

Jerome


2009/3/24 blende32 blend...@gmx.net


 Thank you for the explanation, but maybe I described the problem not
 exactly.
 I did not want to plot the surface of  the transformed data apart from
  the outline
 and the axes of the original data. I will to get a nonproportional plot.
  The bounds
 of the data are X(0...3000) Y(0...250) Z(20...31) and this should be
  plotted in a cube
 with the same length of each edge with axes labeled of the original
  data. With the
 Transform filter I did many trials but without success.
 
 Karl
 
 
 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
 From: utkarsh.ayac...@kitware.com
 To: blend...@gmx.net
 Date: 14:08:16, 03.23.2009
 Subject: Re: [Paraview] Transform surface independently from axes and
  boxes
 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
 
 
 
 
 
 
 Apply the Transform filter to your data to transform it. However,
  also turn on the visibility of your original data source i.e input to
  the transform filter, switch the representation type to outline and
  then show cube axes etc. on that original data.
 
  Utkarsh
 
  On Sat, Mar 21, 2009 at 5:05 PM, Karl Muster blend...@gmx.net
  wrote:
   Hello,
  
   I'm new in using paraview for visualisation and I need some help
   for scaling or transforming surfaceplots independently from axes and 
   boxes.
   The data about X, Y and Z are from different dimensions, thats why I 
   have to
   transform or scale it, but the axes should show the real values and 
   should
   not also be scaled.
  
   Thank you for help.
   --
   Aufgepasst: Sind Ihre Daten beim Online-Banking auch optimal
   geschützt?
   Jetzt absichern: https://homebanking.gmx.net/?mc=m...@footer.hb
   ___
   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


___
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] Transform surface independently from axes and boxes

2009-03-25 Thread Utkarsh Ayachit
There seems to be a bug, if the transform was applied from the display
tab, the cube-axes should still have been showing the original data
bounds. Please feel free to add a bug report at
www.paraview.org/Bug

Thanks,
Utkarsh

On Wed, Mar 25, 2009 at 7:58 AM, Karl Muster blend...@gmx.net wrote:
 This is the problem, when I use the transformation section on the
 Display tab the scale will be applied to both, the geometry and
 the annotation (with Show cube axes) but I see on the Information
 tab the original values on the Bounds section. And this values should
 be used for the annotation not the transformed values, which are
 used for display. If I want the scale for both I can use the transform filter 
 and manipulate the data directly but that is not what I want.

 Karl

  Original-Nachricht 
 Datum: Wed, 25 Mar 2009 07:25:31 -0400
 Von: Utkarsh Ayachit utkarsh.ayac...@kitware.com
 An: blende32 blend...@gmx.net
 CC: jerome.ve...@gmail.com, paraview@paraview.org
 Betreff: Re: [Paraview] Transform surface independently from axes and boxes

 Hopefully, I understand this correctly now. Just go to the Display
 tab. If you scroll lower, you'll see a transformation section. Apply
 the scale there. The scale will be applied to both the geometry as
 well as the annotation, while the annotation will keep on showing
 original data values.

 Utkarsh

 2009/3/25 blende32 blend...@gmx.net:
  Hi,
 
  the problem still exists. It seems not possible to scale only for
 display an
  let the
  annotation (Show cube axes) on unscaled values (the original values),
 which
  are not transformed. If I use the transform filter I manipulate the real
  data an then
  of course the annotation uses also the transformed values. I only will
 swage
  the
  surface for the display and screenshots, but the axes annotations should
  show the
  real values. Is this not possible? I use no geometry. The data are
  temperatures in Z,
  height in y and time in X.
 
  Karl
 
  ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
  From: jerome.ve...@gmail.com
  To: blend...@gmx.net
  Date: 08:31:33, 03.24.2009
  Subject: Re: [Paraview] Transform surface independently from axes and
 boxes
  ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
 
 
 
  Hi,
 
 I don't know if this possible. Maybe with the calculator : what about
 if
  you give as point data the original point coordinate, and then apply
 the
  transform ? PointData should not be modified. This is a brief idea : I
 even
  don't know how to set the axes to plot the point data instead of the
  geometry...
 
 Good luck !
 
 Jerome
 
 
 2009/3/24 blende32 blend...@gmx.net
 
 
  Thank you for the explanation, but maybe I described the problem not
  exactly.
  I did not want to plot the surface of  the transformed data apart
 from
   the outline
  and the axes of the original data. I will to get a nonproportional
 plot.
   The bounds
  of the data are X(0...3000) Y(0...250) Z(20...31) and this should be
   plotted in a cube
  with the same length of each edge with axes labeled of the original
   data. With the
  Transform filter I did many trials but without success.
  
  Karl
  
  
  ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
  From: utkarsh.ayac...@kitware.com
  To: blend...@gmx.net
  Date: 14:08:16, 03.23.2009
  Subject: Re: [Paraview] Transform surface independently from axes and
   boxes
  ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
  
  
  
  
  
  
  Apply the Transform filter to your data to transform it. However,
   also turn on the visibility of your original data source i.e input
 to
   the transform filter, switch the representation type to outline
 and
   then show cube axes etc. on that original data.
  
   Utkarsh
  
   On Sat, Mar 21, 2009 at 5:05 PM, Karl Muster blend...@gmx.net
   wrote:
Hello,
   
I'm new in using paraview for visualisation and I need some help
for scaling or transforming surfaceplots independently from axes
 and boxes.
The data about X, Y and Z are from different dimensions, thats
 why I have to
transform or scale it, but the axes should show the real values
 and should
not also be scaled.
   
Thank you for help.
--
Aufgepasst: Sind Ihre Daten beim Online-Banking auch optimal
geschützt?
Jetzt absichern: https://homebanking.gmx.net/?mc=m...@footer.hb
___
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

Re: [Paraview] pvpython, pvbatch error loading module?

2009-03-26 Thread Utkarsh Ayachit
Jean,

I've just committed a fix for this issue. Let me know if it does not
work. The new charting representations/views have Qt dependencies.
Those needed to be disabled from the server manager XML as well when
Qt support was not enabled.

/cvsroot/ParaView3/ParaView3/vtkPVConfig.h.in,v  --  vtkPVConfig.h.in
new revision: 1.5; previous revision: 1.4
/cvsroot/ParaView3/ParaView3/Servers/ServerManager/Resources/rendering.xml,v
 --  Servers/ServerManager/Resources/rendering.xml
new revision: 1.336; previous revision: 1.335

Utkarsh


On Thu, Mar 26, 2009 at 6:52 AM, Jean Favre jfa...@cscs.ch wrote:
 CVS users,

 I have PV cvs compiled in full (i.e. PARAVIEW_BUILD_QT_GUI = ON) on one
 cluster. No problem anywhere.

 if I do another compilation (same cluster, same tools, same compiler)
 but with PARAVIEW_BUILD_QT_GUI = OFF, I get these errors. Is the
 representations stuff somehow missing if we compile without GUI?:

 ./bin/pvpython
 Python 2.3.4 (#1, May 26 2007, 19:27:46)
 [GCC 3.4.6 20060404 (Red Hat 3.4.6-8)] on linux2
 Type help, copyright, credits or license for more information.
 from paraview.simple import *
 Traceback (most recent call last):
  File stdin, line 1, in ?
  File /apps-vis/PV/Utilities/VTKPythonWrapping/paraview/simple.py,
 line 19, in ?
    import servermanager
  File
 /apps-vis/PV/Utilities/VTKPythonWrapping/paraview/servermanager.py,
 line 2816, in ?
    _createModules()
  File
 /apps-vis/PV/Utilities/VTKPythonWrapping/paraview/servermanager.py,
 line 2394, in _createModules
    rendering = createModule('representations')
  File
 /apps-vis/PV/Utilities/VTKPythonWrapping/paraview/servermanager.py,
 line 2435, in createModule
    iter = PropertyIterator(proto)
  File
 /apps-vis/PV/Utilities/VTKPythonWrapping/paraview/servermanager.py,
 line 1595, in __init__
    self.SMIterator = aProxy.NewPropertyIterator()
 AttributeError: 'NoneType' object has no attribute 'NewPropertyIterator'

 --
 Jean --
 Swiss National Supercomputing Center
 ___
 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] Multiple views with different timesteps

2009-03-26 Thread Utkarsh Ayachit
Renato,

Currently there's no way to plot different timesteps in different
views directly. An round-about way is to use the Temporal Shift
Scale filter to shift the time for showing data in the second view
such that the same global time maps to different timesteps in
different views.

Utkarsh

2009/3/26 Renato Elias rnel...@gmail.com:

 Is there anyway to plot different time steps when using multiple views?

 I tried to load the dataset twice assigning each dataset loaded to the
 different views but I think that ParaView uses the same time step for all of
 its views.

 Regards

 Renato.

 ___
 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


  1   2   3   4   5   6   7   8   9   10   >