Code cleanup

This commit is contained in:
Enrico Turri
2018-08-13 09:23:10 +02:00
parent b6f6200bd5
commit bb07100a4f
9 changed files with 2 additions and 164 deletions

View File

@@ -2,10 +2,7 @@
#define slic3r_GLCanvas3D_hpp_
#include "../../slic3r/GUI/3DScene.hpp"
//###################################################################################################################################
#include "../../slic3r/GUI/GLToolbar.hpp"
//#include "../../slic3r/GUI/GLTexture.hpp"
//###################################################################################################################################
class wxTimer;
class wxSizeEvent;
@@ -450,9 +447,7 @@ private:
Shader m_shader;
Mouse m_mouse;
mutable Gizmos m_gizmos;
//###################################################################################################################################
mutable GLToolbar m_toolbar;
//###################################################################################################################################
mutable GLVolumeCollection m_volumes;
DynamicPrintConfig* m_config;
@@ -465,9 +460,7 @@ private:
bool m_force_zoom_to_bed_enabled;
bool m_apply_zoom_to_volumes_filter;
mutable int m_hover_volume_id;
//###################################################################################################################################
bool m_toolbar_action_running;
//###################################################################################################################################
bool m_warning_texture_enabled;
bool m_legend_texture_enabled;
bool m_picking_enabled;
@@ -505,7 +498,6 @@ private:
PerlCallback m_on_gizmo_rotate_callback;
PerlCallback m_on_update_geometry_info_callback;
//###################################################################################################################################
PerlCallback m_action_add_callback;
PerlCallback m_action_delete_callback;
PerlCallback m_action_deleteall_callback;
@@ -519,7 +511,6 @@ private:
PerlCallback m_action_cut_callback;
PerlCallback m_action_settings_callback;
PerlCallback m_action_layersediting_callback;
//###################################################################################################################################
public:
GLCanvas3D(wxGLCanvas* canvas);
@@ -578,18 +569,14 @@ public:
void enable_picking(bool enable);
void enable_moving(bool enable);
void enable_gizmos(bool enable);
//###################################################################################################################################
void enable_toolbar(bool enable);
//###################################################################################################################################
void enable_shader(bool enable);
void enable_force_zoom_to_bed(bool enable);
void enable_dynamic_background(bool enable);
void allow_multisample(bool allow);
//###################################################################################################################################
void enable_toolbar_item(const std::string& name, bool enable);
bool is_toolbar_item_pressed(const std::string& name) const;
//###################################################################################################################################
void zoom_to_bed();
void zoom_to_volumes();
@@ -631,7 +618,6 @@ public:
void register_on_gizmo_rotate_callback(void* callback);
void register_on_update_geometry_info_callback(void* callback);
//###################################################################################################################################
void register_action_add_callback(void* callback);
void register_action_delete_callback(void* callback);
void register_action_deleteall_callback(void* callback);
@@ -645,7 +631,6 @@ public:
void register_action_cut_callback(void* callback);
void register_action_settings_callback(void* callback);
void register_action_layersediting_callback(void* callback);
//###################################################################################################################################
void bind_event_handlers();
void unbind_event_handlers();
@@ -664,17 +649,13 @@ public:
void reset_legend_texture();
//###################################################################################################################################
void set_tooltip(const std::string& tooltip);
//###################################################################################################################################
private:
bool _is_shown_on_screen() const;
void _force_zoom_to_bed();
//###################################################################################################################################
bool _init_toolbar();
//###################################################################################################################################
void _resize(unsigned int w, unsigned int h);
@@ -701,9 +682,7 @@ private:
void _render_layer_editing_overlay() const;
void _render_volumes(bool fake_colors) const;
void _render_gizmo() const;
//###################################################################################################################################
void _render_toolbar() const;
//###################################################################################################################################
float _get_layers_editing_cursor_z_relative() const;
void _perform_layer_editing_action(wxMouseEvent* evt = nullptr);
@@ -761,9 +740,7 @@ private:
bool _is_any_volume_outside() const;
//###################################################################################################################################
void _resize_toolbar() const;
//###################################################################################################################################
static std::vector<float> _parse_colors(const std::vector<std::string>& colors);
};