lsst.display.ds9  13.0-2-g6174d4c+45
 All Classes Namespaces Files Functions Variables
Public Member Functions | List of all members
lsst.display.ds9.ds9.Buffer Class Reference
Inheritance diagram for lsst.display.ds9.ds9.Buffer:

Public Member Functions

def __init__
 
def set
 
def pushSize
 
def popSize
 
def flush
 

Detailed Description

Control buffering the sending of commands to ds9;
annoying but necessary for anything resembling performance

The usual usage pattern (from a module importing this file, ds9.py) is:

    with ds9.Buffering():
        # bunches of ds9.{dot,line} commands
        ds9.flush()
        # bunches more ds9.{dot,line} commands

Definition at line 103 of file ds9.py.

Constructor & Destructor Documentation

def lsst.display.ds9.ds9.Buffer.__init__ (   self,
  size = 0 
)
Create a command buffer, with a maximum depth of size

Definition at line 115 of file ds9.py.

Member Function Documentation

def lsst.display.ds9.ds9.Buffer.flush (   self,
  silent = True 
)
Flush the pending commands

Definition at line 159 of file ds9.py.

def lsst.display.ds9.ds9.Buffer.popSize (   self)
Switch back to the previous command buffer size (see also pushSize)

Definition at line 152 of file ds9.py.

def lsst.display.ds9.ds9.Buffer.pushSize (   self,
  size = -1 
)
Replace current ds9 command buffer size with size (see also popSize)
@param:  Size of buffer (-1: largest possible given bugs in xpa)

Definition at line 145 of file ds9.py.

def lsst.display.ds9.ds9.Buffer.set (   self,
  size,
  silent = True 
)
Set the ds9 buffer size to size

Definition at line 123 of file ds9.py.


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