コード例 #1
0
ファイル: AnnotationItem.cs プロジェクト: nhannd/Xian
		/// <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;
		}
コード例 #2
0
        /// <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;
        }
コード例 #3
0
        /// <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;
        }
コード例 #4
0
 public CodeSequenceAnnotationItem(string identifier, IAnnotationResourceResolver resolver, uint codeSequenceTag, uint?descriptorTag)
     : base(identifier, resolver, new SopDataRetriever(codeSequenceTag, descriptorTag).RetrieveData, FormatResult)
 {
 }
コード例 #5
0
 public CodeSequenceAnnotationItem(string identifier, IAnnotationResourceResolver resolver, uint codeSequenceTag)
     : this(identifier, resolver, codeSequenceTag, null)
 {
 }
コード例 #6
0
ファイル: AnnotationItemProvider.cs プロジェクト: nhannd/Xian
		/// <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))
		{
		}
コード例 #7
0
 public LossyImagePresentationAnnotationItem(string identifier, IAnnotationResourceResolver annotationResourceResolver)
     : base(identifier, annotationResourceResolver)
 {
     _providers = new LossyImagePresentationInfoProviderExtensionPoint().CreateExtensions().Cast <ILossyImagePresentationInfoProvider>().ToList().AsReadOnly();
 }
コード例 #8
0
 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)
 {
 }
コード例 #9
0
 /// <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))
 {
 }
コード例 #10
0
 public ContrastBolusAgentAnnotationItem(string identifier, IAnnotationResourceResolver resolver, Func <IDicomAttributeProvider, string> standardModuleResultGetter, Func <DicomSequenceItem[], string> enhancedModuleResultGetter)
     : base(identifier, resolver, new FrameDataRetriever(standardModuleResultGetter, enhancedModuleResultGetter).RetrieveData, FormatResult)
 {
 }