Package VisionEgg :: Module Core :: Class FixationSpot
[frames | no frames]

Class FixationSpot

         object --+        
                  |        
ClassWithParameters --+    
                      |    
               Stimulus --+
                          |
                         FixationSpot


A rectangle stimulus, typically used as a fixation spot.

Parameters
==========
anchor   -- how position parameter is used (String)
            Default: center
color    -- color (AnyOf(Sequence3 of Real or Sequence4 of Real))
            Default: (1.0, 1.0, 1.0)
on       -- draw? (Boolean)
            Default: True
position -- position in eye coordinates (AnyOf(Sequence2 of Real or Sequence3 of Real or Sequence4 of Real))
            Default: (320.0, 240.0)
size     -- size in eye coordinates (Sequence2 of Real)
            Default: (4.0, 4.0)

Method Summary
  __init__(self, **kw)
Instantiate and get ready to draw.
  draw(self)
Draw the stimulus.
    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')
member_descriptor constant_parameters = <member 'constant_parameters' of '...
member_descriptor parameters = <member 'parameters' of 'FixationSpot' obje...
ParameterDefinition parameters_and_defaults = {'on': (True, <class 'VisionEg...
    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)

Draw the stimulus. (Called by Viewport instance.)

This method is called every frame.  This method actually
performs the OpenGL calls to draw the stimulus.
Overrides:
VisionEgg.Core.Stimulus.draw (inherited documentation)

Class Variable Details

__slots__

Type:
tuple
Value:
('parameters', 'constant_parameters')                                  

constant_parameters

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

parameters

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

parameters_and_defaults

Type:
ParameterDefinition
Value:
{'on': (True, <class 'VisionEgg.ParameterTypes.Boolean'>, 'draw?'), 'c\
enter': (None, <VisionEgg.ParameterTypes.Sequence2 object at 0x40c1b98\
c>, 'position in eye coordinates', 1), 'color': ((1.0, 1.0, 1.0), <Vis\
ionEgg.ParameterTypes.AnyOf object at 0x40c1b86c>, 'color'), 'position\
': ((320.0, 240.0), <VisionEgg.ParameterTypes.AnyOf object at 0x40c1b9\
2c>, 'position in eye coordinates'), 'anchor': ('center', <class 'Visi\
onEgg.ParameterTypes.String'>, 'how position parameter is used'), 'siz\
e': ((4.0, 4.0), <VisionEgg.ParameterTypes.Sequence2 object at 0x40c1b\
...                                                                    

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