|/ Copyright (c) Prusa Research 2023 Enrico Turri @enricoturri1966, Pavel Mikuš @Godrak |/ |/ libvgcode is released under the terms of the AGPLv3 or higher |/ More...
Classes | |
| struct | ColorPrint |
| class | ColorRange |
| struct | GCodeInputData |
| struct | PathVertex |
| class | Viewer |
| struct | BitSet |
| class | ExtrusionRoles |
| class | Layers |
| class | OpenGLWrapper |
| class | OptionTemplate |
| class | Range |
| class | SegmentTemplate |
| struct | Settings |
| class | ViewerImpl |
| class | ViewRange |
| struct | VerticesData |
| class | WipeTowerHelper |
| class | ObjectHelper |
Typedefs | |
| using | Vec3 = std::array<float, 3> |
| using | Vec4 = std::array<float, 4> |
| using | Mat4x4 = std::array<float, 16> |
| using | Color = std::array<uint8_t, 3> |
| using | Palette = std::vector<Color> |
| using | ColorWithAlpha = std::array<uint8_t, 4> |
| using | PaletteWithAlpha = std::vector<ColorWithAlpha> |
| using | AABox = std::array<Vec3, 2> |
| using | Interval = std::array<std::size_t, 2> |
| template<class T, class O = T> | |
| using | IntegerOnly = std::enable_if_t<std::is_integral<T>::value, O> |
Functions | |
| EOptionType | move_type_to_option (EMoveType type) |
| Color | lerp (const Color &c1, const Color &c2, float t) |
| static float | get_step_size (const ColorRange &color_range) |
| static bool | is_colorprint_option (const PathVertex &v) |
| void | glAssertRecentCallImpl (const char *file_name, unsigned int line, const char *function_name) |
| void | glAssertRecentCall () |
| static uint8_t | lerp (uint8_t f1, uint8_t f2, float t) |
| void | add_vertex (const Vec3 &position, const Vec3 &normal, std::vector< float > &vertices) |
| void | add_triangle (uint16_t v1, uint16_t v2, uint16_t v3, std::vector< uint16_t > &indices) |
| Vec3 | normalize (const Vec3 &v) |
| float | dot (const Vec3 &v1, const Vec3 &v2) |
| float | length (const Vec3 &v) |
| bool | operator== (const Vec3 &v1, const Vec3 &v2) |
| bool | operator!= (const Vec3 &v1, const Vec3 &v2) |
| Vec3 | operator+ (const Vec3 &v1, const Vec3 &v2) |
| Vec3 | operator- (const Vec3 &v1, const Vec3 &v2) |
| Vec3 | operator* (float f, const Vec3 &v) |
| template<typename I> | |
| IntegerOnly< I, I > | fast_round_up (double a) |
| static float | round_to_bin (const float value) |
| static Mat4x4 | inverse (const Mat4x4 &m) |
| std::string | check_shader (GLuint handle) |
| std::string | check_program (GLuint handle) |
| unsigned int | init_shader (const std::string &shader_name, const char *vertex_shader, const char *fragment_shader, const std::vector< const char * > &fragment_outputs={}) |
| static void | delete_textures (unsigned int &id) |
| static void | delete_buffers (unsigned int &id) |
| static std::string | with_define (const char *source, const char *define) |
| static bool | is_line (const std::vector< PathVertex > &vertices, size_t i) |
| static bool | is_joint (const std::vector< PathVertex > &vertices, size_t i) |
| static void | 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 | is_visible (const PathVertex &v, const Settings &settings) |
| Vec3 | convert (const Slic3r::Vec3f &v) |
| Slic3r::Vec3f | convert (const Vec3 &v) |
| Mat4x4 | convert (const Slic3r::Matrix4f &m) |
| Slic3r::ColorRGBA | convert (const Color &c) |
| Color | convert (const Slic3r::ColorRGBA &c) |
| Slic3r::ColorRGBA | convert (const ColorWithAlpha &c) |
| PaletteWithAlpha | convert_filament_colors (const std::vector< std::string > &colors_str) |
| Slic3r::ExtrusionRole | convert (EGCodeExtrusionRole role) |
| EGCodeExtrusionRole | convert (Slic3r::ExtrusionRole role) |
| EMoveType | convert (Slic3r::EMoveType type) |
| ETimeMode | convert (const Slic3r::PrintEstimatedStatistics::ETimeMode &mode) |
| Slic3r::PrintEstimatedStatistics::ETimeMode | convert (const ETimeMode &mode) |
| static bool | starts_path (const Slic3r::GCodeProcessorResult::MoveVertex &prev, const Slic3r::GCodeProcessorResult::MoveVertex &curr, bool first_move) |
| GCodeInputData | convert (const Slic3r::GCodeProcessorResult &result, const std::vector< std::string > &str_tool_colors, const std::vector< std::string > &str_color_print_colors, const Viewer &viewer, const Slic3r::Transform3d *belt_xform) |
| static void | convert_lines_to_vertices (const Slic3r::Lines &lines, const std::vector< float > &widths, const std::vector< float > &heights, float top_z, size_t layer_id, size_t extruder_id, size_t color_id, EGCodeExtrusionRole extrusion_role, bool closed, std::vector< PathVertex > &vertices) |
| static void | convert_to_vertices (const Slic3r::ExtrusionPath &extrusion_path, float print_z, size_t layer_id, size_t extruder_id, size_t color_id, EGCodeExtrusionRole extrusion_role, const Slic3r::Point &shift, std::vector< PathVertex > &vertices) |
| static void | convert_to_vertices (const Slic3r::ExtrusionMultiPath &extrusion_multi_path, float print_z, size_t layer_id, size_t extruder_id, size_t color_id, EGCodeExtrusionRole extrusion_role, const Slic3r::Point &shift, std::vector< PathVertex > &vertices) |
| static void | convert_to_vertices (const Slic3r::ExtrusionLoop &extrusion_loop, float print_z, size_t layer_id, size_t extruder_id, size_t color_id, EGCodeExtrusionRole extrusion_role, const Slic3r::Point &shift, std::vector< PathVertex > &vertices) |
| static void | convert_to_vertices (const Slic3r::ExtrusionEntityCollection &extrusion_entity_collection, float print_z, size_t layer_id, size_t extruder_id, size_t color_id, EGCodeExtrusionRole extrusion_role, const Slic3r::Point &shift, std::vector< PathVertex > &vertices) |
| static void | convert_to_vertices (const Slic3r::ExtrusionEntity &extrusion_entity, float print_z, size_t layer_id, size_t extruder_id, size_t color_id, EGCodeExtrusionRole extrusion_role, const Slic3r::Point &shift, std::vector< PathVertex > &vertices) |
| static void | convert_brim_skirt_to_vertices (const Slic3r::Print &print, std::vector< VerticesData > &vertices_data) |
| static void | convert_wipe_tower_to_vertices (const Slic3r::Print &print, const std::vector< std::string > &str_tool_colors, std::vector< VerticesData > &vertices_data) |
| static void | convert_object_to_vertices (const Slic3r::PrintObject &object, const std::vector< std::string > &str_tool_colors, const std::vector< std::string > &str_color_print_colors, const std::vector< Slic3r::CustomGCode::Item > &color_print_values, size_t extruders_count, VerticesData &data) |
| static void | convert_objects_to_vertices (const Slic3r::ConstPrintObjectPtrsAdaptor &objects, const std::vector< std::string > &str_tool_colors, const std::vector< std::string > &str_color_print_colors, const std::vector< Slic3r::CustomGCode::Item > &color_print_values, size_t extruders_count, std::vector< VerticesData > &data) |
| GCodeInputData | convert (const Slic3r::Print &print, const std::vector< std::string > &str_tool_colors, const std::vector< std::string > &str_color_print_colors, const std::vector< Slic3r::CustomGCode::Item > &color_print_values, size_t extruders_count) |
Variables | |
| static const Palette | DEFAULT_RANGES_COLORS |
| static constexpr float | PI = 3.141592f |
| static constexpr float | DEFAULT_TRAVELS_RADIUS_MM = 0.1f |
| static constexpr float | MIN_TRAVELS_RADIUS_MM = 0.05f |
| static constexpr float | MAX_TRAVELS_RADIUS_MM = 1.0f |
| static constexpr float | DEFAULT_WIPES_RADIUS_MM = 0.1f |
| static constexpr float | MIN_WIPES_RADIUS_MM = 0.05f |
| static constexpr float | MAX_WIPES_RADIUS_MM = 1.0f |
| static constexpr std::size_t | VIEW_TYPES_COUNT = static_cast<std::size_t>(EViewType::COUNT) |
| static constexpr std::size_t | MOVE_TYPES_COUNT = static_cast<std::size_t>(EMoveType::COUNT) |
| static constexpr std::size_t | GCODE_EXTRUSION_ROLES_COUNT = static_cast<std::size_t>(EGCodeExtrusionRole::COUNT) |
| static constexpr std::size_t | OPTION_TYPES_COUNT = static_cast<std::size_t>(EOptionType::COUNT) |
| static constexpr std::size_t | TIME_MODES_COUNT = static_cast<std::size_t>(ETimeMode::COUNT) |
| static constexpr std::size_t | COLOR_RANGE_TYPES_COUNT = static_cast<std::size_t>(EColorRangeType::COUNT) |
| static const Color | DUMMY_COLOR { 64, 64, 64 } |
| template<typename T> | |
| auto constexpr | is_atomic = false |
| template<typename T> | |
| auto constexpr | is_atomic< std::atomic< T > > = true |
| static const char * | OPENGL_ES_PREFIXES [] = { "OpenGL ES-CM ", "OpenGL ES-CL ", "OpenGL ES ", nullptr } |
| static constexpr const std::array< uint32_t, 8 > | VERTEX_DATA = { 0, 1, 2, 3, 4, 5, 6, 7 } |
| static constexpr const std::array< uint16_t, 24 > | INDEX_DATA |
| static const char * | Segments_Vertex_Shader |
| static const char * | Segments_Shadow_Caster_Vertex_Shader |
| static const char * | Segments_Shadow_Caster_Fragment_Shader |
| static const char * | Segments_Fragment_Shader |
| static const char * | Translucent_Composite_Vertex_Shader |
| static const char * | Translucent_Composite_Fragment_Shader |
| static const char * | Options_Vertex_Shader |
| static const char * | Options_Fragment_Shader |
| static const char * | Segments_Vertex_Shader_ES |
| static const char * | Segments_Shadow_Caster_Vertex_Shader_ES |
| static const char * | Segments_Shadow_Caster_Fragment_Shader_ES |
| static const char * | Segments_Fragment_Shader_ES |
| static const char * | Options_Vertex_Shader_ES |
| static const char * | Options_Fragment_Shader_ES |
| static constexpr int | TRANSLUCENT_TEXTURE_UNIT = 5 |
| static const std::array< Color, size_t(EGCodeExtrusionRole::COUNT)> | DEFAULT_EXTRUSION_ROLES_COLORS |
| static const std::array< Color, size_t(EOptionType::COUNT)> | DEFAULT_OPTIONS_COLORS |
|/ Copyright (c) Prusa Research 2023 Enrico Turri @enricoturri1966, Pavel Mikuš @Godrak |/ |/ libvgcode is released under the terms of the AGPLv3 or higher |/
|/ Copyright (c) Prusa Research 2020 - 2023 Enrico Turri @enricoturri1966 |/ |/ PrusaSlicer is released under the terms of the AGPLv3 or higher |/
|/ Copyright (c) Prusa Research 2023 Enrico Turri @enricoturri1966, Pavel Mikuš @Godrak, Vojtěch Bubník @bubnikv, Oleksandra Iushchenko @YuSanka |/ |/ libvgcode is released under the terms of the AGPLv3 or higher |/
|/ Copyright (c) Prusa Research 2023 Enrico Turri @enricoturri1966, Pavel Mikuš @Godrak, Vojtěch Bubník @bubnikv |/ |/ libvgcode is released under the terms of the AGPLv3 or higher |/
|/ Copyright (c) Prusa Research 2023 Enrico Turri @enricoturri1966 |/ |/ libvgcode is released under the terms of the AGPLv3 or higher |/
| struct libvgcode::ColorPrint |
| Class Members | ||
|---|---|---|
| uint8_t | color_id { 0 } | |
| uint8_t | extruder_id { 0 } | |
| uint32_t | layer_id { 0 } | |
| array< float, TIME_MODES_COUNT > | times { 0.0f, 0.0f } | |
| struct libvgcode::GCodeInputData |
| Class Members | ||
|---|---|---|
| PaletteWithAlpha | color_print_colors | |
| bool | spiral_vase_mode { false } | |
| PaletteWithAlpha | tools_colors | |
| vector< PathVertex > | vertices | |
| struct libvgcode::Settings |
| Class Members | ||
|---|---|---|
| bool | dim_previous_layers { false } | |
| float | dim_previous_layers_brightness { 0.4f } | |
| array< bool, size_t(COUNT)> | extrusion_roles_visibility | |
| array< bool, size_t(COUNT)> | options_visibility | |
| bool | spiral_vase_mode { false } | |
| ETimeMode | time_mode { ETimeMode::Normal } | |
| bool | top_layer_only_view_range { false } | |
| bool | translucent_filaments { true } | |
| bool | update_colors { true } | |
| bool | update_enabled_entities { true } | |
| bool | update_view_full_range { true } | |
| EViewType | view_type { EViewType::FeatureType } | |
| struct libvgcode::VerticesData |
| Class Members | ||
|---|---|---|
| vector< float > | layers_zs | |
| vector< PathVertex > | vertices | |
| using libvgcode::AABox = std::array<Vec3, 2> |
| using libvgcode::Color = std::array<uint8_t, 3> |
| using libvgcode::ColorWithAlpha = std::array<uint8_t, 4> |
| using libvgcode::IntegerOnly = std::enable_if_t<std::is_integral<T>::value, O> |
| using libvgcode::Interval = std::array<std::size_t, 2> |
| using libvgcode::Mat4x4 = std::array<float, 16> |
| using libvgcode::Palette = std::vector<Color> |
| using libvgcode::PaletteWithAlpha = std::vector<ColorWithAlpha> |
| using libvgcode::Vec3 = std::array<float, 3> |
| using libvgcode::Vec4 = std::array<float, 4> |
|
strong |
| Enumerator | |
|---|---|
| Linear | |
| Logarithmic | |
| COUNT | |
|
strong |
|
strong |
| Enumerator | |
|---|---|
| Noop | |
| Retract | |
| Unretract | |
| Seam | |
| ToolChange | |
| ColorChange | |
| PausePrint | |
| CustomGCode | |
| Travel | |
| Wipe | |
| Extrude | |
| COUNT | |
|
strong |
| Enumerator | |
|---|---|
| Travels | |
| Wipes | |
| Retractions | |
| Unretractions | |
| Seams | |
| ToolChanges | |
| ColorChanges | |
| PausePrints | |
| CustomGCodes | |
| COUNT | |
|
strong |
|
strong |
| void libvgcode::add_triangle | ( | uint16_t | v1, |
| uint16_t | v2, | ||
| uint16_t | v3, | ||
| std::vector< uint16_t > & | indices ) |
| void libvgcode::add_vertex | ( | const Vec3 & | position, |
| const Vec3 & | normal, | ||
| std::vector< float > & | vertices ) |
Referenced by libvgcode::OptionTemplate::init().
| std::string libvgcode::check_program | ( | GLuint | handle | ) |
References GL_FALSE, GL_INFO_LOG_LENGTH, GL_LINK_STATUS, glGetProgramInfoLog, glGetProgramiv, and glsafe.
| std::string libvgcode::check_shader | ( | GLuint | handle | ) |
References GL_COMPILE_STATUS, GL_FALSE, GL_INFO_LOG_LENGTH, glGetShaderInfoLog, glGetShaderiv, and glsafe.
| Slic3r::ColorRGBA libvgcode::convert | ( | const Color & | c | ) |
| Slic3r::ColorRGBA libvgcode::convert | ( | const ColorWithAlpha & | c | ) |
| Slic3r::PrintEstimatedStatistics::ETimeMode libvgcode::convert | ( | const ETimeMode & | mode | ) |
References Slic3r::PrintEstimatedStatistics::Count, Normal, Slic3r::PrintEstimatedStatistics::Normal, Stealth, and Slic3r::PrintEstimatedStatistics::Stealth.
| Color libvgcode::convert | ( | const Slic3r::ColorRGBA & | c | ) |
References Slic3r::ColorRGBA::b(), Slic3r::ColorRGBA::g(), and Slic3r::ColorRGBA::r().
| GCodeInputData libvgcode::convert | ( | const Slic3r::GCodeProcessorResult & | result, |
| const std::vector< std::string > & | str_tool_colors, | ||
| const std::vector< std::string > & | str_color_print_colors, | ||
| const Viewer & | viewer, | ||
| const Slic3r::Transform3d * | belt_xform ) |
References Slic3r::GCodeProcessorResult::MoveVertex::acceleration, Slic3r::GCodeProcessorResult::MoveVertex::actual_feedrate, libvgcode::GCodeInputData::color_print_colors, convert(), convert_filament_colors(), Slic3r::GCodeProcessorResult::MoveVertex::cp_color_id, Slic3r::GCodeProcessorResult::MoveVertex::extruder_id, Slic3r::GCodeProcessorResult::MoveVertex::extrusion_role, Slic3r::GCodeProcessorResult::MoveVertex::fan_speed, Slic3r::GCodeProcessorResult::MoveVertex::feedrate, Slic3r::GCodeProcessorResult::filament_densities, Slic3r::GCodeProcessorResult::MoveVertex::gcode_id, Slic3r::GCodeProcessorResult::MoveVertex::height, Slic3r::GCodeProcessorResult::MoveVertex::jerk, Slic3r::GCodeProcessorResult::MoveVertex::layer_id, Slic3r::GCodeProcessorResult::MoveVertex::mm3_per_mm, Slic3r::GCodeProcessorResult::moves, Slic3r::GCodeProcessorResult::MoveVertex::position, Slic3r::GCodeProcessorResult::MoveVertex::pressure_advance, libvgcode::GCodeInputData::spiral_vase_mode, Slic3r::GCodeProcessorResult::spiral_vase_mode, starts_path(), Slic3r::GCodeProcessorResult::MoveVertex::temperature, Slic3r::GCodeProcessorResult::MoveVertex::time, libvgcode::GCodeInputData::tools_colors, Slic3r::GCodeProcessorResult::MoveVertex::type, libvgcode::GCodeInputData::vertices, and Slic3r::GCodeProcessorResult::MoveVertex::width.
| Mat4x4 libvgcode::convert | ( | const Slic3r::Matrix4f & | m | ) |
| GCodeInputData libvgcode::convert | ( | const Slic3r::Print & | print, |
| const std::vector< std::string > & | str_tool_colors, | ||
| const std::vector< std::string > & | str_color_print_colors, | ||
| const std::vector< Slic3r::CustomGCode::Item > & | color_print_values, | ||
| size_t | extruders_count ) |
References libvgcode::GCodeInputData::color_print_colors, convert(), convert_brim_skirt_to_vertices(), convert_filament_colors(), convert_objects_to_vertices(), convert_wipe_tower_to_vertices(), Slic3r::Print::has_brim(), Slic3r::Print::has_skirt(), Slic3r::Print::is_step_done(), Slic3r::Print::objects(), Slic3r::psSkirtBrim, Slic3r::psWipeTower, Slic3r::sort_remove_duplicates(), Slic3r::WipeTowerData::tool_changes, libvgcode::GCodeInputData::tools_colors, libvgcode::GCodeInputData::vertices, and Slic3r::Print::wipe_tower_data().
| ETimeMode libvgcode::convert | ( | const Slic3r::PrintEstimatedStatistics::ETimeMode & | mode | ) |
References COUNT, Normal, Slic3r::PrintEstimatedStatistics::Normal, Stealth, and Slic3r::PrintEstimatedStatistics::Stealth.
| Vec3 libvgcode::convert | ( | const Slic3r::Vec3f & | v | ) |
Referenced by convert(), convert(), convert_filament_colors(), convert_lines_to_vertices(), Slic3r::GUI::ToolpathsObjExporter::export_segment(), Slic3r::GUI::GCodeViewer::load_as_gcode(), Slic3r::GUI::GCodeViewer::load_as_preview(), Slic3r::GUI::GCodeViewer::render_legend(), Slic3r::GUI::GCodeViewer::render_markers(), Slic3r::GUI::GCodeViewer::SequentialView::Marker::render_position_window(), Slic3r::GUI::GCodeViewer::render_shadow_casters(), Slic3r::GUI::GCodeViewer::render_toolpaths(), Slic3r::GUI::GCodeViewer::render_translucent_toolpaths(), Slic3r::GUI::GCodeViewer::set_light_top_dir(), Slic3r::GUI::GCodeViewer::set_shadow_map(), starts_path(), and Slic3r::GUI::GCodeViewer::update_sequential_view_current().
| Slic3r::Vec3f libvgcode::convert | ( | const Vec3 & | v | ) |
| Slic3r::ExtrusionRole libvgcode::convert | ( | EGCodeExtrusionRole | role | ) |
References BottomSurface, BridgeInfill, Brim, Custom, Slic3r::erBottomSurface, Slic3r::erBridgeInfill, Slic3r::erBrim, Slic3r::erCustom, Slic3r::erExternalPerimeter, Slic3r::erGapFill, Slic3r::erInternalBridgeInfill, Slic3r::erInternalInfill, Slic3r::erIroning, Slic3r::erMixed, Slic3r::erNone, Slic3r::erOverhangPerimeter, Slic3r::erPerimeter, Slic3r::erSkirt, Slic3r::erSolidInfill, Slic3r::erSupportMaterial, Slic3r::erSupportMaterialInterface, Slic3r::erSupportTransition, Slic3r::erTopSolidInfill, Slic3r::erWipeTower, ExternalPerimeter, GapFill, InternalBridgeInfill, InternalInfill, Ironing, Mixed, None, OverhangPerimeter, Perimeter, Skirt, SolidInfill, SupportMaterial, SupportMaterialInterface, SupportTransition, TopSolidInfill, and WipeTower.
| EMoveType libvgcode::convert | ( | Slic3r::EMoveType | type | ) |
References Slic3r::Color_change, ColorChange, COUNT, Slic3r::Custom_GCode, CustomGCode, Extrude, Slic3r::Extrude, Noop, Slic3r::Noop, Slic3r::Pause_Print, PausePrint, Retract, Slic3r::Retract, Seam, Slic3r::Seam, Slic3r::Tool_change, ToolChange, Travel, Slic3r::Travel, Unretract, Slic3r::Unretract, Wipe, and Slic3r::Wipe.
| EGCodeExtrusionRole libvgcode::convert | ( | Slic3r::ExtrusionRole | role | ) |
References BottomSurface, BridgeInfill, Brim, Custom, Slic3r::erBottomSurface, Slic3r::erBridgeInfill, Slic3r::erBrim, Slic3r::erCustom, Slic3r::erExternalPerimeter, Slic3r::erGapFill, Slic3r::erInternalBridgeInfill, Slic3r::erInternalInfill, Slic3r::erIroning, Slic3r::erMixed, Slic3r::erNone, Slic3r::erOverhangPerimeter, Slic3r::erPerimeter, Slic3r::erSkirt, Slic3r::erSolidInfill, Slic3r::erSupportMaterial, Slic3r::erSupportMaterialInterface, Slic3r::erSupportTransition, Slic3r::erTopSolidInfill, Slic3r::erWipeTower, ExternalPerimeter, GapFill, InternalBridgeInfill, InternalInfill, Ironing, Mixed, None, OverhangPerimeter, Perimeter, Skirt, SolidInfill, SupportMaterial, SupportMaterialInterface, SupportTransition, TopSolidInfill, and WipeTower.
|
static |
References Slic3r::ConstVectorOfPtrsAdaptor< T >::begin(), Slic3r::Print::config(), convert_to_vertices(), Slic3r::ConstVectorOfPtrsAdaptor< T >::end(), Slic3r::Print::has_brim(), Slic3r::Print::has_infinite_skirt(), Slic3r::PrintObject::layers(), libvgcode::VerticesData::layers_zs, Slic3r::Print::objects(), Slic3r::SlicingParameters::raft_layers(), Slic3r::ConstVectorOfPtrsAdaptor< T >::size(), Skirt, Slic3r::Print::skirt(), Slic3r::PrintObject::slicing_parameters(), Slic3r::sort_remove_duplicates(), Slic3r::PrintObject::support_layers(), and libvgcode::VerticesData::vertices.
Referenced by convert().
| PaletteWithAlpha libvgcode::convert_filament_colors | ( | const std::vector< std::string > & | colors_str | ) |
References Slic3r::ColorRGBA::a(), adjust_color_for_rendering(), convert(), and DUMMY_COLOR.
Referenced by convert(), convert(), and Slic3r::GUI::GCodeViewer::load_as_gcode().
|
static |
References Slic3r::Line::a, Slic3r::Line::b, convert(), Extrude, and Noop.
Referenced by convert_to_vertices(), convert_to_vertices(), convert_to_vertices(), and convert_wipe_tower_to_vertices().
|
static |
References libvgcode::ObjectHelper::color_id(), Slic3r::PrintObject::config(), convert_object_to_vertices(), convert_to_vertices(), Slic3r::ExtrusionEntityCollection::entities, Slic3r::erBottomSurface, Slic3r::erIroning, Slic3r::erSupportMaterial, Slic3r::erTopSolidInfill, ExternalPerimeter, InternalInfill, Slic3r::is_solid_infill(), libvgcode::VerticesData::layers_zs, Slic3r::Layer::object(), Slic3r::posInfill, Slic3r::posPerimeters, Slic3r::posSupportMaterial, Slic3r::PrintObjectConfig, Slic3r::PrintRegionConfig, Slic3r::ExtrusionEntity::role(), SolidInfill, Slic3r::sort_remove_duplicates(), Slic3r::SupportLayer::support_fills, SupportMaterial, SupportMaterialInterface, and libvgcode::VerticesData::vertices.
Referenced by convert_object_to_vertices(), and convert_objects_to_vertices().
|
static |
References convert_object_to_vertices(), convert_objects_to_vertices(), and Slic3r::ConstVectorOfPtrsAdaptor< T >::size().
Referenced by convert(), and convert_objects_to_vertices().
|
static |
References convert_to_vertices().
|
static |
References convert_to_vertices(), and Slic3r::ExtrusionEntityCollection::entities.
|
static |
References convert_lines_to_vertices(), Slic3r::ExtrusionPath::height, Slic3r::Polyline::lines(), Slic3r::ExtrusionLoop::paths, Slic3r::ExtrusionPath::polyline, Slic3r::MultiPoint::remove_duplicate_points(), Slic3r::Polyline3::to_polyline(), Slic3r::MultiPoint::translate(), and Slic3r::ExtrusionPath::width.
|
static |
References convert_lines_to_vertices(), Slic3r::ExtrusionPath::height, Slic3r::Polyline::lines(), Slic3r::ExtrusionMultiPath::paths, Slic3r::ExtrusionPath::polyline, Slic3r::MultiPoint::remove_duplicate_points(), Slic3r::Polyline3::to_polyline(), Slic3r::MultiPoint::translate(), and Slic3r::ExtrusionPath::width.
|
static |
References convert_lines_to_vertices(), Slic3r::ExtrusionPath::height, Slic3r::Polyline::lines(), Slic3r::ExtrusionPath::polyline, Slic3r::MultiPoint::remove_duplicate_points(), Slic3r::Polyline3::to_polyline(), Slic3r::MultiPoint::translate(), and Slic3r::ExtrusionPath::width.
Referenced by convert_brim_skirt_to_vertices(), convert_object_to_vertices(), convert_to_vertices(), and convert_to_vertices().
|
static |
References convert_lines_to_vertices(), convert_wipe_tower_to_vertices(), libvgcode::WipeTowerHelper::get_angle(), libvgcode::WipeTowerHelper::get_layers_count(), libvgcode::WipeTowerHelper::get_position(), libvgcode::VerticesData::layers_zs, Slic3r::Point::new_scale(), Slic3r::WipeTower::Extrusion::pos, Slic3r::sort_remove_duplicates(), Slic3r::WipeTower::Extrusion::tool, libvgcode::WipeTowerHelper::tool_change(), libvgcode::VerticesData::vertices, Slic3r::WipeTower::Extrusion::width, and WipeTower.
Referenced by convert(), and convert_wipe_tower_to_vertices().
|
static |
References glDeleteBuffers, and glsafe.
Referenced by libvgcode::ViewerImpl::reset().
|
static |
References glDeleteTextures, and glsafe.
Referenced by libvgcode::ViewerImpl::TranslucentTargets::release(), and libvgcode::ViewerImpl::reset().
Referenced by extract_pos_and_or_hwa(), length(), and normalize().
|
static |
References dot(), Extrude, libvgcode::PathVertex::height, is_joint(), is_line(), libvgcode::PathVertex::is_option(), libvgcode::PathVertex::is_travel(), libvgcode::PathVertex::is_wipe(), libvgcode::PathVertex::layer_id, libvgcode::PathVertex::position, libvgcode::PathVertex::type, and libvgcode::PathVertex::width.
Referenced by libvgcode::ViewerImpl::load(), and libvgcode::ViewerImpl::update_heights_widths().
|
inline |
Referenced by round_to_bin().
|
static |
References libvgcode::ColorRange::get_palette(), libvgcode::ColorRange::get_range(), libvgcode::ColorRange::get_type(), Linear, and Logarithmic.
Referenced by libvgcode::ColorRange::get_color_at(), and libvgcode::ColorRange::get_values().
|
inline |
References glAssertRecentCallImpl().
| void libvgcode::glAssertRecentCallImpl | ( | const char * | file_name, |
| unsigned int | line, | ||
| const char * | function_name ) |
References GL_INVALID_ENUM, GL_INVALID_FRAMEBUFFER_OPERATION, GL_INVALID_OPERATION, GL_INVALID_VALUE, GL_NO_ERROR, GL_OUT_OF_MEMORY, GL_STACK_OVERFLOW, GL_STACK_UNDERFLOW, and glGetError.
Referenced by glAssertRecentCall().
| 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 = {} ) |
Referenced by libvgcode::ViewerImpl::init().
Referenced by libvgcode::ViewerImpl::render(), and libvgcode::ViewerImpl::render_translucent().
|
static |
References CustomGCode, PausePrint, and libvgcode::PathVertex::type.
Referenced by libvgcode::Layers::update().
|
static |
References is_line().
Referenced by extract_pos_and_or_hwa().
|
static |
References Seam.
Referenced by extract_pos_and_or_hwa(), and is_joint().
|
static |
References COUNT, Extrude, libvgcode::Settings::extrusion_roles_visibility, move_type_to_option(), libvgcode::Settings::options_visibility, libvgcode::PathVertex::role, and libvgcode::PathVertex::type.
Referenced by libvgcode::ViewerImpl::update_view_full_range().
| float libvgcode::length | ( | const Vec3 & | v | ) |
References dot().
Referenced by libvgcode::OpenGLWrapper::load_opengl(), and normalize().
References lerp().
Referenced by libvgcode::ColorRange::get_color_at(), and lerp().
|
static |
|
extern |
References ColorChange, ColorChanges, COUNT, CustomGCode, CustomGCodes, PausePrint, PausePrints, Retract, Retractions, Seam, Seams, ToolChange, ToolChanges, Travel, Travels, Unretract, Unretractions, Wipe, and Wipes.
Referenced by libvgcode::ViewerImpl::get_vertex_color(), is_visible(), libvgcode::ViewerImpl::load(), starts_path(), and libvgcode::ViewerImpl::update_enabled_entities().
References dot(), and length().
Referenced by libvgcode::OptionTemplate::init().
|
static |
References fast_round_up(), and scale().
Referenced by libvgcode::ViewerImpl::update_color_ranges().
|
static |
References Slic3r::GCodeProcessorResult::MoveVertex::acceleration, convert(), COUNT, Slic3r::GCodeProcessorResult::MoveVertex::extrusion_role, Slic3r::GCodeProcessorResult::MoveVertex::jerk, Slic3r::GCodeProcessorResult::MoveVertex::mm3_per_mm, move_type_to_option(), Travels, Slic3r::GCodeProcessorResult::MoveVertex::type, and Wipes.
Referenced by convert().
|
static |
Referenced by libvgcode::ViewerImpl::init().
|
staticconstexpr |
Referenced by libvgcode::ViewerImpl::get_used_cpu_memory().
|
static |
Referenced by libvgcode::ViewerImpl::reset_default_extrusion_roles_colors().
|
static |
Referenced by libvgcode::ViewerImpl::reset_default_options_colors().
|
static |
Referenced by libvgcode::ColorRange::ColorRange().
|
staticconstexpr |
|
staticconstexpr |
|
static |
Referenced by Slic3r::GUI::ToolpathsObjExporter::color_id(), convert_filament_colors(), libvgcode::ViewerImpl::get_vertex_color(), and libvgcode::ViewerImpl::update_colors().
|
staticconstexpr |
Referenced by Slic3r::GUI::GCodeViewer::shadow_casters_signature().
|
staticconstexpr |
Referenced by libvgcode::SegmentTemplate::init(), and libvgcode::SegmentTemplate::render().
|
constexpr |
|
constexpr |
|
staticconstexpr |
Referenced by libvgcode::ViewerImpl::set_travels_radius().
|
staticconstexpr |
Referenced by libvgcode::ViewerImpl::set_wipes_radius().
|
staticconstexpr |
Referenced by libvgcode::ViewerImpl::set_travels_radius().
|
staticconstexpr |
Referenced by libvgcode::ViewerImpl::set_wipes_radius().
|
staticconstexpr |
|
static |
Referenced by libvgcode::OpenGLWrapper::load_opengl().
|
staticconstexpr |
|
static |
Referenced by libvgcode::ViewerImpl::init().
|
static |
Referenced by libvgcode::ViewerImpl::init().
|
static |
Referenced by libvgcode::ViewerImpl::init().
|
static |
Referenced by libvgcode::ViewerImpl::init().
|
staticconstexpr |
Referenced by libvgcode::OptionTemplate::init().
|
static |
Referenced by libvgcode::ViewerImpl::init().
|
static |
Referenced by libvgcode::ViewerImpl::init().
|
static |
Referenced by libvgcode::ViewerImpl::init().
|
static |
Referenced by libvgcode::ViewerImpl::init().
|
static |
Referenced by libvgcode::ViewerImpl::init().
|
static |
Referenced by libvgcode::ViewerImpl::init().
|
static |
Referenced by libvgcode::ViewerImpl::init().
|
static |
Referenced by libvgcode::ViewerImpl::init().
|
staticconstexpr |
|
static |
Referenced by libvgcode::ViewerImpl::init().
|
static |
Referenced by libvgcode::ViewerImpl::init().
|
staticconstexpr |
|
staticconstexpr |
Referenced by libvgcode::SegmentTemplate::init().
|
staticconstexpr |