RPC callback to reset camera.
(self, viewId)
| 184 | class vtkWebViewPort(vtkWebProtocol): |
| 185 | @exportRpc("viewport.camera.reset") |
| 186 | def resetCamera(self, viewId): |
| 187 | """ |
| 188 | RPC callback to reset camera. |
| 189 | """ |
| 190 | view = self.getView(viewId) |
| 191 | renderer = view.GetRenderers().GetFirstRenderer() |
| 192 | renderer.ResetCamera() |
| 193 | |
| 194 | self.getApplication().InvalidateCache(view) |
| 195 | self.getApplication().InvokeEvent("UpdateEvent") |
| 196 | |
| 197 | return str(self.getGlobalId(view)) |
| 198 | |
| 199 | @exportRpc("viewport.axes.orientation.visibility.update") |
| 200 | def updateOrientationAxesVisibility(self, viewId, showAxis): |
nothing calls this directly
no test coverage detected