Line | |
---|
1 | using System.Collections;
|
---|
2 | using System.Windows;
|
---|
3 |
|
---|
4 | namespace Microsoft.Research.DynamicDataDisplay.DataSources
|
---|
5 | {
|
---|
6 | public sealed class RawPointEnumerator : IPointEnumerator {
|
---|
7 | private readonly IEnumerator enumerator;
|
---|
8 |
|
---|
9 | public RawPointEnumerator(RawDataSource dataSource) {
|
---|
10 | this.enumerator = dataSource.Data.GetEnumerator();
|
---|
11 | }
|
---|
12 |
|
---|
13 | public bool MoveNext() {
|
---|
14 | return enumerator.MoveNext();
|
---|
15 | }
|
---|
16 |
|
---|
17 | public void GetCurrent(ref Point p) {
|
---|
18 | p = (Point)enumerator.Current;
|
---|
19 | }
|
---|
20 |
|
---|
21 | public void ApplyMappings(DependencyObject target) {
|
---|
22 | // do nothing here - no mapping supported
|
---|
23 | }
|
---|
24 |
|
---|
25 | public void Dispose() {
|
---|
26 | // do nothing here
|
---|
27 | }
|
---|
28 | }
|
---|
29 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.