Class VOIStatisticalProperties

java.lang.Object
gov.nih.mipav.model.structures.VOIStatisticalProperties
All Implemented Interfaces:
VOIStatisticList

public class VOIStatisticalProperties extends Object implements VOIStatisticList
$Logfile: /mipav/src/gov/nih/mipav/model/structures/VOIStatisticalProperties.java $ $Revision: 4 $ $Date: 7/27/04 1:42p $
  • Field Details

  • Constructor Details

    • VOIStatisticalProperties

      public VOIStatisticalProperties()
      Creates a new VOIStatisticalProperties object.
  • Method Details

    • getTotalStatistic

      public Object getTotalStatistic(String statistic)
      Gets the total statistics for all elements of the VOIs that are included in this properties object. For example, if statistics for every slice have been calculated, this method should be used to store the total of this statistic on all slices.
      Parameters:
      statistic - The statistic that has been calculated
      Returns:
      The calculated statistic
    • setTotalStatistic

      public void setTotalStatistic(String statistic, Object statisticValue)
      Stores the total statistics for all elements of the VOIs that are included in this properties object. For example, if statistics for every slice have been calculated, this method should be used to store the total of this statistic on all slices.
      Parameters:
      statistic - The statistic that has been calculated
      statisticValue - The value of the calculated statistic
    • getSliceStatistic

      public Object getSliceStatistic(String statistic, int slice)
      Gets the statistic for all the contours of a VOI that exist on a particular slice.
      Parameters:
      statistic - The statistic that has been calculated
      slice - The slice that the contours exist on
      Returns:
      The value of the calculated statistic
    • setSliceStatistic

      public void setSliceStatistic(String statistic, int slice, Object statisticValue)
      Stores the statistic for all the contours of a VOI that exist on a particular slice.
      Parameters:
      statistic - The statistic that has been calculated
      slice - The slice that the contours exist on
      statisticValue - The value of the calculated statistic
    • getContourStatistic

      public Object getContourStatistic(String statistic, String contourLabel)
      Gets the statistic for a particular contour of a VOI without reference to the slice a contour may exist on.
      Parameters:
      statistic - The statistic that has been calculated
      contourLabel - The contour that this statistic relates to
      Returns:
      The value of the calculated statistic
    • setContourStatistic

      public void setContourStatistic(String statistic, String contourLabel, Object statisticValue)
      Stores the statistic for a particular contour of a VOI without reference to the slice a contour may exist on.
      Parameters:
      statistic - The statistic that has been calculated
      contourLabel - The contour that this statistic relates to
      statisticValue - The value of the calculated statistic
    • getSliceContourStatistic

      public Object getSliceContourStatistic(String statistic, int slice, String contourLabel)
      Gets the statistic for a particular contour on a particular slice of a VOI.
      Parameters:
      statistic - The statistic that has been calculated
      slice - The image slice that this statistic relate to
      contourLabel - The contour that this statistic relates to
      Returns:
      The value of the calculated statistic
    • setSliceContourStatistic

      public void setSliceContourStatistic(String statistic, int slice, String contourLabel, Object statisticValue)
      Stores the statistic for a particular contour on a particular slice of a VOI.
      Parameters:
      statistic - The statistic that has been calculated
      slice - The image slice that this statistic relate to
      contourLabel - The contour that this statistic relates to
      statisticValue - The value of the calculated statistic
    • getVOIStatistic

      public Object getVOIStatistic(String statistic)
      Gets the statistic for the whole VOI.
      Parameters:
      statistic - The statistic that has been calculated
      Returns:
      The value of the calculated statistic
    • setVOIStatistic

      public void setVOIStatistic(String statistic, Object statisticValue)
      Stores the statistic for the whole VOI.
      Parameters:
      statistic - The statistic that has been calculated
      statisticValue - The value of the calculated statistic
    • setProperty

      public void setProperty(String string, Object value)
    • getProperty

      public String getProperty(Object key)