[Paraview-developers] paraview/web 4 pipeline

kyr akyrieleis at gmail.com
Mon Nov 11 10:57:55 EST 2013


Hi,

I am using paraviewweb (nightly build 2.3.6) with the
JettySessionManager-Server. 

In Javascript an object used to be created e.g. by

var cone = paraview.Cone();

How to do that now ??

I start a new Paraview/Web instance using 

                vtkWeb.start(config, 
                      function (conn) {
                          setupConnection(conn);
                      },
                      function (err) {
                        //console.log("Connection failed.");
                          var conn = {
                            sessionURL: "ws://" + location.hostname + ":" +
location.port + "/ws"
                            };
                      setupConnection(conn);
                      }
                   );

function setupConnection(connection) {
                    if(location.protocol == "http:") {
                        connection.sessionURL =
connection.sessionURL.replace("wss:","ws:");
                    }

	            // connect to the ParaView/Web instance, so we can start
                    // visualizing.
                    vtkWeb.connect(connection,
                    function(conn) {
                        pv.connection = conn;
                        pv.viewport =
vtkWeb.createViewport({session:conn.session});
                        pv.viewport.bind("#viewport");
                    },
                    function(code,reason){
                        pv.connection = null;
                        console.log(reason);
                        cleanup();
                    }
				   );
}



Many thanks

k.



--
View this message in context: http://the-unofficial-paraview-developers-forum.34153.x6.nabble.com/paraview-web-4-pipeline-tp2618.html
Sent from the The Unofficial ParaView Developers Forum mailing list archive at Nabble.com.


More information about the Paraview-developers mailing list