Exemple #1
0
        private void Probe(Point destinationPoint)
        {
            Point sourcePointRounded = Point.Truncate(_selectedImageGraphic.SpatialTransform.ConvertToSource(destinationPoint));

            ToolSettings settings       = ToolSettings.Default;
            bool         showPixelValue = settings.ShowRawPixelValue;
            bool         showVoiValue   = settings.ShowVOIPixelValue;

            Probe(sourcePointRounded, showPixelValue, showVoiValue);
        }
Exemple #2
0
        /// <summary>
        /// Performs initialization related to the tool's mode support.
        /// </summary>
        protected virtual void InitializeMode()
        {
            _settings = ToolSettings.DefaultInstance;

            try
            {
                _mode = (TextCalloutMode)Enum.Parse(typeof(TextCalloutMode), _settings.TextCalloutMode, true);
            }
            catch (Exception)
            {
                _mode = TextCalloutMode.TextCallout;
            }

            this.OnModeChanged();
            this.OnModeOrActiveChanged();
        }
		/// <summary>
		/// Performs initialization related to the tool's mode support.
		/// </summary>
		protected virtual void InitializeMode()
		{
			_settings = ToolSettings.DefaultInstance;

			try
			{
				_mode = (TextCalloutMode) Enum.Parse(typeof (TextCalloutMode), _settings.TextCalloutMode, true);
			}
			catch (Exception)
			{
				_mode = TextCalloutMode.TextCallout;
			}

			this.OnModeChanged();
			this.OnModeOrActiveChanged();
		}