def __str__(self): '''Get the string representation.''' output = StringIO() output.write("\nRuntimeParameters:\n%s\n" % vars(self.runtimeParameters)) output.write("\nelementOffsets: %s\n" % self.elementOffsets) output.write("\nrotatedLoopLayers:\n") for rotatedLoopLayer in self.rotatedLoopLayers: output.write('%s\n' % vars(rotatedLoopLayer)) output.write("\nstartGcodeCommands:\n") for startGcodeCommand in self.startGcodeCommands: output.write(GcodeCommand.printCommand(startGcodeCommand, self.runtimeParameters.verboseGcode)) output.write("\nlayers:\n") for layer in self.layers: output.write('%s\n' % layer) output.write("\nendGcodeCommands:\n") for endGcodeCommand in self.endGcodeCommands: output.write(GcodeCommand.printCommand(endGcodeCommand, self.runtimeParameters.verboseGcode)) return output.getvalue()
def __str__(self): '''Get the string representation.''' output = StringIO() output.write("\nRuntimeParameters:\n%s\n" % vars(self.runtimeParameters)) output.write("\nelementOffsets: %s\n" % self.elementOffsets) output.write("\nrotatedLoopLayers:\n") for rotatedLoopLayer in self.rotatedLoopLayers: output.write('%s\n' % vars(rotatedLoopLayer)) output.write("\nstartGcodeCommands:\n") for startGcodeCommand in self.startGcodeCommands: output.write( GcodeCommand.printCommand(startGcodeCommand, self.runtimeParameters.verboseGcode)) output.write("\nlayers:\n") for layer in self.layers: output.write('%s\n' % layer) output.write("\nendGcodeCommands:\n") for endGcodeCommand in self.endGcodeCommands: output.write( GcodeCommand.printCommand(endGcodeCommand, self.runtimeParameters.verboseGcode)) return output.getvalue()
def __str__(self): '''Get the string representation.''' output = StringIO() output.write('%14stype: %s\n' % ('', self.type)) output.write('%14sstartPoint: %s\n' % ('', self.startPoint)) output.write('%14spoints: %s\n' % ('', self.points)) output.write('%14sgcodeCommands:\n' % '') for command in self.gcodeCommands: output.write('%16s%s' % ('', GcodeCommand.printCommand(command))) return output.getvalue()