예제 #1
0
		public Rotate3DTool()
			: base(SR.TooltipRotate3D)
		{
			CursorToken = new CursorToken("Icons.Rotate3DToolSmall.png", GetType().Assembly);
			_operation = new SpatialTransform3DImageOperation(Apply);

			const string graphicName = "Icons.NoSpineLabeling.png";
			var iconSet = new UnavailableActionIconSet(new IconSet("Icons.Rotate3DToolSmall.png", "Icons.Rotate3DToolMedium.png", "Icons.Rotate3DToolLarge.png"));
			var resolver = new ApplicationThemeResourceResolver(GetType(), false);
			_flashOverlayController = new FlashOverlayController(iconSet, resolver) {FlashSpeed = 1500};
		}
		/// <summary>
		/// Constructs a new <see cref="AnchorPointControlGraphic"/>.
		/// </summary>
		/// <param name="subject">An <see cref="IPointGraphic"/> or an <see cref="IControlGraphic"/> chain whose subject is an <see cref="IPointGraphic"/>.</param>
		public AnchorPointControlGraphic(IGraphic subject)
			: base(subject)
		{
			Platform.CheckExpectedType(base.Subject, typeof (IPointGraphic));

			_moveCursor = new CursorToken(CursorToken.SystemCursors.SizeAll);

			this.CoordinateSystem = CoordinateSystem.Source;
			try
			{
				base.ControlPoints.Add(this.Subject.Point);
			}
			finally
			{
				this.ResetCoordinateSystem();
			}

			Initialize();
		}
예제 #3
0
		/// <summary>
		/// Constructs a new instance of <see cref="MprMoveControlGraphic"/>.
		/// </summary>
		/// <param name="subject">The subject graphic.</param>
		public MprMoveControlGraphic(IGraphic subject) : base(subject)
		{
			_cursor = new CursorToken(CursorToken.SystemCursors.SizeAll);
		}
예제 #4
0
		public WindowLevelTool()
			: base(SR.TooltipWindowLevel)
		{
			CursorToken = new CursorToken("Icons.WindowLevelToolSmall.png", GetType().Assembly);
			_operation = new VoiLutImageOperation(Apply);
		}
예제 #5
0
파일: StackTool.cs 프로젝트: nhannd/Xian
		public StackTool()
			: base(SR.TooltipStack)
		{
			CursorToken = new CursorToken("Icons.StackToolSmall.png", GetType().Assembly);
		}
예제 #6
0
		public PanTool()
			: base(SR.TooltipPan)
		{
			CursorToken = new CursorToken("Icons.PanToolSmall.png", GetType().Assembly);
			_operation = new SpatialTransformImageOperation(Apply);
		}
예제 #7
0
		/// <summary>
		/// Constructs a new <see cref="ControlPointsGraphic"/> to control the given subject graphic.
		/// </summary>
		/// <param name="subject">The graphic to control.</param>
		public ControlPointsGraphic(IGraphic subject)
			: base(subject)
		{
			_stretchingToken = new CursorToken(CursorToken.SystemCursors.Cross);

			Initialize();
		}