pv_wslink.py 799 B

1234567891011121314151617181920
  1. r"""paraviewweb_wslink is the paraview-specific subclass
  2. of vtkweb_wslink that provides the PVWeb Application
  3. """
  4. from vtkmodules.web import wslink as vtk_wslink
  5. from paraview.modules.vtkPVClientWeb import vtkPVWebApplication
  6. from paraview.web import protocols as pv_protocols
  7. class PVServerProtocol(vtk_wslink.ServerProtocol):
  8. def __init__(self):
  9. vtk_wslink.ServerProtocol.__init__(self)
  10. # if (vtk_wslink.imageCapture):
  11. # self.unregisterLinkProtocol(vtk_wslink.imageCapture)
  12. # vtk_wslink.imageCapture = pv_protocols.ParaViewWebViewPortImageDelivery()
  13. # self.registerLinkProtocol(vtk_wslink.imageCapture)
  14. # vtk_wslink.imageCapture.setApplication(self.getApplication())
  15. def initApplication(self):
  16. return vtkPVWebApplication()