VisionEgg.SphereMap.SphereWindow

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

# Class SphereWindow

source code

                 object --+
                          |
        ClassWithParameters --+
                              |
                  Core.Stimulus --+
                                  |
    Gratings.LuminanceGratingCommon --+
                                      |
                                     SphereWindow

    This draws an opaque sphere with a single window in it.

    This is useful when you need to have a viewport on a 3D scene.

    Parameters
    ==========
    bit_depth                     -- precision with which grating is calculated and sent to OpenGL (UnsignedInteger)
                                     Inherited from VisionEgg.Gratings.LuminanceGratingCommon
                                     Default: 8
    num_s_samples                 -- (UnsignedInteger)
                                     Default: 512
    num_t_samples                 -- (UnsignedInteger)
                                     Default: 512
    on                            -- (Boolean)
                                     Default: True
    opaque_color                  -- (Sequence4 of Real)
                                     Default: (0.5, 0.5, 0.5, 0.0)
    radius                        -- (Real)
                                     Default: 1.0
    slices                        -- (UnsignedInteger)
                                     Default: 30
    stacks                        -- (UnsignedInteger)
                                     Default: 30
    window_center_azimuth         -- (Real)
                                     Default: 0.0
    window_center_elevation       -- (Real)
                                     Default: 0.0
    window_shape                  -- can be 'circle', 'gaussian', or 'lat-long rectangle' (String)
                                     Default: gaussian
    window_shape_parameter2       -- (currently only used for) height of lat-long rectangle (in degrees) (Real)
                                     Default: 30.0
    window_shape_radius_parameter -- radius of circle, sigma of gaussian, width of lat-long rectangle (in degrees) (Real)
                                     Default: 36.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), 'win`...``
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), 'window_center_elevation':(0.0, ve_typ
      es.Real), 'window_center_azimuth':(0.0, ve_types.Real), 'opaque_color'
      :((0.5, 0.5, 0.5, 0.0), ve_types.Sequence4(ve_types.Real)), 'window_sh
      ape':('gaussian', ve_types.String, "can be 'circle', 'gaussian', or 'l
      at-long rectangle'",), 'window_shape_radius_parameter':(36.0, ve_types
      .Real, 'radius of circle, sigma of gaussian, width of lat-long rectang
      le (in degrees)',), 'window_shape_parameter2':(30.0, ve_types.Real, '(
      currently only used for) height of lat-long rectangle (in degrees)',),
      ...