Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/Common/Palettes/IPalette.cs @ 13757

Last change on this file since 13757 was 12503, checked in by aballeit, 10 years ago

#2283 added GUI and charts; fixed MCTS

File size: 689 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows.Media;
6
7namespace Microsoft.Research.DynamicDataDisplay.Common.Palettes
8{
9  /// <summary>
10  /// Represents a color palette, which can generate color by interpolation coefficient.
11  /// </summary>
12  public interface IPalette
13  {
14    /// <summary>
15    /// Gets the color by interpolation coefficient.
16    /// </summary>
17    /// <param name="t">Interpolation coefficient, should belong to [0..1].</param>
18    /// <returns>Color.</returns>
19    Color GetColor(double t);
20
21    /// <summary>
22    /// Occurs when palette changes.
23    /// </summary>
24    event EventHandler Changed;
25  }
26}
Note: See TracBrowser for help on using the repository browser.