public class MCimageItem extends MCcompositeItem
IMAGE Content Item keeps a reference to one Image; it may also convey a reference to a Softcopy Presentation State associated with the Image.
Note: Icon Image Sequence(0088, 0200) attribute has a DICOM type 3(optional) in IMAGE REFERENCE MACRO. It's not defined in this class. A sub class of this class is needed to support it in an image content item.
Constructor and Description |
---|
MCimageItem()
Default constructor.
|
MCimageItem(MCsopInstanceReference sopReference)
Creates a new instance of the IMAGE Content Item.
|
Modifier and Type | Method and Description |
---|---|
MCcontentItemType |
contentItemType()
Gets the value type of this content item.
|
java.util.List<java.lang.Integer> |
getReferencedFrames()
Gets the frame numbers within the Referenced SOP Instance to which the
reference applies.
|
MCsopInstanceReference |
getReferencedRealWorldVm()
Gets the reference to a Real World Value Mapping SOP
Class/SOP Instance pair.
|
java.util.List<java.lang.Integer> |
getReferencedSegments()
Gets the segments to which the reference applies identified by Segment Number
(0062,0004).
|
MCsopInstanceReference |
getReferencedSps()
Gets the reference to a Softcopy Presentation State SOP
Class/SOP Instance pair.
|
void |
read(MCattributeSet source)
Reads the IMAGE content item from the source attribute set.
|
void |
setReferencedFrames(int[] refFrameArray)
Sets the frame numbers within the Referenced SOP Instance to which the
reference applies.
|
void |
setReferencedFrames(java.util.List<java.lang.Integer> referencedFrames)
Sets the frame numbers within the Referenced SOP Instance to which the
reference applies.
|
void |
setReferencedRealWorldVm(MCsopInstanceReference referencedRealWorldVm)
Sets the reference to a Real World Value Mapping SOP
Class/SOP Instance pair.
|
void |
setReferencedSegments(int[] refSegmentArray)
Sets the segments to which the reference applies identified by Segment Number
(0062,0004).
|
void |
setReferencedSegments(java.util.List<java.lang.Integer> referencedSegments)
Sets the segments to which the reference applies identified by Segment Number
(0062,0004).
|
void |
setReferencedSps(MCsopInstanceReference referencedSps)
Sets the reference to a Softcopy Presentation State SOP
Class/SOP Instance pair.
|
void |
write(MCattributeSet destination)
Writes the IMAGE content item to the destination attribute set.
|
getSopReference, setSopReference
addChild, addChildAt, addReference, getChildAt, getChildren, getConceptName, getDataContext, getItemId, getObservationDateTime, getObservationUID, getParent, getPosition, getReferences, getRelationshipType, getRootItem, removeChild, removeChildAt, removeReference, removeReference, setConceptName, setDataContext, setObservationDataTime, setObservationUID, setRelationshipType
public MCimageItem()
public MCimageItem(MCsopInstanceReference sopReference)
sopReference
- Image SOP Instance.public java.util.List<java.lang.Integer> getReferencedFrames()
Note: Any operation afterwards on the returned List will be reflected in this image content item.
public void setReferencedFrames(java.util.List<java.lang.Integer> referencedFrames)
Note: Any operation afterwards on the parameter List will be reflected in this image content item.
referencedFrames
- The frame numbers within the Referenced SOP Instance.public void setReferencedFrames(int[] refFrameArray)
Note: Any operation afterwards on the parameter array will NOT be reflected in this image content item.
refFrameArray
- The frame numbers within the Referenced SOP Instance.public java.util.List<java.lang.Integer> getReferencedSegments()
Note: Any operation afterwards on the returned List will be reflected in this image content item.
public void setReferencedSegments(java.util.List<java.lang.Integer> referencedSegments)
Note: Any operation afterwards on the parameter List will be reflected in this image content item.
referencedSegments
- The segments to which the reference applies.public void setReferencedSegments(int[] refSegmentArray)
refSegmentArray
- The segments to which the reference applies.public MCsopInstanceReference getReferencedSps()
public void setReferencedSps(MCsopInstanceReference referencedSps)
referencedSps
- The reference to a Softcopy Presentation State SOP
Class/SOP Instance pair.public MCsopInstanceReference getReferencedRealWorldVm()
public void setReferencedRealWorldVm(MCsopInstanceReference referencedRealWorldVm)
referencedRealWorldVm
- The reference to a Real World Value Mapping SOP
Class/SOP Instance pair.public MCcontentItemType contentItemType()
contentItemType
in class MCcompositeItem
MCcontentItemType.IMAGE
public void read(MCattributeSet source)
read
in interface MCdataSetSerializable
read
in class MCcompositeItem
source
- Source attribute set.MCexception
- If the source parameter is null.public void write(MCattributeSet destination)
write
in interface MCdataSetSerializable
write
in class MCcompositeItem
destination
- Destination attribute set.MCexception
- If the destination parameter is null or
is NOT an MCitem
object.