GCode Preview - Added handling of G10 and G11 commands
This commit is contained in:
parent
1fcc7fcdd8
commit
d68804772a
2 changed files with 28 additions and 0 deletions
xs/src/libslic3r/GCode
|
@ -177,6 +177,16 @@ void GCodeAnalyzer::_process_gcode_line(GCodeReader&, const GCodeReader::GCodeLi
|
||||||
_processG1(line);
|
_processG1(line);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 10: // Retract
|
||||||
|
{
|
||||||
|
_processG10(line);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 11: // Unretract
|
||||||
|
{
|
||||||
|
_processG11(line);
|
||||||
|
break;
|
||||||
|
}
|
||||||
case 22: // Firmware controlled Retract
|
case 22: // Firmware controlled Retract
|
||||||
{
|
{
|
||||||
_processG22(line);
|
_processG22(line);
|
||||||
|
@ -305,6 +315,18 @@ void GCodeAnalyzer::_processG1(const GCodeReader::GCodeLine& line)
|
||||||
_store_move(type);
|
_store_move(type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GCodeAnalyzer::_processG10(const GCodeReader::GCodeLine& line)
|
||||||
|
{
|
||||||
|
// stores retract move
|
||||||
|
_store_move(GCodeMove::Retract);
|
||||||
|
}
|
||||||
|
|
||||||
|
void GCodeAnalyzer::_processG11(const GCodeReader::GCodeLine& line)
|
||||||
|
{
|
||||||
|
// stores unretract move
|
||||||
|
_store_move(GCodeMove::Unretract);
|
||||||
|
}
|
||||||
|
|
||||||
void GCodeAnalyzer::_processG22(const GCodeReader::GCodeLine& line)
|
void GCodeAnalyzer::_processG22(const GCodeReader::GCodeLine& line)
|
||||||
{
|
{
|
||||||
// stores retract move
|
// stores retract move
|
||||||
|
|
|
@ -127,6 +127,12 @@ private:
|
||||||
// Move
|
// Move
|
||||||
void _processG1(const GCodeReader::GCodeLine& line);
|
void _processG1(const GCodeReader::GCodeLine& line);
|
||||||
|
|
||||||
|
// Retract
|
||||||
|
void _processG10(const GCodeReader::GCodeLine& line);
|
||||||
|
|
||||||
|
// Unretract
|
||||||
|
void _processG11(const GCodeReader::GCodeLine& line);
|
||||||
|
|
||||||
// Firmware controlled Retract
|
// Firmware controlled Retract
|
||||||
void _processG22(const GCodeReader::GCodeLine& line);
|
void _processG22(const GCodeReader::GCodeLine& line);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue