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

Tuan Ha Tran tuan-ha.tran at insa-lyon.fr
Mon May 14 05:27:51 EDT 2012


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.load('myFile.mhd');    //I succeeded in loading this file
  reader = p.ImageThreshold(reader);                    // it's here I want to apply a filter, but I have the followed error : Object #<Paraview> has no method 'ImageThreshold'  I also tried with reader = p.vtkImageThreshold but the same error. 
   
  So I want to know how to call a ParaView function in JavaScript Terminal of PWConsole?
  Thank in advance
 
  
  
    
   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20120514/6091abe7/attachment.htm>


More information about the ParaView mailing list