/// <summary> /// A constructor that uses the <see cref="AnnotationItem"/>'s unique identifier to determine /// the display name and label using an <see cref="IAnnotationResourceResolver"/>. /// </summary> /// <param name="identifier">The unique identifier of the <see cref="AnnotationItem"/>.</param> /// <param name="annotationResourceResolver">The object that will resolve the display name and label /// from the <see cref="AnnotationItem"/>'s unique identifier.</param> protected AnnotationItem(string identifier, IAnnotationResourceResolver annotationResourceResolver) { Platform.CheckForEmptyString(identifier, "identifier"); _annotationResourceResolver = annotationResourceResolver ?? new AnnotationResourceResolver(this); _identifier = identifier; }
/// <summary> /// A constructor that uses the <see cref="DicomAnnotationItem{T}"/>'s unique identifier to determine /// the display name and label using an <see cref="IAnnotationResourceResolver"/>. /// </summary> /// <param name="identifier">The unique identifier of the <see cref="DicomAnnotationItem{T}"/>.</param> /// <param name="resolver">The object that will resolve the display name and label /// from the <see cref="DicomAnnotationItem{T}"/>'s unique identifier.</param> /// <param name="sopDataRetrieverDelegate">A delegate used to retrieve the Dicom tag data.</param> /// <param name="resultFormatterDelegate">A delegate that will format the Dicom tag data as a string.</param> public DicomAnnotationItem ( string identifier, IAnnotationResourceResolver resolver, FrameDataRetrieverDelegate <T> sopDataRetrieverDelegate, ResultFormatterDelegate <T> resultFormatterDelegate ) : base(identifier, resolver) { Platform.CheckForNullReference(sopDataRetrieverDelegate, "sopDataRetrieverDelegate"); Platform.CheckForNullReference(resultFormatterDelegate, "resultFormatterDelegate"); _sopDataRetrieverDelegate = sopDataRetrieverDelegate; _resultFormatterDelegate = resultFormatterDelegate; }
public CodeSequenceAnnotationItem(string identifier, IAnnotationResourceResolver resolver, uint codeSequenceTag, uint?descriptorTag) : base(identifier, resolver, new SopDataRetriever(codeSequenceTag, descriptorTag).RetrieveData, FormatResult) { }
public CodeSequenceAnnotationItem(string identifier, IAnnotationResourceResolver resolver, uint codeSequenceTag) : this(identifier, resolver, codeSequenceTag, null) { }
/// <summary> /// A constructor that uses the <see cref="AnnotationItemProvider"/>'s unique identifier to determine /// the display name using an <see cref="IAnnotationResourceResolver"/>. /// </summary> /// <param name="identifier">The unique identifier of the <see cref="AnnotationItemProvider"/>.</param> /// <param name="resolver">The object that will resolve the display name from /// the <see cref="AnnotationItemProvider"/>'s unique identifier.</param> protected AnnotationItemProvider(string identifier, IAnnotationResourceResolver resolver) : this(identifier, resolver.ResolveDisplayName(identifier)) { }
public LossyImagePresentationAnnotationItem(string identifier, IAnnotationResourceResolver annotationResourceResolver) : base(identifier, annotationResourceResolver) { _providers = new LossyImagePresentationInfoProviderExtensionPoint().CreateExtensions().Cast <ILossyImagePresentationInfoProvider>().ToList().AsReadOnly(); }
public CodeSequenceAnnotationItem(string identifier, IAnnotationResourceResolver resolver, uint codeSequenceTag, uint?descriptorTag = null, bool showAllValues = true, Func <Frame, IDicomAttributeProvider> dataSourceGetter = null) : base(identifier, resolver, new FrameDataRetriever(codeSequenceTag, descriptorTag, showAllValues, dataSourceGetter).RetrieveData, FormatResult) { }
public ContrastBolusAgentAnnotationItem(string identifier, IAnnotationResourceResolver resolver, Func <IDicomAttributeProvider, string> standardModuleResultGetter, Func <DicomSequenceItem[], string> enhancedModuleResultGetter) : base(identifier, resolver, new FrameDataRetriever(standardModuleResultGetter, enhancedModuleResultGetter).RetrieveData, FormatResult) { }