libslic3r
Library for generating gcode from 3d models
Public Member Functions | Public Attributes | List of all members
Slic3r::Extruder Class Reference

#include <Extruder.hpp>

Public Member Functions

 Extruder (unsigned int id, GCodeConfig *config)
 
virtual ~Extruder ()
 
void reset ()
 
double extrude (double dE)
 Calculate the amount extruded for relative or absolute moves. More...
 
double retract (double length, double restart_extra)
 
double unretract ()
 
double e_per_mm (double mm3_per_mm) const
 
double extruded_volume () const
 
double used_filament () const
 Calculate amount of filament used for current Extruder object. More...
 
double filament_diameter () const
 Retrieve the filament diameter for this Extruder from config. More...
 
double filament_density () const
 Retrieve the filament density for this Extruder from config. More...
 
double filament_cost () const
 Retrieve the filament cost for this Extruder from config. More...
 
double extrusion_multiplier () const
 Retrieve the extrustion multiplier for this Extruder from config. More...
 
double retract_length () const
 
double retract_lift () const
 
int retract_speed () const
 
double retract_restart_extra () const
 
double retract_length_toolchange () const
 
double retract_restart_extra_toolchange () const
 

Public Attributes

unsigned int id
 ID of current object. More...
 
double E
 
double absolute_E
 
double retracted
 
double restart_extra
 
double e_per_mm3
 
double retract_speed_mm_min
 

Constructor & Destructor Documentation

◆ Extruder()

Slic3r::Extruder::Extruder ( unsigned int  id,
GCodeConfig config 
)

◆ ~Extruder()

virtual Slic3r::Extruder::~Extruder ( )
inlinevirtual

Member Function Documentation

◆ e_per_mm()

double Slic3r::Extruder::e_per_mm ( double  mm3_per_mm) const

◆ extrude()

double Slic3r::Extruder::extrude ( double  dE)

Calculate the amount extruded for relative or absolute moves.

◆ extruded_volume()

double Slic3r::Extruder::extruded_volume ( ) const

◆ extrusion_multiplier()

double Slic3r::Extruder::extrusion_multiplier ( ) const

Retrieve the extrustion multiplier for this Extruder from config.

◆ filament_cost()

double Slic3r::Extruder::filament_cost ( ) const

Retrieve the filament cost for this Extruder from config.

◆ filament_density()

double Slic3r::Extruder::filament_density ( ) const

Retrieve the filament density for this Extruder from config.

◆ filament_diameter()

double Slic3r::Extruder::filament_diameter ( ) const

Retrieve the filament diameter for this Extruder from config.

◆ reset()

void Slic3r::Extruder::reset ( )

◆ retract()

double Slic3r::Extruder::retract ( double  length,
double  restart_extra 
)

This method makes sure the extruder is retracted by the specified amount of filament and returns the amount of filament retracted. If the extruder is already retracted by the same or a greater amount, this method is a no-op. The restart_extra argument sets the extra length to be used for unretraction. If we're actually performing a retraction, any restart_extra value supplied will overwrite the previous one if any.

◆ retract_length()

double Slic3r::Extruder::retract_length ( ) const

◆ retract_length_toolchange()

double Slic3r::Extruder::retract_length_toolchange ( ) const

◆ retract_lift()

double Slic3r::Extruder::retract_lift ( ) const

◆ retract_restart_extra()

double Slic3r::Extruder::retract_restart_extra ( ) const

◆ retract_restart_extra_toolchange()

double Slic3r::Extruder::retract_restart_extra_toolchange ( ) const

◆ retract_speed()

int Slic3r::Extruder::retract_speed ( ) const

◆ unretract()

double Slic3r::Extruder::unretract ( )

◆ used_filament()

double Slic3r::Extruder::used_filament ( ) const

Calculate amount of filament used for current Extruder object.

Member Data Documentation

◆ absolute_E

double Slic3r::Extruder::absolute_E

◆ E

double Slic3r::Extruder::E

◆ e_per_mm3

double Slic3r::Extruder::e_per_mm3

◆ id

unsigned int Slic3r::Extruder::id

ID of current object.

◆ restart_extra

double Slic3r::Extruder::restart_extra

◆ retract_speed_mm_min

double Slic3r::Extruder::retract_speed_mm_min

◆ retracted

double Slic3r::Extruder::retracted

The documentation for this class was generated from the following files: