OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
ViewerImpl.cpp File Reference
#include "ViewerImpl.hpp"
#include "../include/GCodeInputData.hpp"
#include "Shaders.hpp"
#include "ShadersES.hpp"
#include "OpenGLUtils.hpp"
#include "Utils.hpp"
#include <cstdint>
#include "../include/Types.hpp"
#include <array>
#include "../include/PathVertex.hpp"
#include "Bitset.hpp"
#include "../include/ColorPrint.hpp"
#include <cfloat>
#include <iterator>
#include <map>
#include <assert.h>
#include <optional>
#include <stdexcept>
#include <cstdio>
#include <string>
#include <algorithm>
#include <cmath>
#include <numeric>
#include <type_traits>
#include <vector>
#include <utility>
Include dependency graph for ViewerImpl.cpp:

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 |/

Typedefs

template<class T, class O = T>
using libvgcode::IntegerOnly = std::enable_if_t<std::is_integral<T>::value, O>

Functions

template<typename I>
IntegerOnly< I, I > libvgcode::fast_round_up (double a)
static float libvgcode::round_to_bin (const float value)
static Mat4x4 libvgcode::inverse (const Mat4x4 &m)
std::string libvgcode::check_shader (GLuint handle)
std::string libvgcode::check_program (GLuint handle)
unsigned int libvgcode::init_shader (const std::string &shader_name, const char *vertex_shader, const char *fragment_shader, const std::vector< const char * > &fragment_outputs={})
static void libvgcode::delete_textures (unsigned int &id)
static void libvgcode::delete_buffers (unsigned int &id)
static std::string libvgcode::with_define (const char *source, const char *define)
static bool libvgcode::is_line (const std::vector< PathVertex > &vertices, size_t i)
static bool libvgcode::is_joint (const std::vector< PathVertex > &vertices, size_t i)
static void libvgcode::extract_pos_and_or_hwa (const std::vector< PathVertex > &vertices, float travels_radius, float wipes_radius, BitSet<> &valid_lines_bitset, std::vector< Vec4 > *positions=nullptr, std::vector< Vec4 > *heights_widths_angles=nullptr, bool update_bitset=false)
static bool libvgcode::is_visible (const PathVertex &v, const Settings &settings)

Variables

static constexpr int libvgcode::TRANSLUCENT_TEXTURE_UNIT = 5
static const std::array< Color, size_t(EGCodeExtrusionRole::COUNT)> libvgcode::DEFAULT_EXTRUSION_ROLES_COLORS
static const std::array< Color, size_t(EOptionType::COUNT)> libvgcode::DEFAULT_OPTIONS_COLORS