diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-02-11 21:14:24 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-02-11 21:14:24 +0200 |
| commit | f4b1d1fce72c7b478d9603db8dfd66e471c9f467 (patch) | |
| tree | cc101a2828cd40890a1b74614306f0e5d835bb2d /Software/Visual_Studio/SideChains | |
| parent | e739594789125844da1d1ba6ed8d9e4994ad834b (diff) | |
| download | Tango-f4b1d1fce72c7b478d9603db8dfd66e471c9f467.tar.gz Tango-f4b1d1fce72c7b478d9603db8dfd66e471c9f467.zip | |
Implemented DisableRendering on RealTimeGraphX.
Implemented partial rendering on tech board.
Diffstat (limited to 'Software/Visual_Studio/SideChains')
2 files changed, 12 insertions, 1 deletions
diff --git a/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX/GraphController.cs b/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX/GraphController.cs index f5fed3fe4..328f0736e 100644 --- a/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX/GraphController.cs +++ b/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX/GraphController.cs @@ -79,6 +79,11 @@ namespace RealTimeGraphX public bool IsPaused { get; set; } /// <summary> + /// Gets or sets a value indicating whether to disable the rendering of data. + /// </summary> + public bool DisableRendering { get; set; } + + /// <summary> /// Gets the data series collection. /// </summary> public ObservableCollection<TDataSeries> DataSeriesCollection { get; } @@ -201,6 +206,7 @@ namespace RealTimeGraphX _render_thread = new Thread(RenderThreadMethod); _render_thread.IsBackground = true; + _render_thread.Priority = ThreadPriority.Highest; _render_thread.Start(); } @@ -215,7 +221,7 @@ namespace RealTimeGraphX { while (true) { - if (!IsPaused) + if (!IsPaused && !DisableRendering) { try { diff --git a/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX/IGraphController.cs b/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX/IGraphController.cs index 0dbc49ccb..4e36641e7 100644 --- a/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX/IGraphController.cs +++ b/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX/IGraphController.cs @@ -39,6 +39,11 @@ namespace RealTimeGraphX bool IsPaused { get; set; } /// <summary> + /// Gets or sets a value indicating whether to disable the rendering of data. + /// </summary> + bool DisableRendering { get; set; } + + /// <summary> /// Gets the current effective x-axis minimum. /// </summary> GraphDataPoint EffectiveMinimumX { get; } |
