Пример #1
0
            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);
            }
Пример #2
0
 public void InstallColorMap(ColorMapDescriptor descriptor)
 {
     this.InstallColorMap(descriptor.Name);
 }
Пример #3
0
 void IColorMapInstaller.InstallColorMap(ColorMapDescriptor descriptor)
 {
     _placeholderColorMapManager.InstallColorMap(descriptor);
     InstallColorMap();
 }
Пример #4
0
 /// <summary>
 /// Installs a colour map by <see cref="ColorMapDescriptor">descriptor</see>.
 /// </summary>
 public void InstallColorMap(ColorMapDescriptor descriptor)
 {
     this.ColorMapManager.InstallColorMap(descriptor);
 }
Пример #5
0
 void IColorMapInstaller.InstallColorMap(ColorMapDescriptor descriptor)
 {
     (this as IColorMapInstaller).InstallColorMap(descriptor.Name);
 }