[Paraview] Extension from Plugin-Reader does not apper - QT 4.4 issue?

2008-11-19 Thread Fabian Wein
Hi,

I want to write a Reader for Paraview (I guess a plugin is better than
directly
hacking into the Paraview source).

As I have to base on an vtkUnstructuredGridAlgorithm I cloned the
vtkGAMBITReader
as it was the shortest (Only change of name, no functionality yet).
I follwed the Plugin-HowTO and with the help of the XML files
in the examples section and was able to compile a plugin. The
extension I use is .h5
(but we do not want to use the HDF5 reader but our own stuff).
SYSTEM_HDF5 is disabled.

When I load the Plugin no .h5 extension appears in the file open dialog.

I have several (starters) questions:

* Shall the extension appear there?
* I use OpenSuse 11.0 64bit with QT 4.4 - Paraview compiles nice after
commenting
  the WARNING() in the cmake file.
  - Can this be the reason for the problem?
  - What actually is the QT 4.4 issue? It compiles ...
* When I load a plugin again, is it reloaded?
* Is vtkGAMBITReader a good start? I found no appropriate extension in
file open.

I just started with the mailing list and did not find something
appropriate yet.

Thanks a lot,

Fabian

P.S.: I have no experience with ParaView yet (we have first to read
our data :))
___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] Time tutorial animation uploads

2008-11-19 Thread John Biddiscombe

Burlen Loring wrote:

There is a tutorial on time in PV here:

http://www.vtk.org/Wiki/IEEE_Vis08_ParaView_Tutorial



Please note that I've just uploaded the accompanying animations. they 
are rather large, clocking in almost 200MB (which is why I didn't 
previously put them on the wiki). The upload is still progressing as I 
type this email, so alternative links from my own ftp are here

ftp://ftp.cscs.ch/out/biddisco/IEEE2008/TimeAnimations.zip
(125MB, main animations for ppt)

and
Francis turbine particle tracing example, thanks to VaTech Hydro for the 
large dataset and for permitting the distribution of the video
ftp://ftp.cscs.ch/out/biddisco/cti/CTI-II-Francis-Turbine-Video-small.avi 
(60MB)

The same animation at higher quality encoding is here (250MB)
ftp://ftp.cscs.ch/out/biddisco/cti/CTI-II-Francis-Turbine-Video.avi

I generally use the Xvid codec, so you should have this installed to 
view most of the avi files.


JB

--
John Biddiscombe,email:biddisco @ cscs.ch
http://www.cscs.ch/
CSCS, Swiss National Supercomputing Centre  | Tel:  +41 (91) 610.82.07
Via Cantonale, 6928 Manno, Switzerland  | Fax:  +41 (91) 610.82.82


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


[Paraview] extracting surfaces 3.4.0

2008-11-19 Thread Stephen Wornom
My mesh has rectangular exterior boundaries. Extracting one of them is 
fairly easy.


The problem is that the interior is a cylinder.
1-How do I tell PV that the cylinder boundary is a surface?
2-How do I extract the cylinder surface?
Stephen

--
[EMAIL PROTECTED]
2004 route des lucioles - BP93
Sophia Antipolis
06902 CEDEX

Tel: 04 92 38 50 54
Fax: 04 97 15 53 51

begin:vcard
fn:Stephen Wornom
n:Wornom;Stephen
email;internet:[EMAIL PROTECTED]
tel;work:04 92 38 50 54
x-mozilla-html:TRUE
version:2.1
end:vcard

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


Re: [Paraview] Extension from Plugin-Reader does not apper - QT 4.4 issue?

2008-11-19 Thread Moreland, Kenneth
There are not quite enough details here to say exactly what your problem might 
be.  Rather, I will try to answer your specific questions.

* The extension(s) you specify in the Reader tag of your GUI_RESOURCE_FILES 
(along with the file description) should show up in the file types combo box of 
the open file dialog.  Your extension will be at the bottom.  Repeats are OK 
(with caveats), so the extensions should show up regardless).
* I don't think there is anything wrong with your configuration so long as you 
are building ParaView and the plugin with the same configuration.
* I'm not sure what happens when you reload a plugin.  However, I just 
realized that I accidentally set up one of my reader plugins to be loaded into 
my ParaView twice on startup for about a week now, and it has worked fine.  In 
any case, if your plugin is properly loaded, it will show up in the Manage 
Plugins/Extensions dialog box.  If it is there, there should be no reason to 
need to load it again.
* I'm not familiar with the vtkGAMBITReader or the details of your format, it 
it sounds like a good enough place to start.  In any case, the choice should 
have no impact on whether you see the reader in the plugin show up in ParaView.

-Ken

From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Fabian Wein [EMAIL 
PROTECTED]
Sent: Wednesday, November 19, 2008 1:56 AM
To: paraview@paraview.org
Subject: [Paraview] Extension from Plugin-Reader does not apper - QT 4.4 issue?

Hi,

I want to write a Reader for Paraview (I guess a plugin is better than
directly
hacking into the Paraview source).

As I have to base on an vtkUnstructuredGridAlgorithm I cloned the
vtkGAMBITReader
as it was the shortest (Only change of name, no functionality yet).
I follwed the Plugin-HowTO and with the help of the XML files
in the examples section and was able to compile a plugin. The
extension I use is .h5
(but we do not want to use the HDF5 reader but our own stuff).
SYSTEM_HDF5 is disabled.

When I load the Plugin no .h5 extension appears in the file open dialog.

I have several (starters) questions:

