com.pentec.adaq.nv
Class NightVision

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by com.pentec.gui.windows.AFrame
                          extended by com.pentec.gui.windows.NonTransientFrame
                              extended by com.pentec.gui.windows.NonTransientMenuFrame
                                  extended by com.pentec.adaq.Controller
                                      extended by com.pentec.adaq.nv.NightVision
All Implemented Interfaces:
AdaptWindow, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public class NightVision
extends Controller

Containing frame for all "Night Vision Controller" panes

Author:
Pender Technology
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  java.lang.String $FRate
           
private  IFocus focus
          Lens focus control
private  int iFrameCount
           
private  IGain igain
          Intensifier gain control
private  IIris iris
          Lens iris control
private  long lSN
          Camera serial number
static long PENTEC_NV_IMAGER_1
           
static long PENTEC_NV_IMAGER_2
           
static long PENTEC_NV_WEAPONSIGHT_1
           
static long PENTEC_NV_WEAPONSIGHT_2
           
static long PENTEC_NV_WEAPONSIGHT_MOCK_1
           
 
Fields inherited from class com.pentec.adaq.Controller
$DiType, $Sensor, $SNSMatl, $SNSTyp, acquisitionPanel, aoi, aOneWireTemperaturePanels, aspinnerFrequency, aspinnerPeakVideo, aspinnerSpread, aspinnerStepSize, atp, gain, integration, isRunning, jcbAutoRange, jpVideo, jtfOutputFile, offset, sequenceSetup
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
private NightVision()
           
 
Method Summary
protected  void autoRange(AImage aimage)
           
protected  javax.swing.JPanel createAutoRangePanel()
          Create the autorange control panel
private  javax.swing.JPanel createDN300Panel(java.lang.String $Sensor)
           
private  javax.swing.JPanel createDN300RadiometerPanel(java.lang.String $Sensor)
           
private  javax.swing.JPanel createIttRadiometersPanel()
           
private  javax.swing.JPanel createLittonPanel()
           
 void dispose()
           
protected  double getFocus()
           
 double getIIGain()
           
protected  double getIris()
           
protected  double getZoom()
           
static void main(java.lang.String[] a$)
          Launch the "Night Vision Controller" interface as a standalone application
protected  java.awt.image.DataBuffer makeDataBuffer()
           
protected  DataFrame makeFrame(boolean doIntegrate, boolean flagProcessINI, java.io.File file, java.awt.image.DataBuffer dataBuffer)
           
static Controller nightVision()
          Launch the Night Vision control interface and return a handle to the controller
static void nightVision(AdaptWindow callingFrame)
          Launch the Night Vision interface from the ADAPT menu ("Acquire--Night Vision Controller")
static void nightVision(DataFrame callingFrame)
          Launch the Night Vision interface from the ADAPT menu ("Acquire--Night Vision Controller")
protected  boolean open()
           
protected  boolean openAImaq()
           
 void saveCameraSettings()
          Save current camera settings to ini file
protected  void setFocus(double dFocus)
           
 void setIIGain(double dval)
           
protected  void setIris(double dIris)
           
protected  void setZoom(double dZoom)
           
protected  void updateHeader(DataFrame aframe)
           
protected  void verifyCameraSettings()
          Make sure camera settings are where we want them and not where NI drivers set them
 
Methods inherited from class com.pentec.adaq.Controller
addNote, autoRange, configureSequence, createAcquisitionPanel, createAutoRangePanel, createFrameRatePanel, createIOControlPanel, createOtherPanel, doesExist, getAoi, getAOI, getAoiMax, getCameraOptionsPanel, getHeaderTemplate$, getOutputFile$, getPanTiltPanel, getSettings$, getSpinnerPanel, increment, isMonochromatorRunning, isT10Running, isValidMode, setNewAoi, setSize
 
Methods inherited from class com.pentec.gui.windows.NonTransientMenuFrame
getNonTransientMenuFrames, onFrameClosing
 
