OpenGL.arrays.nones
index
/var/pylive/OpenGL-ctypes/OpenGL/arrays/nones.py

Passing of None as an array data-type

 
Modules
       
OpenGL.arrays.formathandler

 
Classes
       
FormatHandler(object)
NoneHandler

 
class NoneHandler(FormatHandler)
    Numpy-specific data-type handler for OpenGL
 
 
Method resolution order:
NoneHandler
FormatHandler
object

Methods defined here:
arrayByteCount(self, value, typeCode=None)
Given a data-value, calculate number of bytes required to represent
arraySize(self, value, typeCode=None)
Given a data-value, calculate dimensions for the array
arrayToGLType(self, value)
Given a value, guess OpenGL type of the corresponding pointer
asArray(self, value, typeCode=None)
Given a value, convert to array representation
dataPointer(self, value)
return long for pointer value
dimensions(self, value, typeCode=None)
Determine dimensions of the passed array value (if possible)
from_param(self, value)
Convert to a ctypes pointer value
ones(self, shape, typeCode=None)
Create an array of given shape with given typeCode
unitSize(self, value, typeCode=None)
Determine unit size of an array (if possible)
voidDataPointer(cls, value)
Given value in a known data-pointer type, return void_p for pointer
zeros(self, shape, typeCode=None)
Create an array of given shape with given typeCode

Data and other attributes defined here:
HANDLED_TYPES = (<type 'NoneType'>,)

Methods inherited from FormatHandler:
register(self, types=None)
Register this class as handler for given set of types
registerEquivalent(self, typ, base)
Register a sub-class for handling as the base-type
registerReturn(self)
Register this handler as the default return-type handler

Class methods inherited from FormatHandler:
chooseOutput(cls, preferred=None) from type
Choose our output-capable plugin
loadAll(cls) from type
Load all setuptools-registered FormatHandler classes
 
register a new datatype with code similar to this in your
package's setup.py for setuptools:
 
entry_points = {
        'OpenGL.arrays.formathandler':[
                'numpy = OpenGL.arrays.numpymodule.NumpyHandler',
        ],
}

Data and other attributes inherited from FormatHandler:
ALL_OUTPUT_HANDLERS = []
GENERIC_OUTPUT_PREFERENCES = ['numpy', 'numeric', 'ctypesarrays']
HANDLER_REGISTRY = {}
TYPE_REGISTRY = {}
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'FormatHandler' objects>
list of weak references to the object (if defined)
baseType = None
preferredOutput = None
typeConstant = None

 
Data
        REGISTRY_NAME = 'nones'