Beispiel #1
0
 public void DefineViewPortAnnotation()
 {
     plantAnnotationDefinition = DatasetCapture.RegisterAnnotationDefinition(
         "View_Port_Position",
         "The position relative to the screen",
         id: Guid.Parse("C0B4A22C-0420-4D9F-BAFC-954B8F7B35A7"));
 }
 public void Start()
 {
     //Metrics and annotations are registered up-front
     lightMetricDefinition = DatasetCapture.RegisterMetricDefinition(
         "Light position",
         "The world-space position of the light",
         Guid.Parse("1F6BFF46-F884-4CC5-A878-DB987278FE35"));
     boundingBoxAnnotationDefinition = DatasetCapture.RegisterAnnotationDefinition(
         "Target bounding box",
         "The position of the target in the camera's local space",
         id: Guid.Parse("C0B4A22C-0420-4D9F-BAFC-954B8F7B35A7"));
 }
Beispiel #3
0
 public void RegisterAnnotationDefinition_InEditMode_Throws()
 {
     Assert.Throws <InvalidOperationException>(() => DatasetCapture.RegisterAnnotationDefinition(""));
 }