OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Types.hpp File Reference
#include <cstddef>
#include <array>
#include <vector>
#include <cstdint>
Include dependency graph for Types.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  libvgcode
 |/ Copyright (c) Prusa Research 2023 Enrico Turri @enricoturri1966, Pavel Mikuš @Godrak |/ |/ libvgcode is released under the terms of the AGPLv3 or higher |/

Macros

#define VGCODE_ENABLE_COG_AND_TOOL_MARKERS   0
 |/ Copyright (c) Prusa Research 2023 Enrico Turri @enricoturri1966, Pavel Mikuš @Godrak |/ |/ libvgcode is released under the terms of the AGPLv3 or higher |/

Typedefs

using libvgcode::Vec3 = std::array<float, 3>
using libvgcode::Vec4 = std::array<float, 4>
using libvgcode::Mat4x4 = std::array<float, 16>
using libvgcode::Color = std::array<uint8_t, 3>
using libvgcode::Palette = std::vector<Color>
using libvgcode::ColorWithAlpha = std::array<uint8_t, 4>
using libvgcode::PaletteWithAlpha = std::vector<ColorWithAlpha>
using libvgcode::AABox = std::array<Vec3, 2>
using libvgcode::Interval = std::array<std::size_t, 2>

Enumerations

enum class  libvgcode::EViewType : uint8_t {
  libvgcode::Summary , libvgcode::FeatureType , libvgcode::ColorPrint , libvgcode::Speed ,
  libvgcode::ActualSpeed , libvgcode::Height , libvgcode::Width , libvgcode::VolumetricFlowRate ,
  libvgcode::ActualVolumetricFlowRate , libvgcode::LayerTimeLinear , libvgcode::LayerTimeLogarithmic , libvgcode::FanSpeed ,
  libvgcode::Temperature , libvgcode::PressureAdvance , libvgcode::Acceleration , libvgcode::Jerk ,
  libvgcode::Tool , libvgcode::COUNT
}
enum class  libvgcode::EMoveType : uint8_t {
  libvgcode::Noop , libvgcode::Retract , libvgcode::Unretract , libvgcode::Seam ,
  libvgcode::ToolChange , libvgcode::ColorChange , libvgcode::PausePrint , libvgcode::CustomGCode ,
  libvgcode::Travel , libvgcode::Wipe , libvgcode::Extrude , libvgcode::COUNT
}
enum class  libvgcode::EGCodeExtrusionRole : uint8_t {
  libvgcode::None , libvgcode::Perimeter , libvgcode::ExternalPerimeter , libvgcode::OverhangPerimeter ,
  libvgcode::InternalInfill , libvgcode::SolidInfill , libvgcode::TopSolidInfill , libvgcode::Ironing ,
  libvgcode::BridgeInfill , libvgcode::GapFill , libvgcode::Skirt , libvgcode::SupportMaterial ,
  libvgcode::SupportMaterialInterface , libvgcode::WipeTower , libvgcode::Custom , libvgcode::BottomSurface ,
  libvgcode::InternalBridgeInfill , libvgcode::Brim , libvgcode::SupportTransition , libvgcode::Mixed ,
  libvgcode::COUNT
}
enum class  libvgcode::EOptionType : uint8_t {
  libvgcode::Travels , libvgcode::Wipes , libvgcode::Retractions , libvgcode::Unretractions ,
  libvgcode::Seams , libvgcode::ToolChanges , libvgcode::ColorChanges , libvgcode::PausePrints ,
  libvgcode::CustomGCodes , libvgcode::COUNT
}
enum class  libvgcode::ETimeMode : uint8_t { libvgcode::Normal , libvgcode::Stealth , libvgcode::COUNT }
enum class  libvgcode::EColorRangeType : uint8_t { libvgcode::Linear , libvgcode::Logarithmic , libvgcode::COUNT }

Functions

EOptionType libvgcode::move_type_to_option (EMoveType type)
Color libvgcode::lerp (const Color &c1, const Color &c2, float t)

Variables

static constexpr float libvgcode::PI = 3.141592f
static constexpr float libvgcode::DEFAULT_TRAVELS_RADIUS_MM = 0.1f
static constexpr float libvgcode::MIN_TRAVELS_RADIUS_MM = 0.05f
static constexpr float libvgcode::MAX_TRAVELS_RADIUS_MM = 1.0f
static constexpr float libvgcode::DEFAULT_WIPES_RADIUS_MM = 0.1f
static constexpr float libvgcode::MIN_WIPES_RADIUS_MM = 0.05f
static constexpr float libvgcode::MAX_WIPES_RADIUS_MM = 1.0f
static constexpr std::size_t libvgcode::VIEW_TYPES_COUNT = static_cast<std::size_t>(EViewType::COUNT)
static constexpr std::size_t libvgcode::MOVE_TYPES_COUNT = static_cast<std::size_t>(EMoveType::COUNT)
static constexpr std::size_t libvgcode::GCODE_EXTRUSION_ROLES_COUNT = static_cast<std::size_t>(EGCodeExtrusionRole::COUNT)
static constexpr std::size_t libvgcode::OPTION_TYPES_COUNT = static_cast<std::size_t>(EOptionType::COUNT)
static constexpr std::size_t libvgcode::TIME_MODES_COUNT = static_cast<std::size_t>(ETimeMode::COUNT)
static constexpr std::size_t libvgcode::COLOR_RANGE_TYPES_COUNT = static_cast<std::size_t>(EColorRangeType::COUNT)
static const Color libvgcode::DUMMY_COLOR { 64, 64, 64 }

Macro Definition Documentation

◆ VGCODE_ENABLE_COG_AND_TOOL_MARKERS

#define VGCODE_ENABLE_COG_AND_TOOL_MARKERS   0

|/ Copyright (c) Prusa Research 2023 Enrico Turri @enricoturri1966, Pavel Mikuš @Godrak |/ |/ libvgcode is released under the terms of the AGPLv3 or higher |/