public class MCspatialCoordinatesItem extends MCcontentItem
This class provides the functionality to manipulate a SCOORD content item according to the definition of Spatial Coordinates Macro.
SCOORD Content Item represents spatial coordinates of a geometric region of interest in the DICOM image coordinate system. The IMAGE Content Item from which spatial coordinates are selected is denoted by a SELECTED FROM relationship.
Note: Spatial coordinates may be used to associate observational data with a set of Image features. Spatial coordinates also may be used to convey coordinates that are input data for a measurement.
Modifier and Type | Class and Description |
---|---|
static class |
MCspatialCoordinatesItem.GraphicTypes
Enumerates the types of geometry of the annotated region of interest when annotation applies to an image.
|
static class |
MCspatialCoordinatesItem.Position
A column and row pair that denote position in an image specified with sub-pixel resolution such that the origin
at the TLHC of the TLHC pixel is 0.0\0.0, the BRHC of the TLHC pixel is 1.0\1.0, and the BRHC of the BRHC pixel
is Columns\Rows.
|
Constructor and Description |
---|
MCspatialCoordinatesItem()
Default constructor.
|
MCspatialCoordinatesItem(MCspatialCoordinatesItem.GraphicTypes graphicType,
java.util.List<MCspatialCoordinatesItem.Position> graphicData)
Creats a new instance of the SCOORD Content Item.
|
Modifier and Type | Method and Description |
---|---|
MCcontentItemType |
contentItemType()
Gets the value type of this content item.
|
java.util.List<MCspatialCoordinatesItem.Position> |
getGraphicData()
Gets graphic data.
|
MCspatialCoordinatesItem.GraphicTypes |
getGraphicType()
Gets graphic type.
|
void |
read(MCattributeSet source)
Reads the SCOORD content item from the source attribute set.
|
void |
setGraphicData(java.util.List<MCspatialCoordinatesItem.Position> graphicData)
Sets graphic data.
|
void |
setGraphicType(MCspatialCoordinatesItem.GraphicTypes graphicType)
Sets graphic type.
|
void |
write(MCattributeSet destination)
Writes the SCOORD content item to the destination attribute set.
|
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 MCspatialCoordinatesItem()
public MCspatialCoordinatesItem(MCspatialCoordinatesItem.GraphicTypes graphicType, java.util.List<MCspatialCoordinatesItem.Position> graphicData)
graphicType
- The type of geometry of the annotated region of interest.graphicData
- An ordered set of (column,row) pairs that denote positions in an image.public java.util.List<MCspatialCoordinatesItem.Position> getGraphicData()
public void setGraphicData(java.util.List<MCspatialCoordinatesItem.Position> graphicData)
graphicData
- Graphic data.public MCspatialCoordinatesItem.GraphicTypes getGraphicType()
public void setGraphicType(MCspatialCoordinatesItem.GraphicTypes graphicType)
graphicType
- Graphic type.public MCcontentItemType contentItemType()
contentItemType
in class MCcontentItem
MCcontentItemType.SCOORD
public void read(MCattributeSet source)
read
in interface MCdataSetSerializable
read
in class MCcontentItem
source
- Source attribute set.MCexception
- If the source parameter is null or it contains illegal GRAPHIC DATA(0070, 0022)
( The value numbers should be even ).public void write(MCattributeSet destination)
write
in interface MCdataSetSerializable
write
in class MCcontentItem
destination
- Destination attribute set.MCexception
- If the destination parameter is null or
is NOT an MCitem
object.