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

#include <GCodeReader.hpp>

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

Classes

class  GCodeLine
 

Public Types

typedef std::function< void(GCodeReader &, const GCodeLine &)> callback_t
 

Public Member Functions

 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 X
 
float Y
 
float Z
 
float E
 
float F
 
bool verbose
 
callback_t callback
 

Member Typedef Documentation

◆ callback_t

typedef std::function<void(GCodeReader&, const GCodeLine&)> Slic3r::GCodeReader::callback_t

Constructor & Destructor Documentation

◆ GCodeReader()

Slic3r::GCodeReader::GCodeReader ( )
inline

Member Function Documentation

◆ apply_config()

void Slic3r::GCodeReader::apply_config ( const PrintConfigBase config)

◆ parse()

void Slic3r::GCodeReader::parse ( const std::string &  gcode,
callback_t  callback 
)

◆ parse_file()

void Slic3r::GCodeReader::parse_file ( const std::string &  file,
callback_t  callback 
)

◆ parse_line()

void Slic3r::GCodeReader::parse_line ( std::string  line,
callback_t  callback 
)

◆ parse_stream()

void Slic3r::GCodeReader::parse_stream ( std::istream &  gcode,
callback_t  callback 
)

Member Data Documentation

◆ callback

callback_t Slic3r::GCodeReader::callback

◆ E

float Slic3r::GCodeReader::E

◆ F

float Slic3r::GCodeReader::F

◆ verbose

bool Slic3r::GCodeReader::verbose

◆ X

float Slic3r::GCodeReader::X

◆ Y

float Slic3r::GCodeReader::Y

◆ Z

float Slic3r::GCodeReader::Z

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