Package VisionEgg :: Module Gratings :: Class LuminanceGratingCommon
[frames | no frames]

Class LuminanceGratingCommon

         object --+        
                  |        
ClassWithParameters --+    
                      |    
               Stimulus --+
                          |
                         LuminanceGratingCommon

Known Subclasses:
SinGrating2D, SphereGrating, SphereWindow

Base class with common code to all ways of drawing luminance gratings.

Parameters
==========
bit_depth -- precision with which grating is calculated and sent to OpenGL (UnsignedInteger)
             Default: 8

Method Summary
  calculate_bit_depth_dependencies(self)
Calculate a number of parameters dependent on bit depth.
    Inherited from Stimulus
  __init__(self, **kw)
Instantiate and get ready to draw.
  draw(self)
Draw the stimulus.
    Inherited from ClassWithParameters
  get_specified_type(self, parameter_name)
  is_constant_parameter(self, parameter_name)
  set(self, **kw)
Set a parameter with type-checked value This is the slow but safe way to set parameters.
  verify_parameters(self)
Perform type check on all parameters...
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __hash__(x)
x.__hash__() <==> hash(x)...
  __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)...
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...

Class Variable Summary
tuple __slots__ = ('parameters', 'constant_parameters', 'gl_in...
member_descriptor cached_bit_depth = <member 'cached_bit_depth' of 'Lumina...
member_descriptor constant_parameters = <member 'constant_parameters' of '...
member_descriptor format = <member 'format' of 'LuminanceGratingCommon' ob...
member_descriptor gl_internal_format = <member 'gl_internal_format' of 'Lu...
member_descriptor gl_type = <member 'gl_type' of 'LuminanceGratingCommon' ...
member_descriptor max_int_val = <member 'max_int_val' of 'LuminanceGrating...
member_descriptor numeric_type = <member 'numeric_type' of 'LuminanceGrati...
member_descriptor parameters = <member 'parameters' of 'LuminanceGratingCo...
ParameterDefinition parameters_and_defaults = {'bit_depth': (8, <class 'Visi...
    Inherited from ClassWithParameters
ParameterDefinition constant_parameters_and_defaults = {}

Method Details

calculate_bit_depth_dependencies(self)

Calculate a number of parameters dependent on bit depth.

Class Variable Details

__slots__

Type:
tuple
Value:
('parameters',
 'constant_parameters',
 'gl_internal_format',
 'format',
 'gl_type',
 'numeric_type',
 'max_int_val',
 'cached_bit_depth')                                                   

cached_bit_depth

Type:
member_descriptor
Value:
<member 'cached_bit_depth' of 'LuminanceGratingCommon' objects>        

constant_parameters

Type:
member_descriptor
Value:
<member 'constant_parameters' of 'LuminanceGratingCommon' objects>     

format

Type:
member_descriptor
Value:
<member 'format' of 'LuminanceGratingCommon' objects>                  

gl_internal_format

Type:
member_descriptor
Value:
<member 'gl_internal_format' of 'LuminanceGratingCommon' objects>      

gl_type

Type:
member_descriptor
Value:
<member 'gl_type' of 'LuminanceGratingCommon' objects>                 

max_int_val

Type:
member_descriptor
Value:
<member 'max_int_val' of 'LuminanceGratingCommon' objects>             

numeric_type

Type:
member_descriptor
Value:
<member 'numeric_type' of 'LuminanceGratingCommon' objects>            

parameters

Type:
member_descriptor
Value:
<member 'parameters' of 'LuminanceGratingCommon' objects>              

parameters_and_defaults

Type:
ParameterDefinition
Value:
{'bit_depth': (8, <class 'VisionEgg.ParameterTypes.UnsignedInteger'>, \
'precision with which grating is calculated and sent to OpenGL')}      

Generated by Epydoc 2.0 on Fri Sep 19 18:29:38 2003 http://epydoc.sf.net