Package gov.nih.mipav.model.structures
Class VOIPolyLineSlice
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.Vector<WildMagic.LibFoundation.Mathematics.Vector3f>
-
- gov.nih.mipav.model.structures.VOIBase
-
- gov.nih.mipav.model.structures.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 ofEach VOIPoint in the list may be on a different slice of the image. - See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Vector<VOIPoint>m_kPointsList of VOIPoint that make up the polyline.private static longserialVersionUIDUse serialVersionUID for interoperability.-
Fields inherited from class gov.nih.mipav.model.structures.VOIBase
active, autoLabel, averagePt, cenMassPt, cenMassPtB, cenMassPtG, cenMassPtR, CIRCLE, closed, display, DOWN, fixed, gcPt, label, lastPoint, LEFT, LEFT_MIDDLE, LOWER_LEFT, LOWER_MIDDLE, LOWER_RIGHT, m_akImageMinMax, m_bQuickLUT, m_bReloadPoints, m_bSplit, m_bUpdateAverage, m_bUpdateBounds, m_bUpdateGeometricCenter, m_bUpdateMask, m_bUpdatePlane, m_iAnchorIndex, m_iPlane, m_iVOIType, m_kColor, m_kPositionSum, m_kVolumeVOI, nearBoundPoint, nearPoint, NOT_A_PLANE, NOT_A_POINT, numPixels, process, RIGHT, RIGHT_MIDDLE, SQUARE, UNKNOWN_SUBTYPE, UP, UPPER_LEFT, UPPER_MIDDLE, UPPER_RIGHT, voiGroup, volumeDisplayRange, XPLANE, YPLANE, ZPLANE
-
-
Constructor Summary
Constructors Constructor Description VOIPolyLineSlice()Default Constructor.VOIPolyLineSlice(VOIPoint kPoint)Constructor sets the first VOIPoint in the polyline.VOIPolyLineSlice(VOIPolyLineSlice kVOI)Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(VOIPoint kPoint)Add a new VOIPoint to this polyline.booleanadd(WildMagic.LibFoundation.Mathematics.Vector3f kPt)VOIPolyLineSliceclone()voiddelete(int iPos)Deletes the specified position on the curve.java.util.Vector<VOIPoint>getPoints()Returns the list of VOIPoint in this polyline.WildMagic.LibFoundation.Mathematics.Vector3fset(int i, WildMagic.LibFoundation.Mathematics.Vector3f kNew)voidsetActive(boolean active)Sets flag to indicate whether or not VOI is active.-
Methods inherited from class gov.nih.mipav.model.structures.VOIBase
addElement, addElement, area, areaTwice, calcIntensity, calcIntensity, calcIntensityThreshold, calcRGBIntensity, calcRGBIntensity, calcRGBIntensityThreshold, contain, contains, contains, contains, createVolumeVOI, cycleActivePt, deleteVolumeVOI, display, dispose, distanceToVOI, equals, exportArrays, exportArrays, fillVolume, findPositionAndCurvature, findPositionAndIntensity, findPositionAndIntensity, findVOIIndentations2D, getActivePt, getAllContourPoints, getAnchor, getAverage, getBounds, getBounds, getCenterOfMass, getCenterOfMass, getCenterOfMassB, getCenterOfMassG, getCenterOfMassR, getContourID, getDoGeometricCenterLabel, getGeometricCenter, getGeometricCenterA, getGroup, getImageBoundingBox, getLabel, getLastNumPixels, getLengthPtToPt, getLengthPtToPt, getLengthString, getMaskPositions, getName, getNearBoundPoint, getNearPoint, getNumVoxels, getPlane, getProcess, getSelectedPoint, getSubtype, getTotalLengthString, getType, getVolumeDisplayRange, getVolumeVOI, importArrays, importArrays, importPoints, isActive, isClosed, isFixed, isM_bUpdateBounds, isM_bUpdateGeometricCenter, isQuickLUT, isSplit, nearLine, nearLine, planeFit, reloadPoints, setAnchor, setClosed, setDoGeometricCenterLabel, setFixed, setGroup, setLabel, setMask, setMaskSlice, setNearBoundPoint, setNearPoint, setPlane, setProcess, setQuickLUT, setSelectedPoint, setSplit, setSubtype, setVolumeDisplayRange, slice, slice, transform, trimPoints, update, update, update
-
Methods inherited from class java.util.Vector
add, addAll, addAll, addElement, capacity, clear, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
-
-
-
-
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:
addin interfacejava.util.Collection<WildMagic.LibFoundation.Mathematics.Vector3f>- Specified by:
addin interfacejava.util.List<WildMagic.LibFoundation.Mathematics.Vector3f>- Overrides:
addin classjava.util.Vector<WildMagic.LibFoundation.Mathematics.Vector3f>
-
add
public void add(VOIPoint kPoint)
Add a new VOIPoint to this polyline.- Parameters:
kPoint-
-
clone
public VOIPolyLineSlice clone()
-
delete
public void delete(int iPos)
Description copied from class:VOIBaseDeletes the specified position on the curve.
-
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:
setin interfacejava.util.List<WildMagic.LibFoundation.Mathematics.Vector3f>- Overrides:
setin classjava.util.Vector<WildMagic.LibFoundation.Mathematics.Vector3f>
-
-