VisionEgg.Text.BitmapText

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

# Class BitmapText

source code

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

    DEPRECATED. Bitmap fonts from GLUT.

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

Instance Methods
__init__(self, **kw) | 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_BITMAP_TIMES_ROMA`...``
Inherited from `ClassWithParameters`: `__safe_for_unpickling__`, `constant_parameters_and_defaults`

Properties
Inherited from `object`: `__class__`

Method Details

### __init__(self, **kw) (Constructor) | source code
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_BITMAP_TIMES_ROMAN_24, ve_types.Integer),}