Package numdisplay :: Module displaydev :: Class ImageDisplayProxy
[show private | hide private]
[frames | no frames]

Type ImageDisplayProxy

  object --+    
           |    
ImageDisplay --+
               |
              ImageDisplayProxy


Interface to IRAF-compatible image display

This is a proxy to the actual display that allows retries on failures and can switch between display connections.
Method Summary
  __init__(self, imtdev)
  close(self)
Close active image display connection
  open(self, imtdev)
Open image display connection, closing any active connection
  readCursor(self, sample)
Read image cursor value for the active image display
  setCursor(self, x, y, wcs)
Moves cursor to specified position in frame.
    Inherited from ImageDisplay
  eraseFrame(self)
Sends commands to erase active frame.
  getConfigno(self, stdname)
Determine which config number matches specified frame buffer name.
  readData(self, x, y, pix)
Reads data from x,y position in active frame.
  readInfo(self)
Read tx and ty from active frame of display device.
  readWCS(self, wcsinfo)
Reads WCS information from active frame of display device.
  selectFB(self, nx, ny, reset)
Select the frame buffer that best matches the input image size.
  setFBconfig(self, fbnum, bufname)
Set the frame buffer values for the given frame buffer name.
  setFrame(self, frame_num)
Sets the active frame in frame buffer to specified value.
  syncWCS(self, wcsinfo)
Update WCS to match frame buffer being used.
  writeData(self, x, y, pix)
Writes out image data to x,y position in active frame.
  writeImage(self, pix, wcsinfo)
Write out image to display device in 32Kb sections.
  writeWCS(self, wcsinfo)
Writes out WCS information for frame to display device.
  _read(self, n)
Read n bytes from image display and return as string
  _write(self, s)
Write string s to image display
  _writeHeader(self, tid, subunit, thingct, x, y, z, t)
Write request to image display
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
    Inherited from ImageDisplay
int _COMMAND = 32768                                                                 
int _FEEDBACK = 5                                                                     
int _IIS_READ = 32768                                                                 
int _IIS_WRITE = 131072                                                                
int _IMC_SAMPLE = 16384                                                                 
int _IMCURSOR = 16                                                                    
int _LUT = 2                                                                     
int _MEMORY = 1                                                                     
int _PACKED = 16384                                                                 
int _SZ_IMCURVAL = 160                                                                   
int _SZ_WCSBUF = 320                                                                   
int _WCS = 17                                                                    

Method Details

close(self)

Close active image display connection
Overrides:
numdisplay.displaydev.ImageDisplay.close

open(self, imtdev=None)

Open image display connection, closing any active connection

readCursor(self, sample=0)

Read image cursor value for the active image display

Return immediately if sample is true, or wait for keystroke if sample is false (default). Returns a string with x, y, frame, and key. Opens image display if necessary.
Overrides:
numdisplay.displaydev.ImageDisplay.readCursor

setCursor(self, x, y, wcs)

Moves cursor to specified position in frame.
Overrides:
numdisplay.displaydev.ImageDisplay.setCursor (inherited documentation)

Generated by Epydoc 2.1 on Fri Mar 14 13:21:48 2008 http://epydoc.sf.net