public class SpatialCoordinatesMacro extends Macro
| Constructor and Description |
|---|
SpatialCoordinatesMacro(IDataSet objDataSet)
This constructor constructs a Macro with specified DataSet.
|
SpatialCoordinatesMacro(IDataSet objDataSet,
IDictionaryReader objDictionaryReader)
This constructor constructs a Macro with specified DataSet and DictionaryReader
|
SpatialCoordinatesMacro(IItem objItem)
This constructor constructs a Macro with the specified Item
|
SpatialCoordinatesMacro(IItem objItem,
IDictionaryReader objDictionaryReader)
This constructor constructs a Macro with the specified Item and DictionaryReader
|
| Modifier and Type | Method and Description |
|---|---|
float[] |
getGraphicData()
Return Graphic Data
|
java.lang.String |
getGraphicType()
Return Graphic Type
|
void |
setGraphicData(float[] arrFlGraphicData)
An ordered set of (column,row) pairs tha denote positions 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.
|
void |
setGraphicType(EnumGraphicType enumGraphicType)
When annotation applies to an image, this attribute defines the type of geometry of the annotated
region of interest.
|
boolean |
validate()
Validates all the attributes in Spatial Coordinates Macro
|
static boolean |
validate(IDataSet objIDataSet)
Validates all the attributes in Spatial Coordinates Macro that are present in the DataSet
|
static boolean |
validate(IItem objIItem)
Validates all the attributes in Spatial Coordinates Macro that are present in the DataSet
|
addDataElement, clone, contains, getDataElement, getTransferSyntaxpublic SpatialCoordinatesMacro(IDataSet objDataSet)
objDataSet - Collection of DataElementspublic SpatialCoordinatesMacro(IDataSet objDataSet, IDictionaryReader objDictionaryReader)
objDataSet - specifies the DataSetobjDictionaryReader - specifies the DICOM Dictionary reader to be usedpublic SpatialCoordinatesMacro(IItem objItem)
objItem - specifies instance of Item classpublic SpatialCoordinatesMacro(IItem objItem, IDictionaryReader objDictionaryReader)
objItem - specifies instance of Item classobjDictionaryReader - specifies the DICOM Dictionary reader to be usedpublic void setGraphicData(float[] arrFlGraphicData)
arrFlGraphicData - Float array of Graphic Datapublic float[] getGraphicData()
public void setGraphicType(EnumGraphicType enumGraphicType)
enumGraphicType - Enum value of Graphic Typepublic java.lang.String getGraphicType()
public boolean validate()
throws InvalidMacroException
InvalidMacroException - throws InvalidMacroException If Mandatory or Conditional element fails.public static boolean validate(IDataSet objIDataSet) throws InvalidMacroException
objIDataSet - collection of DataElementsInvalidMacroException - throws InvalidMacroException If Mandatory or Conditional element fails.public static boolean validate(IItem objIItem) throws InvalidMacroException
objIItem - collection of DataElements in a sequenceInvalidMacroException - throws InvalidMacroException If Mandatory or Conditional element fails.