/// <summary> /// Constructs a new <see cref="ColorMap"/> based on an existing one. /// </summary> /// <param name="colorMap">The base <see cref="ColorMap"/>.</param> public ColorMap(ColorMap colorMap) { this.colormapDelegate = colorMap.colormapDelegate; this.Filter = colorMap.Filter; this.FilterColor = colorMap.FilterColor; this.useFunc = colorMap.useFunc; this.Stepped = colorMap.Stepped; this.colors = colorMap.colors; this.count = colorMap.count; }
/// <summary> /// Constructs a new <see cref="ColorMap"/> using the provided <see cref="ColorMapDelegate"/>. /// </summary> /// <param name="colorMapFunction">The desired <see cref="ColorMapDelegate"/></param>. public ColorMap(ColorMapDelegate colorMapFunction) { this.colormapDelegate = colorMapFunction; this.useFunc = true; }