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

Class SphereWindow

         object --+            
                  |            
ClassWithParameters --+        
                      |        
               Stimulus --+    
                          |    
     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.

Note that the bit depth of the alpha component of the framebuffer
is important for producing smooth transitions in color.

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                  -- (String)
                                 Default: gaussian
window_shape_radius_parameter -- (Real)
                                 Default: 36.0

Method Summary
  __init__(self, **kw)
Instantiate and get ready to draw.
  draw(self)
Redraw the scene on every frame.
    Inherited from LuminanceGratingCommon
  calculate_bit_depth_dependencies(self)
Calculate a number of parameters dependent on bit depth.
    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', 'gl_in...
member_descriptor cached_bit_depth = <member 'cached_bit_depth' of 'Sphere...
member_descriptor constant_parameters = <member 'constant_parameters' of '...
member_descriptor format = <member 'format' of 'SphereWindow' objects>
member_descriptor gl_internal_format = <member 'gl_internal_format' of 'Sp...
member_descriptor gl_type = <member 'gl_type' of 'SphereWindow' objects>
member_descriptor max_int_val = <member 'max_int_val' of 'SphereWindow' ob...
member_descriptor numeric_type = <member 'numeric_type' of 'SphereWindow' ...
member_descriptor opaque_display_list_id = <member 'opaque_display_list_id...
member_descriptor parameters = <member 'parameters' of 'SphereWindow' obje...
dict parameters_and_defaults = {'on': (True, <class 'VisionEg...
member_descriptor texture_object_id = <member 'texture_object_id' of 'Sphe...
member_descriptor windowed_display_list_id = <member 'windowed_display_lis...
    Inherited from ClassWithParameters
ParameterDefinition constant_parameters_and_defaults = {}

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.Core.Stimulus.__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',
 'gl_internal_format',
 'format',
 'gl_type',
 'numeric_type',
 'max_int_val',
 'cached_bit_depth',
...                                                                    

cached_bit_depth

Type:
member_descriptor
Value:
<member 'cached_bit_depth' of 'SphereWindow' objects>                  

constant_parameters

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

format

Type:
member_descriptor
Value:
<member 'format' of 'SphereWindow' objects>                            

gl_internal_format

Type:
member_descriptor
Value:
<member 'gl_internal_format' of 'SphereWindow' objects>                

gl_type

Type:
member_descriptor
Value:
<member 'gl_type' of 'SphereWindow' objects>                           

max_int_val

Type:
member_descriptor
Value:
<member 'max_int_val' of 'SphereWindow' objects>                       

numeric_type

Type:
member_descriptor
Value:
<member 'numeric_type' of 'SphereWindow' objects>                      

opaque_display_list_id

Type:
member_descriptor
Value:
<member 'opaque_display_list_id' of 'SphereWindow' objects>            

parameters

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

parameters_and_defaults

Type:
dict
Value:
{'num_s_samples': (512, <class 'VisionEgg.ParameterTypes.UnsignedInteg\
er'>),
 'num_t_samples': (512, <class 'VisionEgg.ParameterTypes.UnsignedInteg\
er'>),
 'on': (True, <class 'VisionEgg.ParameterTypes.Boolean'>),
 'opaque_color': ((0.5, 0.5, 0.5, 0.0),
                  <VisionEgg.ParameterTypes.Sequence4 object at 0x40fb\
34ac>),
...                                                                    

texture_object_id

Type:
member_descriptor
Value:
<member 'texture_object_id' of 'SphereWindow' objects>                 

windowed_display_list_id

Type:
member_descriptor
Value:
<member 'windowed_display_list_id' of 'SphereWindow' objects>          

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