mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-21 15:51:10 -06:00
3DScene timer and _variable_layer_thickness_action method moved to c++
This commit is contained in:
parent
2f773a89df
commit
30a3b2179b
11 changed files with 389 additions and 136 deletions
|
@ -578,6 +578,21 @@ get_layers_editing_z_texture_id(canvas)
|
|||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
unsigned int
|
||||
get_layers_editing_state(canvas)
|
||||
SV *canvas;
|
||||
CODE:
|
||||
RETVAL = _3DScene::get_layers_editing_state((wxGLCanvas*)wxPli_sv_2_object(aTHX_ canvas, "Wx::GLCanvas"));
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
void
|
||||
set_layers_editing_state(canvas, state)
|
||||
SV *canvas;
|
||||
unsigned int state;
|
||||
CODE:
|
||||
_3DScene::set_layers_editing_state((wxGLCanvas*)wxPli_sv_2_object(aTHX_ canvas, "Wx::GLCanvas"), state);
|
||||
|
||||
float
|
||||
get_layers_editing_band_width(canvas)
|
||||
SV *canvas;
|
||||
|
@ -768,6 +783,27 @@ render_texture(canvas, tex_id, left, right, bottom, top)
|
|||
CODE:
|
||||
_3DScene::render_texture((wxGLCanvas*)wxPli_sv_2_object(aTHX_ canvas, "Wx::GLCanvas"), tex_id, left, right, bottom, top);
|
||||
|
||||
void
|
||||
start_timer(canvas)
|
||||
SV *canvas;
|
||||
CODE:
|
||||
_3DScene::start_timer((wxGLCanvas*)wxPli_sv_2_object(aTHX_ canvas, "Wx::GLCanvas"));
|
||||
|
||||
void
|
||||
stop_timer(canvas)
|
||||
SV *canvas;
|
||||
CODE:
|
||||
_3DScene::stop_timer((wxGLCanvas*)wxPli_sv_2_object(aTHX_ canvas, "Wx::GLCanvas"));
|
||||
|
||||
void
|
||||
perform_layer_editing_action(canvas, y, shift_down, right_down)
|
||||
SV *canvas;
|
||||
int y;
|
||||
bool shift_down;
|
||||
bool right_down;
|
||||
CODE:
|
||||
_3DScene::perform_layer_editing_action((wxGLCanvas*)wxPli_sv_2_object(aTHX_ canvas, "Wx::GLCanvas"), y, shift_down, right_down);
|
||||
|
||||
void
|
||||
register_on_viewport_changed_callback(canvas, callback)
|
||||
SV *canvas;
|
||||
|
|
|
@ -122,14 +122,16 @@ _constant()
|
|||
RETVAL.push_back(slicing_params.layer_height);
|
||||
%};
|
||||
|
||||
void adjust_layer_height_profile(coordf_t z, coordf_t layer_thickness_delta, coordf_t band_width, int action)
|
||||
%code%{
|
||||
THIS->update_layer_height_profile(THIS->model_object()->layer_height_profile);
|
||||
adjust_layer_height_profile(
|
||||
THIS->slicing_parameters(), THIS->model_object()->layer_height_profile, z, layer_thickness_delta, band_width, LayerHeightEditActionType(action));
|
||||
THIS->model_object()->layer_height_profile_valid = true;
|
||||
THIS->layer_height_profile_valid = false;
|
||||
%};
|
||||
//###################################################################################################################################################################
|
||||
// void adjust_layer_height_profile(coordf_t z, coordf_t layer_thickness_delta, coordf_t band_width, int action)
|
||||
// %code%{
|
||||
// THIS->update_layer_height_profile(THIS->model_object()->layer_height_profile);
|
||||
// adjust_layer_height_profile(
|
||||
// THIS->slicing_parameters(), THIS->model_object()->layer_height_profile, z, layer_thickness_delta, band_width, LayerHeightEditActionType(action));
|
||||
// THIS->model_object()->layer_height_profile_valid = true;
|
||||
// THIS->layer_height_profile_valid = false;
|
||||
// %};
|
||||
//###################################################################################################################################################################
|
||||
|
||||
void reset_layer_height_profile();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue