C# Класс ClearCanvas.ImageViewer.StudyManagement.Sop

A DICOM SOP Instance.

Note that there should no longer be any need to derive from this class; the Sop, ImageSop and Frame classes are now just simple Bridge classes (see Bridge Design Pattern) to ISopDataSource and ISopFrameData. See the remarks for ISopDataSource for more information.

Also, for more information on 'transient references' and the lifetime of Sops, see ISopReference.

Наследование: IDisposable, IDicomAttributeProvider, ISopInstanceData, ISeriesData, IStudyData, IPatientData
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetImageSopClasses IEnumerable
GetSeriesIdentifier ISeriesIdentifier
GetStudyIdentifier IStudyRootStudyIdentifier
Initialize void
IsImageSop bool
IsImageSop bool
this DicomAttributeIDicomAttributeProvider.System
this DicomAttributeIDicomAttributeProvider.System

Открытые методы

Метод Описание
Create ( ISopDataSource dataSource ) : Sop

Creates either a Sop or ImageSop based on the SopClass of the given ISopDataSource.

Create ( string filename ) : Sop

Creates either a Sop or ImageSop based on the SopClass of the SOP instance specified by filename.

GetIdentifier ( ) : IImageIdentifier

Gets an IImageIdentifier for this Sop.

An IImageIdentifier can be used in situations where you only need some data about the Sop, but not the Sop itself. It can be problematic to hold references to Sop objects outside the context of an IImageViewer without creating a transient reference because they are no longer valid when the viewer is closed; in these situations, it may be appropriate to use an identifier.

ResetCache ( ) : void

Resets any values that were cached after reading from DataSource.

Many of the property values are cached for performance reasons, as they generally never change, and parsing values from the image header can be expensive, especially when done repeatedly.

Sop ( ISopDataSource dataSource ) : System

Creates a new instance of Sop.

Sop ( string filename ) : System

Creates a new instance of Sop from a local file.

ToString ( ) : string

Returns the SOP instance UID in string form.

TryGetAttribute ( ClearCanvas.Dicom.DicomTag tag, ClearCanvas.Dicom.DicomAttribute &dicomAttribute ) : bool

Gets a specific DICOM attribute in the underlying native object.

DicomAttributes returned from this indexer are considered read-only and should not be modified in any way.

TryGetAttribute ( uint tag, ClearCanvas.Dicom.DicomAttribute &dicomAttribute ) : bool

Gets a specific DICOM attribute in the underlying native object.

DicomAttributes returned from this indexer are considered read-only and should not be modified in any way.

Validate ( ) : void

The Sop class (and derived classes) should not validate tag values from within its properties, but instead clients should call this method at an appropriate time to determine whether or not the Sop should be used or discarded as invalid.

ValidateAllowableTransferSyntax ( ) : void
this ( ClearCanvas.Dicom.DicomTag tag ) : ClearCanvas.Dicom.DicomAttribute

Gets a specific DICOM attribute in the underlying native object.

DicomAttributes returned from this indexer are considered read-only and should not be modified in any way.

this ( uint tag ) : ClearCanvas.Dicom.DicomAttribute

Gets a specific DICOM attribute in the underlying native object.

DicomAttributes returned from this indexer are considered read-only and should not be modified in any way.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Disposes all resources being used by this Sop.

GetAllowableTransferSyntaxes ( ) : IEnumerable
ValidateInternal ( ) : void

Validates the Sop object.

Derived classes should call the base class implementation first, and then do further validation. The Sop class validates properties deemed vital to usage of the object.

Приватные методы

Метод Описание
GetImageSopClasses ( ) : IEnumerable
GetSeriesIdentifier ( ) : ISeriesIdentifier
GetStudyIdentifier ( ) : IStudyRootStudyIdentifier
Initialize ( ISopDataSource dataSource ) : void
IsImageSop ( ClearCanvas.Dicom.SopClass sopClass ) : bool
IsImageSop ( string sopClassUid ) : bool
this ( ClearCanvas.Dicom.DicomTag tag ) : DicomAttributeIDicomAttributeProvider.System
this ( uint tag ) : DicomAttributeIDicomAttributeProvider.System

Описание методов

Create() публичный статический Метод

Creates either a Sop or ImageSop based on the SopClass of the given ISopDataSource.
public static Create ( ISopDataSource dataSource ) : Sop
dataSource ISopDataSource
Результат Sop

