Example #1
0
 public VirtualPrinter()
 {
     ana             = new GCodeAnalyzer(true);
     output          = new LinkedList <string>();
     extruderTemp[0] = extruderTemp[1] = extruderTemp[2] = 0;
     extruderOut[0]  = extruderOut[1] = extruderOut[2] = 0;
 }
Example #2
0
 public VirtualPrinter()
 {
     ana = new GCodeAnalyzer(true);
     output = new LinkedList<string>();
     extruderTemp[0] = extruderTemp[1] = extruderTemp[2] = 0;
     extruderOut[0] = extruderOut[1] = extruderOut[2] = 0;
 }
Example #3
0
 public void BeginJob()
 {
     con.firePrinterAction(Trans.T("L_BUILDING_PRINT_JOB...")); //"Building print job...");
     dataComplete = false;
     jobList.Clear();
     //times.Clear();
     totalLines           = 0;
     linesSend            = 0;
     computedPrintingTime = 0;
     con.lastlogprogress  = -1000;
     maxLayer             = -1;
     mode = 1;
     ana  = new GCodeAnalyzer(true);
     con.analyzer.StartJob();
     Main.main.Invoke(Main.main.UpdateJobButtons);
 }
Example #4
0
 public void fastLayerUpdate()
 {
     GCodeAnalyzer a = new GCodeAnalyzer(true);
     foreach (GCodeShort code in getContentArray(1))
         a.analyzeShort(code);
     foreach (GCodeShort code in getContentArray(0))
         a.analyzeShort(code);
     foreach (GCodeShort code in getContentArray(2))
         a.analyzeShort(code);
     MaxLayer = a.layer;
     if (a.printingTime > 0)
     {
         printingTime = a.printingTime;
         int sec = (int)(printingTime*(1+0.01*Main.conn.addPrintingTime));
         int hours = sec / 3600;
         sec -= 3600 * hours;
         int min = sec/60;
         sec-=min*60;
         StringBuilder s = new StringBuilder();
         if (hours > 0)
             s.Append(Trans.T1("L_TIME_H:", hours.ToString())); //"h:");
         if (min > 0)
             s.Append(Trans.T1("L_TIME_M:", min.ToString()));
         s.Append(Trans.T1("L_TIME_S", sec.ToString()));
         toolPrintingTime.Text = Trans.T1("L_PRINTING_TIME:",s.ToString());
     }
 }
Example #5
0
 public void BeginJob()
 {
     con.firePrinterAction(Trans.T("L_BUILDING_PRINT_JOB...")); //"Building print job...");
     dataComplete = false;
     jobList.Clear();
     //times.Clear();
     totalLines = 0;
     linesSend = 0;
     computedPrintingTime = 0;
     con.lastlogprogress = -1000;
     maxLayer = -1;
     mode = 1;
     ana = new GCodeAnalyzer(true);
     con.analyzer.StartJob();
     Main.main.Invoke(Main.main.UpdateJobButtons);
 }
Example #6
0
 public GCodeVisual(GCodeAnalyzer a)
 {
     segments = new LinkedList<GCodePath>[3];
     for (int i = 0; i < MaxExtruder; i++)
         segments[i] = new LinkedList<GCodePath>();
     ana = a;
     startOnClear = false;
     ana.eventPosChanged += OnPosChange;
     ana.eventPosChangedFast += OnPosChangeFast;
 }