2014-04-07 23:42:29 +00:00
|
|
|
#ifndef slic3r_Extruder_hpp_
|
|
|
|
#define slic3r_Extruder_hpp_
|
|
|
|
|
|
|
|
#include <myinit.h>
|
|
|
|
#include "Point.hpp"
|
2014-04-26 21:28:32 +00:00
|
|
|
#include "PrintConfig.hpp"
|
2014-04-07 23:42:29 +00:00
|
|
|
|
|
|
|
namespace Slic3r {
|
|
|
|
|
|
|
|
class Extruder
|
|
|
|
{
|
|
|
|
public:
|
2014-04-26 21:28:32 +00:00
|
|
|
Extruder(int id, PrintConfig *config);
|
2014-04-07 23:42:29 +00:00
|
|
|
virtual ~Extruder() {}
|
|
|
|
void reset();
|
|
|
|
double extrude(double dE);
|
|
|
|
|
2014-04-26 21:28:32 +00:00
|
|
|
bool use_relative_e_distances() const;
|
|
|
|
|
2014-04-07 23:42:29 +00:00
|
|
|
int id;
|
|
|
|
double E;
|
|
|
|
double absolute_E;
|
|
|
|
double retracted;
|
|
|
|
double restart_extra;
|
|
|
|
|
2014-04-26 21:28:32 +00:00
|
|
|
// TODO: maybe better to keep a reference to an existing object than copy it
|
|
|
|
PrintConfig config;
|
2014-04-07 23:42:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|