コード例 #1
0
        public new static AimRoiGraphic CreatePolygon()
        {
            var roiGraphic = new AimRoiGraphic(new PolygonControlGraphic(true, new MoveControlGraphic(new PolylineGraphic(true))));

            roiGraphic.State = roiGraphic.CreateInactiveState();
            return(roiGraphic);
        }
コード例 #2
0
        /// <summary>
        /// Convenience method to create a common elliptical, interactive region of interest.
        /// </summary>
        /// <returns>A new interactive region of interest graphic.</returns>
        public static AimRoiGraphic CreateEllipse()
        {
            AimRoiGraphic roiGraphic = new AimRoiGraphic(new BoundableResizeControlGraphic(new BoundableStretchControlGraphic(new MoveControlGraphic(new EllipsePrimitive()))));

            roiGraphic.State = roiGraphic.CreateInactiveState();
            return(roiGraphic);
        }
コード例 #3
0
        public new static AimRoiGraphic CreateRectangle()
        {
            var roiGraphic = new AimRoiGraphic(new BoundableResizeControlGraphic(new BoundableStretchControlGraphic(new MoveControlGraphic(new RectanglePrimitive()))));

            roiGraphic.State = roiGraphic.CreateInactiveState();
            return(roiGraphic);
        }
コード例 #4
0
 private void OpenAimMarkupColorOptions()
 {
     _selectedAimRoiGraphic = this;
     ClearCanvas.Desktop.Configuration.ConfigurationDialog.Show(ImageViewer.DesktopWindow, AimMarkupColorComponent.Path);
     _selectedAimRoiGraphic = null;
 }
コード例 #5
0
 private void OpenAimMarkupColorOptions()
 {
     _selectedAimRoiGraphic = this;
     ClearCanvas.Desktop.Configuration.ConfigurationDialog.Show(ImageViewer.DesktopWindow, AimMarkupColorComponent.Path);
     _selectedAimRoiGraphic = null;
 }
コード例 #6
0
 public static new AimRoiGraphic CreateRectangle()
 {
     var roiGraphic = new AimRoiGraphic(new BoundableResizeControlGraphic(new BoundableStretchControlGraphic(new MoveControlGraphic(new RectanglePrimitive()))));
     roiGraphic.State = roiGraphic.CreateInactiveState();
     return roiGraphic;
 }
コード例 #7
0
 public static new AimRoiGraphic CreatePolygon()
 {
     var roiGraphic = new AimRoiGraphic(new PolygonControlGraphic(true, new MoveControlGraphic(new PolylineGraphic(true))));
     roiGraphic.State = roiGraphic.CreateInactiveState();
     return roiGraphic;
 }
コード例 #8
0
 /// <summary>
 /// Convenience method to create a common elliptical, interactive region of interest.
 /// </summary>
 /// <returns>A new interactive region of interest graphic.</returns>
 public static AimRoiGraphic CreateEllipse()
 {
     AimRoiGraphic roiGraphic = new AimRoiGraphic(new BoundableResizeControlGraphic(new BoundableStretchControlGraphic(new MoveControlGraphic(new EllipsePrimitive()))));
     roiGraphic.State = roiGraphic.CreateInactiveState();
     return roiGraphic;
 }