Package VisionEgg :: Module Textures :: Class SpinningDrum
[frames] | no frames]

Class SpinningDrum

source code

         object --+            
                  |            
ClassWithParameters --+        
                      |        
          Core.Stimulus --+    
                          |    
   TextureStimulusBaseClass --+
                              |
                             SpinningDrum

Panoramic image texture mapped onto flat rectangle or 3D cylinder.


Parameters
==========
anchor                -- only used when flat: same as anchor parameter of TextureStimulus (String)
                         Default: center
angular_position      -- may be best to clamp in range [0.0,360.0] (Real)
                         Default: 0.0
contrast              -- (Real)
                         Default: 1.0
drum_center_azimuth   -- changes orientation of drum in space (Real)
                         Default: 0.0
drum_center_elevation -- changes orientation of drum in space (Real)
                         Default: 0.0
flat                  -- toggles flat vs. cylinder (Boolean)
                         Default: False
flat_size             -- defaults to texture data size (units: eye coordinates) (Sequence2 of Real)
                         Default: (determined at runtime)
flip_image            -- toggles normal vs. horizonally flipped image (Boolean)
                         Default: False
height                -- height of cyliner, automatically set by texel aspect ratio if < 0. (Real)
                         Default: -1
num_sides             -- (UnsignedInteger)
                         Default: 50
on                    -- (Boolean)
                         Default: True
orientation           -- 0=right, 90=up (Real)
                         Default: 0.0
position              -- 3D: position of drum center, 2D (flat): same as position parameter for TextureStimulus (AnyOf(Sequence2 of Real or Sequence3 of Real))
                         Default: (0.0, 0.0, 0.0)
radius                -- radius if cylinder (not used if flat) (Real)
                         Default: 1.0
texture               -- source of texture data (Instance of <class 'VisionEgg.Textures.Texture'>)
                         Inherited from TextureStimulusBaseClass
                         Default: (determined at runtime)
texture_mag_filter    -- OpenGL filter enum (Integer)
                         Inherited from TextureStimulusBaseClass
                         Default: GL_LINEAR (9729)
texture_min_filter    -- OpenGL filter enum (Integer)
                         Inherited from TextureStimulusBaseClass
                         Default: (GL enum determined at runtime)
texture_wrap_s        -- OpenGL texture wrap enum (Integer)
                         Inherited from TextureStimulusBaseClass
                         Default: (GL enum determined at runtime)
texture_wrap_t        -- OpenGL texture wrap enum (Integer)
                         Inherited from 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 stimulus on every frame.
source code
 
rebuild_display_list(self) 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), 'hei...

Inherited from 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: TextureStimulusBaseClass.__init__

draw(self)

source code 
Redraw the stimulus on every frame.
        

Overrides: Core.Stimulus.draw

Class Variable Details

parameters_and_defaults

Value:
{'on':(True, ve_types.Boolean), 'height':(-1, ve_types.Real, 'height o\
f cyliner, automatically set by texel aspect ratio if < 0.',), 'num_si\
des':(50, ve_types.UnsignedInteger), 'angular_position':(0.0, ve_types\
.Real, 'may be best to clamp in range [0.0,360.0]'), 'contrast':(1.0, \
ve_types.Real), 'flat':(False, ve_types.Boolean, 'toggles flat vs. cyl\
inder'), 'flat_size':(None, ve_types.Sequence2(ve_types.Real), "defaul\
ts to texture data size (units: eye coordinates)"), 'flip_image':(Fals\
e, ve_types.Boolean, 'toggles normal vs. horizonally flipped image'), \
...