Class VOIPolyLineSlice

  • 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 VOIPolyLineSlice
    extends VOIBase
    PolyLineSlice is implemented as a list of Each VOIPoint in the list may be on a different slice of the image.
    See Also:
    Serialized Form
    • Field Detail

      • serialVersionUID

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

        protected java.util.Vector<VOIPoint> m_kPoints
        List of VOIPoint that make up the polyline.
    • Constructor Detail

      • VOIPolyLineSlice

        public VOIPolyLineSlice()
        Default Constructor.
      • VOIPolyLineSlice

        public VOIPolyLineSlice​(VOIPoint kPoint)
        Constructor sets the first VOIPoint in the polyline.
        Parameters:
        kPoint -
      • VOIPolyLineSlice

        public VOIPolyLineSlice​(VOIPolyLineSlice kVOI)
        Copy constructor.
        Parameters:
        kVOI -
    • Method Detail

      • add

        public boolean add​(WildMagic.LibFoundation.Mathematics.Vector3f kPt)
        Specified by:
        add in interface java.util.Collection<WildMagic.LibFoundation.Mathematics.Vector3f>
        Specified by:
        add in interface java.util.List<WildMagic.LibFoundation.Mathematics.Vector3f>
        Overrides:
        add in class java.util.Vector<WildMagic.LibFoundation.Mathematics.Vector3f>
      • add

        public void add​(VOIPoint kPoint)
        Add a new VOIPoint to this polyline.
        Parameters:
        kPoint -
      • delete

        public void delete​(int iPos)
        Description copied from class: VOIBase
        Deletes the specified position on the curve.
        Overrides:
        delete in class VOIBase
        Parameters:
        iPos - position on the curve to delete.
      • getPoints

        public java.util.Vector<VOIPoint> getPoints()
        Returns the list of VOIPoint in this polyline.
        Returns:
      • set

        public WildMagic.LibFoundation.Mathematics.Vector3f set​(int i,
                                                                WildMagic.LibFoundation.Mathematics.Vector3f kNew)
        Specified by:
        set in interface java.util.List<WildMagic.LibFoundation.Mathematics.Vector3f>
        Overrides:
        set in class java.util.Vector<WildMagic.LibFoundation.Mathematics.Vector3f>
      • setActive

        public void setActive​(boolean active)
        Description copied from class: VOIBase
        Sets flag to indicate whether or not VOI is active.
        Overrides:
        setActive in class VOIBase
        Parameters:
        active - flag sets the activity status of a flag