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

# Class AzElGrid

source code

             object --+
                      |
    ClassWithParameters --+
                          |
              Core.Stimulus --+
                              |
                             AzElGrid

    Spherical grid of iso-azimuth and iso-elevation lines.

    Parameters
    ==========
    anti_aliasing    -- (Boolean)
                        Default: True
    center_azimuth   -- (Real)
                        Default: 0.0
    center_elevation -- (Real)
                        Default: 0.0
    major_line_color -- (AnyOf(Sequence3 of Real or Sequence4 of Real))
                        Default: (0.0, 0.0, 0.0)
    major_line_width -- (Real)
                        Default: 2.0
    minor_line_color -- (AnyOf(Sequence3 of Real or Sequence4 of Real))
                        Default: (0.0, 0.0, 1.0)
    minor_line_width -- (Real)
                        Default: 1.0
    my_viewport      -- (Instance of <class 'VisionEgg.Core.Viewport'>)
                        Default: (determined at runtime)
    on               -- (Boolean)
                        Default: True
    text_offset      -- (Sequence2 of Real)
                        Default: (3, -2)

    Constant Parameters
    ===================
    az_major_spacing       -- (Real)
                              Default: 30.0
    az_minor_spacing       -- (Real)
                              Default: 10.0
    el_major_spacing       -- (Real)
                              Default: 30.0
    el_minor_spacing       -- (Real)
                              Default: 10.0
    font_size              -- (UnsignedInteger)
                              Default: 24
    num_samples_per_circle -- (UnsignedInteger)
                              Default: 100
    radius                 -- (Real)
                              Default: 1.0
    text_anchor            -- (String)
                              Default: lowerleft
    text_color             -- (AnyOf(Sequence3 of Real or Sequence4 of Real))
                              Default: (0.0, 0.0, 0.0)
    use_text               -- (Boolean)
                              Default: True

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 = `{'on':(True, ve_types.Boolean), 'cen`...``
| constant_parameters_and_defaults = `{'use_text':(True, ve_types`...``
Inherited from `ClassWithParameters`: `__safe_for_unpickling__`

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: Core.Stimulus.__init__ (inherited documentation)

### 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:
      {'on':(True, ve_types.Boolean), 'center_azimuth':(0.0, ve_types.Real),
       'center_elevation':(0.0, ve_types.Real), 'minor_line_width':(1.0, ve_
      types.Real), 'major_line_width':(2.0, ve_types.Real), 'minor_line_colo
      r':((0.0, 0.0, 1.0), ve_types.AnyOf(ve_types.Sequence3(ve_types.Real),
       ve_types.Sequence4(ve_types.Real))), 'major_line_color':((0.0, 0.0, 0
      .0), ve_types.AnyOf(ve_types.Sequence3(ve_types.Real), ve_types.Sequen
      ce4(ve_types.Real))), 'my_viewport':(None, ve_types.Instance(VisionEgg
      .Core.Viewport)), 'text_offset':((3,-2), ve_types.Sequence2(ve_types.R
      ...

  ### constant_parameters_and_defaults Value:
      {'use_text':(True, ve_types.Boolean), 'radius':(1.0, ve_types.Real), '
      az_minor_spacing':(10.0, ve_types.Real), 'az_major_spacing':(30.0, ve_
      types.Real), 'el_minor_spacing':(10.0, ve_types.Real), 'el_major_spaci
      ng':(30.0, ve_types.Real), 'num_samples_per_circle':(100, ve_types.Uns
      ignedInteger), 'font_size':(24, ve_types.UnsignedInteger), 'text_color
      ':((0.0, 0.0, 0.0), ve_types.AnyOf(ve_types.Sequence3(ve_types.Real),
      ve_types.Sequence4(ve_types.Real))), 'text_anchor':('lowerleft', ve_ty
      pes.String),}