Moved C++ code into new libslic3r directory

This commit is contained in:
Alessandro Ranellucci 2014-08-03 19:42:29 +02:00
parent b8676241e0
commit 6adc3477c9
84 changed files with 122 additions and 111 deletions

View file

@ -0,0 +1,45 @@
#include "Layer.hpp"
#include "Print.hpp"
namespace Slic3r {
LayerRegion::LayerRegion(Layer *layer, PrintRegion *region)
: _layer(layer),
_region(region)
{
}
LayerRegion::~LayerRegion()
{
}
Layer*
LayerRegion::layer()
{
return this->_layer;
}
PrintRegion*
LayerRegion::region()
{
return this->_region;
}
Flow
LayerRegion::flow(FlowRole role, bool bridge, double width) const
{
return this->_region->flow(
role,
this->_layer->height,
bridge,
this->_layer->id() == 0,
width,
*this->_layer->object()
);
}
#ifdef SLIC3RXS
REGISTER_CLASS(LayerRegion, "Layer::Region");
#endif
}