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();
		}
Exemple #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);
		}
		public WindowLevelTool()
			: base(SR.TooltipWindowLevel)
		{
			CursorToken = new CursorToken("Icons.WindowLevelToolSmall.png", GetType().Assembly);
			_operation = new VoiLutImageOperation(Apply);
		}
Exemple #5
0
		public StackTool()
			: base(SR.TooltipStack)
		{
			CursorToken = new CursorToken("Icons.StackToolSmall.png", GetType().Assembly);
		}
Exemple #6
0
		public PanTool()
			: base(SR.TooltipPan)
		{
			CursorToken = new CursorToken("Icons.PanToolSmall.png", GetType().Assembly);
			_operation = new SpatialTransformImageOperation(Apply);
		}
Exemple #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();
		}