Class JPanelDTIParametersPanel

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener, ListSelectionListener, RootPaneContainer, WindowConstants

public class JPanelDTIParametersPanel extends JInterfaceBase implements ListSelectionListener, ChangeListener
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • m_kTractList

      private JList m_kTractList
      The list box in the dialog for fiber bundle tracts.
    • m_kVOIList

      private JList m_kVOIList
      The list box in the dialog for 3D VOIs.
    • m_kColorButton

      private JButton m_kColorButton
      Color button for changing the color of the fiber bundles.
    • m_kUseVolumeColor

      private JCheckBox m_kUseVolumeColor
      Checkbox for turning on/off volume color for the polylines.
    • m_kUseEllipsoids

      private JCheckBox m_kUseEllipsoids
      Checkbox for switching between polylines and ellipsoids.
    • m_kDisplaySlider

      private JSlider m_kDisplaySlider
      User-control over the number of glyphs displayed in GPUVolumeRender
    • m_kSliderLabel

      private JLabel m_kSliderLabel
    • parentFrame

      private VolumeTriPlanarInterfaceDTI parentFrame
    • m_kVolumeDisplay

      private VolumeTriPlanarRender m_kVolumeDisplay
    • m_kDTIImage

      private ModelImage m_kDTIImage
    • m_kUseVOICheck

      private JCheckBox m_kUseVOICheck
      When selected, only tracts that intersect the VOI are displayed.
    • m_kGroupList

      private Vector<Integer> m_kGroupList
      Keeps track of the groups of polylines loaded.
    • m_iCurrentGroup

      private int m_iCurrentGroup
      Number of currently loaded fiber bundle groups.
    • m_iCurrentTrackCount

      private int m_iCurrentTrackCount
    • m_kImage

      private ModelImage m_kImage
    • m_kFAMinThreshold

      private JTextField m_kFAMinThreshold
    • m_kFAMaxThreshold

      private JTextField m_kFAMaxThreshold
    • m_kMaxAngle

      private JTextField m_kMaxAngle
    • m_kMinLength

      private JTextField m_kMinLength
    • m_kMaxLength

      private JTextField m_kMaxLength
    • m_kVoxelStepsize

      private JTextField m_kVoxelStepsize
    • displayMode

      private int displayMode
    • Polylines

      private static int Polylines
    • Ellipsoids

      private static int Ellipsoids
    • Tubes

      private static int Tubes
    • Cylinders

      private static int Cylinders
    • Arrows

      private static int Arrows
    • m_kCInclude

      private WildMagic.LibFoundation.Mathematics.ColorRGB m_kCInclude
    • m_kCExclude

      private WildMagic.LibFoundation.Mathematics.ColorRGB m_kCExclude
    • m_kCIgnore

      private WildMagic.LibFoundation.Mathematics.ColorRGB m_kCIgnore
    • m_kInclude

      private JRadioButton m_kInclude
    • m_kExclude

      private JRadioButton m_kExclude
    • m_kIgnore

      private JRadioButton m_kIgnore
    • m_fFAMin

      private float m_fFAMin
    • m_fFAMax

      private float m_fFAMax
    • m_fMaxAngle

      private float m_fMaxAngle
    • m_iMinTractLength

      private int m_iMinTractLength
    • m_iMaxTractLength

      private int m_iMaxTractLength
    • glyphsList

      private JComboBox glyphsList
      list to hold the glyphs type name
    • m_kVOIParamsList

      private Vector<JPanelDTIParametersPanel.VOIParams> m_kVOIParamsList
    • m_kColorChooser

      private ViewJColorChooser m_kColorChooser
      Color chooser for when the user wants to change the color of the fiber bundle tracts.
    • m_fFraction

      private float m_fFraction
    • m_kCurrentStartList

      private Vector<WildMagic.LibFoundation.Mathematics.Vector3f> m_kCurrentStartList
    • m_iDimX

      private int m_iDimX
    • m_iDimY

      private int m_iDimY
    • m_iDimZ

      private int m_iDimZ
  • Constructor Details

  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Specified by:
      actionPerformed in interface ActionListener
    • add3DVOI

      public void add3DVOI(String kVOIName, SurfaceState kSurfaceState, VolumeSurface kSurface)
    • closeFiberTractGroup

      public void closeFiberTractGroup()
      Called after a mouse drag on mouse release, when the user has drawn tracks interactively and then finishes.
    • addTract

      public void addTract()
      Updates the tract list user-interface.
    • extractGroupAndSize

      private void extractGroupAndSize(String kName, int[] values)
    • diplayTract

      public void diplayTract(int iX, int iY, int iZ)
      Constructs the Fiber Bundle Tracts from the dtiImage and the eigenImage parameters. The fiber bundles are output to a file specified by the user.
      Parameters:
      dtiImage - Diffusion Tensor Image.
      eigenImage - EigenVector Image.
    • disposeLocal

      public void disposeLocal()
      Dispose memory.
    • getMainPanel

      public JPanel getMainPanel()
      Get the main control Panel.
      Overrides:
      getMainPanel in class JInterfaceBase
      Returns:
      mainPanel main control panel
    • remove3DVOI

      public void remove3DVOI(String kVOIName)
    • resizePanel

      public void resizePanel(int panelWidth, int frameHeight)
      Resizing the control panel with ViewJFrameVolumeView's frame width and height.
      Parameters:
      panelWidth - DOCUMENT ME!
      frameHeight - DOCUMENT ME!
    • stateChanged

      public void stateChanged(ChangeEvent e)
      Specified by:
      stateChanged in interface ChangeListener
      Parameters:
      e - Event that triggered this function.
    • valueChanged

      public void valueChanged(ListSelectionEvent kEvent)
      Specified by:
      valueChanged in interface ListSelectionListener
    • addTract

      private void addTract(VOIContour kTract, int iDimX, int iDimY, int iDimZ)
      Adds a fiber bundle tract to the GPUVolumeRender and JPanelSurface.
      Parameters:
      kTract - list of voxels in the fiber bundle.
      iDimX - the x-dimensions of the DTI image used to create the tract.
      iDimY - the y-dimensions of the DTI image used to create the tract.
      iDimZ - the z-dimensions of the DTI image used to create the tract.
      iVQuantity - number of voxels in the fiber bundle.
    • createNewTracts

      private void createNewTracts()
    • calcTracts

      private void calcTracts(VOIBaseVector[] tracksList, int index, int xMin, int xMax, int yMin, int yMax, int zMin, int zMax, ModelImage fAImage, ViewJProgressBar kProgressBar)
    • createTractDialog

      private JPanel createTractDialog()
      Creates the user-interface for the Fiber Bundle Tract dialog.
      Returns:
      JPanel containing the user-interface for the Fiber Bundle Tract dialog.
    • createTractPanel

      private JPanel createTractPanel()
      Creates the user-interface for the Fiber Bundle Tract panel.
      Returns:
      JPanel containing the user-interface for the Fiber Bundle Tract panel.
    • diplayTract

      private VOIContour diplayTract(int iX, int iY, int iZ, int iDimX, int iDimY, int iDimZ, boolean bUseSizeLimit)
    • getMinUnused

      private int getMinUnused(Vector<Integer> kBundleList)
      Gets a new fiber bundle index.
      Parameters:
      kBundleList - list of fiber bundles.
    • invokeDisplayFunction

      private void invokeDisplayFunction()
    • removePolyline

      private void removePolyline()
      Removes the fiber bundle from the GPUVolumeRender and JPanelSurface.
    • loadPolyline

      private void loadPolyline()
    • savePolyline

      private void savePolyline()
    • setColor

      private void setColor(Color color)
      This is called when the user chooses a new color for the fiber bundle. It changes the color of the fiber bundle.
      Parameters:
      color - Color to change fiber bundle to.
    • traceTract2

      private void traceTract2(VOIContour kTract, WildMagic.LibFoundation.Mathematics.Vector3f kStart, WildMagic.LibFoundation.Mathematics.Vector3f kDir, ModelImage eigenImage, ModelImage eigenValueImage, ModelImage kFAImage, ModelImage kDTIImage, boolean bDir)
    • updateCurrentGroup

      private void updateCurrentGroup()
      Updates the number of fiber bundle tract groups.
    • testTrack

      private boolean testTrack(VOIContour kTrack)
    • testTrack

      private boolean testTrack(WildMagic.LibFoundation.Mathematics.Vector3f kPoint)
    • testTrack

      private boolean testTrack(WildMagic.LibFoundation.Mathematics.Vector3f kP0, WildMagic.LibFoundation.Mathematics.Vector3f kP1)