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

Method updateCamera

Web/Python/vtkmodules/web/protocols.py:226–236  ·  view source on GitHub ↗
(self, view_id, focal_point, view_up, position, forceUpdate=True)

Source from the content-addressed store, hash-verified

224
225 @exportRpc("viewport.camera.update")
226 def updateCamera(self, view_id, focal_point, view_up, position, forceUpdate=True):
227 view = self.getView(view_id)
228
229 camera = view.GetRenderers().GetFirstRenderer().GetActiveCamera()
230 camera.SetFocalPoint(focal_point)
231 camera.SetViewUp(view_up)
232 camera.SetPosition(position)
233
234 if forceUpdate:
235 self.getApplication().InvalidateCache(view)
236 self.getApplication().InvokeEvent("UpdateEvent")
237
238
239# =============================================================================

Callers 1

webglRenderer.jsFile · 0.45

Calls 10

getViewMethod · 0.80
GetActiveCameraMethod · 0.80
GetFirstRendererMethod · 0.80
GetRenderersMethod · 0.80
SetViewUpMethod · 0.80
InvokeEventMethod · 0.80
SetFocalPointMethod · 0.45
SetPositionMethod · 0.45
InvalidateCacheMethod · 0.45
getApplicationMethod · 0.45

Tested by

no test coverage detected