OpenGL_accelerate.arraydatatype
index
/home/mcfletch/pylive/OpenGL_accelerate/arraydatatype.so

Cython-coded Array-handling accelerator module

 
Modules
       
OpenGL
__builtin__
OpenGL.constants
ctypes
OpenGL.logs
OpenGL.plugins

 
Classes
       
cArgConverter(object)
AsArrayTypedSize
Output
SizedOutput
pyArgConverter(object)
AsArrayOfType
AsArrayTyped
AsArrayTypedSizeChecked
object
ArrayDatatype
HandlerRegistry

 
class ArrayDatatype(object)
    Mix-in for array datatype classes
 
The ArrayDatatype marker essentially is used to mark a particular argument
as having an "array" type, which means that it is eligible for handling 
via the arrays sub-package and its registered handlers.
 
  Methods defined here:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
arrayByteCount(...)
Given a data-value, try to determine number of bytes it's final form occupies
 
For most data-types this is arraySize() * atomic-unit-size
arraySize(...)
Given a data-value, calculate dimensions for the array (number-of-units)
arrayToGLType(...)
Given a data-value, guess the OpenGL type of the corresponding pointer
 
Note: this is not currently used in PyOpenGL and may be removed 
eventually.
asArray(...)
Given a value, convert to preferred array representation
dataPointer(...)
Given a value in a known data-pointer type, return long for pointer
dimensions(...)
Given a data-value, get the dimensions (assumes full structure info)
from_param(...)
Given a value in a known data-pointer type, convert to a ctypes pointer
getHandler(...)
Retrieve FormatHandler for given value 
 
This method is replaced by the FormatHandler registry
once the registry is initialized...
getRegistry(...)
Get our handler registry
returnHandler(...)
Get the default return-handler
typedPointer(...)
Return a pointer-to-base-type pointer for given value
unitSize(...)
Determine unit size of an array (if possible)
 
Uses our local type if defined, otherwise asks the handler to guess...
voidDataPointer(...)
Given value in a known data-pointer type, return void_p for pointer
zeros(...)
Allocate a return array of the given dimensions filled with zeros

Data descriptors defined here:
baseType
typeConstant

Data and other attributes defined here:
__new__ = <built-in method __new__ of type object at 0x7f8ebcd8ff80>
T.__new__(S, ...) -> a new object with type S, a subtype of T
__pyx_vtable__ = <PyCObject object at 0x7f8ebf97e468>
isAccelerated = True

 
class AsArrayOfType(pyArgConverter)
    Given arrayName and typeName coerce arrayName to array of type typeName
 
TODO: It should be possible to drop this if ERROR_ON_COPY,
as array inputs always have to be the final objects in that 
case.
 
 
Method resolution order:
AsArrayOfType
pyArgConverter
object

Methods defined here:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
finalise(...)

Data descriptors defined here:
arrayName
arrayType
typeName

Data and other attributes defined here:
__new__ = <built-in method __new__ of type object at 0x7f8ebcd90460>
T.__new__(S, ...) -> a new object with type S, a subtype of T
__pyx_vtable__ = <PyCObject object at 0x7f8ebf97e6c0>

Methods inherited from pyArgConverter:
__call__(...)
Call our function on incoming

 
class AsArrayTyped(pyArgConverter)
    Given arrayName and arrayType, convert arrayName to array of type
 
TODO: It should be possible to drop this if ERROR_ON_COPY,
as array inputs always have to be the final objects in that 
case.
 
 
Method resolution order:
AsArrayTyped
pyArgConverter
object

Methods defined here:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
finalise(...)
Finalize the wrapper (nothing to do here)

Data descriptors defined here:
arrayName
arrayType

Data and other attributes defined here:
__new__ = <built-in method __new__ of type object at 0x7f8ebcd90600>
T.__new__(S, ...) -> a new object with type S, a subtype of T
__pyx_vtable__ = <PyCObject object at 0x7f8ebf97e698>

Methods inherited from pyArgConverter:
__call__(...)
Call our function on incoming

 
class AsArrayTypedSize(cArgConverter)
    Given arrayName and arrayType, determine size of arrayName
 
 
