mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-10 01:01:57 +00:00
The clang-tidy job on #14394 fails on 129 misc-include-cleaner findings:
the belt sources and tests use std::, Eigen, Point/PrintConfig and
BeltBrim symbols without including the header that provides them, which
only compiled because the precompiled header supplied it. Every include
the job names is added, in each file's existing include style ("../" in
the GCode/ and Support/ subdirectories, quoted libslic3r/ paths in the
GUI and tests). No code changes.
Verified with scripts/clang_tidy_diff.py -p build-tidy --base eb5b9a77b9
(SLIC3R_PCH=OFF compile database, clang-tidy 22.1.8): no findings left.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6Kg5igmmMU2YLoK6HrsWV
26 lines
834 B
C++
26 lines
834 B
C++
#pragma once
|
|
|
|
#include "GCode.hpp"
|
|
#include "Point.hpp"
|
|
#include "Print.hpp"
|
|
|
|
namespace Slic3r {
|
|
|
|
// Belt-printer-specific GCode export.
|
|
//
|
|
// Inherits from GCode and overrides virtual hooks to:
|
|
// - Install a BeltKinematics on the GCodeWriter
|
|
// - Write belt configuration to the G-code header
|
|
// - Adjust the origin for global pre-slice transforms when switching instances
|
|
// (Arc fitting is disabled for belt printers by BeltKinematics::supports_arc_moves(),
|
|
// which the base GCode::should_disable_arc_fitting() consults -- no override needed.)
|
|
class BeltGCode : public GCode
|
|
{
|
|
protected:
|
|
void init_belt_writer(Print &print) override;
|
|
void write_belt_header(GCodeOutputStream &file, const Print &print) override;
|
|
void on_set_origin(const PrintObject *obj, const Point &inst_shift) override;
|
|
};
|
|
|
|
} // namespace Slic3r
|