Class FlyPathAnnotateList_WM
java.lang.Object
gov.nih.mipav.view.renderer.WildMagic.flythroughview.FlyPathAnnotateList_WM
Container which stores annotations which include the following: - point position and normal - camera location, view up and view direction, branch and location
along branch when point annotated - geometry and appearance - description.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intAnnotation item number.protected ArrayList<FlyPathAnnotateList_WM.Item> Annotation list -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddItem(int iBranch, float fNormalizedPathDist, boolean bPathMoveForward, WildMagic.LibFoundation.Mathematics.Vector3f kPointPosition, WildMagic.LibFoundation.Mathematics.Vector3f kPointNormal, WildMagic.LibFoundation.Mathematics.Vector3f kCLoc, WildMagic.LibFoundation.Mathematics.Vector3f kCDir, WildMagic.LibFoundation.Mathematics.Vector3f kCUp, WildMagic.LibFoundation.Mathematics.Vector3f kCRight) Create a new annotation item with the specified information and add the item to the end of the list.voidaddItem(FlyPathAnnotateList_WM.Item kNewItem) Add the specified annotation item to the end of the list.getItem(int iItem) Return the specified annotation item.intReturn the number of annotation items stored.voidremoveItem(int iItem) Remove the specified annotation item from the list.
-
Field Details
-
m_iNextItemKey
protected int m_iNextItemKeyAnnotation item number. -
m_kList
Annotation list
-
-
Constructor Details
-
FlyPathAnnotateList_WM
public FlyPathAnnotateList_WM()Constructor. Initially an empty list.
-
-
Method Details
-
addItem
public void addItem(int iBranch, float fNormalizedPathDist, boolean bPathMoveForward, WildMagic.LibFoundation.Mathematics.Vector3f kPointPosition, WildMagic.LibFoundation.Mathematics.Vector3f kPointNormal, WildMagic.LibFoundation.Mathematics.Vector3f kCLoc, WildMagic.LibFoundation.Mathematics.Vector3f kCDir, WildMagic.LibFoundation.Mathematics.Vector3f kCUp, WildMagic.LibFoundation.Mathematics.Vector3f kCRight) Create a new annotation item with the specified information and add the item to the end of the list. Set the item's appearance and geometry based on the defaults. Generate a description for the item based on the number of items inserted already.- Parameters:
iBranch- int Index of branch from which the item was seen and annotated.fNormalizedPathDist- float Relative distance along the branch (in the [0,1] range) from which the item was seen and annotated.bPathMoveForward- boolean Flag set if the moving forward, as opposed to in reverse, down the path.kPointPosition- Point3f Coordinates of the annotated point.kPointNormal- Vector3f Normal vector associated with the annotated point.kCLoc- Camera location.kCDir- Camera view direction.kCUp- Camera up vector.kCRight- Camera right vector.
-
addItem
Add the specified annotation item to the end of the list.- Parameters:
kNewItem- Item Information about the annotation item to be added.
-
getItem
Return the specified annotation item.- Parameters:
iItem- Index of the specified item.- Returns:
- Item Information about the annotation item.
-
getNumItems
public int getNumItems()Return the number of annotation items stored.- Returns:
- int Number of annotation items.
-
removeItem
public void removeItem(int iItem) Remove the specified annotation item from the list.- Parameters:
iItem- Index of the annotation item in the list to be removed.
-