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

#include <GCodeTimeEstimator.hpp>

Inheritance diagram for Slic3r::GCodeTimeEstimator:
Slic3r::GCodeReader

Public Member Functions

void parse (const std::string &gcode)
 
void parse_file (const std::string &file)
 
- Public Member Functions inherited from Slic3r::GCodeReader
 GCodeReader ()
 
void apply_config (const PrintConfigBase &config)
 
void parse (const std::string &gcode, callback_t callback)
 
void parse_stream (std::istream &gcode, callback_t callback)
 
void parse_line (std::string line, callback_t callback)
 
void parse_file (const std::string &file, callback_t callback)
 

Public Attributes

float time = 0
 
- Public Attributes inherited from Slic3r::GCodeReader
float X
 
float Y
 
float Z
 
float E
 
float F
 
bool verbose
 
callback_t callback
 

Protected Member Functions

void _parser (GCodeReader &, const GCodeReader::GCodeLine &line)
 

Static Protected Member Functions

static float _accelerated_move (double length, double v, double acceleration)
 

Protected Attributes

float acceleration = 9000
 

Additional Inherited Members

- Public Types inherited from Slic3r::GCodeReader
typedef std::function< void(GCodeReader &, const GCodeLine &)> callback_t
 

Member Function Documentation

◆ _accelerated_move()

float Slic3r::GCodeTimeEstimator::_accelerated_move ( double  length,
double  v,
double  acceleration 
)
staticprotected

◆ _parser()

void Slic3r::GCodeTimeEstimator::_parser ( GCodeReader ,
const GCodeReader::GCodeLine line 
)
protected

◆ parse()

void Slic3r::GCodeTimeEstimator::parse ( const std::string &  gcode)

◆ parse_file()

void Slic3r::GCodeTimeEstimator::parse_file ( const std::string &  file)

Member Data Documentation

◆ acceleration

float Slic3r::GCodeTimeEstimator::acceleration = 9000
protected

◆ time

float Slic3r::GCodeTimeEstimator::time = 0

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