Package VisionEgg :: Module SphereMap :: Class SphereGrating
[frames | no frames]

Class SphereGrating

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


Map 2D sinusoidal grating onto sphere.

Parameters
==========
bit_depth                       -- precision with which grating is calculated and sent to OpenGL (UnsignedInteger)
                                   Inherited from VisionEgg.Gratings.LuminanceGratingCommon
                                   Default: 8
check_texture_size              -- (Boolean)
                                   Default: True
contrast                        -- (Real)
                                   Default: 1.0
grating_center_azimuth          -- (Real)
                                   Default: 0.0
grating_center_elevation        -- (Real)
                                   Default: 0.0
ignore_time                     -- (Boolean)
                                   Default: False
lowpass_cutoff_cycles_per_texel -- (Real)
                                   Default: 0.15
min_filter                      -- OpenGL filter enum (Integer)
                                   Default: GL_LINEAR
num_samples                     -- (UnsignedInteger)
                                   Default: 1024
on                              -- (Boolean)
                                   Default: True
orientation                     -- (Real)
                                   Default: 0.0
phase_at_t0                     -- (Real)
                                   Default: 0.0
radius                          -- (Real)
                                   Default: 1.0
slices                          -- (UnsignedInteger)
                                   Default: 30
spatial_freq_cpd                -- (Real)
                                   Default: 0.0277777777778
stacks                          -- (UnsignedInteger)
                                   Default: 30
t0_time_sec_absolute            -- (Real)
                                   Default: (determined at instantiation)
temporal_freq_hz                -- (Real)
                                   Default: 5.0

Method Summary
  __init__(self, **kw)
Instantiate and get ready to draw.
  draw(self)
Redraw the scene on every frame.
    Inherited from LuminanceGratingCommon
  calculate_bit_depth_dependencies(self)
Calculate a number of parameters dependent on bit depth.
    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 'Sphere...
member_descriptor cached_display_list_id = <member 'cached_display_list_id...
member_descriptor constant_parameters = <member 'constant_parameters' of '...
member_descriptor format = <member 'format' of 'SphereGrating' objects>
member_descriptor gl_internal_format = <member 'gl_internal_format' of 'Sp...
member_descriptor gl_type = <member 'gl_type' of 'SphereGrating' objects>
member_descriptor max_int_val = <member 'max_int_val' of 'SphereGrating' o...
member_descriptor numeric_type = <member 'numeric_type' of 'SphereGrating'...
member_descriptor parameters = <member 'parameters' of 'SphereGrating' obj...
dict parameters_and_defaults = {'temporal_freq_hz': (5.0, <cl...
member_descriptor texture_object_id = <member 'texture_object_id' of 'Sphe...
    Inherited from ClassWithParameters
ParameterDefinition constant_parameters_and_defaults = {}

Method Details

__init__(self, **kw)
(Constructor)

Instantiate and get ready to draw.

Set parameter values and create anything needed to draw the
stimulus including OpenGL state variables such display lists
and texture objects.
Overrides:
VisionEgg.Core.Stimulus.__init__ (inherited documentation)

draw(self)

Redraw the scene on every frame.
Overrides:
VisionEgg.Core.Stimulus.draw

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 'SphereGrating' objects>                 

cached_display_list_id

Type:
member_descriptor
Value:
<member 'cached_display_list_id' of 'SphereGrating' objects>           

constant_parameters

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

format

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

gl_internal_format

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

gl_type

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

max_int_val

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

numeric_type

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

parameters

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

parameters_and_defaults

Type:
dict
Value:
{'check_texture_size': (True, <class 'VisionEgg.ParameterTypes.Boolean\
'>),
 'contrast': (1.0, <class 'VisionEgg.ParameterTypes.Real'>),
 'grating_center_azimuth': (0.0, <class 'VisionEgg.ParameterTypes.Real\
'>),
 'grating_center_elevation': (0.0, <class 'VisionEgg.ParameterTypes.Re\
al'>),
 'ignore_time': (False, <class 'VisionEgg.ParameterTypes.Boolean'>),
...                                                                    

texture_object_id

Type:
member_descriptor
Value:
<member 'texture_object_id' of 'SphereGrating' objects>                

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