Package VisionEgg :: Module Text :: Class StrokeText |
[frames] | no frames]

# Class StrokeText

source code

             object --+
                      |
    ClassWithParameters --+
                          |
              Core.Stimulus --+
                              |
                   GlutTextBase --+
                                  |
                                 StrokeText

    DEPRECATED. Text rendered by GLUT using stroke fonts.

    Parameters
    ==========
    anti_aliasing -- (Boolean)
                     Default: True
    color         -- (AnyOf(Sequence3 of Real or Sequence4 of Real))
                     Inherited from GlutTextBase
                     Default: (1.0, 1.0, 1.0)
    font          -- (Integer)
                     Default: 0
    linewidth     -- (Real)
                     Default: 3.0
    lowerleft     -- (Sequence2 of Real)
                     Inherited from GlutTextBase
                     Default: (320, 240)
    on            -- (Boolean)
                     Inherited from GlutTextBase
                     Default: True
    orientation   -- (Real)
                     Default: 0.0
    text          -- (String)
                     Inherited from GlutTextBase
                     Default: the string to display

Instance Methods
__init__(self, **kw) Instantiate and get ready to draw. | source code
draw(self) Draw the stimulus. | 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 = `{'font':(glut.GLUT_STROKE_ROMAN, ve_`...``
Inherited from `ClassWithParameters`: `__safe_for_unpickling__`, `constant_parameters_and_defaults`

Properties
Inherited from `object`: `__class__`

Method Details

### __init__(self, **kw) (Constructor) | source code
    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: GlutTextBase.__init__

### draw(self) | source code
    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: Core.Stimulus.draw (inherited documentation)

Class Variable Details

  ### parameters_and_defaults Value:
      {'font':(glut.GLUT_STROKE_ROMAN, ve_types.Integer), 'orientation':(0.0
      , ve_types.Real), 'linewidth':(3.0, ve_types.Real), 'anti_aliasing':(T
      rue, ve_types.Boolean),}