Exemple #1
0
 public JobParams(string gcodefile, string jobname, string preview_image_file_name, FilamentSpool.TypeEnum filament_type, float estimatedTime, float estimatedFilamentNeeded)
 {
     jobMode        = JobParams.Mode.DirectPrinting;
     this.gcodefile = gcodefile;
     this.jobname   = jobname;
     this.preview_image_file_name = preview_image_file_name;
     this.filament_type           = filament_type;
     this.estimatedTime           = estimatedTime;
     this.estimatedFilamentNeeded = estimatedFilamentNeeded;
     options = new JobOptions
     {
         use_raft_DetailOnly                 = true,
         wipe_tower                          = false,
         ooze_shield                         = false,
         autostart_ignorewarnings            = false,
         use_wave_bonding                    = false,
         dont_use_preprocessors              = false,
         use_support_DetailOnly              = false,
         calibrate_before_print              = false,
         turn_on_fan_before_print            = false,
         bounds_check_xy                     = true,
         quality_layer_resolution_DetailOnly = 0,
         fill_density_DetailOnly             = 0
     };
     filament_temperature = 0;
     preprocessor         = new FilamentPreprocessorData();
     jobGuid   = Guid.NewGuid().ToString();
     autoprint = false;
 }
Exemple #2
0
 public JobParams()
 {
     options      = new JobOptions();
     preprocessor = new FilamentPreprocessorData();
     jobGuid      = Guid.NewGuid().ToString();
     jobMode      = JobParams.Mode.DirectPrinting;
     outputfile   = null;
 }
Exemple #3
0
 public JobParams(JobParams other)
 {
     options                 = new JobOptions(other.options);
     preprocessor            = new FilamentPreprocessorData(other.preprocessor);
     jobGuid                 = other.jobGuid;
     jobMode                 = other.jobMode;
     outputfile              = other.outputfile;
     autoprint               = other.autoprint;
     estimatedFilamentNeeded = other.estimatedFilamentNeeded;
     estimatedTime           = other.estimatedTime;
     filament_temperature    = other.filament_temperature;
     filament_type           = other.filament_type;
     gcodefile               = other.gcodefile;
     preview_image_file_name = other.preview_image_file_name;
 }
Exemple #4
0
 public JobOptions(JobOptions other)
 {
     use_raft_DetailOnly                 = other.use_raft_DetailOnly;
     wipe_tower                          = other.wipe_tower;
     ooze_shield                         = other.ooze_shield;
     autostart_ignorewarnings            = other.autostart_ignorewarnings;
     turn_on_fan_before_print            = other.turn_on_fan_before_print;
     use_wave_bonding                    = other.use_wave_bonding;
     dont_use_preprocessors              = other.dont_use_preprocessors;
     use_support_DetailOnly              = other.use_support_DetailOnly;
     use_support_everywhere_DetailOnly   = other.use_support_everywhere_DetailOnly;
     quality_layer_resolution_DetailOnly = other.quality_layer_resolution_DetailOnly;
     fill_density_DetailOnly             = other.fill_density_DetailOnly;
     calibrate_before_print              = other.calibrate_before_print;
     calibrate_before_print_z            = other.calibrate_before_print_z;
     bounds_check_xy                     = other.bounds_check_xy;
     use_fan_preprocessor                = other.use_fan_preprocessor;
     use_heated_bed                      = other.use_heated_bed;
 }