Beispiel #1
0
        internal void InvokeModelSettingsEvent(ModelSettingsEventArgs args)
        {
            var handler = ModelSettingsEvent;

            if (handler != null)
            {
                handler(this, args);
            }
        }
 private void ModelSettingsHandler(object sender, ModelSettingsEventArgs args)
 {
     if (_clickInputs != null && _clickInputs.ImageClickInputDetailsList != null && _clickInputs.ImageClickInputDetailsList.Count > 0)
     {
         SetModelSettings(args.MeshDensity, args.SaveProcessedImages, args.MaxAngleOfImageToProcessInDegress);
     }
     else
     {
         MessageBox.Show("Image positions not available. Click on 'Reenter Click Positions' to add them.");
     }
 }
Beispiel #3
0
        private void Next(object sender, RoutedEventArgs e)
        {
            var maxAngleOfImageToProcessInDegress = GetMaxAngleOfImageToProcessInDegress();

            var modelSettings = new ModelSettingsEventArgs
            {
                MeshDensity         = (int)SliderForMeshDensity.Slider.Value,
                SaveProcessedImages = SaveImages.IsChecked.HasValue? (bool)SaveImages.IsChecked : false,
                MaxAngleOfImageToProcessInDegress = maxAngleOfImageToProcessInDegress
            };

            MainProcessor.AnalyzeMoldForDataLosses = AnalyzeCutOutData.IsChecked.HasValue? (bool)AnalyzeCutOutData.IsChecked : false;
            InvokeModelSettingsEvent(modelSettings);
        }