Methods inherited from class com.pentec.gui.windows.AFrame
addToWindowList, getShortTitle, isInWindowList, removeFromWindowList, setIconImage, setTitle, setVisible, toString
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, show, size, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.pentec.gui.windows.AdaptWindow
getBounds, getContentPane, getIconImage, getRootPane, getTitle, toFront
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

$FRate

private java.lang.String $FRate

focus

private IFocus focus
Lens focus control


iFrameCount

private int iFrameCount

igain

private IGain igain
Intensifier gain control


iris

private IIris iris
Lens iris control


lSN

private long lSN
Camera serial number


PENTEC_NV_IMAGER_1

public static long PENTEC_NV_IMAGER_1

PENTEC_NV_IMAGER_2

public static long PENTEC_NV_IMAGER_2

PENTEC_NV_WEAPONSIGHT_1

public static long PENTEC_NV_WEAPONSIGHT_1

PENTEC_NV_WEAPONSIGHT_2

public static long PENTEC_NV_WEAPONSIGHT_2

PENTEC_NV_WEAPONSIGHT_MOCK_1

public static long PENTEC_NV_WEAPONSIGHT_MOCK_1
Constructor Detail

NightVision

private NightVision()
Method Detail

autoRange

protected void autoRange(AImage aimage)
Overrides:
autoRange in class Controller

createAutoRangePanel

protected javax.swing.JPanel createAutoRangePanel()
Create the autorange control panel

Overrides:
createAutoRangePanel in class Controller

createDN300Panel

private javax.swing.JPanel createDN300Panel(java.lang.String $Sensor)

createDN300RadiometerPanel

private javax.swing.JPanel createDN300RadiometerPanel(java.lang.String $Sensor)

createIttRadiometersPanel

private javax.swing.JPanel createIttRadiometersPanel()

createLittonPanel

private javax.swing.JPanel createLittonPanel()

dispose

public void dispose()
Specified by:
dispose in interface AdaptWindow
Overrides:
dispose in class Controller

getFocus

protected double getFocus()
Specified by:
getFocus in class Controller

getIIGain

public double getIIGain()

getIris

protected double getIris()
Specified by:
getIris in class Controller

getZoom

protected double getZoom()
Specified by:
getZoom in class Controller

main

public static void main(java.lang.String[] a$)
Launch the "Night Vision Controller" interface as a standalone application


makeDataBuffer

protected java.awt.image.DataBuffer makeDataBuffer()
Specified by:
makeDataBuffer in class Controller

makeFrame

protected DataFrame makeFrame(boolean doIntegrate,
                              boolean flagProcessINI,
                              java.io.File file,
                              java.awt.image.DataBuffer dataBuffer)
Specified by:
makeFrame in class Controller

nightVision

public static Controller nightVision()
Launch the Night Vision control interface and return a handle to the controller


nightVision

public static void nightVision(AdaptWindow callingFrame)
Launch the Night Vision interface from the ADAPT menu ("Acquire--Night Vision Controller")

Parameters:
callingFrame - the DataFrame making the call

nightVision

public static void nightVision(DataFrame callingFrame)
Launch the Night Vision interface from the ADAPT menu ("Acquire--Night Vision Controller")

Parameters:
callingFrame - the DataFrame making the call

open

protected boolean open()
Specified by:
open in class Controller

openAImaq

protected boolean openAImaq()
Overrides:
openAImaq in class Controller

saveCameraSettings

public void saveCameraSettings()
Save current camera settings to ini file

Overrides:
saveCameraSettings in class Controller

setFocus

protected void setFocus(double dFocus)
Specified by:
setFocus in class Controller

setIIGain

public void setIIGain(double dval)

setIris

protected void setIris(double dIris)
Specified by:
setIris in class Controller

setZoom

protected void setZoom(double dZoom)
Specified by:
setZoom in class Controller

updateHeader

protected void updateHeader(DataFrame aframe)
Overrides:
updateHeader in class Controller

verifyCameraSettings

protected void verifyCameraSettings()
Make sure camera settings are where we want them and not where NI drivers set them

Overrides:
verifyCameraSettings in class Controller