ParaViewWeb misc JavaScript script
From KitwarePublic
PWService testing
On the web page http://localhost:8080/PWService/test/index.jsp execute the following script
var serverURL = 'http://localhost:8080/PWService'; var paraview = new Paraview(serverURL); paraview.createSession('testing','basic-test'); var activeView = paraview.CreateIfNeededRenderView(); paraview.Sphere(); paraview.Show(); var renderers = {}; renderers.js = new JavaScriptRenderer("js", serverUrl); renderers.js.init(paraview.sessionId, activeView.__selfid__); renderers.js.setSize('200','200'); renderers.js.bindToElementId("container-1"); renderers.js.start(); renderers.java = new HttpAppletRenderer("java", serverUrl); renderers.java.init(paraview.sessionId, activeView.__selfid__); renderers.java.setSize('200','200'); renderers.java.bindToElementId("container-2"); renderers.java.start(); renderers.flash = new FlashRenderer("flash", serverUrl); renderers.flash.init(paraview.sessionId, activeView.__selfid__); renderers.flash.setSize('200','200'); renderers.flash.bindToElementId("container-3"); renderers.flash.start();
PWApp using manta renderering
For wireframe representation use solid color and rise the line width
paraview.GetDisplayProperties({proxy: pipeline.dataset}).setLineWidth(200) paraview.GetDisplayProperties({proxy: pipeline.iso}).setLineWidth(200) paraview.GetDisplayProperties({proxy: pipeline.slice}).setLineWidth(200) paraview.GetDisplayProperties({proxy: pipeline.clip}).setLineWidth(200) paraview.GetDisplayProperties({proxy: pipeline.stream}).setLineWidth(200)