VisionEgg.SphereMap.SphereGrating

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

# Class SphereGrating

source code

                 object --+
                          |
        ClassWithParameters --+
                              |
                  Core.Stimulus --+
                                  |
    Gratings.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 -- helps prevent spatial aliasing (Real)
                                       Default: 0.5
    min_filter                      -- OpenGL filter enum (Integer)
                                       Default: GL_LINEAR (9729)
    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 runtime)
    temporal_freq_hz                -- (Real)
                                       Default: 5.0

Instance Methods
__init__(self, **kw) Instantiate and get ready to draw. | source code
draw(self) Redraw the scene on every frame. | source code
Inherited from `Gratings.LuminanceGratingCommon`: `calculate_bit_depth_dependencies` Inherited from `ClassWithParameters`: `__getstate__`, `__setstate__`, `get_specified_type`, `is_constant_parameter`, `set`, `verify_parameters` Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Class Variables
| parameters_and_defaults = `{'on':(True, ve_types.Boolean), 'con`...``
Inherited from `ClassWithParameters`: `__safe_for_unpickling__`, `constant_parameters_and_defaults`

Properties
Inherited from `object`: `__class__`

Method Details

### __init__(self, **kw) (Constructor) | source code
    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: Core.Stimulus.__init__ (inherited documentation)

### draw(self) | source code
    Redraw the scene on every frame.
Overrides: Core.Stimulus.draw

Class Variable Details

  ### parameters_and_defaults Value:
      {'on':(True, ve_types.Boolean), 'contrast':(1.0, ve_types.Real), 'spat
      ial_freq_cpd':(1.0/ 36.0, ve_types.Real), 'temporal_freq_hz':(5.0, ve_
      types.Real), 't0_time_sec_absolute':(None, ve_types.Real), 'ignore_tim
      e':(False, ve_types.Boolean), 'phase_at_t0':(0.0, ve_types.Real), 'ori
      entation':(0.0, ve_types.Real), 'grating_center_azimuth':(0.0, ve_type
      s.Real), 'grating_center_elevation':(0.0, ve_types.Real), 'check_textu
      re_size':(True, ve_types.Boolean), 'lowpass_cutoff_cycles_per_texel':(
      0.5, ve_types.Real, 'helps prevent spatial aliasing'), 'min_filter':(g
      ...