OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
GCodeWriter.cpp File Reference
#include "GCodeWriter.hpp"
#include "Config.hpp"
#include "Extruder.hpp"
#include "Geometry.hpp"
#include "I18N.hpp"
#include "Point.hpp"
#include "Polygon.hpp"
#include "PrintConfig.hpp"
#include "IMEXHelpers.hpp"
#include "ClipperUtils.hpp"
#include "Geometry/ArcWelder.hpp"
#include "Line.hpp"
#include "LocalesUtils.hpp"
#include "libslic3r.h"
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <cstdlib>
#include <array>
#include <cstdint>
#include <charconv>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <map>
#include <assert.h>
#include <GCode/GCodeProcessor.hpp>
#include <string>
#include <vector>
#include <utility>
#include <sstream>
#include <stdexcept>
#include <math.h>
#include <memory>
Include dependency graph for GCodeWriter.cpp:

Go to the source code of this file.

Namespaces

namespace  Slic3r
 |/ Copyright (c) Prusa Research 2020 - 2023 Enrico Turri @enricoturri1966 |/ |/ PrusaSlicer is released under the terms of the AGPLv3 or higher |/

Macros

#define FLAVOR_IS(val)
#define FLAVOR_IS_NOT(val)
#define LIMITS(OPT)
#define LIMITS_UINT(OPT)
#define EXTRUDER_LIMIT(OPT)

Macro Definition Documentation

◆ EXTRUDER_LIMIT

#define EXTRUDER_LIMIT ( OPT)
Value:
(filament() ? ((OPT).size() <= filament()->extruder_id() ? 0 : (OPT)[filament()->extruder_id()]) : \
((OPT).empty() ? 0 : *std::max_element((OPT).cbegin(), (OPT).cend())))
423#define EXTRUDER_LIMIT(OPT) \
424 (filament() ? ((OPT).size() <= filament()->extruder_id() ? 0 : (OPT)[filament()->extruder_id()]) : \
425 ((OPT).empty() ? 0 : *std::max_element((OPT).cbegin(), (OPT).cend())))

Referenced by Slic3r::GCodeWriter::set_accel_and_jerk(), Slic3r::GCodeWriter::set_acceleration_internal(), Slic3r::GCodeWriter::set_jerk_xy(), and Slic3r::GCodeWriter::set_junction_deviation().

◆ FLAVOR_IS

◆ FLAVOR_IS_NOT

#define FLAVOR_IS_NOT ( val)

◆ LIMITS

#define LIMITS ( OPT)
Value:
get_machine_limits(#OPT, print_config.OPT)

Referenced by Slic3r::GCodeWriter::apply_print_config().

◆ LIMITS_UINT

#define LIMITS_UINT ( OPT)
Value:
to_uint(rounded(LIMITS(OPT)))
#define LIMITS(OPT)

Referenced by Slic3r::GCodeWriter::apply_print_config().