public void ApplyHeightMap(HeightMap map) { if (_file == null) { _logger.Log(Core.PlatformSupport.LogLevel.Error, "JobManager_ApplyHeightMap", "Attempt to apply height map to empty gcode file."); _machine.AddStatusMessage(StatusMessageTypes.Warning, "Attempt to apply height map to empty gcode file"); } else { _file = map.ApplyHeightMap(_file); IsDirty = true; } }
public void ApplyHeightMap(HeightMap map) { if (_file == null) { _logger.Log(Core.PlatformSupport.LogLevel.Error, "GCodeFileManager_ApplyHeightMap", "Attempt to apply height map to empty gcode file."); _machine.AddStatusMessage(StatusMessageTypes.Warning, "Attempt to apply height map to empty gcode file"); } else { _file = map.ApplyHeightMap(_file); IsDirty = true; RaisePropertyChanged(nameof(File)); RaisePropertyChanged(nameof(Lines)); RaisePropertyChanged(nameof(Arcs)); RaisePropertyChanged(nameof(RapidMoves)); RenderPaths(_file); } }