Click or drag to resize

IContentManagerGetPanoramicPredefinedPositions Method

Returns an enumerable of configured predefined positions for a panoramic camera.

Namespace: Bosch.Vms.SDK
Assembly: Bosch.Vms.SDK (in Bosch.Vms.SDK.dll) Version: 1.9.0.0
Syntax
C#
IEnumerable<PredefinedPosition> GetPanoramicPredefinedPositions(
	ImagePane pane
)

Parameters

pane  ImagePane
Image pane that displays a video of a panoramic camera.

Return Value

IEnumerablePredefinedPosition
An enumerable of configured predefined positions for a panoramic camera or an empty enumerable if the pane displays a video of a camera that is not a panoramic camera.
Exceptions
ExceptionCondition
SdkException Is thrown when the given pane is invalid or the pane doesn't display a video of a camera.
Example
C#
try
{
    IContentManager contentManager = this.Api.ContentManager;
    ImagePane pane = new ImagePane(1, 1);
    IEnumerable<PredefinedPosition> predefinedPositions = contentManager.GetPanoramicPredefinedPositions(pane);
    foreach(var predefinedPosition in predefinedPositions)
    {
        contentManager.SetPanoramicPredefinedPosition(pane, predefinedPosition.Number);
        this.Logger.InfoFormat("The predefined position {0} is set", predefinedPosition.Name);
        break;
    }
}
catch (SdkException e)
{
    this.Logger.Error(e);
}
See Also