Class FlyPathAnnotateList.Item
java.lang.Object
gov.nih.mipav.view.renderer.J3D.surfaceview.flythruview.FlyPathAnnotateList.Item
- Enclosing class:
FlyPathAnnotateList
Single annotation item. Must extend Object in order to be placed into a container.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanDOCUMENT ME!private floatDOCUMENT ME!private intDOCUMENT ME!private StringDOCUMENT ME!private javax.vecmath.Vector3fDOCUMENT ME!private javax.vecmath.Point3fDOCUMENT ME!private javax.media.j3d.Shape3DDOCUMENT ME! -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturn the index of the branch from which the item was seen and annotated.Return the description associated with the annotated point.floatReturn the relative distance (in the [0,1] range) along the branch path from which the item was seen and annotated.voidgetPointNormal(javax.vecmath.Vector3f kPointNormal) Return the normal vector for the annotated point.voidgetPointPosition(javax.vecmath.Point3f kPointPosition) Return the 3D coordinates for the annotated point.javax.media.j3d.Shape3DgetShape()Return access to the shape for rendering the annotated point.booleanReturn the flag indicating whether moving was forward, as opposed to in reverse, down the path.voidsetDescription(String kDescription) Set the description associated with the annotated point.voidsetShape(javax.media.j3d.Shape3D kShape) Set the shape for rendering the annotated point to that specified.
-
Field Details
-
m_bPathMoveForward
private boolean m_bPathMoveForwardDOCUMENT ME! -
m_fNormalizedPathDist
private float m_fNormalizedPathDistDOCUMENT ME! -
m_iBranch
private int m_iBranchDOCUMENT ME! -
m_kDescription
DOCUMENT ME! -
m_kPointNormal
private javax.vecmath.Vector3f m_kPointNormalDOCUMENT ME! -
m_kPointPosition
private javax.vecmath.Point3f m_kPointPositionDOCUMENT ME! -
m_kShape
private javax.media.j3d.Shape3D m_kShapeDOCUMENT ME!
-
-
Constructor Details
-
Item
Item(int iBranch, float fNormalizedPathDist, boolean bPathMoveForward, javax.vecmath.Point3f kPointPosition, javax.vecmath.Vector3f kPointNormal, javax.media.j3d.Shape3D kShape, String kDescription) Constructor. Only the shape and description can be changed once initialized in the constructor, while all other member data cannot be changed once initialized.- 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.kShape- Shape3D Instance which contains the geometry and appearance to use for rendering.kDescription- String Text description to set.
-
-
Method Details
-
getBranchIndex
public int getBranchIndex()Return the index of the branch from which the item was seen and annotated.- Returns:
- int Index which identifies the branch in the FlyPathGraph.
-
getDescription
Return the description associated with the annotated point.- Returns:
- String Text description.
-
getNormalizedPathDist
public float getNormalizedPathDist()Return the relative distance (in the [0,1] range) along the branch path from which the item was seen and annotated.- Returns:
- float
-
getPointNormal
public void getPointNormal(javax.vecmath.Vector3f kPointNormal) Return the normal vector for the annotated point.- Parameters:
kPointNormal- Vector3f Filled in with the normal vector upon return.
-
getPointPosition
public void getPointPosition(javax.vecmath.Point3f kPointPosition) Return the 3D coordinates for the annotated point.- Parameters:
kPointPosition- Point3f Filled in with the 3D coordinates upon return.
-
getShape
public javax.media.j3d.Shape3D getShape()Return access to the shape for rendering the annotated point.- Returns:
- Shape3D Instance which contains the geometry and appearance to use for rendering.
-
isPathMoveForward
public boolean isPathMoveForward()Return the flag indicating whether moving was forward, as opposed to in reverse, down the path.- Returns:
- boolean True if moving forward down the path.
-
setDescription
Set the description associated with the annotated point.- Parameters:
kDescription- String Text description to set.
-
setShape
public void setShape(javax.media.j3d.Shape3D kShape) Set the shape for rendering the annotated point to that specified.- Parameters:
kShape- Shape3D Instance which contains the geometry and appearance to use for rendering.
-