* Shall the extension appear there?
* I use OpenSuse 11.0 64bit with QT 4.4 - Paraview compiles nice after
commenting
  the WARNING() in the cmake file.
  - Can this be the reason for the problem?
  - What actually is the QT 4.4 issue? It compiles ...
* When I load a plugin again, is it reloaded?
* Is vtkGAMBITReader a good start? I found no appropriate extension in
file open.

I just started with the mailing list and did not find something
appropriate yet.

Thanks a lot,

Fabian

P.S.: I have no experience with ParaView yet (we have first to read
our data :))
___
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] vtkSMProxy saving/restoring

2008-11-19 Thread Nehme Bilal

Hello,

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(src0,vtkSMProxy::COPY_PROXY_PROPERTY_VALUES_BY_CLONING);

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

src-Copy(tempProxy0,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


Re: [Paraview] vtkSMProxy saving/restoring

2008-11-19 Thread Nehme Bilal

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


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


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] extracting surfaces 3.4.0

2008-11-19 Thread rnelias


Quoting Stephen Wornom [EMAIL PROTECTED]:

 My mesh has rectangular exterior boundaries. Extracting one of them is
 fairly easy.

 The problem is that the interior is a cylinder.
 1-How do I tell PV that the cylinder boundary is a surface?

Actually, you don't need to do that to extract the interior cylinder (see next
answer)

 2-How do I extract the cylinder surface?

Just combine the extract surfaces and  clip filters.

I hope it helps you.

Renato.

 Stephen

 --
 [EMAIL PROTECTED]
 2004 route des lucioles - BP93
 Sophia Antipolis
 06902 CEDEX

 Tel: 04 92 38 50 54
 Fax: 04 97 15 53 51




___
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 Nehme Bilal


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

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] PVPython where is PiecewiseFunction

2008-11-19 Thread Kevin H. Hobbs
I'm trying to make a ParaView python script to do some volume rendering.

I can load my data, set the representation to volume rendering, and set
the color scale the way I want, but I can't figure out how to set the
opacity.

I found rep.ScalarOpacityFunction, but what do I set it to?

I created a simple ParaView session with a volume rendering. Poking
around there I found that there is a PiecewiseFunction that I think is
created.

How do I make a PiecewiseFunction?


signature.asc
Description: This is a digitally signed message part
___
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 Geoff Draper
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
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] LD_LIBRARY_PATH

2008-11-19 Thread Satheesh Maheswaran
thanks for your help.

I found that if i compile Qt with -release option, and then compile
pv-3.4.0 as normal, I don't need to add qt libs to my LD_LIBRARY_PATH.



2008/11/17 Berk Geveci [EMAIL PROTECTED]:
 CMake strips RPATH during installation. The only way to achieve what
 you want without hacking CMake files is to copy your Qt libraries in
 the same directory as ParaView libraries, something like
 lib/paraview-3.4/

 -berk

 On Wed, Nov 12, 2008 at 4:12 PM, Rakesh Hammond
 [EMAIL PROTECTED] wrote:
 I did as suggested

 If I type paraview in my bin directory without turning on the VTK_USE_RPATH
 flag - it complains that it can't find qt libs.
 As you suggested, if I turn on the RPATH flag then I can run Paraview OK
 from

 /home/rakesh/Downloads/Kitware/ParaView-3.4.0/linux/bin

 when I do make install, my libs are built under
 /home/rakesh/MyLibraries/Kitware/Paraview/3.4.0

 and then go into bin directory and run paraview, I get the following error
  error while loading shared libraries: libpqComponents.so: cannot open
 shared object file: No such file or directory

 Can some one please tell me what I am missing here?  I know I can add the
 LD_LIBRARY_PATH - but for all sorts of reasons and conflicts with other
 system libs,  I would prefer not to take this route.

 Thanks,

 Rakesh

 2008/11/11 Utkarsh Ayachit [EMAIL PROTECTED]

 Set the cmake option VTK_USE_RPATH to ON and then rebuild ParaView.

 Utkarsh

 Dominik Szczerba wrote:

 yes, it is possible, there should be a cmake option, I dont recall
 exactly, something with RPATH in name.

 Dominik

 Rakesh Hammond wrote:

 Dear users,

 Can we some how get around having to specify LD_LIBRARY_PATH for Qt,
 once we have built paraview to get it up and running?
 I remember vaguely being able to use -WI -rpath in make files to do some
 thing similar, is there anyway to specify this within CMake when we build
 Paraview?

 Rakesh


 

 ___
 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




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


[Paraview] vtkGaussianSplatter

2008-11-19 Thread John Vines (CISD/HPCD)

All,
   I have an application which requires the vtkGaussianSplatter 
filter.  I'm assuming I will need to write a plugin for Paraview to add 
this VTK filter, is this correct?


Thanks in advance,

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


Re: [Paraview] vtkGaussianSplatter

2008-11-19 Thread David E DeMarle
Yes, but the plugin in this case consists only of the XML file which
defines the proxy that tells ParaView about the filter.
Write that and then load it with via the plugin manager dialog.

cheers,
Dave

On Wed, Nov 19, 2008 at 3:44 PM, John Vines (CISD/HPCD)
[EMAIL PROTECTED] wrote:
 All,
   I have an application which requires the vtkGaussianSplatter filter.  I'm
 assuming I will need to write a plugin for Paraview to add this VTK filter,
 is this correct?

 Thanks in advance,

 John
 ___
 ParaView mailing list
 ParaView@paraview.org
 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
___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview