Class VOIPolyLineSlice

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.VOIPolyLineSlice
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 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:
  • Field Details

    • serialVersionUID

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

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

    • 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 Details

    • add

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

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

      public VOIPolyLineSlice clone()
      Specified by:
      clone in class VOIBase
    • 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 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 List<WildMagic.LibFoundation.Mathematics.Vector3f>
      Overrides:
      set in class 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