Class VOILine

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<WildMagic.LibFoundation.Mathematics.Vector3f>, java.util.Collection<WildMagic.LibFoundation.Mathematics.Vector3f>, java.util.List<WildMagic.LibFoundation.Mathematics.Vector3f>, java.util.RandomAccess

    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:
    VOI, Serialized Form
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Use serialVersionUID for interoperability.
        See Also:
        Constant Field Values
    • Constructor Detail

      • VOILine

        public VOILine()
        Default Constructor.
      • VOILine

        public VOILine​(java.util.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 Detail

      • 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