org.dcm4che2.iod.module.lut
Class VoiLutModule

java.lang.Object
  extended by org.dcm4che2.iod.module.Module
      extended by org.dcm4che2.iod.module.lut.VoiLutModule

public class VoiLutModule
extends Module

Since:
Jun 9, 2006
Version:
$Revision: 4738 $ $Date: 2007-07-24 15:39:05 +0200 (Tue, 24 Jul 2007) $
Author:
gunter zeilinger(gunterze@gmail.com)

Field Summary
 
Fields inherited from class org.dcm4che2.iod.module.Module
dcmobj
 
Constructor Summary
VoiLutModule(DicomObject dcmobj)
           
 
Method Summary
 ILut getVOILut(java.lang.String name)
          Gets the named VOI LUT.
 Lut[] getVOILUTs()
           
 float[] getWindowCenter()
          Defines a Window Center for display.
 java.lang.String[] getWindowCenterWidthExplanations()
          Free form explanation of the meaning of the Window Center and Width.
 float[] getWindowWidth()
          Window Width for display.
 void setVOILUTs(Lut[] luts)
           
 void setWindowCenter(float[] centers)
          Defines a Window Center for display.
 void setWindowCenterWidthExplanation(java.lang.String[] explanations)
          Free form explanation of the meaning of the Window Center and Width.
 void setWindowWidth(float[] widths)
          Window Width for display.
 
Methods inherited from class org.dcm4che2.iod.module.Module
getDicomObject, getType1Tags, getType2Tags, init, updateSequence, updateSequence, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VoiLutModule

public VoiLutModule(DicomObject dcmobj)
Method Detail

getVOILut

public ILut getVOILut(java.lang.String name)
Gets the named VOI LUT. Null means the first one found. Throws a runtime exception if the explanation for a window level isn't associated with a window center and width (either they aren't present, or there aren't enough elemetns.)

Parameters:
name - to look for the VOI LUT for.
Returns:
the VOI LUT with explanation the same as name, or null if not found.

getVOILUTs

public Lut[] getVOILUTs()

setVOILUTs

public void setVOILUTs(Lut[] luts)

setWindowCenter

public void setWindowCenter(float[] centers)
Defines a Window Center for display.

See C.8.11.3.1.5 for further explanation.

Required if Presentation Intent Type (0008,0068) is FOR PRESENTATION and VOI LUT Sequence (0028,3010) is not present. May also be present if VOI LUT Sequence (0028,3010) is present.

Parameters:
centers - associated with each window level (explanation).

getWindowCenter

public float[] getWindowCenter()
Defines a Window Center for display.

See C.8.11.3.1.5 for further explanation.

Required if Presentation Intent Type (0008,0068) is FOR PRESENTATION and VOI LUT Sequence (0028,3010) is not present. May also be present if VOI LUT Sequence (0028,3010) is present.

Returns:

setWindowWidth

public void setWindowWidth(float[] widths)
Window Width for display.

See C.8.11.3.1.5 for further explanation.

Required if Window Center (0028,1050) is sent.

Parameters:
windowWidths - are the window widths to put into the dicom object.

getWindowWidth

public float[] getWindowWidth()
Window Width for display.

See C.8.11.3.1.5 for further explanation.

Required if Window Center (0028,1050) is sent.

Returns:
An array of window widths corresponding to the window center/width explanation.

setWindowCenterWidthExplanation

public void setWindowCenterWidthExplanation(java.lang.String[] explanations)
Free form explanation of the meaning of the Window Center and Width.

Multiple values correspond to multiple Window Center and Width values.

Parameters:
explanations - to associate with window levels.

getWindowCenterWidthExplanations

public java.lang.String[] getWindowCenterWidthExplanations()
Free form explanation of the meaning of the Window Center and Width.

Multiple values correspond to multiple Window Center and Width values.

Returns:
an array of explanatory names for each window level (width/center)


Copyright © 2011 dcm4che. All Rights Reserved.