Skip to content

viewport.controller

3 functions / 5 types

Index

FunctionDescription
ActivateDefaultAcquire default navigation of the selected camera, preserving its current pose.
GetInspect the selected camera’s controller. An uncontrolled camera returns no controller.
ReleaseRelease the selected camera without activating another controller.
TypeDescription
ActivateDefaultAcquire default navigation of the selected camera, preserving its current pose.
ControllerInfoThe active controller and an acquisition identity suitable for a conditional release.
GetControllerInspect the selected camera’s controller. An uncontrolled camera returns no controller.
GetControllerResponse
ReleaseRelease the selected camera without activating another controller.

ActivateDefault

RPC

ActivateDefault(request: viewport.controller.ActivateDefault) -> viewport.controller.ControllerInfo

Acquire default navigation of the selected camera, preserving its current pose.

Service method: spatialengine.v1.viewport.controller.ViewportController.ActivateDefault.

Returns viewport.controller.ControllerInfo.

viewport optional : string

Select exactly one camera by viewport label. Absent, exactly one camera must exist.

Get

RPC

Get(request: viewport.controller.GetController) -> viewport.controller.GetControllerResponse

Inspect the selected camera’s controller. An uncontrolled camera returns no controller.

Service method: spatialengine.v1.viewport.controller.ViewportController.Get.

Returns viewport.controller.GetControllerResponse.

viewport optional : string

Select exactly one camera by viewport label. Absent, exactly one camera must exist.

Release

RPC

Release(request: viewport.controller.Release) -> google.protobuf.Empty

Release the selected camera without activating another controller.

Service method: spatialengine.v1.viewport.controller.ViewportController.Release.

Returns google.protobuf.Empty.

viewport optional : string

Select exactly one camera by viewport label. Absent, exactly one camera must exist.

ownership optional : string

When supplied, release only this acquisition. A stale acquisition fails.

ActivateDefault

Message

Acquire default navigation of the selected camera, preserving its current pose.

viewport optional : string

Select exactly one camera by viewport label. Absent, exactly one camera must exist.

ControllerInfo

Message

The active controller and an acquisition identity suitable for a conditional release.

kind : string

The registered controller name, such as editor or geo.

ownership : string

Identifies this acquisition. It changes when another controller takes control.

GetController

Message

Inspect the selected camera’s controller. An uncontrolled camera returns no controller.

viewport optional : string

Select exactly one camera by viewport label. Absent, exactly one camera must exist.

GetControllerResponse

Message

Release

Message

Release the selected camera without activating another controller.

viewport optional : string

Select exactly one camera by viewport label. Absent, exactly one camera must exist.

ownership optional : string

When supplied, release only this acquisition. A stale acquisition fails.