MCPcopy Create free account
hub / github.com/Kitware/VTK / resetCamera

Method resetCamera

Web/Python/vtkmodules/web/protocols.py:186–197  ·  view source on GitHub ↗

RPC callback to reset camera.

(self, viewId)

Source from the content-addressed store, hash-verified

184class 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):

Callers

nothing calls this directly

Calls 9

strFunction · 0.85
getViewMethod · 0.80
GetFirstRendererMethod · 0.80
GetRenderersMethod · 0.80
InvokeEventMethod · 0.80
getGlobalIdMethod · 0.80
ResetCameraMethod · 0.45
InvalidateCacheMethod · 0.45
getApplicationMethod · 0.45

Tested by

no test coverage detected