Package com.pixelmed.dicom
Class ColorPalette
- java.lang.Object
-
- com.pixelmed.dicom.ColorPalette
-
- Direct Known Subclasses:
ColorPaletteHotIron,ColorPaletteHotMetalBlue,ColorPalettePET,ColorPalettePET20Step
public class ColorPalette extends java.lang.ObjectA class to encapsulate color palettes, including serialization and deserialization to and from standard DICOM color palette IODs.
May be used as a base class for specific standard or private color palettes.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String[]alternateContentDescriptionprotected java.lang.String[]alternateContentLanguageCodeMeaningprotected java.lang.String[]alternateContentLanguageCodeValueprotected byte[]blueprotected java.lang.StringcontentCreatorNameprotected java.lang.StringcontentDescriptionprotected java.lang.StringcontentLabelprotected byte[]greenprotected byte[]iccProfileprotected AttributeListlistprotected byte[]redprotected java.lang.StringreferenceEncodedInstanceURLprotected java.lang.StringsopInstanceUID
-
Constructor Summary
Constructors Modifier Constructor Description protectedColorPalette()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateDICOMInstance(java.lang.String dicomFileName, java.lang.String iccProfileFileName, java.lang.String aet)Create a DICOM color palette storage instance from the palette characteristics.AttributeListgetAttributeList()java.lang.StringgetContentDescription()java.lang.StringgetContentLabel()byte[]getICCProfile()java.lang.StringgetReferenceEncodedInstanceURL()java.lang.StringgetSOPInstanceUID()voidsetICCProfileFromFile(java.lang.String filename)
-
-
-
Field Detail
-
sopInstanceUID
protected java.lang.String sopInstanceUID
-
contentLabel
protected java.lang.String contentLabel
-
contentDescription
protected java.lang.String contentDescription
-
contentCreatorName
protected java.lang.String contentCreatorName
-
referenceEncodedInstanceURL
protected java.lang.String referenceEncodedInstanceURL
-
alternateContentDescription
protected java.lang.String[] alternateContentDescription
-
alternateContentLanguageCodeValue
protected java.lang.String[] alternateContentLanguageCodeValue
-
alternateContentLanguageCodeMeaning
protected java.lang.String[] alternateContentLanguageCodeMeaning
-
red
protected byte[] red
-
green
protected byte[] green
-
blue
protected byte[] blue
-
iccProfile
protected byte[] iccProfile
-
list
protected AttributeList list
-
-
Method Detail
-
getSOPInstanceUID
public java.lang.String getSOPInstanceUID()
-
getContentLabel
public java.lang.String getContentLabel()
-
getContentDescription
public java.lang.String getContentDescription()
-
getReferenceEncodedInstanceURL
public java.lang.String getReferenceEncodedInstanceURL()
-
getICCProfile
public byte[] getICCProfile()
-
setICCProfileFromFile
public void setICCProfileFromFile(java.lang.String filename) throws java.io.IOException- Throws:
java.io.IOException
-
getAttributeList
public AttributeList getAttributeList() throws DicomException
- Throws:
DicomException
-
createDICOMInstance
protected void createDICOMInstance(java.lang.String dicomFileName, java.lang.String iccProfileFileName, java.lang.String aet) throws java.io.IOException, DicomExceptionCreate a DICOM color palette storage instance from the palette characteristics.
- Parameters:
dicomFileName- to writeiccProfileFileName- to readaet- our Application Entity Title to include in the metaheader- Throws:
java.io.IOException- if an I/O error occursDicomException- if error in DICOM encoding
-
-