private void DrawMap() { this.SetFrameTime(); if (this.lines.Count == 0) { return; } vtkRenderWindow renderWindow = this.MapRenderWindow.RenderWindow; vtkRenderer renderer = renderWindow.GetRenderers().GetFirstRenderer(); renderer.SetBackground(0.6f, 0.6f, 0.6f); renderer.RemoveAllViewProps(); renderer.Clear(); renderer.AddActor(GetMapImage()); foreach (vtkActor actor in DrawMapBars()) { renderer.AddActor(actor); } this.MapRenderWindow.Invalidate(); }
private void DrawSelectedLineCircular() { DateTime monday = this.startDate.AddDays(-(int)this.startDate.DayOfWeek + (int)DayOfWeek.Monday); List <vtkActor> actors = new List <vtkActor>(); if (!string.IsNullOrEmpty(this.circularChartSelectedLine)) { actors.AddRange(this.DrawSectors(monday, 5, this.lines[this.circularChartSelectedLine])); } vtkRenderWindow renderWindow = this.RenderWindowCircularChart.RenderWindow; vtkInteractorStyleImage interactorStyle = new vtkInteractorStyleImage(); renderWindow.GetInteractor().SetInteractorStyle(interactorStyle); vtkRenderer renderer = renderer = renderWindow.GetRenderers().GetFirstRenderer(); renderer.SetBackground(0.6f, 0.6f, 0.6f); renderer.Clear(); this.RenderWindowCircularChart.Invalidate(); actors.AddRange(this.DrawClockLines()); foreach (vtkActor actor in actors) { renderer.AddActor(actor); } this.RenderWindowCircularChart.Update(); }
private void DrawSelectedLineGPS() { this.SetFrameTime(); if (this.lines.Count == 0) { return; } vtkRenderWindow renderWindow = this.RenderWindowGPS.RenderWindow; vtkRenderer renderer = renderWindow.GetRenderers().GetFirstRenderer(); renderer.SetBackground(0.6f, 0.6f, 0.6f); renderer.RemoveAllViewProps(); renderer.Clear(); foreach (vtkActor actor in this.DrawLineSectors(this.GPSChartSelectedLine)) { renderer.AddActor(actor); } this.RenderWindowGPS.Invalidate(); }