mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-09 10:16:50 +00:00
ENH: clean codes about device
JIRA: [STUDIO-13609] Change-Id: I591de7033360b9570600006cfbce2148a8d031d5 (cherry picked from commit e9c774be8f4c89b8dafa14ef56913612fb68bd0c)
This commit is contained in:
@@ -95,6 +95,7 @@ set(lisbslic3r_sources
|
||||
ClipperZUtils.hpp
|
||||
Color.cpp
|
||||
Color.hpp
|
||||
CommonDefs.hpp
|
||||
Config.cpp
|
||||
Config.hpp
|
||||
CustomGCode.cpp
|
||||
|
||||
21
src/libslic3r/CommonDefs.hpp
Normal file
21
src/libslic3r/CommonDefs.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
// CommonDefs.hpp
|
||||
// ---------------
|
||||
// This header provides common definitions and enumerations shared across multiple libraries.
|
||||
// It is intended for use in projects that require consistent type definitions, such as nozzle types.
|
||||
// The contents of this file are designed to be reusable and maintainable for cross-library integration.
|
||||
|
||||
namespace Slic3r
|
||||
{
|
||||
// BBS
|
||||
enum NozzleType
|
||||
{
|
||||
ntUndefine = 0,
|
||||
ntHardenedSteel,
|
||||
ntStainlessSteel,
|
||||
ntTungstenCarbide,
|
||||
ntBrass,
|
||||
ntCount
|
||||
};
|
||||
}
|
||||
@@ -17,6 +17,7 @@
|
||||
#define slic3r_PrintConfig_hpp_
|
||||
|
||||
#include "libslic3r.h"
|
||||
#include "CommonDefs.hpp"
|
||||
#include "Config.hpp"
|
||||
#include "Polygon.hpp"
|
||||
#include <boost/preprocessor/facilities/empty.hpp>
|
||||
@@ -309,16 +310,6 @@ enum LayerSeq {
|
||||
flsCustomize
|
||||
};
|
||||
|
||||
// BBS
|
||||
enum NozzleType {
|
||||
ntUndefine = 0,
|
||||
ntHardenedSteel,
|
||||
ntStainlessSteel,
|
||||
ntTungstenCarbide,
|
||||
ntBrass,
|
||||
ntCount
|
||||
};
|
||||
|
||||
static std::unordered_map<NozzleType, std::string>NozzleTypeEumnToStr = {
|
||||
{NozzleType::ntUndefine, "undefine"},
|
||||
{NozzleType::ntHardenedSteel, "hardened_steel"},
|
||||
|
||||
Reference in New Issue
Block a user