Class FlyPathAnnotateList
java.lang.Object
gov.nih.mipav.view.renderer.J3D.surfaceview.flythruview.FlyPathAnnotateList
Container which stores annotations which include the following: - point position and normal - branch and location
along branch when point annotated - geometry and appearance - description.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intDOCUMENT ME!protected javax.media.j3d.Shape3DDOCUMENT ME!protected ArrayList<FlyPathAnnotateList.Item> DOCUMENT ME! -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddItem(int iBranch, float fNormalizedPathDist, boolean bPathMoveForward, javax.vecmath.Point3f kPointPosition, javax.vecmath.Vector3f kPointNormal) Create a new annotation item with the specified information and add the item to the end of the list.voidaddItem(FlyPathAnnotateList.Item kNewItem) Add the specified annotation item to the end of the list.javax.media.j3d.Shape3DReturn access to the default shape to use for rendering all subsequent annotated items.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.voidsetDefaultShape(javax.media.j3d.Shape3D kShape) Set the default shape for rendering all subsequent annotated items to that specified.
-
Field Details
-
m_iNextItemKey
protected int m_iNextItemKeyDOCUMENT ME! -
m_kDefaultShape
protected javax.media.j3d.Shape3D m_kDefaultShapeDOCUMENT ME! -
m_kList
DOCUMENT ME!
-
-
Constructor Details
-
FlyPathAnnotateList
public FlyPathAnnotateList()Constructor. Initially an empty list.
-
-
Method Details
-
addItem
Add the specified annotation item to the end of the list.- Parameters:
kNewItem- Item Information about the annotation item to be added.
-
addItem
public void addItem(int iBranch, float fNormalizedPathDist, boolean bPathMoveForward, javax.vecmath.Point3f kPointPosition, javax.vecmath.Vector3f kPointNormal) 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.
-
getDefaultShape
public javax.media.j3d.Shape3D getDefaultShape()Return access to the default shape to use for rendering all subsequent annotated items.- Returns:
- Shape3D Instance which contains the geometry and appearance to use for rendering.
-
getItem
Return the specified annotation item.- Parameters:
iItem- int 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- int Index of the annotation item in the list to be removed.
-
setDefaultShape
public void setDefaultShape(javax.media.j3d.Shape3D kShape) Set the default shape for rendering all subsequent annotated items to that specified.- Parameters:
kShape- Shape3D Instance which contains the geometry and appearance to use for rendering.
-