OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::Size Class Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/GLCanvas3D.hpp>

Public Member Functions

 Size ()=default
 Size (int width, int height, float scale_factor=1.0f)
int get_width () const
void set_width (int width)
int get_height () const
void set_height (int height)
float get_scale_factor () const
void set_scale_factor (float factor)

Private Attributes

int m_width { 0 }
int m_height { 0 }
float m_scale_factor { 1.0f }

Detailed Description

Constructor & Destructor Documentation

◆ Size() [1/2]

Slic3r::GUI::Size::Size ( )
default

◆ Size() [2/2]

Slic3r::GUI::Size::Size ( int width,
int height,
float scale_factor = 1.0f )
inline
117: m_width(width), m_height(height), m_scale_factor(scale_factor) {}
float m_scale_factor
Definition GLCanvas3D.hpp:113
int m_width
Definition GLCanvas3D.hpp:111
int m_height
Definition GLCanvas3D.hpp:112

References m_height, m_scale_factor, and m_width.

Member Function Documentation

◆ get_height()

int Slic3r::GUI::Size::get_height ( ) const
inline
122{ return m_height; }

References m_height.

Referenced by Slic3r::GUI::GLCanvas3D::_check_and_update_toolbar_icon_scale(), Slic3r::GUI::GLCanvas3D::_picking_pass(), Slic3r::GUI::GLCanvas3D::_rectangular_selection_picking_pass(), Slic3r::GUI::GLCanvas3D::_refresh_if_shown_on_screen(), Slic3r::GUI::GLCanvas3D::_render_assemble_view_toolbar(), Slic3r::GUI::GLCanvas3D::_render_collapse_toolbar(), Slic3r::GUI::GLCanvas3D::_render_frame(), Slic3r::GUI::GLCanvas3D::_render_imgui_select_plate_toolbar(), Slic3r::GUI::GLCanvas3D::_render_main_toolbar(), Slic3r::GUI::GLCanvas3D::_render_return_toolbar(), Slic3r::GUI::GLCanvas3D::_render_scene(), Slic3r::GUI::GLCanvas3D::_render_separator_toolbar_left(), Slic3r::GUI::GLCanvas3D::_render_separator_toolbar_right(), Slic3r::GUI::NotificationManager::PopNotification::bbl_render_block_notification(), Slic3r::GUI::MainFrame::GLResourcesPrebuild::build_step(), anonymous_namespace{GLGizmoEmboss.cpp}::calc_fine_position(), Slic3r::GUI::GLToolbar::contains_mouse_horizontal(), Slic3r::GUI::GLToolbar::contains_mouse_vertical(), Slic3r::GUI::GLGizmosManager::do_render_overlay(), Slic3r::GUI::GLCanvas3D::LayersEditing::get_bar_rect_screen(), Slic3r::GUI::anonymous_namespace{SceneBenchmark.cpp}::SceneBenchmarkDialog::on_timer(), Slic3r::GUI::GUI_App::post_init(), Slic3r::GUI::DailyTipsWindow::render(), Slic3r::GUI::GLCanvas3D::Tooltip::render(), Slic3r::GUI::GLSelectionRectangle::render(), Slic3r::GUI::NotificationManager::PopNotification::render(), Slic3r::GUI::GLCanvas3D::LayersEditing::render_active_object_annotations(), Slic3r::GUI::GLGizmoPainterBase::render_cursor_circle(), Slic3r::GUI::GLToolbar::render_horizontal(), Slic3r::GUI::GCodeViewer::render_legend(), Slic3r::GUI::GCodeViewer::render_overlay(), Slic3r::GUI::GLCanvas3D::LayersEditing::render_profile(), Slic3r::GUI::Mouse3DController::render_settings_dialog(), Slic3r::GUI::GLToolbar::render_vertical(), Slic3r::GLVolume::render_with_outline(), Slic3r::GUI::Emboss::start_create_volume_without_position(), Slic3r::GUI::GLToolbar::update_hover_state_horizontal(), and Slic3r::GUI::GLToolbar::update_hover_state_vertical().

Here is the caller graph for this function:

◆ get_scale_factor()

float Slic3r::GUI::Size::get_scale_factor ( ) const
inline
125{ return m_scale_factor; }

References m_scale_factor.

Referenced by Slic3r::GUI::GLCanvas3D::LayersEditing::thickness_bar_width().

