Aller au contenu

Service HrzProtocol.CameraService

Defined in hrz/protocol/camera/service.proto.


SetFixedTarget(HrzProtocol.FixedTargetCameraTransition) -> HrzProtocol.Void

Moves the camera to a new position and set its mode to fixed target.


SetFixedPosition(HrzProtocol.FixedPositionCameraTransition) -> HrzProtocol.Void

Moves the camera to a new position and set its mode to fixed position.


SetOrbit(HrzProtocol.OrbitCameraTransition) -> HrzProtocol.Void

Moves the camera to a new position and set its mode to orbit.


GetCameraPose(HrzProtocol.CameraIndexReference) -> HrzProtocol.Pose

Retrieves camera pose (position and orientation).


GetCameraAngularViewpoint(HrzProtocol.CameraIndexReference) -> HrzProtocol.AngularViewpoint

Retrieves camera angular viewpoint (target position, angles & distance).


GetCameraPositionalViewpoint(HrzProtocol.CameraIndexReference) -> HrzProtocol.PositionalViewpoint

Retrieves camera positional viewpoint (camera position + target position).


GetSceneViewViewBox(HrzProtocol.SceneViewReference) -> HrzProtocol.GeographicBounds

Retrieves view box on the WGS84 ellipsoid for a given scene view.


GetSceneViewViewPolygon(HrzProtocol.SceneViewReference) -> HrzProtocol.GeographicViewPolygon

Retrieves view polygon on the WGS84 ellipsoid for a given scene view.


GetSceneViewScaleAndAltitude(HrzProtocol.SceneViewReference) -> HrzProtocol.ViewScaleAltitude

Retrieves the latest scale and altitude of a specific scene view. See the returned messages’s documentation for more information.


GetCameraViewBox(HrzProtocol.CameraIndexReference) -> HrzProtocol.GeographicBounds

Retrieves view box on the WGS84 ellipsoid for a given camera. The viewports of all associated scene views are merged.


GetCameraViewPolygon(HrzProtocol.CameraIndexReference) -> HrzProtocol.GeographicViewPolygon

Retrieves view polygon on the WGS84 ellipsoid for a given camera. The viewports of all associated scene views are merged.


LatLonAltToPixelCoords(HrzProtocol.GeographicPositionInSceneView) -> HrzProtocol.PixelPositionResult

Converts lat/lon/alt coordinates into pixel coordinates. Performs a basic projection into screen space. The output coordinates are given in the entire canvas viewport.


Move(HrzProtocol.CameraMovement) -> HrzProtocol.Void

BeginContinuousMovement(HrzProtocol.CameraMovement) -> HrzProtocol.Void

EndContinuousMovement(HrzProtocol.CameraMovement) -> HrzProtocol.Void

ResetNorth(HrzProtocol.ResetNorthParams) -> HrzProtocol.Void

Resets the camera bearing so that the north is up. The camera tilt can also be reset at the same time. This action can be bound to a key. See HrzProtocol.KeyInteractionBindings.