PrusaSlicer-NonPlainar/tests/libslic3r
Vojtech Bubnik 0f3cabb5d9 Support for forward compatibility of configurations, user and system
config bundles, project files (3MFs, AMFs). When loading these files,
the caller may decide whether to substitute some of the configuration
values the current PrusaSlicer version does not understand with
some reasonable default value, and whether to report it. If substitution
is disabled, an exception is being thrown as before this commit.
If substitution is enabled, list of substitutions is returned by the
API to be presented to the user. This allows us to introduce for example
new firmware flavor key in PrusaSlicer 2.4 while letting PrusaSlicer
2.3.2 to fall back to some default and to report it to the user.

When slicing from command line, substutions are performed by default
and reported into the console, however substitutions may be either
disabled or made silent with the new "config-compatibility" command
line option.

Substitute enums and bools only.  Allow booleans to be parsed as
    true: "1", "enabled", "on" case insensitive
    false: "0", "disabled", "off" case insensitive
This will allow us in the future for example to switch the draft_shield
boolean to an enum with the following values: "disabled" / "enabled" / "limited".

Added "enum_bitmask.hpp" - support for type safe sets of options.
See for example PresetBundle::load_configbundle(...
LoadConfigBundleAttributes flags) for an example of intended usage.

WIP: GUI for reporting the list of config substitutions needs to be
implemented by @YuSanka.
2021-06-27 16:57:05 +02:00
..
CMakeLists.txt Corrected mesh split implementation 2021-06-08 10:28:23 +02:00
libslic3r_tests.cpp
test_3mf.cpp Support for forward compatibility of configurations, user and system 2021-06-27 16:57:05 +02:00
test_aabbindirect.cpp
test_clipper_offset.cpp
test_clipper_utils.cpp Further rework of ClipperUtils: Replaced many to_polygons() / 2021-05-03 11:39:53 +02:00
test_config.cpp Support for forward compatibility of configurations, user and system 2021-06-27 16:57:05 +02:00
test_elephant_foot_compensation.cpp Removing offset2 from Perl bindings and other minor cleanup. 2021-05-06 14:29:20 +02:00
test_geometry.cpp
test_hollowing.cpp Corrected mesh split implementation 2021-06-08 10:28:23 +02:00
test_indexed_triangle_set.cpp Add new (winner) neighbor index based on measurements 2021-06-08 10:34:32 +02:00
test_marchingsquares.cpp Get rid of Contour3D 2021-06-08 10:28:23 +02:00
test_meshboolean.cpp
test_meshsimplify.cpp
test_mutable_polygon.cpp Fixing some compilation warnings 2021-03-15 10:36:03 +01:00
test_optimizers.cpp
test_placeholder_parser.cpp Support for forward compatibility of configurations, user and system 2021-06-27 16:57:05 +02:00
test_png_io.cpp
test_polygon.cpp Fixed Polygon::centroid() 2021-05-07 11:42:21 +02:00
test_stl.cpp
test_timeutils.cpp
test_voronoi.cpp Fix of 7bd412a2ca 2021-04-05 20:32:41 +02:00