Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/Common/RenderState.cs @ 13467

Last change on this file since 13467 was 12503, checked in by aballeit, 9 years ago

#2283 added GUI and charts; fixed MCTS

File size: 1.1 KB
Line 
1using System.Windows;
2using Microsoft.Research.DynamicDataDisplay.Common;
3
4namespace Microsoft.Research.DynamicDataDisplay
5{
6  /// <summary>
7  /// Target of rendering
8  /// </summary>
9  public enum RenderTo
10  {
11    /// <summary>
12    /// Rendering directly to screen
13    /// </summary>
14    Screen,
15    /// <summary>
16    /// Rendering to bitmap, which will be drawn to screen later.
17    /// </summary>
18    Image
19  }
20
21  public sealed class RenderState
22  {
23    private readonly DataRect visible;
24    private readonly Rect output;
25    private readonly DataRect renderVisible;
26    private readonly RenderTo renderingType;
27
28    public DataRect RenderVisible
29    {
30      get { return renderVisible; }
31    }
32
33    public RenderTo RenderingType
34    {
35      get { return renderingType; }
36    }
37
38    public Rect Output
39    {
40      get { return output; }
41    }
42
43    public DataRect Visible
44    {
45      get { return visible; }
46    }
47
48    internal RenderState(DataRect renderVisible, DataRect visible, Rect output, RenderTo renderingType)
49    {
50      this.renderVisible = renderVisible;
51      this.visible = visible;
52      this.output = output;
53      this.renderingType = renderingType;
54    }
55  }
56}
Note: See TracBrowser for help on using the repository browser.