Class VOIWormAnnotation
- 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.VOIText
-
- gov.nih.mipav.view.renderer.WildMagic.WormUntwisting.VOIWormAnnotation
-
- 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 VOIWormAnnotation extends VOIText
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
isCurveAnnotation
private boolean
isSeamCell
private int
latticeSegment
private float
minDistance
private float
minUntwistDistance
private WildMagic.LibFoundation.Mathematics.Vector3f
minUntwistPt
private boolean
modified
private boolean
retwist
private boolean
selected
private WildMagic.LibFoundation.Mathematics.Vector3f
selectionOffset
private static long
serialVersionUID
private VOIContour[]
showSelected
private VOI
showSelectedVOI
private int
slice
private WildMagic.LibFoundation.Mathematics.Vector3f
untwistPt
-
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 VOIWormAnnotation()
VOIWormAnnotation(VOIText kVOI)
VOIWormAnnotation(VOIWormAnnotation kVOI)
VOIWormAnnotation(java.util.Vector<WildMagic.LibFoundation.Mathematics.Vector3f> kPositions)
VOIWormAnnotation(WildMagic.LibFoundation.Mathematics.Vector3f kPosition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VOIWormAnnotation
clone()
void
copy(VOIWormAnnotation kVOI)
void
display(boolean show)
Turns the display setting on/off for the VolumeVOI displayed in the volume renderer.void
dispose()
Deletes local data members.int
getLatticeSegment()
WildMagic.LibFoundation.Mathematics.Vector3f
getSelectionOffset()
int
getSlice()
WildMagic.LibFoundation.Mathematics.Vector3f
getUntwistTest()
WildMagic.LibFoundation.Mathematics.Vector3f
getUntwistTestNoBounds()
boolean
isCurveAnnotation()
boolean
isSeamCell()
boolean
isSelected()
private void
makeSelectionFrame(WildMagic.LibFoundation.Mathematics.Vector3f right, WildMagic.LibFoundation.Mathematics.Vector3f up, WildMagic.LibFoundation.Mathematics.Vector3f center, float diameter, VOIContour ellipse)
Generates the VOI that highlights which point (lattice or annotation) is currently selected by the user.boolean
modified()
void
modified(boolean modified)
boolean
retwist()
void
retwist(boolean retwist)
void
setCurveAnnotation(boolean isCurve)
void
setLatticeSegment(int segment)
void
setSeamCell(boolean isSeam)
void
setSelected(boolean select)
void
setSelectionOffset(WildMagic.LibFoundation.Mathematics.Vector3f selection)
void
untwistTest(WildMagic.LibFoundation.Mathematics.Vector3f pt, float distance)
void
untwistTestNoBounds(WildMagic.LibFoundation.Mathematics.Vector3f pt, float distance)
void
updateSelected(ModelImage image)
-
Methods inherited from class gov.nih.mipav.model.structures.VOIText
exportPoint, getBackgroundColor, getColor, getColorString, getComments, getDisplay, getFontDescriptors, getFontName, getFontSize, getLocationString, getNote, getText, getTextFont, getTextWidth, moveVOIPoint, setBackgroundColor, setColor, setComments, setFontDescriptors, setFontName, setFontSize, setNote, setText, setTextFont, setTextWidth, setUseMarker, update, updateText, useMarker, xCor, yCor
-
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, delete, deleteVolumeVOI, 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, setActive, setAnchor, setClosed, setDoGeometricCenterLabel, setFixed, setGroup, setLabel, setMask, setMaskSlice, setNearBoundPoint, setNearPoint, setPlane, setProcess, setQuickLUT, setSelectedPoint, setSplit, setSubtype, setVolumeDisplayRange, slice, slice, transform, trimPoints, update, update
-
Methods inherited from class java.util.Vector
add, 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
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
retwist
private boolean retwist
-
modified
private boolean modified
-
latticeSegment
private int latticeSegment
-
slice
private int slice
-
selected
private boolean selected
-
showSelectedVOI
private VOI showSelectedVOI
-
showSelected
private VOIContour[] showSelected
-
selectionOffset
private WildMagic.LibFoundation.Mathematics.Vector3f selectionOffset
-
isCurveAnnotation
private boolean isCurveAnnotation
-
isSeamCell
private boolean isSeamCell
-
untwistPt
private WildMagic.LibFoundation.Mathematics.Vector3f untwistPt
-
minDistance
private float minDistance
-
minUntwistPt
private WildMagic.LibFoundation.Mathematics.Vector3f minUntwistPt
-
minUntwistDistance
private float minUntwistDistance
-
-
Constructor Detail
-
VOIWormAnnotation
public VOIWormAnnotation()
-
VOIWormAnnotation
public VOIWormAnnotation(WildMagic.LibFoundation.Mathematics.Vector3f kPosition)
-
VOIWormAnnotation
public VOIWormAnnotation(java.util.Vector<WildMagic.LibFoundation.Mathematics.Vector3f> kPositions)
-
VOIWormAnnotation
public VOIWormAnnotation(VOIText kVOI)
-
VOIWormAnnotation
public VOIWormAnnotation(VOIWormAnnotation kVOI)
-
-
Method Detail
-
copy
public void copy(VOIWormAnnotation kVOI)
-
clone
public VOIWormAnnotation clone()
-
dispose
public void dispose()
Description copied from class:VOIBase
Deletes local data members.
-
modified
public void modified(boolean modified)
-
modified
public boolean modified()
-
retwist
public void retwist(boolean retwist)
-
retwist
public boolean retwist()
-
getSlice
public int getSlice()
-
getLatticeSegment
public int getLatticeSegment()
-
setLatticeSegment
public void setLatticeSegment(int segment)
-
isSeamCell
public boolean isSeamCell()
-
setSeamCell
public void setSeamCell(boolean isSeam)
-
setCurveAnnotation
public void setCurveAnnotation(boolean isCurve)
-
isCurveAnnotation
public boolean isCurveAnnotation()
-
setSelected
public void setSelected(boolean select)
-
isSelected
public boolean isSelected()
-
setSelectionOffset
public void setSelectionOffset(WildMagic.LibFoundation.Mathematics.Vector3f selection)
-
getSelectionOffset
public WildMagic.LibFoundation.Mathematics.Vector3f getSelectionOffset()
-
untwistTest
public void untwistTest(WildMagic.LibFoundation.Mathematics.Vector3f pt, float distance)
-
getUntwistTest
public WildMagic.LibFoundation.Mathematics.Vector3f getUntwistTest()
-
untwistTestNoBounds
public void untwistTestNoBounds(WildMagic.LibFoundation.Mathematics.Vector3f pt, float distance)
-
getUntwistTestNoBounds
public WildMagic.LibFoundation.Mathematics.Vector3f getUntwistTestNoBounds()
-
updateSelected
public void updateSelected(ModelImage image)
-
display
public void display(boolean show)
Turns the display setting on/off for the VolumeVOI displayed in the volume renderer.
-
makeSelectionFrame
private void makeSelectionFrame(WildMagic.LibFoundation.Mathematics.Vector3f right, WildMagic.LibFoundation.Mathematics.Vector3f up, WildMagic.LibFoundation.Mathematics.Vector3f center, float diameter, VOIContour ellipse)
Generates the VOI that highlights which point (lattice or annotation) is currently selected by the user.- Parameters:
right
-up
-center
-diameter
-ellipse
-
-
-