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

Type ImageDisplay

object --+
         |
        ImageDisplay

Known Subclasses:
FifoImageDisplay, ImageDisplayProxy, UnixImageDisplay

Interface to IRAF-compatible image display
Method Summary
  __init__(self)
  close(self, os_close)
Close image display connection
  eraseFrame(self)
Sends commands to erase active frame.
  getConfigno(self, stdname)
Determine which config number matches specified frame buffer name.
  readCursor(self, sample)
Read image cursor value for this image display
  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.
  setCursor(self, x, y, wcs)
Moves cursor to specified position in frame.
  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
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, os_close=<built-in function close>)

Close image display connection

eraseFrame(self)

Sends commands to erase active frame.

getConfigno(self, stdname)

Determine which config number matches specified frame buffer name.

readCursor(self, sample=0)

Read image cursor value for this 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.

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=None)

Select the frame buffer that best matches the input image size.

setCursor(self, x, y, wcs)

Moves cursor to specified position in frame.

setFBconfig(self, fbnum, bufname=None)

Set the frame buffer values for the given frame buffer name.

setFrame(self, frame_num=1)

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

Raises IOError on failure. If a Tkinter widget exists, runs a Tk mainloop while waiting for data so that the Tk widgets remain responsive.

_write(self, s)

Write string s to image display

Raises IOError on failure

_writeHeader(self, tid, subunit, thingct, x, y, z, t)

Write request to image display

Class Variable Details

_COMMAND

Type:
int
Value:
32768                                                                 

_FEEDBACK

Type:
int
Value:
5                                                                     

_IIS_READ

Type:
int
Value:
32768                                                                 

_IIS_WRITE

Type:
int
Value:
131072                                                                

_IMC_SAMPLE

Type:
int
Value:
16384                                                                 

_IMCURSOR

Type:
int
Value:
16                                                                    

_LUT

Type:
int
Value:
2                                                                     

_MEMORY

Type:
int
Value:
1                                                                     

_PACKED

Type:
int
Value:
16384                                                                 

_SZ_IMCURVAL

Type:
int
Value:
160                                                                   

_SZ_WCSBUF

Type:
int
Value:
320                                                                   

_WCS

Type:
int
Value:
17                                                                    

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