Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Lenox <lenox.joseph@gmail.com>2021-04-05 08:03:59 +0300
committerJoseph Lenox <lenox.joseph@gmail.com>2021-04-05 08:04:09 +0300
commitfe7105ff3264be48d380a255081e6819bae6e6c2 (patch)
tree8ef1d2dff45ec0e8de8eb3a220675fbbbac24f55 /src/libslic3r/Config.hpp
parent5b6f71dfefb0b504da4e69692bbd14b70b518622 (diff)
Initial cut to add an OutputFormat enumeration for SLA printing.
Diffstat (limited to 'src/libslic3r/Config.hpp')
-rw-r--r--src/libslic3r/Config.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/libslic3r/Config.hpp b/src/libslic3r/Config.hpp
index e9735fd19..52c057c76 100644
--- a/src/libslic3r/Config.hpp
+++ b/src/libslic3r/Config.hpp
@@ -186,6 +186,31 @@ inline PrinterTechnology operator&=(PrinterTechnology& a, PrinterTechnology b) {
a = a & b; return a;
}
+///
+enum OutputFormat : uint16_t
+{
+ ofMaskedCWS = 1 << 0,
+ ofSL1 = 1 << 1,
+ ofGCode = 1 << 2,
+ ofUnknown = 1 << 15
+};
+
+inline OutputFormat operator|(OutputFormat a, OutputFormat b) {
+ return static_cast<OutputFormat>(static_cast<uint8_t>(a) | static_cast<uint8_t>(b));
+}
+inline OutputFormat operator&(OutputFormat a, OutputFormat b) {
+ return static_cast<OutputFormat>(static_cast<uint8_t>(a)& static_cast<uint8_t>(b));
+}
+inline OutputFormat operator|=(OutputFormat& a, OutputFormat b) {
+ a = a | b; return a;
+}
+inline OutputFormat operator&=(OutputFormat& a, OutputFormat b) {
+ a = a & b; return a;
+}
+
+
+
+
// A generic value of a configuration option.
class ConfigOption {
public: