Class DemographicAndTechniqueAnnotations

java.lang.Object
com.pixelmed.display.DemographicAndTechniqueAnnotations
Direct Known Subclasses:
IconDemographicAndTechniqueAnnotations, MammoDemographicAndTechniqueAnnotations

public class DemographicAndTechniqueAnnotations extends Object

A class to extract selected DICOM annotative attributes into defined displayed area relative positions.

  • Field Details

  • Constructor Details

    • DemographicAndTechniqueAnnotations

      public DemographicAndTechniqueAnnotations(AttributeList list)
      Parameters:
      list - the DICOM attributes of a single or multi-frame image
    • DemographicAndTechniqueAnnotations

      public DemographicAndTechniqueAnnotations(AttributeList list, GeometryOfVolume geometry)
      Parameters:
      list - the DICOM attributes of a single or multi-frame image
      geometry - the geometry of a single or multi-frame image (or null if no 3D coordinate system)
    • DemographicAndTechniqueAnnotations

      public DemographicAndTechniqueAnnotations(AttributeList list, GeometryOfVolume geometry, boolean swapLeftRight)
      Parameters:
      list - the DICOM attributes of a single or multi-frame image
      geometry - the geometry of a single or multi-frame image (or null if no 3D coordinate system)
      swapLeftRight - whether the sides (left and right) to annotate are to be swapped
  • Method Details

    • initializeDefaultLayout

      protected void initializeDefaultLayout()
    • getValueByCallingFunction

      protected String getValueByCallingFunction(AttributeList list)

      Return a string value from the supplied list of attributes.

      Overridden by children of this class when specific functionality is needed.

      Parameters:
      list - ignored, unless the method is overriden in a child class
      Returns:
      a string value, of zero length unless the method is overriden in a child class
    • iterator

      public Iterator iterator(int frameIndex)

      Get the annotations for the selected frame.

      Parameters:
      frameIndex - which frame
      Returns:
      an iterator of annotations of TextAnnotationPositioned
    • main

      public static void main(String[] arg)

      The method to invoke the class for testing.

      Parameters:
      arg - optionally, a single file which is a DICOM object