Method resolution order:
AsArrayTypedSize
cArgConverter
object

Methods defined here:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
finalise(...)

Data descriptors defined here:
arrayName
arrayType

Data and other attributes defined here:
__new__ = <built-in method __new__ of type object at 0x7f8ebcd90940>
T.__new__(S, ...) -> a new object with type S, a subtype of T
__pyx_vtable__ = <PyCObject object at 0x7f8ebf97e670>

Methods inherited from cArgConverter:
__call__(...)
Return pyArgs[self.index] or raise a ValueError

 
class AsArrayTypedSizeChecked(AsArrayTyped)
    Size-checking version of AsArrayTyped
 
 
Method resolution order:
AsArrayTypedSizeChecked
AsArrayTyped
pyArgConverter
object

Methods defined here:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Data and other attributes defined here:
__new__ = <built-in method __new__ of type object at 0x7f8ebcd907a0>
T.__new__(S, ...) -> a new object with type S, a subtype of T
__pyx_vtable__ = <PyCObject object at 0x7f8ebf97ea30>

Methods inherited from AsArrayTyped:
finalise(...)
Finalize the wrapper (nothing to do here)

Data descriptors inherited from AsArrayTyped:
arrayName
arrayType

Methods inherited from pyArgConverter:
__call__(...)
Call our function on incoming

 
class HandlerRegistry(object)
    C-coded registry of format handlers for array data-formats
 
  Methods defined here:
__call__(...)
__delitem__(...)
x.__delitem__(y) <==> del x[y]
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__setitem__(...)
x.__setitem__(i, y) <==> x[i]=y
register(...)
Register this class as handler for given set of types
registerReturn(...)
Register this handler as the default return-type handler

Data and other attributes defined here:
GENERIC_OUTPUT_PREFERENCES = ['numpy', 'numeric', 'ctypesarrays']
__new__ = <built-in method __new__ of type object at 0x7f8ebcd8fde0>
T.__new__(S, ...) -> a new object with type S, a subtype of T
__pyx_vtable__ = <PyCObject object at 0x7f8ebf97e328>

 
class Output(cArgConverter)
    CConverter generating static-size typed output arrays
 
Produces an output array of given type (arrayType) and 
size using lookup() to determine the size of the 
array to be produced, where the lookup function is passed 
as an initialisation argument.
 
Provides also:
 
    oldStyleReturn( ... ) for use in the default case of
        PyOpenGL compatability mode, where result arrays of
        size (1,) are returned as scalar values.
 
 
Method resolution order:
Output
cArgConverter
object

Methods defined here:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
finalise(...)
oldStyleReturn(...)
Retrieve cArgs[ self.index ]

Data and other attributes defined here:
__new__ = <built-in method __new__ of type object at 0x7f8ebcd90120>
T.__new__(S, ...) -> a new object with type S, a subtype of T
__pyx_vtable__ = <PyCObject object at 0x7f8ebf97e9b8>

Methods inherited from cArgConverter:
__call__(...)
Return pyArgs[self.index] or raise a ValueError

 
class SizedOutput(Output)
    Output class that looks up output size via a callable function
 
specifier -- Python argument name used to lookup the data-size 
lookup -- function taking argument in specifier to determine size
 
 
Method resolution order:
SizedOutput
Output
cArgConverter
object

Methods defined here:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
finalise(...)

Data and other attributes defined here:
__new__ = <built-in method __new__ of type object at 0x7f8ebcd902c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T
__pyx_vtable__ = <PyCObject object at 0x7f8ebf97e148>

Methods inherited from Output:
oldStyleReturn(...)
Retrieve cArgs[ self.index ]

Methods inherited from cArgConverter:
__call__(...)
Return pyArgs[self.index] or raise a ValueError

 
Data
        __file__ = '/home/mcfletch/pylive/OpenGL_accelerate/arraydatatype.so'
__name__ = 'OpenGL_accelerate.arraydatatype'
__package__ = 'OpenGL_accelerate'
log = <logging.Logger instance at 0x21ad440>