Class VOILine

java.lang.Object
java.util.AbstractCollection<WildMagic.LibFoundation.Mathematics.Vector3f>
java.util.AbstractList<WildMagic.LibFoundation.Mathematics.Vector3f>
java.util.Vector<WildMagic.LibFoundation.Mathematics.Vector3f>
gov.nih.mipav.model.structures.VOIBase
gov.nih.mipav.model.structures.VOILine
All Implemented Interfaces:
Serializable, Cloneable, Iterable<WildMagic.LibFoundation.Mathematics.Vector3f>, Collection<WildMagic.LibFoundation.Mathematics.Vector3f>, List<WildMagic.LibFoundation.Mathematics.Vector3f>, RandomAccess, SequencedCollection<WildMagic.LibFoundation.Mathematics.Vector3f>

public class VOILine extends VOIBase
Class for line, a simple extension of VOIBase. A line is formed of two points.
Version:
1.0 March 15, 2000
Author:
Matthew McAuliffe, Ph.D.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
  • Constructor Details

    • VOILine

      public VOILine()
      Default Constructor.
    • VOILine

      public VOILine(Vector<WildMagic.LibFoundation.Mathematics.Vector3f> kPositions)
      Constructor, sets the position of the line.
      Parameters:
      kPositions -
    • VOILine

      public VOILine(VOILine kVOI)
      Copy Constructor.
      Parameters:
      kVOI -
  • Method Details

    • clone

      public VOILine clone()
      Specified by:
      clone in class VOIBase
    • getGeometricCenter

      public WildMagic.LibFoundation.Mathematics.Vector3f getGeometricCenter()
      Gets the geometric center of the contour.
      Overrides:
      getGeometricCenter in class VOIBase
      Returns:
      returns the geometric center
    • getPositionAndIntensity

      public int getPositionAndIntensity(WildMagic.LibFoundation.Mathematics.Vector3f[] position, float[] intensity, float[] imageBuffer, int xD)
      Gets the position/intensity along a line VOI.
      Parameters:
      position - array that is filled with all x coordinates
      intensity - the corresponding intensities along the line
      imageBuffer - DOCUMENT ME!
      xD - x-Dimension of image
      Returns:
      the number of points in the position and intensity array that have a valid data.
    • translate

      public void translate(float xT, float yT)
      Translate both points of the VOI.
      Parameters:
      xT - amount to translate in the x direction
      yT - amount to translate in the y direction