Package pyraf :: Module gki :: Class DrawBuffer
[hide private]
[frames] | no frames]

Class DrawBuffer

source code

implement a buffer for draw commands which allocates memory in blocks so that a new memory allocation is not needed everytime functions are appended

Instance Methods [hide private]
 
__init__(self) source code
 
__len__(self) source code
 
reset(self)
Discard everything up to nextTranslate pointer
source code
 
append(self, funcargs)
Append a single (function,args) tuple to the list
source code
 
get(self)
Get current contents of buffer
source code
 
getNewCalls(self)
Return tuples (function, args) with all new calls in buffer
source code
Class Variables [hide private]
  INCREMENT = 500
Method Details [hide private]

get(self)

source code 

Get current contents of buffer

Note that this returns a view into the numpy array, so if the return value is modified the buffer will change too.