Esempio n. 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);
        }
        /// <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);
        }
Esempio n. 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);
        }
Esempio n. 4
0
 private void OpenAimMarkupColorOptions()
 {
     _selectedAimRoiGraphic = this;
     ClearCanvas.Desktop.Configuration.ConfigurationDialog.Show(ImageViewer.DesktopWindow, AimMarkupColorComponent.Path);
     _selectedAimRoiGraphic = null;
 }
 private void OpenAimMarkupColorOptions()
 {
     _selectedAimRoiGraphic = this;
     ClearCanvas.Desktop.Configuration.ConfigurationDialog.Show(ImageViewer.DesktopWindow, AimMarkupColorComponent.Path);
     _selectedAimRoiGraphic = null;
 }
 public static new AimRoiGraphic CreateRectangle()
 {
     var roiGraphic = new AimRoiGraphic(new BoundableResizeControlGraphic(new BoundableStretchControlGraphic(new MoveControlGraphic(new RectanglePrimitive()))));
     roiGraphic.State = roiGraphic.CreateInactiveState();
     return roiGraphic;
 }
 public static new AimRoiGraphic CreatePolygon()
 {
     var roiGraphic = new AimRoiGraphic(new PolygonControlGraphic(true, new MoveControlGraphic(new PolylineGraphic(true))));
     roiGraphic.State = roiGraphic.CreateInactiveState();
     return roiGraphic;
 }
 /// <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;
 }