mirror of
https://github.com/OpenFOAM/ThirdParty-6.git
synced 2025-12-08 06:57:43 +00:00
19 lines
583 B
Python
19 lines
583 B
Python
r"""paraviewweb_wamp is the paraview-specific subclass
|
|
of vtkweb_wamp that provides the PVWeb Application
|
|
"""
|
|
|
|
from vtk.web import wamp
|
|
from vtkParaViewWebCorePython import vtkPVWebApplication
|
|
|
|
from paraview.web import protocols as pv_protocols
|
|
|
|
class PVServerProtocol(wamp.ServerProtocol):
|
|
|
|
def __init__(self, config):
|
|
wamp.ServerProtocol.__init__(self, config)
|
|
wamp.imageCapture = pv_protocols.ParaViewWebViewPortImageDelivery()
|
|
wamp.imageCapture.setApplication(self.Application)
|
|
|
|
def initApplication(self):
|
|
return vtkPVWebApplication()
|