VisionEgg.SphereMap.SphereMap

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

# Class SphereMap

source code

                   object --+
                            |
          ClassWithParameters --+
                                |
                    Core.Stimulus --+
                                    |
    Textures.TextureStimulusBaseClass --+
                                        |
                                       SphereMap

    Mercator mapping of rectangular texture onto sphere.

    Parameters
    ==========
    center_azimuth     -- (Real)
                          Default: 0.0
    center_elevation   -- (Real)
                          Default: 0.0
    contrast           -- (Real)
                          Default: 1.0
    on                 -- (Boolean)
                          Default: True
    radius             -- (Real)
                          Default: 1.0
    slices             -- (UnsignedInteger)
                          Default: 30
    stacks             -- (UnsignedInteger)
                          Default: 30
    texture            -- source of texture data (Instance of <class 'VisionEgg.Textures.Texture'>)
                          Inherited from VisionEgg.Textures.TextureStimulusBaseClass
                          Default: (determined at runtime)
    texture_mag_filter -- OpenGL filter enum (Integer)
                          Inherited from VisionEgg.Textures.TextureStimulusBaseClass
                          Default: GL_LINEAR (9729)
    texture_min_filter -- OpenGL filter enum (Integer)
                          Inherited from VisionEgg.Textures.TextureStimulusBaseClass
                          Default: (GL enum determined at runtime)
    texture_wrap_s     -- OpenGL texture wrap enum (Integer)
                          Inherited from VisionEgg.Textures.TextureStimulusBaseClass
                          Default: (GL enum determined at runtime)
    texture_wrap_t     -- OpenGL texture wrap enum (Integer)
                          Inherited from VisionEgg.Textures.TextureStimulusBaseClass
                          Default: (GL enum determined at runtime)

    Constant Parameters
    ===================
    internal_format   -- format with which OpenGL uses texture data (OpenGL data type enum) (Integer)
                         Default: GL_RGB (6407)
    mipmaps_enabled   -- Are mipmaps enabled? (Boolean)
                         Default: True
    shrink_texture_ok -- Allow automatic shrinking of texture if too big? (Boolean)
                         Default: False

Instance Methods
__init__(self, **kw) | source code
draw(self) Redraw the scene on every frame. | source code
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 `Textures.TextureStimulusBaseClass`: `constant_parameters_and_defaults` Inherited from `ClassWithParameters`: `__safe_for_unpickling__`

Properties
Inherited from `object`: `__class__`

Method Details

### __init__(self, **kw) (Constructor) | source code
Overrides: Textures.TextureStimulusBaseClass.__init__

### 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), 'cent
      er_azimuth':(0.0, ve_types.Real), 'center_elevation':(0.0, ve_types.Re
      al), 'radius':(1.0, ve_types.Real), 'slices':(30, ve_types.UnsignedInt
      eger), 'stacks':(30, ve_types.UnsignedInteger)}