GCode Formatters

GcodeFormatterBase

class hotwing_core.gcode_formatters.GcodeFormatterBase(parent)[source]

Gcode Formatter’s job is to convert the commands maintained by the Gcode class and format them into the appropriate format for the specification of Gcode being generated.

You can inherit from this class to create any GcodeFormatter objects. On any subclass, you are expected to implement at a minimum the process_move and process_fast_move commands.

The object contains an instance variable parent that provides access to the Gcode object.

Variables:parent – parent gcode instance
end_commands()[source]
process_command(command)[source]
start_commands()[source]

GcodeFormatterFactory

class hotwing_core.gcode_formatters.GcodeFormatterFactory[source]
debug

alias of DebugGcodeFormatter

default

alias of GenericGcodeFormatter

classmethod get_cls(name)[source]

Get a cutting strategy by name

Returns:GcodeFormatter object
formatters = [<class hotwing_core.gcode_formatters.generic.GenericGcodeFormatter>, <class hotwing_core.gcode_formatters.debug_formatter.DebugGcodeFormatter>]