示例#1
0
        public static CommandChain StopPrint(this CommandChain self)
        {
            var command = new StopPrintCommand();

            self.Append(command);
            return(self);
        }
示例#2
0
        public static CommandChain StartPrint(this CommandChain self, string file)
        {
            var command = new StartPrintCommand(file);

            self.Append(command);
            return(self);
        }
示例#3
0
        public static CommandChain ExecuteGCode(this CommandChain self, string[] lines)
        {
            var command = new GCodeCommand(lines);

            self.Append(command);
            return(self);
        }
示例#4
0
        public static CommandChain SetZOffset(this CommandChain self, double zOffset)
        {
            var command = new SetZOffsetCommand(zOffset);

            self.Append(command);
            return(self);
        }
示例#5
0
        public static CommandChain GetPrinterInfo(this CommandChain self)
        {
            var command = new GetPrinterInfoCommand();

            self.Append(command);
            return(self);
        }
示例#6
0
        public static CommandChain GetZOffset(this CommandChain self)
        {
            var command = new GetZOffsetCommand();

            self.Append(command);
            return(self);
        }
示例#7
0
        public static CommandChain SetCurrentPosition(this CommandChain self, double x, double y, double z)
        {
            var position = new Position(x, y, z);
            var command  = new SetCurrentPositionCommand(position);

            self.Append(command);
            return(self);
        }