Package gov.nih.mipav.model.structures
Class VOILine
- 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.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 SummaryFields Modifier and Type Field Description private static longserialVersionUIDUse serialVersionUID for interoperability.- 
Fields inherited from class gov.nih.mipav.model.structures.VOIBaseactive, 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
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description VOILineclone()WildMagic.LibFoundation.Mathematics.Vector3fgetGeometricCenter()Gets the geometric center of the contour.intgetPositionAndIntensity(WildMagic.LibFoundation.Mathematics.Vector3f[] position, float[] intensity, float[] imageBuffer, int xD)Gets the position/intensity along a line VOI.voidtranslate(float xT, float yT)Translate both points of the VOI.- 
Methods inherited from class gov.nih.mipav.model.structures.VOIBaseaddElement, addElement, area, areaTwice, calcIntensity, calcIntensity, calcIntensityThreshold, calcRGBIntensity, calcRGBIntensity, calcRGBIntensityThreshold, contain, contains, contains, contains, createVolumeVOI, cycleActivePt, delete, 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, 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, setActive, 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.Vectoradd, 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, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
 
- 
 
- 
- 
- 
Field Detail- 
serialVersionUIDprivate static final long serialVersionUID Use serialVersionUID for interoperability.- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
VOILinepublic VOILine() Default Constructor.
 - 
VOILinepublic VOILine(java.util.Vector<WildMagic.LibFoundation.Mathematics.Vector3f> kPositions) Constructor, sets the position of the line.- Parameters:
- kPositions-
 
 - 
VOILinepublic VOILine(VOILine kVOI) Copy Constructor.- Parameters:
- kVOI-
 
 
- 
 - 
Method Detail- 
getGeometricCenterpublic WildMagic.LibFoundation.Mathematics.Vector3f getGeometricCenter() Gets the geometric center of the contour.- Overrides:
- getGeometricCenterin class- VOIBase
- Returns:
- returns the geometric center
 
 - 
getPositionAndIntensitypublic 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.
 
 - 
translatepublic 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
 
 
- 
 
-