org.dcm4che.srom
Interface SCoordContent

All Superinterfaces:
Content
All Known Subinterfaces:
SCoordContent.Circle, SCoordContent.Ellipse, SCoordContent.MultiPoint, SCoordContent.Point, SCoordContent.Polyline

public interface SCoordContent
extends Content

The SCoordContent interface represents a DICOM SR Spatial Coordinate of value type SCOORD.

Version:
1.0
Author:
gunter.zeilinger@tiani.com
See Also:
"DICOM Part 3: Information Object Definitions, Annex C.18.6 Spatial Coordinates Macro"

Nested Class Summary
static interface SCoordContent.Circle
          The Circle interface represents a DICOM SR Spatial Coordinate of value type SCOORD.
static interface SCoordContent.Ellipse
          The Ellipse interface represents a DICOM SR Spatial Coordinate of value type SCOORD.
static interface SCoordContent.MultiPoint
          The MultiPoint interface represents a DICOM SR Spatial Coordinate of value type SCOORD.
static interface SCoordContent.Point
          The Point interface represents a DICOM SR Spatial Coordinate of value type SCOORD.
static interface SCoordContent.Polyline
          The Polyline interface represents a DICOM SR Spatial Coordinate of value type SCOORD.
 
Nested classes/interfaces inherited from interface org.dcm4che.srom.Content
Content.RelationType, Content.ValueType
 
Field Summary
 
Fields inherited from interface org.dcm4che.srom.Content
log
 
Method Summary
 float[] getGraphicData()
          Returns the Graphic Data.
 java.lang.String getGraphicType()
          Returns the Graphic Type.
 
Methods inherited from interface org.dcm4che.srom.Content
appendChild, clone, getFirstChild, getFirstChildBy, getID, getLastChild, getName, getNextSibling, getNextSiblingBy, getObservationDateTime, getOwnerDocument, getParent, getPreviousSibling, getRelationType, getTemplate, getValueType, hasChildren, insertBefore, removeChild, replaceChild, setName, toDataset
 

Method Detail

getGraphicType

java.lang.String getGraphicType()
Returns the Graphic Type.
DICOM Tag: (0070,0023)
Tag Name: Graphic Type
When annotation applies to an image, this attribute defines the type of geometry of the annotated region of interest. The following return Values are specified for image spatial coordinate geometries:

"POINT"
a single pixel denoted by a single (column,row) pair.
"MULTIPOINT"
multiple pixels each denoted by an (column,row) pair.
"POLYLINE"
a closed polygon with vertices denoted by (column,row) pairs.
"CIRCLE"
a circle defined by two (column,row) pairs. The first point is the central pixel. The second point is a pixel on the perimeter of the circle.
"ELLIPSE"
an ellipse defined by four pixel (column,row) pairs, the first two points specifying the endpoints of the major axis and the second two points specifying the endpoints of the minor axis of an ellipse.

Returns:
the Graphic Type.
See Also:
"DICOM Part 3: Information Object Definitions, Annex C.18.6.1.2 Graphic Type"

getGraphicData

float[] getGraphicData()
Returns the Graphic Data.
DICOM Tag: (0070,0022)
Tag Name: Graphic Data

Depending on the Graphic Type different sized float arrays will be returned:

POINT
a single pixel denoted by a single (column,row) pair.
          graphicData[0] = column;
          graphicData[1] = row;
      
MULTIPOINT
multiple pixels each denoted by an (column,row) pair.
          graphicData[0] = column_1;
          graphicData[1] = row_1;
          .
          .
          graphicData[n-1] = column_X;
          graphicData[n] = row_X;
      
POLYLINE
a closed polygon with vertices denoted by (column,row) pairs.
          graphicData[0] = column_1;
          graphicData[1] = row_1;
          .
          .
          graphicData[n-1] = column_X;
          graphicData[n] = row_X;
      
CIRCLE
a circle defined by two (column,row) pairs. The first point is the central pixel. The second point is a pixel on the perimeter of the circle.
          graphicData[0] = central_pixel_column;
          graphicData[1] = central_pixel_row;
          graphicData[2] = perimeter_point_column;
          graphicData[3] = perimeter_point_row;
      
ELLIPSE
an ellipse defined by four pixel (column,row) pairs, the first two points specifying the endpoints of the major axis and the second two points specifying the endpoints of the minor axis of an ellipse.
          graphicData[0] = MAJOR_axis_X_column;
          graphicData[1] = MAJOR_axis_X_row;
          graphicData[2] = MAJOR_axis_Y_column;
          graphicData[3] = MAJOR_axis_Y_row;
          graphicData[4] = minor_axis_X_column;
          graphicData[5] = minor_axis_X_row;
          graphicData[6] = minor_axis_Y_column;
          graphicData[7] = minor_axis_Y_row;
      

Returns:
the Graphic Data.
See Also:
"DICOM Part 3: Information Object Definitions, Annex C.18.6.1.1 Graphic Data"