Class FlyPathAnnotateList_WM.Item

java.lang.Object
gov.nih.mipav.view.renderer.WildMagic.flythroughview.FlyPathAnnotateList_WM.Item
Enclosing class:
FlyPathAnnotateList_WM

public class FlyPathAnnotateList_WM.Item extends Object
Single annotation item. Must extend Object in order to be placed into a container.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private boolean
    Annotation flag indicating whether moving was forward
    private float
    Annotation relative distance (in the [0,1] range) along the branch path
    private int
    Annotation branch index
    private WildMagic.LibFoundation.Mathematics.Vector3f
    Camera direction vector at Annotation point.
    private WildMagic.LibFoundation.Mathematics.Vector3f
    Camera location at Annotation point.
    private WildMagic.LibFoundation.Mathematics.Vector3f
    Camera right vector at Annotation point.
    private WildMagic.LibFoundation.Mathematics.Vector3f
    Camera up vector at Annotation point.
    private String
    Annotation description
    private WildMagic.LibFoundation.Mathematics.Vector3f
    Normal vector for the annotated point
    private WildMagic.LibFoundation.Mathematics.Vector3f
    3D coordinates for the annotated point
  • Constructor Summary

    Constructors
    Constructor
    Description
    Item(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, String kDescription)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Return the index of the branch from which the item was seen and annotated.
    WildMagic.LibFoundation.Mathematics.Vector3f
    Return the Camera direction vector at the Annotation point.
    WildMagic.LibFoundation.Mathematics.Vector3f
    Return the Camera 3D position at the Annotation point.
    WildMagic.LibFoundation.Mathematics.Vector3f
    Return the Camera right vector at the Annotation point.
    WildMagic.LibFoundation.Mathematics.Vector3f
    Return the Camera up vector at the Annotation point.
    Return the description associated with the annotated point.
    float
    Return the relative distance (in the [0,1] range) along the branch path from which the item was seen and annotated.
    void
    getPointNormal(WildMagic.LibFoundation.Mathematics.Vector3f kPointNormal)
    Return the normal vector for the annotated point.
    void
    getPointPosition(WildMagic.LibFoundation.Mathematics.Vector3f kPointPosition)
    Return the 3D coordinates for the annotated point.
    boolean
    Return the flag indicating whether moving was forward, as opposed to in reverse, down the path.
    void
    setDescription(String kDescription)
    Set the description associated with the annotated point.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • m_bPathMoveForward

      private boolean m_bPathMoveForward
      Annotation flag indicating whether moving was forward
    • m_fNormalizedPathDist

      private float m_fNormalizedPathDist
      Annotation relative distance (in the [0,1] range) along the branch path
    • m_iBranch

      private int m_iBranch
      Annotation branch index
    • m_kDescription

      private String m_kDescription
      Annotation description
    • m_kPointNormal

      private WildMagic.LibFoundation.Mathematics.Vector3f m_kPointNormal
      Normal vector for the annotated point
    • m_kPointPosition

      private WildMagic.LibFoundation.Mathematics.Vector3f m_kPointPosition
      3D coordinates for the annotated point
    • m_kCameraLocation

      private WildMagic.LibFoundation.Mathematics.Vector3f m_kCameraLocation
      Camera location at Annotation point.
    • m_kCameraDVector

      private WildMagic.LibFoundation.Mathematics.Vector3f m_kCameraDVector
      Camera direction vector at Annotation point.
    • m_kCameraUVector

      private WildMagic.LibFoundation.Mathematics.Vector3f m_kCameraUVector
      Camera up vector at Annotation point.
    • m_kCameraRVector

      private WildMagic.LibFoundation.Mathematics.Vector3f m_kCameraRVector
      Camera right vector at Annotation point.
  • Constructor Details

    • Item

      Item(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, 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.
      kCLoc - Camera location.
      kCDir - Camera view direction.
      kCUp - Camera up vector.
      kCRight - Camera right vector.
      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.
    • getCameraDirection

      public WildMagic.LibFoundation.Mathematics.Vector3f getCameraDirection()
      Return the Camera direction vector at the Annotation point.
      Returns:
      Camera direction vector at the Annotation point
    • getCameraLocation

      public WildMagic.LibFoundation.Mathematics.Vector3f getCameraLocation()
      Return the Camera 3D position at the Annotation point.
      Returns:
      Camera 3D position at the Annotation point
    • getCameraRight

      public WildMagic.LibFoundation.Mathematics.Vector3f getCameraRight()
      Return the Camera right vector at the Annotation point.
      Returns:
      Camera right vector at the Annotation point
    • getCameraUp

      public WildMagic.LibFoundation.Mathematics.Vector3f getCameraUp()
      Return the Camera up vector at the Annotation point.
      Returns:
      Camera up vector at the Annotation point
    • getDescription

      public String 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(WildMagic.LibFoundation.Mathematics.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(WildMagic.LibFoundation.Mathematics.Vector3f kPointPosition)
      Return the 3D coordinates for the annotated point.
      Parameters:
      kPointPosition - Point3f Filled in with the 3D coordinates upon return.
    • 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

      public void setDescription(String kDescription)
      Set the description associated with the annotated point.
      Parameters:
      kDescription - String Text description to set.