mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-30 16:42:43 +00:00
Make read-only constructor parameters - private.
This commit is contained in:
@@ -9,10 +9,8 @@
|
||||
%name{Slic3r::Layer::Region} class LayerRegion {
|
||||
// owned by Layer, no constructor/destructor
|
||||
|
||||
Ref<Layer> layer()
|
||||
%code%{ RETVAL = THIS->layer; %};
|
||||
Ref<PrintRegion> region()
|
||||
%code%{ RETVAL = THIS->region; %};
|
||||
Ref<Layer> layer();
|
||||
Ref<PrintRegion> region();
|
||||
|
||||
Ref<SurfaceCollection> slices()
|
||||
%code%{ RETVAL = &THIS->slices; %};
|
||||
@@ -33,10 +31,8 @@
|
||||
%name{Slic3r::Layer} class Layer {
|
||||
// owned by PrintObject, no constructor/destructor
|
||||
|
||||
int id()
|
||||
%code%{ RETVAL = THIS->id; %};
|
||||
Ref<PrintObject> object()
|
||||
%code%{ RETVAL = THIS->object; %};
|
||||
int id();
|
||||
Ref<PrintObject> object();
|
||||
Ref<Layer> upper_layer()
|
||||
%code%{ RETVAL = THIS->upper_layer; %};
|
||||
Ref<Layer> lower_layer()
|
||||
|
||||
@@ -47,8 +47,7 @@ _constant()
|
||||
|
||||
Ref<PrintRegionConfig> config()
|
||||
%code%{ RETVAL = &THIS->config; %};
|
||||
Ref<Print> print()
|
||||
%code%{ RETVAL = THIS->print; %};
|
||||
Ref<Print> print();
|
||||
Ref<PrintConfig> print_config()
|
||||
%code%{ RETVAL = &THIS->print_config(); %};
|
||||
};
|
||||
@@ -64,12 +63,10 @@ _constant()
|
||||
RETVAL = THIS->region_volumes[region_id];
|
||||
%};
|
||||
int region_count()
|
||||
%code%{ RETVAL = THIS->print->regions.size(); %};
|
||||
%code%{ RETVAL = THIS->print()->regions.size(); %};
|
||||
|
||||
Ref<Print> print()
|
||||
%code%{ RETVAL = THIS->print; %};
|
||||
Ref<ModelObject> model_object()
|
||||
%code%{ RETVAL = THIS->model_object; %};
|
||||
Ref<Print> print();
|
||||
Ref<ModelObject> model_object();
|
||||
Ref<PrintObjectConfig> config()
|
||||
%code%{ RETVAL = &THIS->config; %};
|
||||
Points copies()
|
||||
|
||||
Reference in New Issue
Block a user