public DelegateGraphicVoiLutFactory(CreateVoiLutDelegate createVoiLutDelegate) { Platform.CheckForNullReference(createVoiLutDelegate, "createVoiLutDelegate"); _createVoiLutDelegate = createVoiLutDelegate; }
/// <summary> /// Creates a new factory that wraps the given delegate. /// </summary> /// <param name="createVoiLutDelegate">A <see cref="CreateVoiLutDelegate"/> delegate to /// get a VOI LUT appropriate for the given <see cref="ImageGraphic"/>. /// This method should generally be static, as the factory may only be reference-copied when the parent graphic is cloned.</param> /// <returns>The VOI LUT as an <see cref="IVoiLut"/>.</returns> public static GraphicVoiLutFactory Create(CreateVoiLutDelegate createVoiLutDelegate) { return(new DelegateGraphicVoiLutFactory(createVoiLutDelegate)); }
/// <summary> /// Creates a new factory that wraps the given delegate. /// </summary> /// <param name="createVoiLutDelegate">A <see cref="CreateVoiLutDelegate"/> delegate to /// get a VOI LUT appropriate for the given <see cref="ImageGraphic"/>. /// This method should generally be static, as the factory may only be reference-copied when the parent graphic is cloned.</param> /// <returns>The VOI LUT as an <see cref="IVoiLut"/>.</returns> public static GraphicVoiLutFactory Create(CreateVoiLutDelegate createVoiLutDelegate) { return new DelegateGraphicVoiLutFactory(createVoiLutDelegate); }