<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span>Thank Seb,</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span> I'm sorry if I forget one step. But I have always </span><span style="color: rgb(255, 0, 0); font-family: 'dejavu sans mono', monospace; font-size: 11px; line-height: 12px; white-space: pre-wrap; ">Uncaught TypeError: Object #<Paraview> has no method 'ImageThresholdPFE'</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span style="color: rgb(255, 0, 0); font-family: 'dejavu sans mono', monospace; font-size: 11px; line-height: 12px; white-space: pre-wrap; "> </span><span style="font-size: 12pt; ">I did as follow:</span></div><div
style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span style="font-size: 12pt; "><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span style="font-size: 12pt; ">File ImageThreshold.py </span></div><div><div><span style="color: rgb(0, 0, 127);">import paraview</span></div><div><span style="color: rgb(0, 0, 127);"><br></span></div><div><span style="color: rgb(0, 0, 127);">paraview.simple.LoadPlugin('/home/.../vtkImageThreshold/bin/libImageThresholdSMPlugin.so',False)</span></div><div><span style="color: rgb(0, 0, 127);">paraview.simple.LoadPlugin('/home/.../vtkImageThreshold/bin/libImageThresholdSMPlugin.so',True) </span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">My JavaScript</div><div
style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><div style="color: rgb(0, 255, 0); font-family: monospace; font-size: 13px; line-height: 16px; background-color: rgb(0, 0, 0); ">$ p = paraview; var reader = p.OpenDataFile('/home/.../myfile.mhd');<div></div></div><div style="color: rgb(0, 255, 0); font-family: monospace; font-size: 13px; line-height: 16px; background-color: rgb(0, 0, 0); ">$ p.loadPlugins();<div></div></div><div style="color: rgb(0, 255, 0); font-family: monospace; font-size: 13px; line-height: 16px; background-color: rgb(0, 0, 0); ">$ threshold = p.ImageThresholdPFE({Input:reader, ThresholdRange:[1000,1150]});</div><div style="color: rgb(0, 255, 0); font-family: monospace; font-size: 13px; line-height: 16px; background-color: rgb(0, 0, 0); "><div></div></div><div style="color: rgb(0, 255, 0); font-family: monospace; font-size: 13px; line-height: 16px; background-color: rgb(0, 0, 0); ">$ threshold =
p.ImageThreshold();</div><div style="color: rgb(0, 255, 0); font-family: monospace; font-size: 13px; line-height: 16px; background-color: rgb(0, 0, 0); "><div></div></div><div style="color: rgb(0, 255, 0); font-family: monospace; font-size: 13px; line-height: 16px; background-color: rgb(0, 0, 0); ">$ var threshold = p.ImageThresholdPFE({Input:reader, ThresholdRange:[1000,1150]});</div></div> <div style="font-family: 'times new roman', 'new york', times, serif; "> <div style="font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><font size="2" face="Arial"><br></font></div><div dir="ltr" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <font size="2" face="Arial">All the 3 ways have the same error <span style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; "> </span><span
style="color: rgb(255, 0, 0); font-family: 'dejavu sans mono', monospace; font-size: 11px; line-height: 12px; white-space: pre-wrap; ">Uncaught TypeError: Object #<Paraview> has no method 'ImageThreshold'</span></font></div><div dir="ltr" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><font size="2" face="Arial"><span style="color: rgb(255, 0, 0); font-family: 'dejavu sans mono', monospace; font-size: 11px; line-height: 12px; white-space: pre-wrap; "><br></span></font></div><div dir="ltr" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><font size="2" face="Arial"><span style="color: rgb(255, 0, 0); font-family: 'dejavu sans mono', monospace; font-size: 11px; line-height: 12px; white-space: pre-wrap; "><br></span></font></div><div dir="ltr"><font><span style="color: rgb(255, 0, 0); font-family: 'dejavu sans mono', monospace; font-size: 11px; line-height: 12px; white-space:
pre-wrap;"><span style="color: rgb(0, 0, 0); font-family: Arial; line-height: normal; white-space: normal; font-size: 13px; ">In fact, I used your advice with </span><br></span></font></div><div dir="ltr"><font><span><div dir="ltr"><span style="font-family: Arial; font-size: 13px;">def ImageThreshold(proxy,a,b):</span></div><div dir="ltr"><span style="font-family: Arial; font-size: 13px;"><span class="Apple-tab-span" style="white-space:pre">        </span>servermanager.ActiveConnection.Modules.filters.ImageThreshold(proxy,ThresholdRange=[a,b])</span></div><div dir="ltr"><span style="font-family: Arial; font-size: 13px;"><br></span></div><div dir="ltr"><span style="font-family: Arial; font-size: 13px;">but each time I called</span></div><div dir="ltr"><span style="font-family: Arial; font-size: 13px;"><span style="color: rgb(0, 255, 0); font-family: monospace; line-height: 16px; background-color: rgb(0, 0, 0); ">$ var threshold =
p.ImageThreshold([reader],1000,1150);</span><br></span></div><div dir="ltr"><span style="color: rgb(0, 255, 0); font-family: monospace; font-size: 13px; line-height: 16px;"><span style="color: rgb(0, 0, 0); font-family: Arial; line-height: normal; "> ParaViewWeb planted and I have to use kill - 9 to escape. Do you have any clue?</span><br></span></div><div dir="ltr"><span style="color: rgb(0, 255, 0); font-family: monospace; font-size: 13px; line-height: 16px;"><span style="color: rgb(0, 0, 0); font-family: Arial; line-height: normal; "> Thank you very much Seb</span></span></div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13px; line-height: normal; white-space: normal; "><br></div></span></font></div><div dir="ltr"><font><span style="color: rgb(255, 0, 0); font-family: 'dejavu sans mono', monospace; font-size: 11px; line-height: 12px; white-space: pre-wrap;"><br></span><hr size="1" style="font-family: 'times new roman',
'new york', times, serif; font-size: 12pt; "> <b style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span style="font-weight:bold;">From:</span></b><span style="font-size: 12pt;"> Sebastien Jourdain <sebastien.jourdain@kitware.com></span><br> <b style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span style="font-weight: bold;">To:</span></b><span style="font-size: 12pt;"> Alex <tuanha_it0306@yahoo.com> </span><br><b style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span style="font-weight: bold;">Cc:</span></b><span style="font-size: 12pt;"> "paraview@paraview.org" <paraview@paraview.org> </span><br> <b style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span style="font-weight: bold;">Sent:</span></b><span style="font-size: 12pt;"> Tuesday, June 26, 2012 2:20 PM</span><br> <b style="font-family:
'times new roman', 'new york', times, serif; font-size: 12pt; "><span style="font-weight: bold;">Subject:</span></b><span style="font-size: 12pt;"> Re: [Paraview] ParaViewWeb, vtk filters python description</span><br> </font> </div> <br><span style="font-size: 12pt;">
Please read that:</span><br><br><span style="font-size: 12pt;">http://www.paraview.org/Wiki/ParaViewWeb_Manta_setting</span><br><br><span style="font-size: 12pt;">Then forget Manta and do your own "</span><a target="_blank" href="http://manta-init.py/" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">manta-init.py</a><span style="font-size: 12pt;">" file that will only</span><br><span style="font-size: 12pt;">load your plugin... And that's it... (You can rename the file, just</span><br><span style="font-size: 12pt;">make sure you keep the consistency.)</span><br><br><span style="font-size: 12pt;">Seb</span><br><br><span style="font-size: 12pt;">On Mon, Jun 25, 2012 at 6:52 PM, Alex <</span><a ymailto="mailto:tuanha_it0306@yahoo.com" href="mailto:tuanha_it0306@yahoo.com" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">tuanha_it0306@yahoo.com</a><span style="font-size: 12pt;">>
wrote:</span><br><span style="font-size: 12pt;">> I think that is the problem too (plugin is properly loaded for PWServer).</span><br><span style="font-size: 12pt;">> But .... which initialization script are you talking about? XML or .py?</span><br><span style="font-size: 12pt;">></span><br><span style="font-size: 12pt;">></span><br><span style="font-size: 12pt;">> ________________________________</span><br><span style="font-size: 12pt;">> From: Sebastien Jourdain <</span><a ymailto="mailto:sebastien.jourdain@kitware.com" href="mailto:sebastien.jourdain@kitware.com" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">sebastien.jourdain@kitware.com</a><span style="font-size: 12pt;">></span><br><span style="font-size: 12pt;">> To: Alex <</span><a ymailto="mailto:tuanha_it0306@yahoo.com" href="mailto:tuanha_it0306@yahoo.com" style="font-family: 'times new roman', 'new york', times, serif;
font-size: 12pt; ">tuanha_it0306@yahoo.com</a><span style="font-size: 12pt;">></span><br><span style="font-size: 12pt;">> Cc: "</span><a ymailto="mailto:paraview@paraview.org" href="mailto:paraview@paraview.org" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">paraview@paraview.org</a><span style="font-size: 12pt;">" <</span><a ymailto="mailto:paraview@paraview.org" href="mailto:paraview@paraview.org" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">paraview@paraview.org</a><span style="font-size: 12pt;">></span><br><span style="font-size: 12pt;">> Sent: Tuesday, June 26, 2012 12:48 AM</span><br><span style="font-size: 12pt;">></span><br><span style="font-size: 12pt;">> Subject: Re: [Paraview] ParaViewWeb, vtk filters python description</span><br><span style="font-size: 12pt;">></span><br><span style="font-size: 12pt;">> I don't believe the plugin is
properly loaded for PWServer... Did you</span><br><span style="font-size: 12pt;">> write the proper initialization script ?</span><br><span style="font-size: 12pt;">></span><br><span style="font-size: 12pt;">> On Mon, Jun 25, 2012 at 6:36 PM, Alex <</span><a ymailto="mailto:tuanha_it0306@yahoo.com" href="mailto:tuanha_it0306@yahoo.com" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">tuanha_it0306@yahoo.com</a><span style="font-size: 12pt;">> wrote:</span><br><span style="font-size: 12pt;">>> In fact,</span><br><span style="font-size: 12pt;">>> I call directly MyImageThreshold with</span><br><span style="font-size: 12pt;">>> threshold=paraview.MyImageThreshold({Input:reader, ...}) and I receive</span><br><span style="font-size: 12pt;">>> Uncaught TypeError : Object #<ParaView> has no method 'MyImageThreshold'</span><br><span style="font-size: 12pt;">>>
when I use threshold = paravie.Threshold(....) (origin threshold of</span><br><span style="font-size: 12pt;">>> ParaView) then it works. That why I think that we have to use some kind of</span><br><span style="font-size: 12pt;">>> descriptor?</span><br><span style="font-size: 12pt;">>></span><br><span style="font-size: 12pt;">>> Alex</span><br><span style="font-size: 12pt;">>></span><br><span style="font-size: 12pt;">>> ________________________________</span><br><span style="font-size: 12pt;">>> From: Alex <</span><a ymailto="mailto:tuanha_it0306@yahoo.com" href="mailto:tuanha_it0306@yahoo.com" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">tuanha_it0306@yahoo.com</a><span style="font-size: 12pt;">></span><br><span style="font-size: 12pt;">>> To: Sebastien Jourdain <</span><a ymailto="mailto:sebastien.jourdain@kitware.com"
href="mailto:sebastien.jourdain@kitware.com" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">sebastien.jourdain@kitware.com</a><span style="font-size: 12pt;">></span><br><span style="font-size: 12pt;">>> Cc: "</span><a ymailto="mailto:paraview@paraview.org" href="mailto:paraview@paraview.org" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">paraview@paraview.org</a><span style="font-size: 12pt;">" <</span><a ymailto="mailto:paraview@paraview.org" href="mailto:paraview@paraview.org" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">paraview@paraview.org</a><span style="font-size: 12pt;">></span><br><span style="font-size: 12pt;">>> Sent: Tuesday, June 26, 2012 12:24 AM</span><br><span style="font-size: 12pt;">>></span><br><span style="font-size: 12pt;">>> Subject: Re: [Paraview] ParaViewWeb, vtk filters python
description</span><br><span style="font-size: 12pt;">>></span><br><span style="font-size: 12pt;">>> Thank you Seb,</span><br><span style="font-size: 12pt;">>> You mean the ParaView plugin at startup? Indeed, I copied the dynamique</span><br><span style="font-size: 12pt;">>> library .so in /install/lib/paraview-3.14/plugins and the plugin is loaded</span><br><span style="font-size: 12pt;">>> automatically into ParaView. It is then usable immediately in Python</span><br><span style="font-size: 12pt;">>> Shell.</span><br><span style="font-size: 12pt;">>> However, I doubt that I can use the plugin directly in ParaViewWeb</span><br><span style="font-size: 12pt;">>> without loading it.</span><br><span style="font-size: 12pt;">>> For exemple, I have a MyImageThresholdSMPlugin.so, also the plugin's</span><br><span style="font-size: 12pt;">>> name</span><br><span
style="font-size: 12pt;">>> is MyImageThreshold. I called it sucessfully in Python Shell directly with</span><br><span style="font-size: 12pt;">>> reader2=MyImageThreshold(reader,ThresholdRange=[300,600]); (the values are</span><br><span style="font-size: 12pt;">>> given for exemple).</span><br><span style="font-size: 12pt;">>> In ParaViewWeb, can I use it directly by calling var</span><br><span style="font-size: 12pt;">>> reader2=paraview.MyImageThreshold({Input:reader,</span><br><span style="font-size: 12pt;">>> ThresholdRange:[300,600]});</span><br><span style="font-size: 12pt;">>> ?</span><br><span style="font-size: 12pt;">>> In your previous reply, I have to load a Plugin by LoadPlugin command</span><br><span style="font-size: 12pt;">>> from </span><a target="_blank" href="http://simple.py/" style="font-family: 'times new roman', 'new york', times, serif; font-size:
12pt; ">simple.py</a><span style="font-size: 12pt;">. And then define a function that call the</span><br><span style="font-size: 12pt;">>> servermanager.Activeconnection.Modules.filters.MyImageThreshold(proxy) I</span><br><span style="font-size: 12pt;">>> wonder if they are the same thing? That why I ask if we have to write a</span><br><span style="font-size: 12pt;">>> MyImageThreshold.py so that our plugin is usable in ParaViewWeb.</span><br><span style="font-size: 12pt;">>></span><br><span style="font-size: 12pt;">>> Alex</span><br><span style="font-size: 12pt;">>></span><br><span style="font-size: 12pt;">>> ________________________________</span><br><span style="font-size: 12pt;">>> From: Sebastien Jourdain <</span><a ymailto="mailto:sebastien.jourdain@kitware.com" href="mailto:sebastien.jourdain@kitware.com" style="font-family: 'times new roman', 'new york', times, serif; font-size:
12pt; ">sebastien.jourdain@kitware.com</a><span style="font-size: 12pt;">></span><br><span style="font-size: 12pt;">>> To: Alex <</span><a ymailto="mailto:tuanha_it0306@yahoo.com" href="mailto:tuanha_it0306@yahoo.com" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">tuanha_it0306@yahoo.com</a><span style="font-size: 12pt;">></span><br><span style="font-size: 12pt;">>> Cc: "</span><a ymailto="mailto:paraview@paraview.org" href="mailto:paraview@paraview.org" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">paraview@paraview.org</a><span style="font-size: 12pt;">" <</span><a ymailto="mailto:paraview@paraview.org" href="mailto:paraview@paraview.org" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">paraview@paraview.org</a><span style="font-size: 12pt;">></span><br><span style="font-size: 12pt;">>> Sent: Tuesday, June 26,
2012 12:03 AM</span><br><span style="font-size: 12pt;">>> Subject: Re: [Paraview] ParaViewWeb, vtk filters python description</span><br><span style="font-size: 12pt;">>></span><br><span style="font-size: 12pt;">>> If you managed to load your plugin (the C++ ParaView one) at startup,</span><br><span style="font-size: 12pt;">>> then you will be able to use your filter as any other filter in</span><br><span style="font-size: 12pt;">>> ParaViewWeb without using any ParaViewWeb plugin. Otherwise, the</span><br><span style="font-size: 12pt;">>> python file that you are missing is in fact an XML file that list the</span><br><span style="font-size: 12pt;">>> properties for each filters and sources inside ParaView.</span><br><span style="font-size: 12pt;">>></span><br><span style="font-size: 12pt;">>> PARAVIEW_src/ParaViewCore/ServerImplementation/resources/filter.xml</span><br><span style="font-size:
12pt;">>></span><br><span style="font-size: 12pt;">>> The labels without space are used as filter name and properties for</span><br><span style="font-size: 12pt;">>> creating and controlling those filters...</span><br><span style="font-size: 12pt;">>></span><br><span style="font-size: 12pt;">>> Otherwise inside your ParaViewWeb plugin, you can provide a dictionary</span><br><span style="font-size: 12pt;">>> as argument and just loop through its entry and set them in python.</span><br><span style="font-size: 12pt;">>></span><br><span style="font-size: 12pt;">>> Seb</span><br><span style="font-size: 12pt;">>></span><br><span style="font-size: 12pt;">>> On Mon, Jun 25, 2012 at 5:47 PM, Alex <</span><a ymailto="mailto:tuanha_it0306@yahoo.com" href="mailto:tuanha_it0306@yahoo.com" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">tuanha_it0306@yahoo.com</a><span
style="font-size: 12pt;">> wrote:</span><br><span style="font-size: 12pt;">>>> Hi seb, thank you for your quick reply.</span><br><span style="font-size: 12pt;">>>> I found that I can use vtk Filter like Threshold, Clip, etc. in</span><br><span style="font-size: 12pt;">>>> ParaViewWeb</span><br><span style="font-size: 12pt;">>>> by enter the arguments like I cited in my email. Like threshold =</span><br><span style="font-size: 12pt;">>>> paraview.Threshold({Input:proxy,ThresholdRange:[300,600]}).</span><br><span style="font-size: 12pt;">>>> So I think there are perhaps some files like pwsimple.py that describe</span><br><span style="font-size: 12pt;">>>> how</span><br><span style="font-size: 12pt;">>>> can ParaViewWeb can use a Plugin. I search for all the .py file in</span><br><span style="font-size: 12pt;">>>> ParaView</span><br><span style="font-size:
12pt;">>>> and I can't find something like that.</span><br><span style="font-size: 12pt;">>>> I did succeed in doing a ParaViewWeb plugin.</span><br><span style="font-size: 12pt;">>>> I used your advice to define something as following :</span><br><span style="font-size: 12pt;">>>> def SimpleImageThreshold(proxy)</span><br><span style="font-size: 12pt;">>>></span><br><span style="font-size: 12pt;">>>> servermanager.Activeconnection.Modules.filter.SimpleImageThreshold(proxy)</span><br><span style="font-size: 12pt;">>>></span><br><span style="font-size: 12pt;">>>> Now if I want my plugin to take ThresholdRange=[300,600] as input like</span><br><span style="font-size: 12pt;">>>> the</span><br><span style="font-size: 12pt;">>>> original Threshold of ParaView, is that possible?</span><br><span style="font-size: 12pt;">>>> If yes, how can we define
this?</span><br><span style="font-size: 12pt;">>>> Thank you very much indeed</span><br><span style="font-size: 12pt;">>>></span><br><span style="font-size: 12pt;">>>></span><br><span style="font-size: 12pt;">>>></span><br><span style="font-size: 12pt;">>>> ________________________________</span><br><span style="font-size: 12pt;">>>> From: Sebastien Jourdain <</span><a ymailto="mailto:sebastien.jourdain@kitware.com" href="mailto:sebastien.jourdain@kitware.com" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">sebastien.jourdain@kitware.com</a><span style="font-size: 12pt;">></span><br><span style="font-size: 12pt;">>>> To: Alex <</span><a ymailto="mailto:tuanha_it0306@yahoo.com" href="mailto:tuanha_it0306@yahoo.com" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">tuanha_it0306@yahoo.com</a><span style="font-size:
12pt;">></span><br><span style="font-size: 12pt;">>>> Cc: "</span><a ymailto="mailto:paraview@paraview.org" href="mailto:paraview@paraview.org" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">paraview@paraview.org</a><span style="font-size: 12pt;">" <</span><a ymailto="mailto:paraview@paraview.org" href="mailto:paraview@paraview.org" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">paraview@paraview.org</a><span style="font-size: 12pt;">></span><br><span style="font-size: 12pt;">>>> Sent: Monday, June 25, 2012 11:08 PM</span><br><span style="font-size: 12pt;">>>> Subject: Re: [Paraview] ParaViewWeb, vtk filters python description</span><br><span style="font-size: 12pt;">>>></span><br><span style="font-size: 12pt;">>>> I'm not sure I understand what you mean by "Where is the python file</span><br><span style="font-size:
12pt;">>>> which describes the way of using vtk Filters in ParaViewWeb?"</span><br><span style="font-size: 12pt;">>>></span><br><span style="font-size: 12pt;">>>> The one that is imported by default is the pwsimple.py which is an</span><br><span style="font-size: 12pt;">>>> extension of the simple.py of regular ParaView.</span><br><span style="font-size: 12pt;">>>></span><br><span style="font-size: 12pt;">>>> But having said that, you can't easily mix VTK filter and ParaView</span><br><span style="font-size: 12pt;">>>> proxy together, unless you just want to do some data processing</span><br><span style="font-size: 12pt;">>>> without rendering.</span><br><span style="font-size: 12pt;">>>> But as I remember, you did a ParaView plugin for that, so normally,</span><br><span style="font-size: 12pt;">>>> once loaded you should be able to use it.</span><br><span
style="font-size: 12pt;">>>></span><br><span style="font-size: 12pt;">>>> Did you try to load that plugin at startup with the extra argument of</span><br><span style="font-size: 12pt;">>>> PWServer ?</span><br><span style="font-size: 12pt;">>>></span><br><span style="font-size: 12pt;">>>> Seb</span><br><span style="font-size: 12pt;">>>></span><br><span style="font-size: 12pt;">>>> On Mon, Jun 25, 2012 at 4:25 PM, Alex <</span><a ymailto="mailto:tuanha_it0306@yahoo.com" href="mailto:tuanha_it0306@yahoo.com" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">tuanha_it0306@yahoo.com</a><span style="font-size: 12pt;">> wrote:</span><br><span style="font-size: 12pt;">>>>> Hi everybody,</span><br><span style="font-size: 12pt;">>>>> Well, I found that using vtk Filter (Threshold, Clip, etc.) is simple</span><br><span
style="font-size: 12pt;">>>>> within ParaViewWeb, we have a list of filters so that we can use the</span><br><span style="font-size: 12pt;">>>>> filters</span><br><span style="font-size: 12pt;">>>>> @ </span><a href="http://paraview.org/Wiki/ParaView/Users_Guide/List_of_filters" target="_blank" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">http://paraview.org/Wiki/ParaView/Users_Guide/List_of_filters</a><br><span style="font-size: 12pt;">>>>> We can use "threshold =</span><br><span style="font-size: 12pt;">>>>> paraview.Threshold({Input:proxy,ThresholdRange:[300,600]})" to applicate</span><br><span style="font-size: 12pt;">>>>> a</span><br><span style="font-size: 12pt;">>>>> threshold between 300 and 600 for an image.</span><br><span style="font-size: 12pt;">>>>> So, my question is : where can I
find the python script .py which</span><br><span style="font-size: 12pt;">>>>> describes the way of using vtk Filters in ParaViewWeb?</span><br><span style="font-size: 12pt;">>>>></span><br><span style="font-size: 12pt;">>>>> If there isn't any file python script like that, how can we define a</span><br><span style="font-size: 12pt;">>>>> function that take in value as described above? How can we tell the</span><br><span style="font-size: 12pt;">>>>> ParaViewWeb to take in different type of variable?</span><br><span style="font-size: 12pt;">>>>> I mean : def ImageThreshold(proxy,ThresholdRange......) or something</span><br><span style="font-size: 12pt;">>>>> like</span><br><span style="font-size: 12pt;">>>>> that?</span><br><span style="font-size: 12pt;">>>>></span><br><span style="font-size: 12pt;">>>>>
Thank you very much for your reply.</span><br><span style="font-size: 12pt;">>>>> Good day everybody :)</span><br><span style="font-size: 12pt;">>>>></span><br><span style="font-size: 12pt;">>>>></span><br><span style="font-size: 12pt;">>>>> _______________________________________________</span><br><span style="font-size: 12pt;">>>>> Powered by www.kitware.com</span><br><span style="font-size: 12pt;">>>>></span><br><span style="font-size: 12pt;">>>>> Visit other Kitware open-source projects at</span><br><span style="font-size: 12pt;">>>>> </span><a href="http://www.kitware.com/opensource/opensource.html" target="_blank" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">http://www.kitware.com/opensource/opensource.html</a><br><span style="font-size: 12pt;">>>>></span><br><span
style="font-size: 12pt;">>>>> Please keep messages on-topic and check the ParaView Wiki at:</span><br><span style="font-size: 12pt;">>>>> </span><a href="http://paraview.org/Wiki/ParaView" target="_blank" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">http://paraview.org/Wiki/ParaView</a><br><span style="font-size: 12pt;">>>>></span><br><span style="font-size: 12pt;">>>>> Follow this link to subscribe/unsubscribe:</span><br><span style="font-size: 12pt;">>>>> </span><a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">http://www.paraview.org/mailman/listinfo/paraview</a><br><span style="font-size: 12pt;">>>>></span><br><span style="font-size: 12pt;">>>></span><br><span style="font-size: 12pt;">>>></span><br><span
style="font-size: 12pt;">>></span><br><span style="font-size: 12pt;">>></span><br><span style="font-size: 12pt;">>></span><br><span style="font-size: 12pt;">>> _______________________________________________</span><br><span style="font-size: 12pt;">>> Powered by www.kitware.com</span><br><span style="font-size: 12pt;">>></span><br><span style="font-size: 12pt;">>> Visit other Kitware open-source projects at</span><br><span style="font-size: 12pt;">>> </span><a href="http://www.kitware.com/opensource/opensource.html" target="_blank" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">http://www.kitware.com/opensource/opensource.html</a><br><span style="font-size: 12pt;">>></span><br><span style="font-size: 12pt;">>> Please keep messages on-topic and check the ParaView Wiki at:</span><br><span style="font-size: 12pt;">>> </span><a
href="http://paraview.org/Wiki/ParaView" target="_blank" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">http://paraview.org/Wiki/ParaView</a><br><span style="font-size: 12pt;">>></span><br><span style="font-size: 12pt;">>> Follow this link to subscribe/unsubscribe:</span><br><span style="font-size: 12pt;">>> </span><a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">http://www.paraview.org/mailman/listinfo/paraview</a><br><span style="font-size: 12pt;">>></span><br><span style="font-size: 12pt;">>></span><br><span style="font-size: 12pt;">></span><br><span style="font-size: 12pt;">></span><br><br><br> </div> </div> </div></body></html>