Make read-only constructor parameters - private.

This commit is contained in:
Y. Sapir 2014-05-19 23:38:10 +03:00
parent 76738dc66b
commit 22b05cb187
6 changed files with 81 additions and 32 deletions

View file

@ -24,8 +24,8 @@ class LayerRegion
friend class Layer;
public:
Layer *layer;
PrintRegion *region;
Layer* layer();
PrintRegion* region();
// collection of surfaces generated by slicing the original geometry
// divided by type top/bottom/internal
@ -51,6 +51,9 @@ class LayerRegion
ExtrusionEntityCollection fills;
private:
Layer *_layer;
PrintRegion *_region;
LayerRegion(Layer *layer, PrintRegion *region);
~LayerRegion();
};
@ -62,8 +65,9 @@ class Layer {
friend class PrintObject;
public:
int id; // sequential number of layer, 0-based
PrintObject *object;
int id();
PrintObject* object();
Layer *upper_layer;
Layer *lower_layer;
LayerRegionPtrs regions;
@ -84,6 +88,9 @@ class Layer {
void delete_region(int idx);
protected:
int _id; // sequential number of layer, 0-based
PrintObject *_object;
Layer(int id, PrintObject *object, coordf_t height, coordf_t print_z,
coordf_t slice_z);
virtual ~Layer();