public class MCspatialCoordinates3DItem extends MCcontentItem
This class provides the functionality to manipulate a SCOORD3D content item according to the definition of 3D Spatial Coordinates Macro.
SCOORD3D Content Item represents 3D spatial coordinates of a geometric region of interest defined within a Frame of Reference, independent of any image.
Note: 3D 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 |
MCspatialCoordinates3DItem.GraphicTypes
Enumerates the types of geometry of the annotated region of interest when annotation applies to an image.
|
static class |
MCspatialCoordinates3DItem.Position
An ordered set of (x,y,z) triplets (in mm and may be negative) that define a region of
interest in the patient-relative Reference Coordinate System defined by Referenced Frame of Reference UID (3006,0024).
|
Constructor and Description |
---|
MCspatialCoordinates3DItem()
Default constructor.
|
MCspatialCoordinates3DItem(java.lang.String referencedUID,
MCspatialCoordinates3DItem.GraphicTypes graphicType,
java.util.List<MCspatialCoordinates3DItem.Position> graphicData)
Creates a new instance of the SCOORD3D Content Item.
|
Modifier and Type | Method and Description |
---|---|
MCcontentItemType |
contentItemType()
Gets the value type of this content item.
|
java.util.List<MCspatialCoordinates3DItem.Position> |
getGraphicData()
Gets graphic data.
|
MCspatialCoordinates3DItem.GraphicTypes |
getGraphicType()
Gets graphic type.
|
java.lang.String |
getReferencedUID()
Uniquely identifies the Frame of Reference within which the coordinates are defined.
|
void |
read(MCattributeSet source)
Reads the SCOORD3D content item from the source attribute set.
|
void |
setGraphicData(java.util.List<MCspatialCoordinates3DItem.Position> graphicData)
Sets graphic data.
|
void |
setGraphicType(MCspatialCoordinates3DItem.GraphicTypes graphicType)
Sets graphic type.
|
void |
setReferencedUID(java.lang.String referencedUID)
Uniquely identifies the Frame of Reference within which the coordinates are defined.
|
void |
write(MCattributeSet destination)
Writes the SCOORD3D 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 MCspatialCoordinates3DItem()
public MCspatialCoordinates3DItem(java.lang.String referencedUID, MCspatialCoordinates3DItem.GraphicTypes graphicType, java.util.List<MCspatialCoordinates3DItem.Position> graphicData)
referencedUID
- Uniquely identifies the Frame of Reference within which the coordinates are definedgraphicType
- 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 void setReferencedUID(java.lang.String referencedUID)
referencedUID
- Frame of Reference UID.public java.lang.String getReferencedUID()
public java.util.List<MCspatialCoordinates3DItem.Position> getGraphicData()
public void setGraphicData(java.util.List<MCspatialCoordinates3DItem.Position> graphicData)
graphicData
- Graphic data.public MCspatialCoordinates3DItem.GraphicTypes getGraphicType()
public void setGraphicType(MCspatialCoordinates3DItem.GraphicTypes graphicType)
graphicType
- Graphic type.public MCcontentItemType contentItemType()
contentItemType
in class MCcontentItem
MCcontentItemType.SCOORD3D
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.