예제 #1
0
        public StreamManager(Diagram diagram, EntryData entryData)
        {
            this.diagram = diagram;
            this.entryData = entryData;

            entryResampler = new EntryResampler(entryData.Entries);
            entryCache = new EntryCache(entryResampler);
        }
예제 #2
0
        protected static void SetSampleDistance(EntryResampler resampler, double sampleDistance)
        {
            if (resampler.SampleDistance == 0) resampler.SampleDistance = sampleDistance;
            else
            {
                double factor = sampleDistance / resampler.SampleDistance;

                if (factor < 0.8 || factor > 1.25) resampler.SampleDistance = sampleDistance;
            }
        }
예제 #3
0
        public EntryCache(EntryResampler source)
        {
            this.entryResampler = source;

            this.entryResampler.SampleDistanceChanged += entryResampler_SampleDistanceChanged;
        }