mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 02:07:54 -06:00
ENH: use json to store filament & nozzle info
1.Use json to store nozzle hrc 2.Use json to store filament temp type jira: STUDIO-3488 Signed-off-by: xun.zhang <xun.zhang@bambulab.com> Change-Id: I8eb226e26352a41418f4e46d8cda403dc22ecff4 (cherry picked from commit 62a71d5b1947474d3d86be9015551c1007c89702)
This commit is contained in:
parent
9ce3487b20
commit
96abc3209a
7 changed files with 128 additions and 30 deletions
|
@ -672,6 +672,12 @@ class ConstPrintRegionPtrsAdaptor : public ConstVectorOfPtrsAdaptor<PrintRegion>
|
|||
};
|
||||
*/
|
||||
|
||||
enum FilamentTempType {
|
||||
HighTemp=0,
|
||||
LowTemp,
|
||||
HighLowCompatible,
|
||||
Undefine
|
||||
};
|
||||
// The complete print tray with possibly multiple objects.
|
||||
class Print : public PrintBaseWithState<PrintStep, psCount>
|
||||
{
|
||||
|
@ -819,7 +825,8 @@ public:
|
|||
Vec2d translate_to_print_space(const Vec2d& point) const;
|
||||
// scaled point
|
||||
Vec2d translate_to_print_space(const Point& point) const;
|
||||
|
||||
static FilamentTempType get_filament_temp_type(const std::string& filament_type);
|
||||
static int get_hrc_by_nozzle_type(const NozzleType& type);
|
||||
static bool check_multi_filaments_compatibility(const std::vector<std::string>& filament_types);
|
||||
// similar to check_multi_filaments_compatibility, but the input is int, and may be negative (means unset)
|
||||
static bool is_filaments_compatible(const std::vector<int>& types);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue