public ColorMapActionContainer(ColorMapTool ownerTool, ColorMapDescriptor descriptor, int index) { _ownerTool = ownerTool; _descriptor = descriptor; string actionId = String.Format("apply{0}", index); ActionPath actionPath = new ActionPath(String.Format("imageviewer-contextmenu/ColourMaps/colourMap{0}", index), _ownerTool._resolver); _action = new MenuAction(actionId, actionPath, ClickActionFlags.None, _ownerTool._resolver); _action.GroupHint = new GroupHint("Tools.Image.Manipulation.Lut.ColourMaps"); _action.Label = _descriptor.Description; _action.SetClickHandler(this.Apply); }
public void InstallColorMap(ColorMapDescriptor descriptor) { this.InstallColorMap(descriptor.Name); }
void IColorMapInstaller.InstallColorMap(ColorMapDescriptor descriptor) { _placeholderColorMapManager.InstallColorMap(descriptor); InstallColorMap(); }
/// <summary> /// Installs a colour map by <see cref="ColorMapDescriptor">descriptor</see>. /// </summary> public void InstallColorMap(ColorMapDescriptor descriptor) { this.ColorMapManager.InstallColorMap(descriptor); }
void IColorMapInstaller.InstallColorMap(ColorMapDescriptor descriptor) { (this as IColorMapInstaller).InstallColorMap(descriptor.Name); }