Rev | Line | |
---|
[12503] | 1 | using System.Windows;
|
---|
| 2 | using Microsoft.Research.DynamicDataDisplay.Common;
|
---|
| 3 |
|
---|
| 4 | namespace 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.