#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libvgcode/src/ViewerImpl.hpp>
Classes | |
| struct | SegmentsUniforms |
| struct | LayerColorsUniforms |
| struct | TranslucentTargets |
Private Member Functions | |
| void | apply_pending_updates () |
| void | update_view_full_range () |
| void | update_color_ranges () |
| void | update_heights_widths () |
| uint8_t | get_vertex_alpha (const PathVertex &v) const |
| void | render_segments (const Mat4x4 &view_matrix, const Mat4x4 &projection_matrix, const Vec3 &camera_position, bool translucent=false) |
| void | render_options (const Mat4x4 &view_matrix, const Mat4x4 &projection_matrix) |
| void | render_translucent_segments (const Mat4x4 &view_matrix, const Mat4x4 &projection_matrix, const Vec3 &camera_position) |
| void | set_layer_colors (const LayerColorsUniforms &uni) const |
| libvgcode::ViewerImpl::ViewerImpl | ( | ) |
References reset_default_extrusion_roles_colors(), and reset_default_options_colors().
Referenced by ViewerImpl(), ViewerImpl(), operator=(), and operator=().
|
inline |
|
delete |
|
delete |
|
private |
References m_settings, update_colors(), update_enabled_entities(), and update_view_full_range().
Referenced by render(), render_shadow_casters(), and render_translucent().
| AABox libvgcode::ViewerImpl::get_bounding_box | ( | const std::vector< EMoveType > & | types = { EMoveType::Retract, EMoveType::Unretract, EMoveType::Seam, EMoveType::ToolChange, EMoveType::ColorChange, EMoveType::PausePrint, EMoveType::CustomGCode, EMoveType::Travel, EMoveType::Wipe, EMoveType::Extrude } | ) | const |
References m_vertices.
Referenced by load().
|
inline |
References m_color_print_colors.
|
inline |
References m_color_print_colors.
| std::vector< ColorPrint > libvgcode::ViewerImpl::get_color_prints | ( | uint8_t | extruder_id | ) | const |
References m_used_extruders.
| size_t libvgcode::ViewerImpl::get_color_prints_count | ( | uint8_t | extruder_id | ) | const |
References m_used_extruders.
| const ColorRange & libvgcode::ViewerImpl::get_color_range | ( | EViewType | type | ) | const |
References libvgcode::Acceleration, libvgcode::ActualSpeed, libvgcode::ActualVolumetricFlowRate, libvgcode::ColorRange::DUMMY_COLOR_RANGE, libvgcode::FanSpeed, libvgcode::Height, libvgcode::Jerk, libvgcode::LayerTimeLinear, libvgcode::LayerTimeLogarithmic, m_acceleration_range, m_actual_speed_range, m_actual_volumetric_rate_range, m_fan_speed_range, m_height_range, m_jerk_range, m_layer_time_range, m_pressure_advance_range, m_speed_range, m_temperature_range, m_volumetric_rate_range, m_width_range, libvgcode::PressureAdvance, libvgcode::Speed, libvgcode::Temperature, libvgcode::VolumetricFlowRate, and libvgcode::Width.
|
inline |
References get_current_vertex_id(), and get_vertex_at().
|
inline |
References m_view_range.
Referenced by get_current_vertex().
|
inline |
References m_settings.
|
inline |
References m_settings, and m_total_time.
| float libvgcode::ViewerImpl::get_estimated_time_at | ( | size_t | id | ) | const |
References m_layer_first_vertex, m_layer_start_times, m_settings, m_vertices, and libvgcode::TIME_MODES_COUNT.
References m_vertices.
| const Color & libvgcode::ViewerImpl::get_extrusion_role_color | ( | EGCodeExtrusionRole | role | ) | const |
References m_extrusion_roles_colors.
Referenced by get_vertex_color().
|
inline |
References m_extrusion_roles, and m_settings.
|
inline |
References m_extrusion_roles.
|
inline |
References m_extrusion_roles.
|
inline |
References m_layers.
|
inline |
|
inline |
|
inline |
References m_layers, and m_settings.
|
inline |
|
inline |
| const Color & libvgcode::ViewerImpl::get_option_color | ( | EOptionType | type | ) | const |
References m_options_colors.
Referenced by get_vertex_color().
|
inline |
References m_options.
|
inline |
|
inline |
References m_settings.
| std::vector< ETimeMode > libvgcode::ViewerImpl::get_time_modes | ( | ) | const |
References m_vertices, and libvgcode::TIME_MODES_COUNT.
|
inline |
References m_tool_colors.
|
inline |
References m_tool_colors.
|
inline |
References m_settings, and m_travels_time.
|
inline |
References m_travels_radius.
| size_t libvgcode::ViewerImpl::get_used_cpu_memory | ( | ) | const |
References libvgcode::COLOR_RANGE_TYPES_COUNT, m_acceleration_range, m_actual_speed_range, m_actual_volumetric_rate_range, m_color_print_colors, m_extrusion_roles_colors, m_fan_speed_range, m_height_range, m_jerk_range, m_layer_first_vertex, m_layer_start_times, m_layer_time_range, m_layers, m_options, m_options_colors, m_pressure_advance_range, m_speed_range, m_temperature_range, m_tool_colors, m_used_extruders, m_valid_lines_bitset, m_vertices, m_vertices_colors, m_volumetric_rate_range, m_width_range, and STDVEC_MEMSIZE.
|
inline |
References m_used_extruders.
| std::vector< uint8_t > libvgcode::ViewerImpl::get_used_extruders_ids | ( | ) | const |
References m_used_extruders.
| size_t libvgcode::ViewerImpl::get_used_gpu_memory | ( | ) | const |
References m_colors_tex_size, m_enabled_options_tex_size, m_enabled_segments_tex_size, m_height_width_angle_tex_size, m_option_template, m_positions_tex_size, m_segment_template, and m_translucent_targets.
|
private |
References libvgcode::PathVertex::color_id, libvgcode::ColorPrint, libvgcode::PathVertex::extruder_id, libvgcode::PathVertex::is_extrusion(), libvgcode::PathVertex::layer_id, m_color_print_colors, m_layers, m_settings, m_tool_colors, libvgcode::Summary, and libvgcode::Tool.
Referenced by update_colors().
|
inline |
References libvgcode::PathVertex::DUMMY_PATH_VERTEX, and m_vertices.
Referenced by get_current_vertex().
| Color libvgcode::ViewerImpl::get_vertex_color | ( | const PathVertex & | vertex | ) | const |
References libvgcode::Acceleration, libvgcode::PathVertex::acceleration, libvgcode::PathVertex::actual_feedrate, libvgcode::PathVertex::actual_volumetric_rate(), libvgcode::ActualSpeed, libvgcode::ActualVolumetricFlowRate, libvgcode::PathVertex::color_id, libvgcode::ColorPrint, libvgcode::DUMMY_COLOR, libvgcode::PathVertex::extruder_id, libvgcode::PathVertex::fan_speed, libvgcode::FanSpeed, libvgcode::FeatureType, libvgcode::PathVertex::feedrate, get_extrusion_role_color(), get_option_color(), libvgcode::Height, libvgcode::PathVertex::height, libvgcode::PathVertex::is_option(), libvgcode::PathVertex::is_travel(), libvgcode::PathVertex::is_wipe(), libvgcode::Jerk, libvgcode::PathVertex::jerk, libvgcode::PathVertex::layer_id, libvgcode::LayerTimeLinear, libvgcode::LayerTimeLogarithmic, m_acceleration_range, m_actual_speed_range, m_actual_volumetric_rate_range, m_color_print_colors, m_fan_speed_range, m_height_range, m_jerk_range, m_layer_time_range, m_layers, m_pressure_advance_range, m_settings, m_speed_range, m_temperature_range, m_tool_colors, m_volumetric_rate_range, m_width_range, libvgcode::move_type_to_option(), libvgcode::Noop, libvgcode::PathVertex::pressure_advance, libvgcode::PressureAdvance, libvgcode::PathVertex::role, libvgcode::Speed, libvgcode::Summary, libvgcode::Temperature, libvgcode::PathVertex::temperature, libvgcode::Tool, libvgcode::PathVertex::type, libvgcode::PathVertex::volumetric_rate(), libvgcode::VolumetricFlowRate, libvgcode::Width, and libvgcode::PathVertex::width.
Referenced by update_colors().
|
inline |
References m_vertices.
|
inline |
References m_view_range.
|
inline |
References m_view_range.
|
inline |
References m_settings.
|
inline |
References m_view_range.
|
inline |
References m_wipes_radius.
|
inline |
References m_enabled_translucent_segments_count.
| void libvgcode::ViewerImpl::init | ( | const std::string & | opengl_context_version | ) |
References glcheck, glGenVertexArrays, glGetUniformLocation, glsafe, libvgcode::init_shader(), libvgcode::OpenGLWrapper::is_valid_context(), libvgcode::OpenGLWrapper::load_opengl(), m_initialized, m_option_template, m_options_shader_id, m_segment_template, m_segments_caster_shader_id, m_segments_caster_vao_id, m_segments_depth_shader_id, m_segments_shader_id, m_translucent_composite_shader_id, m_uni_options_clipping_plane_id, m_uni_options_colors_tex_id, m_uni_options_height_width_angle_tex_id, m_uni_options_layer_colors, m_uni_options_positions_tex_id, m_uni_options_projection_matrix_id, m_uni_options_segment_index_tex_id, m_uni_options_view_matrix_id, m_uni_segments, m_uni_segments_caster, m_uni_segments_depth, m_uni_segments_depth_opaque_depth_id, m_uni_segments_exposure_id, m_uni_segments_front_depth_id, m_uni_segments_gloss_id, m_uni_segments_layer_colors, m_uni_segments_light_top_dir_id, m_uni_segments_oit_depth_range_id, m_uni_segments_oit_pass_id, m_uni_segments_opaque_depth_id, m_uni_segments_saturation_id, m_uni_segments_shadow_intensity_id, m_uni_segments_shadow_light_vp_id, m_uni_segments_shadow_map_id, m_uni_segments_shadow_map_texel_id, m_uni_translucent_composite_accum_tex_id, m_uni_translucent_composite_front_tex_id, m_uni_translucent_composite_origin_id, m_uni_translucent_composite_reveal_tex_id, libvgcode::Options_Fragment_Shader, libvgcode::Options_Fragment_Shader_ES, libvgcode::Options_Vertex_Shader, libvgcode::Options_Vertex_Shader_ES, libvgcode::Segments_Fragment_Shader, libvgcode::Segments_Fragment_Shader_ES, libvgcode::Segments_Shadow_Caster_Fragment_Shader, libvgcode::Segments_Shadow_Caster_Fragment_Shader_ES, libvgcode::Segments_Shadow_Caster_Vertex_Shader, libvgcode::Segments_Shadow_Caster_Vertex_Shader_ES, libvgcode::Segments_Vertex_Shader, libvgcode::Segments_Vertex_Shader_ES, libvgcode::Translucent_Composite_Fragment_Shader, libvgcode::Translucent_Composite_Vertex_Shader, and libvgcode::with_define().
|
inline |
References m_settings.
| bool libvgcode::ViewerImpl::is_extrusion_role_visible | ( | EGCodeExtrusionRole | role | ) | const |
References m_settings.
| bool libvgcode::ViewerImpl::is_option_visible | ( | EOptionType | type | ) | const |
References m_settings.
|
inline |
References m_settings.
|
inline |
References m_settings.
|
inline |
References m_settings.
| void libvgcode::ViewerImpl::load | ( | GCodeInputData && | gcode_data | ) |
References libvgcode::Brim, libvgcode::PathVertex::color_id, libvgcode::COUNT, libvgcode::Custom, libvgcode::extract_pos_and_or_hwa(), libvgcode::Extrude, libvgcode::PathVertex::extruder_id, get_bounding_box(), GL_DYNAMIC_DRAW, GL_STATIC_DRAW, GL_TEXTURE_BINDING_BUFFER, GL_TEXTURE_BUFFER, glBindBuffer, glBindTexture, glBufferData, glGenBuffers, glGenTextures, glGetIntegerv, glsafe, libvgcode::PathVertex::layer_id, m_color_print_colors, m_colors_buf_id, m_colors_tex_id, m_enabled_options_buf_id, m_enabled_options_tex_id, m_enabled_segments_buf_id, m_enabled_segments_tex_id, m_extrusion_roles, m_extrusions_box, m_height_width_angle_tex_size, m_heights_widths_angles_buf_id, m_heights_widths_angles_tex_id, m_initialized, m_layer_first_vertex, m_layer_start_times, m_layers, m_layers_in_vertex_order, m_options, m_positions_buf_id, m_positions_tex_id, m_positions_tex_size, m_settings, m_tool_colors, m_total_time, m_travels_radius, m_travels_time, m_used_extruders, m_valid_lines_bitset, m_vertices, m_vertices_colors, m_view_range, m_wipes_radius, libvgcode::move_type_to_option(), libvgcode::Normal, libvgcode::PathVertex::position, reset(), libvgcode::PathVertex::role, libvgcode::Skirt, libvgcode::SupportMaterial, libvgcode::SupportMaterialInterface, libvgcode::SupportTransition, libvgcode::TIME_MODES_COUNT, libvgcode::PathVertex::times, libvgcode::Travel, libvgcode::PathVertex::type, update_colors(), update_enabled_entities(), update_view_full_range(), and libvgcode::WipeTower.
|
delete |
|
delete |
References apply_pending_updates(), libvgcode::inverse(), m_settings, render_options(), and render_segments().
|
private |
References count, GL_ACTIVE_TEXTURE, GL_CULL_FACE, GL_CURRENT_PROGRAM, GL_FALSE, GL_R32UI, GL_RGBA32F, GL_RGBA8, GL_TEXTURE0, GL_TEXTURE1, GL_TEXTURE2, GL_TEXTURE3, GL_TEXTURE_2D, GL_TEXTURE_BINDING_2D, GL_TEXTURE_BINDING_BUFFER, GL_TEXTURE_BUFFER, glActiveTexture, glBindTexture, glcheck, glDisable, glEnable, glGetIntegerv, glIsEnabled, glsafe, glTexBuffer, glUniform1i, glUniform4fv, glUniformMatrix4fv, glUseProgram, m_clipping_plane, m_colors_buf_id, m_colors_tex_id, m_enabled_options_buf_id, m_enabled_options_count, m_enabled_options_tex_id, m_heights_widths_angles_buf_id, m_heights_widths_angles_tex_id, m_option_template, m_options_shader_id, m_positions_buf_id, m_positions_tex_id, m_uni_options_clipping_plane_id, m_uni_options_colors_tex_id, m_uni_options_height_width_angle_tex_id, m_uni_options_layer_colors, m_uni_options_positions_tex_id, m_uni_options_projection_matrix_id, m_uni_options_segment_index_tex_id, m_uni_options_view_matrix_id, and set_layer_colors().
Referenced by render().
|
private |
References libvgcode::ViewerImpl::SegmentsUniforms::camera_position, libvgcode::ViewerImpl::SegmentsUniforms::clipping_plane, libvgcode::ViewerImpl::SegmentsUniforms::colors_tex, count, libvgcode::ViewerImpl::SegmentsUniforms::first_instance, GL_ACTIVE_TEXTURE, GL_BLEND, GL_BLEND_DST_ALPHA, GL_BLEND_DST_RGB, GL_BLEND_EQUATION_ALPHA, GL_BLEND_EQUATION_RGB, GL_BLEND_SRC_ALPHA, GL_BLEND_SRC_RGB, GL_CULL_FACE, GL_CURRENT_PROGRAM, GL_DEPTH_TEST, GL_DEPTH_WRITEMASK, GL_FALSE, GL_FUNC_ADD, GL_MIN, GL_ONE, GL_ONE_MINUS_SRC_ALPHA, GL_R32UI, GL_RGBA32F, GL_RGBA8, GL_TEXTURE0, GL_TEXTURE1, GL_TEXTURE2, GL_TEXTURE3, GL_TEXTURE_2D, GL_TEXTURE_BINDING_2D, GL_TEXTURE_BINDING_BUFFER, GL_TEXTURE_BUFFER, GL_TRIANGLES, GL_TRUE, GL_VERTEX_ARRAY_BINDING, glActiveTexture, glBindTexture, glBindVertexArray, glBlendEquation, glBlendEquationSeparate, glBlendFunc, glBlendFuncSeparate, glcheck, glDepthMask, glDisable, glDrawArrays, glEnable, glGetBooleanv, glGetIntegerv, glIsEnabled, glsafe, glTexBuffer, glUniform1f, glUniform1i, glUniform2fv, glUniform3fv, glUniform4fv, glUniformMatrix4fv, glUseProgram, libvgcode::ViewerImpl::SegmentsUniforms::height_width_angle_tex, libvgcode::ViewerImpl::SegmentsUniforms::instances_count, m_clipping_plane, m_colors_buf_id, m_colors_tex_id, m_enabled_segments_buf_id, m_enabled_segments_count, m_enabled_segments_tex_id, m_enabled_translucent_segments_count, m_exposure, m_gloss, m_heights_widths_angles_buf_id, m_heights_widths_angles_tex_id, m_light_top_dir, m_oit_depth_range, m_positions_buf_id, m_positions_tex_id, m_rendering_shadow_casters, m_saturation, m_segment_template, m_segments_caster_shader_id, m_segments_caster_vao_id, m_segments_depth_shader_id, m_segments_shader_id, m_shadow_intensity, m_shadow_light_vp, m_shadow_map_texel, m_shadow_map_texture_unit, m_translucent_pass, m_uni_segments, m_uni_segments_caster, m_uni_segments_depth, m_uni_segments_depth_opaque_depth_id, m_uni_segments_exposure_id, m_uni_segments_front_depth_id, m_uni_segments_gloss_id, m_uni_segments_layer_colors, m_uni_segments_light_top_dir_id, m_uni_segments_oit_depth_range_id, m_uni_segments_oit_pass_id, m_uni_segments_opaque_depth_id, m_uni_segments_saturation_id, m_uni_segments_shadow_intensity_id, m_uni_segments_shadow_light_vp_id, m_uni_segments_shadow_map_id, m_uni_segments_shadow_map_texel_id, libvgcode::ViewerImpl::SegmentsUniforms::positions_tex, libvgcode::ViewerImpl::SegmentsUniforms::projection_matrix, libvgcode::ViewerImpl::SegmentsUniforms::reverse_order, libvgcode::ViewerImpl::SegmentsUniforms::segment_index_tex, set_layer_colors(), libvgcode::TRANSLUCENT_TEXTURE_UNIT, and libvgcode::ViewerImpl::SegmentsUniforms::view_matrix.
Referenced by render(), render_shadow_casters(), and render_translucent_segments().
| void libvgcode::ViewerImpl::render_shadow_casters | ( | const Mat4x4 & | view_matrix, |
| const Mat4x4 & | projection_matrix, | ||
| const Vec3 & | light_position ) |
References apply_pending_updates(), m_rendering_shadow_casters, and render_segments().
| void libvgcode::ViewerImpl::render_translucent | ( | const Mat4x4 & | view_matrix, |
| const Mat4x4 & | projection_matrix ) |
References apply_pending_updates(), libvgcode::inverse(), m_enabled_translucent_segments_count, and render_translucent_segments().
|
private |
References libvgcode::ViewerImpl::TranslucentTargets::accum_tex, libvgcode::ViewerImpl::TranslucentTargets::depth_tex, libvgcode::ViewerImpl::TranslucentTargets::fbo, libvgcode::ViewerImpl::TranslucentTargets::front_depth_fbo, libvgcode::ViewerImpl::TranslucentTargets::front_depth_tex, libvgcode::ViewerImpl::TranslucentTargets::front_tex, GL_ACTIVE_TEXTURE, GL_BLEND, GL_BLEND_DST_ALPHA, GL_BLEND_DST_RGB, GL_BLEND_SRC_ALPHA, GL_BLEND_SRC_RGB, GL_COLOR, GL_CURRENT_PROGRAM, GL_DEPTH_TEST, GL_DEPTH_WRITEMASK, GL_DRAW_FRAMEBUFFER, GL_DRAW_FRAMEBUFFER_BINDING, GL_FALSE, GL_ONE, GL_ONE_MINUS_SRC_ALPHA, GL_READ_FRAMEBUFFER, GL_READ_FRAMEBUFFER_BINDING, GL_SAMPLES, GL_TEXTURE0, GL_TEXTURE_2D, GL_TEXTURE_BINDING_2D, GL_TRIANGLES, GL_TRUE, GL_VERTEX_ARRAY_BINDING, GL_VIEWPORT, glActiveTexture, glBindFramebuffer, glBindTexture, glBindVertexArray, glBlendFunc, glBlendFuncSeparate, glClearBufferfv, glCopyTexSubImage2D, glDepthMask, glDisable, glDrawArrays, glEnable, glGetBooleanv, glGetIntegerv, glIsEnabled, glsafe, glUniform1i, glUniform2i, glUseProgram, glViewport, m_extrusions_box, m_oit_depth_range, m_segments_caster_vao_id, m_translucent_composite_shader_id, m_translucent_pass, m_translucent_targets, m_uni_translucent_composite_accum_tex_id, m_uni_translucent_composite_front_tex_id, m_uni_translucent_composite_origin_id, m_uni_translucent_composite_reveal_tex_id, render_segments(), libvgcode::ViewerImpl::TranslucentTargets::reveal_tex, and libvgcode::TRANSLUCENT_TEXTURE_UNIT.
Referenced by render_translucent().
| void libvgcode::ViewerImpl::reset | ( | ) |
References libvgcode::delete_buffers(), libvgcode::delete_textures(), m_colors_buf_id, m_colors_tex_id, m_enabled_options_buf_id, m_enabled_options_count, m_enabled_options_tex_id, m_enabled_segments_buf_id, m_enabled_segments_count, m_enabled_segments_tex_id, m_enabled_translucent_segments_count, m_extrusion_roles, m_extrusions_box, m_has_translucent_colors, m_heights_widths_angles_buf_id, m_heights_widths_angles_tex_id, m_layer_first_vertex, m_layer_start_times, m_layers, m_layers_in_vertex_order, m_options, m_positions_buf_id, m_positions_tex_id, m_settings_used_for_ranges, m_total_time, m_translucent_targets, m_travels_time, m_used_extruders, m_valid_lines_bitset, m_vertices, m_vertices_colors, and m_view_range.
Referenced by load(), and shutdown().
| void libvgcode::ViewerImpl::reset_default_extrusion_roles_colors | ( | ) |
References libvgcode::DEFAULT_EXTRUSION_ROLES_COLORS, and m_extrusion_roles_colors.
Referenced by ViewerImpl().
| void libvgcode::ViewerImpl::reset_default_options_colors | ( | ) |
References libvgcode::DEFAULT_OPTIONS_COLORS, and m_options_colors.
Referenced by ViewerImpl().
|
inline |
References m_clipping_plane.
| void libvgcode::ViewerImpl::set_color_print_colors | ( | const PaletteWithAlpha & | colors | ) |
References m_color_print_colors, and m_settings.
References libvgcode::Acceleration, libvgcode::ActualSpeed, libvgcode::ActualVolumetricFlowRate, libvgcode::FanSpeed, libvgcode::Height, libvgcode::Jerk, libvgcode::LayerTimeLinear, libvgcode::LayerTimeLogarithmic, m_acceleration_range, m_actual_speed_range, m_actual_volumetric_rate_range, m_fan_speed_range, m_height_range, m_jerk_range, m_layer_time_range, m_pressure_advance_range, m_settings, m_speed_range, m_temperature_range, m_volumetric_rate_range, m_width_range, libvgcode::PressureAdvance, libvgcode::Speed, libvgcode::Temperature, libvgcode::VolumetricFlowRate, and libvgcode::Width.
| void libvgcode::ViewerImpl::set_dim_previous_layers | ( | bool | value | ) |
References m_settings.
| void libvgcode::ViewerImpl::set_dim_previous_layers_brightness | ( | float | value | ) |
References m_settings.
| void libvgcode::ViewerImpl::set_extrusion_role_color | ( | EGCodeExtrusionRole | role, |
| const Color & | color ) |
References m_extrusion_roles_colors, and m_settings.
|
inline |
|
private |
References libvgcode::ViewerImpl::LayerColorsUniforms::dim_brightness, glsafe, glUniform1f, glUniform1i, glUniform2i, libvgcode::ViewerImpl::LayerColorsUniforms::grey_below_layer, libvgcode::ViewerImpl::LayerColorsUniforms::kept_vertex, libvgcode::ViewerImpl::LayerColorsUniforms::lit_layers, m_layers, m_settings, and m_view_range.
Referenced by render_options(), and render_segments().
|
inline |
References set_layers_view_range().
Referenced by set_layers_view_range().
| void libvgcode::ViewerImpl::set_layers_view_range | ( | Interval::value_type | min, |
| Interval::value_type | max ) |
References m_layers, m_settings, m_view_range, and update_view_full_range().
|
inline |
References m_light_top_dir.
| void libvgcode::ViewerImpl::set_option_color | ( | EOptionType | type, |
| const Color & | color ) |
References m_options_colors, and m_settings.
| void libvgcode::ViewerImpl::set_shadow_map | ( | int | texture_unit, |
| const Mat4x4 & | light_view_projection, | ||
| float | intensity, | ||
| float | texel_size ) |
References m_shadow_intensity, m_shadow_light_vp, m_shadow_map_texel, and m_shadow_map_texture_unit.
| void libvgcode::ViewerImpl::set_time_mode | ( | ETimeMode | mode | ) |
References m_layers, m_settings, and m_vertices.
| void libvgcode::ViewerImpl::set_tone | ( | float | exposure, |
| float | saturation ) |
References m_exposure, and m_saturation.
| void libvgcode::ViewerImpl::set_tool_colors | ( | const PaletteWithAlpha & | colors | ) |
References m_settings, and m_tool_colors.
| void libvgcode::ViewerImpl::set_translucent_filaments | ( | bool | value | ) |
References m_settings.
| void libvgcode::ViewerImpl::set_travels_radius | ( | float | radius | ) |
References m_travels_radius, libvgcode::MAX_TRAVELS_RADIUS_MM, libvgcode::MIN_TRAVELS_RADIUS_MM, and update_heights_widths().
| void libvgcode::ViewerImpl::set_view_type | ( | EViewType | type | ) |
References m_settings.
| void libvgcode::ViewerImpl::set_view_visible_range | ( | Interval::value_type | min, |
| Interval::value_type | max ) |
References m_view_range, update_enabled_entities(), and update_view_full_range().
| void libvgcode::ViewerImpl::set_wipes_radius | ( | float | radius | ) |
References m_wipes_radius, libvgcode::MAX_WIPES_RADIUS_MM, libvgcode::MIN_WIPES_RADIUS_MM, and update_heights_widths().
| void libvgcode::ViewerImpl::shutdown | ( | ) |
References glDeleteProgram, glDeleteVertexArrays, glsafe, m_initialized, m_option_template, m_options_shader_id, m_segment_template, m_segments_caster_shader_id, m_segments_caster_vao_id, m_segments_depth_shader_id, m_segments_shader_id, m_translucent_composite_shader_id, reset(), and libvgcode::OpenGLWrapper::unload_opengl().
Referenced by ~ViewerImpl().
| void libvgcode::ViewerImpl::toggle_extrusion_role_visibility | ( | EGCodeExtrusionRole | role | ) |
References m_settings, and update_view_full_range().
| void libvgcode::ViewerImpl::toggle_option_visibility | ( | EOptionType | type | ) |
References m_settings, m_view_range, and update_view_full_range().
| void libvgcode::ViewerImpl::toggle_top_layer_only_view_range | ( | ) |
References m_settings, m_view_range, and update_view_full_range().
|
private |
References libvgcode::PathVertex::acceleration, libvgcode::PathVertex::actual_feedrate, libvgcode::PathVertex::actual_volumetric_rate(), libvgcode::Custom, libvgcode::PathVertex::fan_speed, libvgcode::PathVertex::feedrate, libvgcode::PathVertex::height, libvgcode::PathVertex::is_custom_gcode(), libvgcode::PathVertex::is_extrusion(), libvgcode::PathVertex::is_travel(), libvgcode::PathVertex::is_wipe(), libvgcode::PathVertex::jerk, m_acceleration_range, m_actual_speed_range, m_actual_volumetric_rate_range, m_fan_speed_range, m_height_range, m_jerk_range, m_layer_time_range, m_layers, m_pressure_advance_range, m_settings, m_settings_used_for_ranges, m_speed_range, m_temperature_range, m_vertices, m_volumetric_rate_range, m_width_range, libvgcode::PathVertex::pressure_advance, libvgcode::round_to_bin(), libvgcode::PathVertex::temperature, libvgcode::Travels, libvgcode::PathVertex::volumetric_rate(), libvgcode::PathVertex::width, and libvgcode::Wipes.
Referenced by update_colors().
| void libvgcode::ViewerImpl::update_colors | ( | ) |
References libvgcode::DUMMY_COLOR, get_vertex_alpha(), get_vertex_color(), m_has_translucent_colors, m_settings, m_tool_colors, m_used_extruders, m_vertices, m_vertices_colors, update_color_ranges(), and update_colors_texture().
Referenced by apply_pending_updates(), and load().
| void libvgcode::ViewerImpl::update_colors_texture | ( | ) |
References GL_STATIC_DRAW, GL_TEXTURE_BUFFER, glBindBuffer, glBufferData, glsafe, m_colors_buf_id, m_colors_tex_size, and m_vertices_colors.
Referenced by update_colors().
| void libvgcode::ViewerImpl::update_enabled_entities | ( | ) |
References GL_STATIC_DRAW, GL_TEXTURE_BUFFER, glBindBuffer, glBufferData, glsafe, libvgcode::PathVertex::is_extrusion(), libvgcode::PathVertex::is_option(), libvgcode::PathVertex::is_travel(), libvgcode::PathVertex::is_wipe(), m_enabled_options_buf_id, m_enabled_options_count, m_enabled_options_tex_size, m_enabled_segments_buf_id, m_enabled_segments_count, m_enabled_segments_tex_size, m_enabled_translucent_segments_count, m_has_translucent_colors, m_layers, m_settings, m_valid_lines_bitset, m_vertices, m_vertices_colors, m_view_range, libvgcode::move_type_to_option(), libvgcode::PathVertex::role, libvgcode::Travels, libvgcode::PathVertex::type, and libvgcode::Wipes.
Referenced by apply_pending_updates(), load(), and set_view_visible_range().
|
private |
References libvgcode::extract_pos_and_or_hwa(), GL_TEXTURE_BUFFER, GL_WRITE_ONLY, glBindBuffer, glcheck, glMapBuffer, glsafe, glUnmapBuffer, libvgcode::PathVertex::is_travel(), libvgcode::PathVertex::is_wipe(), m_heights_widths_angles_buf_id, m_travels_radius, m_valid_lines_bitset, m_vertices, and m_wipes_radius.
Referenced by set_travels_radius(), and set_wipes_radius().
|
private |
References libvgcode::Extrude, libvgcode::is_visible(), m_layer_first_vertex, m_layers, m_layers_in_vertex_order, m_settings, m_vertices, m_view_range, libvgcode::Travels, and libvgcode::Wipes.
Referenced by apply_pending_updates(), load(), set_layers_view_range(), set_view_visible_range(), toggle_extrusion_role_visibility(), toggle_option_visibility(), and toggle_top_layer_only_view_range().
|
private |
Referenced by get_color_range(), get_used_cpu_memory(), get_vertex_color(), set_color_range_palette(), and update_color_ranges().
|
private |
Referenced by get_color_range(), get_used_cpu_memory(), get_vertex_color(), set_color_range_palette(), and update_color_ranges().
|
private |
Referenced by get_color_range(), get_used_cpu_memory(), get_vertex_color(), set_color_range_palette(), and update_color_ranges().
|
private |
Referenced by render_options(), render_segments(), and set_clipping_plane().
|
private |
|
private |
Referenced by load(), render_options(), render_segments(), reset(), and update_colors_texture().
|
private |
Referenced by load(), render_options(), render_segments(), and reset().
|
private |
Referenced by get_used_gpu_memory(), and update_colors_texture().
|
private |
Referenced by load(), render_options(), reset(), and update_enabled_entities().
|
private |
Referenced by render_options(), reset(), and update_enabled_entities().
|
private |
Referenced by load(), render_options(), and reset().
|
private |
Referenced by get_used_gpu_memory(), and update_enabled_entities().
|
private |
Referenced by load(), render_segments(), reset(), and update_enabled_entities().
|
private |
Referenced by render_segments(), reset(), and update_enabled_entities().
|
private |
Referenced by load(), render_segments(), and reset().
|
private |
Referenced by get_used_gpu_memory(), and update_enabled_entities().
|
private |
Referenced by has_translucent_toolpaths(), render_segments(), render_translucent(), reset(), and update_enabled_entities().
|
private |
Referenced by render_segments(), and set_tone().
|
private |
Referenced by get_extrusion_role_estimated_time(), get_extrusion_roles(), get_extrusion_roles_count(), load(), and reset().
|
private |
|
private |
Referenced by load(), render_translucent_segments(), and reset().
|
private |
Referenced by get_color_range(), get_used_cpu_memory(), get_vertex_color(), set_color_range_palette(), and update_color_ranges().
|
private |
Referenced by render_segments(), and set_gloss().
|
private |
Referenced by reset(), update_colors(), and update_enabled_entities().
|
private |
Referenced by get_color_range(), get_used_cpu_memory(), get_vertex_color(), set_color_range_palette(), and update_color_ranges().
|
private |
Referenced by get_used_gpu_memory(), and load().
|
private |
Referenced by load(), render_options(), render_segments(), reset(), and update_heights_widths().
|
private |
Referenced by load(), render_options(), render_segments(), and reset().
|
private |
Referenced by init(), load(), and shutdown().
|
private |
Referenced by get_color_range(), get_used_cpu_memory(), get_vertex_color(), set_color_range_palette(), and update_color_ranges().
|
private |
Referenced by get_estimated_time_at(), get_used_cpu_memory(), load(), reset(), and update_view_full_range().
|
private |
Referenced by get_estimated_time_at(), get_used_cpu_memory(), load(), and reset().
|
private |
Referenced by get_color_range(), get_used_cpu_memory(), get_vertex_color(), set_color_range_palette(), and update_color_ranges().
|
private |
Referenced by get_layer_id_at(), get_layer_z(), get_layers_count(), get_layers_estimated_times(), get_layers_view_range(), get_layers_zs(), get_used_cpu_memory(), get_vertex_alpha(), get_vertex_color(), load(), reset(), set_layer_colors(), set_layers_view_range(), set_time_mode(), update_color_ranges(), update_enabled_entities(), and update_view_full_range().
|
private |
Referenced by load(), reset(), and update_view_full_range().
|
private |
Referenced by render_segments(), and set_light_top_dir().
|
private |
Referenced by render_segments(), and render_translucent_segments().
|
private |
Referenced by get_used_gpu_memory(), init(), render_options(), and shutdown().
|
private |
Referenced by get_options(), get_options_count(), get_used_cpu_memory(), load(), and reset().
|
private |
Referenced by get_option_color(), get_used_cpu_memory(), reset_default_options_colors(), and set_option_color().
|
private |
Referenced by init(), render_options(), and shutdown().
|
private |
Referenced by load(), render_options(), render_segments(), and reset().
|
private |
Referenced by load(), render_options(), render_segments(), and reset().
|
private |
Referenced by get_used_gpu_memory(), and load().
|
private |
Referenced by get_color_range(), get_used_cpu_memory(), get_vertex_color(), set_color_range_palette(), and update_color_ranges().
|
private |
Referenced by render_segments(), and render_shadow_casters().
|
private |
Referenced by render_segments(), and set_tone().
|
private |
Referenced by get_used_gpu_memory(), init(), render_segments(), and shutdown().
|
private |
Referenced by init(), render_segments(), and shutdown().
|
private |
Referenced by init(), render_segments(), render_translucent_segments(), and shutdown().
|
private |
Referenced by init(), render_segments(), and shutdown().
|
private |
Referenced by init(), render_segments(), and shutdown().
|
private |
Referenced by apply_pending_updates(), get_dim_previous_layers_brightness(), get_estimated_time(), get_estimated_time_at(), get_extrusion_role_estimated_time(), get_layers_estimated_times(), get_time_mode(), get_travels_estimated_time(), get_vertex_alpha(), get_vertex_color(), get_view_type(), is_dim_previous_layers(), is_extrusion_role_visible(), is_option_visible(), is_spiral_vase_mode(), is_top_layer_only_view_range(), is_translucent_filaments(), load(), render(), set_color_print_colors(), set_color_range_palette(), set_dim_previous_layers(), set_dim_previous_layers_brightness(), set_extrusion_role_color(), set_layer_colors(), set_layers_view_range(), set_option_color(), set_time_mode(), set_tool_colors(), set_translucent_filaments(), set_view_type(), toggle_extrusion_role_visibility(), toggle_option_visibility(), toggle_top_layer_only_view_range(), update_color_ranges(), update_colors(), update_enabled_entities(), and update_view_full_range().
|
private |
Referenced by reset(), and update_color_ranges().
|
private |
Referenced by render_segments(), and set_shadow_map().
|
private |
Referenced by render_segments(), and set_shadow_map().
|
private |
Referenced by render_segments(), and set_shadow_map().
|
private |
Referenced by render_segments(), and set_shadow_map().
|
private |
Referenced by get_color_range(), get_used_cpu_memory(), get_vertex_color(), set_color_range_palette(), and update_color_ranges().
|
private |
Referenced by get_color_range(), get_used_cpu_memory(), get_vertex_color(), set_color_range_palette(), and update_color_ranges().
|
private |
|
private |
Referenced by get_estimated_time(), load(), and reset().
|
private |
Referenced by init(), render_translucent_segments(), and shutdown().
|
private |
Referenced by render_segments(), and render_translucent_segments().
|
private |
Referenced by get_used_gpu_memory(), render_translucent_segments(), and reset().
|
private |
Referenced by get_travels_radius(), load(), set_travels_radius(), and update_heights_widths().
|
private |
Referenced by get_travels_estimated_time(), load(), and reset().
|
private |
Referenced by init(), and render_options().
|
private |
Referenced by init(), and render_options().
|
private |
Referenced by init(), and render_options().
|
private |
Referenced by init(), and render_options().
|
private |
Referenced by init(), and render_options().
|
private |
Referenced by init(), and render_options().
|
private |
Referenced by init(), and render_options().
|
private |
Referenced by init(), and render_options().
|
private |
Referenced by init(), and render_segments().
|
private |
Referenced by init(), and render_segments().
|
private |
Referenced by init(), and render_segments().
|
private |
Referenced by init(), and render_segments().
|
private |
Referenced by init(), and render_segments().
|
private |
Referenced by init(), and render_segments().
|
private |
Referenced by init(), and render_segments().
|
private |
Referenced by init(), and render_segments().
|
private |
Referenced by init(), and render_segments().
|
private |
Referenced by init(), and render_segments().
|
private |
Referenced by init(), and render_segments().
|
private |
Referenced by init(), and render_segments().
|
private |
Referenced by init(), and render_segments().
|
private |
Referenced by init(), and render_segments().
|
private |
Referenced by init(), and render_segments().
|
private |
Referenced by init(), and render_segments().
|
private |
Referenced by init(), and render_segments().
|
private |
Referenced by init(), and render_translucent_segments().
|
private |
Referenced by init(), and render_translucent_segments().
|
private |
Referenced by init(), and render_translucent_segments().
|
private |
Referenced by init(), and render_translucent_segments().
|
private |
|
private |
Referenced by get_used_cpu_memory(), load(), reset(), update_enabled_entities(), and update_heights_widths().
|
private |
Referenced by get_bounding_box(), get_estimated_time_at(), get_extrusion_bounding_box(), get_time_modes(), get_used_cpu_memory(), get_vertex_at(), get_vertices_count(), load(), reset(), set_time_mode(), update_color_ranges(), update_colors(), update_enabled_entities(), update_heights_widths(), and update_view_full_range().
|
private |
Referenced by get_used_cpu_memory(), load(), reset(), update_colors(), update_colors_texture(), and update_enabled_entities().
|
private |
Referenced by get_current_vertex_id(), get_view_enabled_range(), get_view_full_range(), get_view_visible_range(), load(), reset(), set_layer_colors(), set_layers_view_range(), set_view_visible_range(), toggle_option_visibility(), toggle_top_layer_only_view_range(), update_enabled_entities(), and update_view_full_range().
|
private |
Referenced by get_color_range(), get_used_cpu_memory(), get_vertex_color(), set_color_range_palette(), and update_color_ranges().
|
private |
Referenced by get_color_range(), get_used_cpu_memory(), get_vertex_color(), set_color_range_palette(), and update_color_ranges().
|
private |
Referenced by get_wipes_radius(), load(), set_wipes_radius(), and update_heights_widths().