Re: [Paraview] ParaView Plugin .xml how to

2012-06-08 Thread Tuan Ha Tran
: Yumin Yuan To: Tuan Ha Tran Cc: David E DeMarle , paraview-develop...@paraview.org, paraview@paraview.org Sent: Thu, 07 Jun 2012 17:53:02 +0200 (CEST) Subject: Re: [Paraview] ParaView Plugin .xml how to On Thu, Jun 7, 2012 at 11:44 AM, Tuan Ha Tran wrote: > That really helpful your reply. >

Re: [Paraview] Write xml for ParaView Plugin

2012-06-08 Thread Tuan Ha Tran
ssage - From: Sebastien Jourdain To: Tuan Ha Tran Cc: paraview-develop...@paraview.org, paraview@paraview.org Sent: Fri, 08 Jun 2012 15:12:17 +0200 (CEST) Subject: Re: [Paraview] Write xml for ParaView Plugin Hi Tuan, the ParaView UI and those things are two different things. There is no matchi

Re: [Paraview] Write xml for ParaView Plugin

2012-06-08 Thread Tuan Ha Tran
appear in the "Properties" tab, but there is nothing. So, I guess that the property may appear in the "Information tab" (below the Pipeline Brower where we can find "Properties, Display and Information")? Thank you very much indeed. ----- Original Message

Re: [Paraview] Write xml for ParaView Plugin

2012-06-07 Thread Tuan Ha Tran
Seb, It really what I'm looking for. I really appreciate your reply. Thank you very much indeed. I think that could help me a lot with my workings. I'll give you feedbacks asap. Thank you again. - Original Message - From: Sebastien Jourdain To: Tuan H

Re: [Paraview] ParaView Plugin .xml how to

2012-06-07 Thread Tuan Ha Tran
7;s just a simple tab for Adding GUI parameters, so I don't know where is the error comes from. There is nothing "empty" as we analyse the error. - Original Message ----- From: David E DeMarle To: Tuan Ha Tran Cc: paraview-develop...@paraview.org, paraview@paraview.org S

Re: [Paraview] ParaView Plugin .xml how to

2012-06-07 Thread Tuan Ha Tran
your help. - Original Message ----- From: Tuan Ha Tran To: paraview-develop...@paraview.org, paraview@paraview.org Sent: Thu, 07 Jun 2012 16:45:22 +0200 (CEST) Subject: [Paraview] ParaView Plugin .xml how to Hi everybody, I have another question, I hope that you can help me. So

[Paraview] ParaView Plugin .xml how to

2012-06-07 Thread Tuan Ha Tran
Hi everybody, I have another question, I hope that you can help me. So, my class vtkOtsuSphereSource has an attribute name "OpThreshold" of type double. I want to Set it value using ParaView. I followed an tutorial from which I can get my job done by adding some tab in my .xml fil

Re: [Paraview] Function PrintfSelf - Utilisation in ParaView

2012-06-07 Thread Tuan Ha Tran
ou very much again for your help. Tuan Ha - Original Message - From: Utkarsh Ayachit To: Tuan Ha Tran Cc: paraview-develop...@paraview.org, paraview@paraview.org Sent: Thu, 07 Jun 2012 12:36:45 +0200 (CEST) Subject: Re: [Paraview] Function PrintfSelf - Utilisation in ParaView If you'r

[Paraview] Function PrintfSelf - Utilisation in ParaView

2012-06-07 Thread Tuan Ha Tran
Hi everybody, PrintSelf is a function that every vtk Class can have to write out something. I wonder how can we use that class in ParaView, then Python Shell? Do we have to write the .xml Server Manager file to use PrintSelf. And if yes, can anyone tell me how? Thank you very much

Re: [Paraview] Write xml for ParaView Plugin

2012-06-07 Thread Tuan Ha Tran
ank you very much for your kindness. - Original Message - From: Sebastien Jourdain To: Tuan Ha Tran Cc: paraview@paraview.org, paraview-develop...@paraview.org Sent: Thu, 07 Jun 2012 01:28:38 +0200 (CEST) Subject: Re: [Paraview] Write xml for ParaView Plugin You should do that in two ste

[Paraview] Write xml for ParaView Plugin

2012-06-06 Thread Tuan Ha Tran
Hi everybody, I'm writing some .xml ServerManager file for a ParaView Plugin. Our class have a function likes this : double calculate(vtkImagedata* voi) that return a double value calculated from the vtkImageData. I loaded the plugin into Paraview. I use the Python Shell and when I call myReturn

Re: [Paraview] Setter and getter for ParaView Plugin

2012-06-06 Thread Tuan Ha Tran
Thank you very much Seb :) - Original Message - From: Sebastien Jourdain To: Tuan Ha Tran Cc: paraview-develop...@paraview.org, paraview@paraview.org Sent: Wed, 06 Jun 2012 14:08:34 +0200 (CEST) Subject: Re: [Paraview] Setter and getter for ParaView Plugin Hi Tuan, an

Re: [Paraview] Setter and getter for ParaView Plugin

