TwiceAsNice  2019-02-18
Public Member Functions | Public Attributes | List of all members
Strehlculator.AppWin Class Reference
Inheritance diagram for Strehlculator.AppWin:
Inheritance graph
Collaboration diagram for Strehlculator.AppWin:
Collaboration graph

Public Member Functions

def __init__ (self)
 
def initVar (self)
 
def initUI (self)
 
def loadTheo (self, eval, chZoom)
 
def loadTh (self)
 
def calcTh (self)
 
def loadImg (self, eval, chZoom)
 
def loadIm (self)
 
def mousePress (self, theText)
 
def shutdown (self)
 
def stuffVals (self)
 
def logTxt (self, msgT, nLin)
 
def getLastState (self)
 
def imgZin (self)
 
def imgZout (self)
 
def psfZin (self)
 
def psfZout (self)
 
def setPblack (self)
 
def setPwhite (self)
 
def setIblack (self)
 
def setIwhite (self)
 
def togPauto (self)
 
def togIauto (self)
 

Public Attributes

 zoomInFactor
 
 zoomOutFactor
 
 curIzoom
 
 curPzoom
 
 ui
 
 stScn
 Connect controls. More...
 
 thScn
 
 imgScn
 
 cTh
 
 imgAry
 
 iMapFactor
 

Detailed Description

This is the class for the main application window. The user interface elements
    are gathered into the variable ui, which is in turn loaded from the file
    myApp.ui generated by QT Designer.

Constructor & Destructor Documentation

◆ __init__()

def Strehlculator.AppWin.__init__ (   self)

Member Function Documentation

◆ calcTh()

def Strehlculator.AppWin.calcTh (   self)
User wants to generate a theoretical PSF. 

◆ getLastState()

def Strehlculator.AppWin.getLastState (   self)

◆ imgZin()

def Strehlculator.AppWin.imgZin (   self)

◆ imgZout()

def Strehlculator.AppWin.imgZout (   self)

◆ initUI()

def Strehlculator.AppWin.initUI (   self)
Initializes the GUI, especially attaching widgets to routines 

◆ initVar()

def Strehlculator.AppWin.initVar (   self)
Initializes important variables 

◆ loadIm()

def Strehlculator.AppWin.loadIm (   self)
   Prompts for a science image name and saves to SR_Conf
   -- DOES NOT LOAD IT --> loadImg does this

◆ loadImg()

def Strehlculator.AppWin.loadImg (   self,
  eval,
  chZoom 
)
Loads the image SR_Conf.imNam into the GUI 
       eval is a dummy variable to be parallel with loadTheo
       chZoom governs whether the image is auto-zoomed (not for gray stretch)

◆ loadTh()

def Strehlculator.AppWin.loadTh (   self)
NOTE: This routine gets the theoretical PSF filename only! The
      routine loadTheo does the actual work (and is also called by
      the calcTh routine.)

◆ loadTheo()

def Strehlculator.AppWin.loadTheo (   self,
  eval,
  chZoom 
)
Loads the desired theoretical PSF (SR_Conf.theoPSF) and if eval==True, performs
    the SR_Metric evaluation. If chZoom is false, the zoom factor is not changed (likely
    due to the user changing the cuts or autoscale).

    Note that the astropy info is at: http://docs.astropy.org/en/stable/io/fits/

◆ logTxt()

def Strehlculator.AppWin.logTxt (   self,
  msgT,
  nLin 
)

◆ mousePress()

def Strehlculator.AppWin.mousePress (   self,
  theText 
)
   The user has clicked on a star. Extract the suitable subarray and evalaute its SR Metric.
   The size of the subarray comes from SR_Conf.obRad, the outer background radius for photometry.

◆ psfZin()

def Strehlculator.AppWin.psfZin (   self)

◆ psfZout()

def Strehlculator.AppWin.psfZout (   self)

◆ setIblack()

def Strehlculator.AppWin.setIblack (   self)

◆ setIwhite()

def Strehlculator.AppWin.setIwhite (   self)

◆ setPblack()

def Strehlculator.AppWin.setPblack (   self)

◆ setPwhite()

def Strehlculator.AppWin.setPwhite (   self)

◆ shutdown()

def Strehlculator.AppWin.shutdown (   self)

◆ stuffVals()

def Strehlculator.AppWin.stuffVals (   self)

◆ togIauto()

def Strehlculator.AppWin.togIauto (   self)

◆ togPauto()

def Strehlculator.AppWin.togPauto (   self)

Member Data Documentation

◆ cTh

Strehlculator.AppWin.cTh

◆ curIzoom

Strehlculator.AppWin.curIzoom

◆ curPzoom

Strehlculator.AppWin.curPzoom

◆ iMapFactor

Strehlculator.AppWin.iMapFactor

◆ imgAry

Strehlculator.AppWin.imgAry

◆ imgScn

Strehlculator.AppWin.imgScn

◆ stScn

Strehlculator.AppWin.stScn

Connect controls.

Numeric Entry for Gray Cuts Set up Graphics Views - Note the imgScn needs mouse input!

◆ thScn

Strehlculator.AppWin.thScn

◆ ui

Strehlculator.AppWin.ui

◆ zoomInFactor

Strehlculator.AppWin.zoomInFactor

◆ zoomOutFactor

Strehlculator.AppWin.zoomOutFactor

The documentation for this class was generated from the following file: