| Home | Trees | Index | Help |
|
|---|
| Package VisionEgg :: Module Gratings :: Class SinGrating2D |
|
object --+
|
ClassWithParameters --+
|
Stimulus --+
|
LuminanceGratingCommon --+
|
SinGrating2D
Sine wave grating stimulus
This is a general-purpose, realtime sine-wave luminace grating
generator. To acheive an arbitrary orientation, this class rotates
a textured quad. To draw a grating with sides that always remain
horizontal and vertical, draw a large grating in a small viewport.
(The viewport will clip anything beyond its edges.)
Parameters
==========
anchor -- specifies how position parameter is interpreted (String)
Default: center
bit_depth -- precision with which grating is calculated and sent to OpenGL (UnsignedInteger)
Inherited from LuminanceGratingCommon
Default: 8
color1 -- (AnyOf(Sequence3 of Real or Sequence4 of Real))
Default: (1.0, 1.0, 1.0)
color2 -- optional color with which to perform interpolation with color1 in RGB space (AnyOf(Sequence3 of Real or Sequence4 of Real))
Default: (determined at instantiation)
contrast -- (Real)
Default: 1.0
depth -- (Real)
Default: (determined at instantiation)
ignore_time -- (Boolean)
Default: False
mask -- optional masking function (Instance of <class 'VisionEgg.Textures.Mask2D'>)
Default: (determined at instantiation)
max_alpha -- (Real)
Default: 1.0
num_samples -- (UnsignedInteger)
Default: 512
on -- draw stimulus? (Boolean)
Default: True
orientation -- (Real)
Default: 0.0
pedestal -- (Real)
Default: 0.5
phase_at_t0 -- (Real)
Default: 0.0
position -- (units: eye coordinates) (Sequence2 of Real)
Default: (320.0, 240.0)
recalculate_phase_tolerance -- (Real)
Default: (determined at instantiation)
size -- (Sequence2 of Real)
Default: (640.0, 480.0)
spatial_freq -- (Real)
Default: 0.0078125
t0_time_sec_absolute -- (Real)
Default: (determined at instantiation)
temporal_freq_hz -- (Real)
Default: 5.0
| Method Summary | |
|---|---|
Instantiate and get ready to draw. | |
__del__(self)
| |
Draw the stimulus. | |
| Inherited from LuminanceGratingCommon | |
Calculate a number of parameters dependent on bit depth. | |
| Inherited from ClassWithParameters | |
| |
| |
Set a parameter with type-checked value This is the slow but safe way to set parameters. | |
Perform type check on all parameters... | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name... | |
x.__getattribute__('name') <==> x.name... | |
x.__hash__() <==> hash(x)... | |
helper for pickle... | |
helper for pickle... | |
x.__repr__() <==> repr(x)... | |
x.__setattr__('name', value) <==> x.name = value... | |
x.__str__() <==> str(x)... | |
| Inherited from type | |
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 'SinGra...
|
member_descriptor |
constant_parameters = <member 'constant_parameters' of '...
|
member_descriptor |
format = <member 'format' of 'SinGrating2D' objects>
|
member_descriptor |
gl_internal_format = <member 'gl_internal_format' of 'Si...
|
member_descriptor |
gl_type = <member 'gl_type' of 'SinGrating2D' objects>
|
member_descriptor |
max_int_val = <member 'max_int_val' of 'SinGrating2D' ob...
|
member_descriptor |
numeric_type = <member 'numeric_type' of 'SinGrating2D' ...
|
member_descriptor |
parameters = <member 'parameters' of 'SinGrating2D' obje...
|
ParameterDefinition |
parameters_and_defaults = {'temporal_freq_hz': (5.0, <cl...
|
| Inherited from ClassWithParameters | |
ParameterDefinition |
constant_parameters_and_defaults = {}
|
| Method Details |
|---|
__init__(self,
**kw)
|
draw(self)Draw the stimulus. (Called by Viewport instance.) This method is called every frame. This method actually performs the OpenGL calls to draw the stimulus.
|
| Class Variable Details |
|---|
__slots__
|
cached_bit_depth
|
constant_parameters
|
format
|
gl_internal_format
|
gl_type
|
max_int_val
|
numeric_type
|
parameters
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Fri Sep 19 18:29:40 2003 | http://epydoc.sf.net |