Here is the caller graph for this function:

◆ get_width()

int Slic3r::GUI::Size::get_width ( ) const
inline
119{ return m_width; }

References m_width.

Referenced by Slic3r::GUI::GLCanvas3D::_check_and_update_toolbar_icon_scale(), Slic3r::GUI::GLCanvas3D::_picking_pass(), Slic3r::GUI::GLCanvas3D::_refresh_if_shown_on_screen(), Slic3r::GUI::GLCanvas3D::_render_assemble_view_toolbar(), Slic3r::GUI::GLCanvas3D::_render_collapse_toolbar(), Slic3r::GUI::GLCanvas3D::_render_frame(), Slic3r::GUI::GLCanvas3D::_render_imgui_select_plate_toolbar(), Slic3r::GUI::GLCanvas3D::_render_main_toolbar(), Slic3r::GUI::GLCanvas3D::_render_return_toolbar(), Slic3r::GUI::GLCanvas3D::_render_scene(), Slic3r::GUI::GLCanvas3D::_render_separator_toolbar_left(), Slic3r::GUI::GLCanvas3D::_render_separator_toolbar_right(), Slic3r::GUI::NotificationManager::PopNotification::bbl_render_block_notification(), Slic3r::GUI::MainFrame::GLResourcesPrebuild::build_step(), anonymous_namespace{GLGizmoEmboss.cpp}::calc_fine_position(), Slic3r::GUI::GLToolbar::contains_mouse_horizontal(), Slic3r::GUI::GLToolbar::contains_mouse_vertical(), Slic3r::GUI::GLGizmosManager::do_render_overlay(), Slic3r::GUI::GLCanvas3D::LayersEditing::get_bar_rect_screen(), Slic3r::GUI::anonymous_namespace{SceneBenchmark.cpp}::SceneBenchmarkDialog::on_timer(), Slic3r::GUI::GUI_App::post_init(), Slic3r::GUI::DailyTipsWindow::render(), Slic3r::GUI::GLCanvas3D::Tooltip::render(), Slic3r::GUI::GLSelectionRectangle::render(), Slic3r::GUI::NotificationManager::PopNotification::render(), Slic3r::GUI::GLCanvas3D::LayersEditing::render_active_object_annotations(), Slic3r::GUI::GLGizmoPainterBase::render_cursor_circle(), Slic3r::GUI::GLToolbar::render_horizontal(), Slic3r::GUI::GCodeViewer::render_overlay(), Slic3r::GUI::GLCanvas3D::LayersEditing::render_profile(), Slic3r::GUI::Mouse3DController::render_settings_dialog(), Slic3r::GUI::GCodeViewer::render_toolpaths(), Slic3r::GUI::GLCanvas3D::LayersEditing::render_variable_layer_height_dialog(), Slic3r::GUI::GLToolbar::render_vertical(), Slic3r::GLVolume::render_with_outline(), Slic3r::GUI::Emboss::start_create_volume_without_position(), Slic3r::GUI::GLToolbar::update_hover_state_horizontal(), and Slic3r::GUI::GLToolbar::update_hover_state_vertical().

Here is the caller graph for this function:

◆ set_height()

void Slic3r::GUI::Size::set_height ( int height)
inline
123{ m_height = height; }
coord_t height(const BoundingBox &box)
Definition Arrange.cpp:1185

References m_height.

◆ set_scale_factor()

void Slic3r::GUI::Size::set_scale_factor ( float factor)
inline
126{ m_scale_factor = factor; }

References m_scale_factor.

◆ set_width()

void Slic3r::GUI::Size::set_width ( int width)
inline
120{ m_width = width; }
coord_t width(const BoundingBox &box)
Definition Arrange.cpp:1184

References m_width.

Member Data Documentation

◆ m_height

int Slic3r::GUI::Size::m_height { 0 }
private
112{ 0 };

Referenced by Size(), get_height(), and set_height().

◆ m_scale_factor

float Slic3r::GUI::Size::m_scale_factor { 1.0f }
private
113{ 1.0f };

Referenced by Size(), get_scale_factor(), and set_scale_factor().

◆ m_width

int Slic3r::GUI::Size::m_width { 0 }
private
111{ 0 };

Referenced by Size(), get_width(), and set_width().


The documentation for this class was generated from the following file:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/GLCanvas3D.hpp