Create() публичный статический Метод

Creates either a Sop or ImageSop based on the SopClass of the SOP instance specified by filename.
public static Create ( string filename ) : Sop
filename string
Результат Sop

Dispose() защищенный Метод

Disposes all resources being used by this Sop.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

GetAllowableTransferSyntaxes() защищенный Метод

protected GetAllowableTransferSyntaxes ( ) : IEnumerable
Результат IEnumerable

GetIdentifier() публичный Метод

Gets an IImageIdentifier for this Sop.
An IImageIdentifier can be used in situations where you only need some data about the Sop, but not the Sop itself. It can be problematic to hold references to Sop objects outside the context of an IImageViewer without creating a transient reference because they are no longer valid when the viewer is closed; in these situations, it may be appropriate to use an identifier.
public GetIdentifier ( ) : IImageIdentifier
Результат IImageIdentifier

ResetCache() публичный Метод

Resets any values that were cached after reading from DataSource.
Many of the property values are cached for performance reasons, as they generally never change, and parsing values from the image header can be expensive, especially when done repeatedly.
public ResetCache ( ) : void
Результат void

Sop() публичный Метод

Creates a new instance of Sop.
public Sop ( ISopDataSource dataSource ) : System
dataSource ISopDataSource
Результат System

Sop() публичный Метод

Creates a new instance of Sop from a local file.
public Sop ( string filename ) : System
filename string The path to a local DICOM Part 10 file.
Результат System

ToString() публичный Метод

Returns the SOP instance UID in string form.
public ToString ( ) : string
Результат string

TryGetAttribute() публичный Метод

Gets a specific DICOM attribute in the underlying native object.
DicomAttributes returned from this indexer are considered read-only and should not be modified in any way.
Thrown if the specified DICOM tag is not within the valid range for either the meta info or the dataset.
public TryGetAttribute ( ClearCanvas.Dicom.DicomTag tag, ClearCanvas.Dicom.DicomAttribute &dicomAttribute ) : bool
tag ClearCanvas.Dicom.DicomTag The DICOM tag of the attribute to retrieve.
dicomAttribute ClearCanvas.Dicom.DicomAttribute Returns the requested .
Результат bool

TryGetAttribute() публичный Метод

Gets a specific DICOM attribute in the underlying native object.
DicomAttributes returned from this indexer are considered read-only and should not be modified in any way.
Thrown if the specified DICOM tag is not within the valid range for either the meta info or the dataset.
public TryGetAttribute ( uint tag, ClearCanvas.Dicom.DicomAttribute &dicomAttribute ) : bool
tag uint The DICOM tag of the attribute to retrieve.
dicomAttribute ClearCanvas.Dicom.DicomAttribute Returns the requested .
Результат bool

Validate() публичный Метод

The Sop class (and derived classes) should not validate tag values from within its properties, but instead clients should call this method at an appropriate time to determine whether or not the Sop should be used or discarded as invalid.
Thrown when validation fails.
public Validate ( ) : void
Результат void

ValidateAllowableTransferSyntax() публичный Метод

public ValidateAllowableTransferSyntax ( ) : void
Результат void

ValidateInternal() защищенный Метод

Validates the Sop object.
Derived classes should call the base class implementation first, and then do further validation. The Sop class validates properties deemed vital to usage of the object.
Thrown when validation fails.
protected ValidateInternal ( ) : void
Результат void

this() публичный Метод

Gets a specific DICOM attribute in the underlying native object.
DicomAttributes returned from this indexer are considered read-only and should not be modified in any way.
Thrown if the specified DICOM tag is not within the valid range for either the meta info or the dataset.
public this ( ClearCanvas.Dicom.DicomTag tag ) : ClearCanvas.Dicom.DicomAttribute
tag ClearCanvas.Dicom.DicomTag The DICOM tag of the attribute to retrieve.
Результат ClearCanvas.Dicom.DicomAttribute

this() публичный Метод

Gets a specific DICOM attribute in the underlying native object.
DicomAttributes returned from this indexer are considered read-only and should not be modified in any way.
Thrown if the specified DICOM tag is not within the valid range for either the meta info or the dataset.
public this ( uint tag ) : ClearCanvas.Dicom.DicomAttribute
tag uint The DICOM tag of the attribute to retrieve.
Результат ClearCanvas.Dicom.DicomAttribute