2012-06-06 Thread Tuan Ha Tran
you very much. - Original Message - From: Sebastien Jourdain To: Tuan Ha Tran Cc: paraview-develop...@paraview.org, paraview@paraview.org Sent: Tue, 05 Jun 2012 21:26:37 +0200 (CEST) Subject: Re: [Paraview] Setter and getter for ParaView Plugin You just have to use the a

Re: [Paraview] Setter and getter for ParaView Plugin

2012-06-05 Thread Tuan Ha Tran
look at the one that are defined inside ParaView itself in SRC/ParaViewCode/ServerImplementation/Resources/*.xml Seb On Tue, Jun 5, 2012 at 3:21 PM, Tuan Ha Tran wrote: > Hi everyone, >I want to ask you a question about setter and getter of ParaView Plugin. >As input, we can use t

[Paraview] Setter and getter for ParaView Plugin

2012-06-05 Thread Tuan Ha Tran
Hi everyone, I want to ask you a question about setter and getter of ParaView Plugin. As input, we can use the xml file to link them, using , , etc. So, for the outputs, how can we write the xml file? For exemple, I have a function with "double" as return value. And I want to show th

Re: [Paraview] .vtp file not readable

2012-06-04 Thread Tuan Ha Tran
Yeah, that is exactly what you said. I changed the .vtp into .vtk and that works Thank you. - Original Message - From: David Doria To: Tuan Ha Tran Cc: paraview@paraview.org Sent: Mon, 04 Jun 2012 15:43:55 +0200 (CEST) Subject: Re: [Paraview] .vtp file not readable On Mon, Jun 4, 2012

Re: [Paraview] .vtp file not readable

2012-06-04 Thread Tuan Ha Tran
e file) '- Original Message - From: William Oquendo To: David Doria Cc: Tuan Ha Tran , paraview@paraview.org Sent: Mon, 04 Jun 2012 15:15:18 +0200 (CEST) Subject: Re: [Paraview] .vtp file not readable Maybe this is not the cause, but /myfile.vtp is not a correct path, it should r

[Paraview] .vtp file not readable

2012-06-04 Thread Tuan Ha Tran
Hi everybody, I have a problem in opening a .vtp file. When I opened from ParaView GUI, I managed to open it by choosing "Legacy VTK Files" (but this file is not marked as "vtkImageData" to be used with my filter) But when I used Python Shell and JavaScript Terminal then my .vtp file

[Paraview] Write Paraview Plugin, File .cxx and .h

2012-05-31 Thread Tuan Ha Tran
Hi everyone, I'm searching a way to convert a class (developed by our laboratory) to ParaView plugin. So, they have the vtkOtsuSphereSource.cxx and vtkOtsuSphereSource.h file as in the attachments. With this class, they will be able to calculate the optimal threshold of an vtkImageData

Re: [Paraview] JavaScript API - ParaViewWeb - how to call function

2012-05-15 Thread Tuan Ha Tran
ht 'module' object has no attribute 'MetaFileSeriesReader' I think that the proxy I provided is wrong. but I don't have any idea about how it'll be. Do you have any idea? Thank you in advance - Original Message - From: Sebastien Jourdain To: Tuan Ha Tran Cc

Re: [Paraview] JavaScript API - ParaViewWeb - how to call function

2012-05-15 Thread Tuan Ha Tran
To use vtk we have to add from "paraview import vtk" ? - Original Message - From: Sebastien Jourdain To: Tuan Ha Tran Cc: paraview@paraview.org Sent: Mon, 14 May 2012 15:22:55 +0200 (CEST) Subject: Re: [Paraview] JavaScript API - ParaViewWeb - how to call function For tha

Re: [Paraview] JavaScript API - ParaViewWeb - how to call function

2012-05-15 Thread Tuan Ha Tran
place it into the folder plugins of working-directory. So, in the PWConsole, I suppose to load the plugin so it can be use in PWConsole? I wonder if i'm right. Thank you once more. - Original Message - From: Sebastien Jourdain To: Tuan Ha Tran Cc: paraview@paraview.org Sent: M

[Paraview] JavaScript API - ParaViewWeb - how to call function

2012-05-14 Thread Tuan Ha Tran
Hi everybody, I have a question about the using of JavaScript API in ParaViewWeb. I succeeded in loading a file using OpenDataFile via a plugin. And now I want to apply a filter to my files. When I tried to call, for example ImageThreshold p = paraview(); var reader = plugin.lo

Re: [Paraview] OpenDataFile with ParaViewWeb JavaScript Console

2012-05-14 Thread Tuan Ha Tran
;/your-path/' + file)" the parameter ('nameOfFile.mhd') will be parsed directly to OpenDataFile('/my-path/'+file) and become ('/my-path/nameOfFile.mhd') I wonder if I'm right. Sorry for this question but I just want to be sured. ----- Orig

[Paraview] OpenDataFile with ParaViewWeb JavaScript Console

2012-05-11 Thread Tuan Ha Tran
Hi everybody, I have a question to ask. I use ParaViewWeb JavaScript Console to load an image file to ParaViewWeb, I use the followed code "var reader =paraview.OpenDataFile({filename:"../NameOfFile"});" I tried with the absolute path of my PC (which is normally not the good solution) an