2014-02-15 18:06:03 -08:00
|
|
|
|
/*
|
|
|
|
|
|
Copyright (c) 2014, Lars Brubaker
|
|
|
|
|
|
All rights reserved.
|
|
|
|
|
|
|
|
|
|
|
|
Redistribution and use in source and binary forms, with or without
|
2015-04-08 15:20:10 -07:00
|
|
|
|
modification, are permitted provided that the following conditions are met:
|
2014-02-15 18:06:03 -08:00
|
|
|
|
|
|
|
|
|
|
1. Redistributions of source code must retain the above copyright notice, this
|
2015-04-08 15:20:10 -07:00
|
|
|
|
list of conditions and the following disclaimer.
|
2014-02-15 18:06:03 -08:00
|
|
|
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
|
|
|
|
this list of conditions and the following disclaimer in the documentation
|
2015-04-08 15:20:10 -07:00
|
|
|
|
and/or other materials provided with the distribution.
|
2014-02-15 18:06:03 -08:00
|
|
|
|
|
|
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
|
|
|
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
|
|
|
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
|
|
|
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
|
|
|
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
|
|
|
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
|
|
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
|
|
|
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
|
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
|
|
|
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
|
|
|
|
|
|
The views and conclusions contained in the software and documentation are those
|
2015-04-08 15:20:10 -07:00
|
|
|
|
of the authors and should not be interpreted as representing official policies,
|
2014-02-15 18:06:03 -08:00
|
|
|
|
either expressed or implied, of the FreeBSD Project.
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
|
|
namespace MatterHackers.MatterControl.SlicerConfiguration
|
|
|
|
|
|
{
|
2015-04-08 15:20:10 -07:00
|
|
|
|
public class Slic3rEngineMappings : SliceEngineMaping
|
|
|
|
|
|
{
|
|
|
|
|
|
private static List<string> hideItems = null;
|
|
|
|
|
|
|
|
|
|
|
|
// private so that this class is a sigleton
|
|
|
|
|
|
private Slic3rEngineMappings()
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
2014-02-15 18:06:03 -08:00
|
|
|
|
|
2015-04-08 15:20:10 -07:00
|
|
|
|
private static Slic3rEngineMappings instance = null;
|
2014-02-15 18:06:03 -08:00
|
|
|
|
|
2015-04-08 15:20:10 -07:00
|
|
|
|
public static Slic3rEngineMappings Instance
|
|
|
|
|
|
{
|
|
|
|
|
|
get
|
|
|
|
|
|
{
|
|
|
|
|
|
if (instance == null)
|
|
|
|
|
|
{
|
|
|
|
|
|
instance = new Slic3rEngineMappings();
|
|
|
|
|
|
hideItems = new List<string>();
|
|
|
|
|
|
hideItems.Add("cool_extruder_lift");
|
|
|
|
|
|
hideItems.Add("support_material_create_internal_support");
|
2016-01-18 12:20:53 -08:00
|
|
|
|
hideItems.Add("support_material_create_perimeter");
|
2015-04-08 15:20:10 -07:00
|
|
|
|
hideItems.Add("min_extrusion_before_retract");
|
|
|
|
|
|
hideItems.Add("support_material_xy_distance");
|
|
|
|
|
|
hideItems.Add("support_material_z_distance");
|
|
|
|
|
|
hideItems.Add("center_part_on_bed");
|
|
|
|
|
|
hideItems.Add("infill_overlap_perimeter");
|
|
|
|
|
|
hideItems.Add("support_type");
|
|
|
|
|
|
hideItems.Add("infill_type");
|
|
|
|
|
|
hideItems.Add("create_raft");
|
|
|
|
|
|
hideItems.Add("z_gap");
|
|
|
|
|
|
hideItems.Add("bottom_clip_amount");
|
|
|
|
|
|
hideItems.Add("gcode_output_type");
|
|
|
|
|
|
hideItems.Add("raft_extra_distance_around_part");
|
2016-03-10 18:18:03 -08:00
|
|
|
|
hideItems.Add("output_only_first_layer");
|
2015-04-08 15:20:10 -07:00
|
|
|
|
hideItems.Add("raft_air_gap");
|
2015-12-28 09:55:39 -08:00
|
|
|
|
hideItems.Add("support_air_gap");
|
2015-04-08 15:20:10 -07:00
|
|
|
|
hideItems.Add("repair_outlines_extensive_stitching");
|
|
|
|
|
|
hideItems.Add("repair_outlines_keep_open");
|
|
|
|
|
|
hideItems.Add("complete_objects");
|
|
|
|
|
|
hideItems.Add("output_filename_format");
|
2016-01-11 10:30:15 -08:00
|
|
|
|
hideItems.Add("support_material_percent");
|
2015-04-08 15:20:10 -07:00
|
|
|
|
hideItems.Add("post_process");
|
|
|
|
|
|
hideItems.Add("extruder_clearance_height");
|
|
|
|
|
|
hideItems.Add("extruder_clearance_radius");
|
2015-02-20 12:05:44 -08:00
|
|
|
|
hideItems.Add("wipe_shield_distance");
|
|
|
|
|
|
hideItems.Add("heat_extruder_before_homing");
|
|
|
|
|
|
hideItems.Add("extruders_share_temperature");
|
2015-08-03 15:48:36 -07:00
|
|
|
|
hideItems.Add("print_leveling_method");
|
2015-10-13 13:40:35 -07:00
|
|
|
|
hideItems.Add("solid_shell");
|
2016-01-13 14:26:31 -08:00
|
|
|
|
hideItems.Add("retractWhenChangingIslands");
|
2015-04-08 15:20:10 -07:00
|
|
|
|
}
|
|
|
|
|
|
return instance;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2014-02-15 18:06:03 -08:00
|
|
|
|
|
2015-04-08 15:20:10 -07:00
|
|
|
|
public override bool MapContains(string defaultKey)
|
|
|
|
|
|
{
|
|
|
|
|
|
if (hideItems.Contains(defaultKey))
|
|
|
|
|
|
{
|
|
|
|
|
|
return false;
|
|
|
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|