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

Class SpinningDrum

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


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


Parameters
==========
anchor                -- (String)
                         Default: lowerleft
angular_position      -- (Real)
                         Default: 0.0
contrast              -- (Real)
                         Default: 1.0
drum_center_azimuth   -- (Real)
                         Default: 0.0
drum_center_elevation -- (Real)
                         Default: 0.0
flat                  -- (Boolean)
                         Default: False
flip_image            -- (Boolean)
                         Default: False
num_sides             -- (UnsignedInteger)
                         Default: 50
on                    -- (Boolean)
                         Default: True
orientation           -- (Real)
                         Default: 0.0
position              -- (AnyOf(Sequence2 of Real or Sequence3 of Real))
                         Default: (0.0, 0.0, 0.0)
radius                -- (Real)
                         Default: 1.0
texture               -- source of texture data (Instance of <class 'VisionEgg.Textures.Texture'>)
                         Inherited from TextureStimulusBaseClass
                         Default: (determined at instantiation)
texture_mag_filter    -- OpenGL filter enum (Integer)
                         Inherited from TextureStimulusBaseClass
                         Default: GL_LINEAR
texture_min_filter    -- OpenGL filter enum (Integer)
                         Inherited from TextureStimulusBaseClass
                         Default: (GL enum determined at instantiation)
texture_wrap_s        -- OpenGL texture wrap enum (Integer)
                         Inherited from TextureStimulusBaseClass
                         Default: (GL enum determined at instantiation)
texture_wrap_t        -- OpenGL texture wrap enum (Integer)
                         Inherited from TextureStimulusBaseClass
                         Default: (GL enum determined at instantiation)

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

Method Summary
  __init__(self, **kw)
Instantiate and get ready to draw.
  draw(self)
Redraw the scene on every frame.
  rebuild_display_list(self)
    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', 'textu...
member_descriptor cached_display_list_mirror = <member 'cached_display_lis...
member_descriptor cached_display_list_normal = <member 'cached_display_lis...
member_descriptor cached_display_list_num_sides = <member 'cached_display_...
member_descriptor constant_parameters = <member 'constant_parameters' of '...
member_descriptor parameters = <member 'parameters' of 'SpinningDrum' obje...
dict parameters_and_defaults = {'angular_position': (0.0, <cl...
member_descriptor texture_object = <member 'texture_object' of 'SpinningDr...
member_descriptor texture_stimulus = <member 'texture_stimulus' of 'Spinni...
    Inherited from TextureStimulusBaseClass
dict constant_parameters_and_defaults = {'shrink_texture_ok':...

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.Textures.TextureStimulusBaseClass.__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',
 'texture_object',
 '_using_texture',
 'cached_display_list_normal',
 'cached_display_list_mirror',
 'cached_display_list_num_sides',
 'texture_stimulus')                                                   

cached_display_list_mirror

Type:
member_descriptor
Value:
<member 'cached_display_list_mirror' of 'SpinningDrum' objects>        

cached_display_list_normal

Type:
member_descriptor
Value:
<member 'cached_display_list_normal' of 'SpinningDrum' objects>        

cached_display_list_num_sides

Type:
member_descriptor
Value:
<member 'cached_display_list_num_sides' of 'SpinningDrum' objects>     

constant_parameters

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

parameters

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

parameters_and_defaults

Type:
dict
Value:
{'anchor': ('lowerleft', <class 'VisionEgg.ParameterTypes.String'>),
 'angular_position': (0.0, <class 'VisionEgg.ParameterTypes.Real'>),
 'contrast': (1.0, <class 'VisionEgg.ParameterTypes.Real'>),
 'drum_center_azimuth': (0.0, <class 'VisionEgg.ParameterTypes.Real'>)\
,
 'drum_center_elevation': (0.0, <class 'VisionEgg.ParameterTypes.Real'\
>),
 'flat': (False, <class 'VisionEgg.ParameterTypes.Boolean'>),
...                                                                    

texture_object

Type:
member_descriptor
Value:
<member 'texture_object' of 'SpinningDrum' objects>                    

texture_stimulus

Type:
member_descriptor
Value:
<member 'texture_stimulus' of 'SpinningDrum' objects>                  

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