3DScene timer and _variable_layer_thickness_action method moved to c++

This commit is contained in:
Enrico Turri 2018-05-30 15:18:45 +02:00
parent 2f773a89df
commit 30a3b2179b
11 changed files with 389 additions and 136 deletions

View file

@ -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();