VisionEgg.Textures.TextureStimulus3D

Package VisionEgg :: Module Textures :: Class TextureStimulus3D |
[frames] | no frames]

# Class TextureStimulus3D

source code

             object --+
                      |
    ClassWithParameters --+
                          |
              Core.Stimulus --+
                              |
       TextureStimulusBaseClass --+
                                  |
                                 TextureStimulus3D

    A textured rectangle placed arbitrarily in 3 space.

    Parameters
    ==========
    depth_test         -- perform depth test? (Boolean)
                          Default: True
    lowerleft          -- vertex position (units: eye coordinates) (AnyOf(Sequence3 of Real or Sequence4 of Real))
                          Default: (0.0, 0.0, -1.0)
    lowerright         -- vertex position (units: eye coordinates) (AnyOf(Sequence3 of Real or Sequence4 of Real))
                          Default: (1.0, 0.0, -1.0)
    on                 -- (Boolean)
                          Default: True
    texture            -- source of texture data (Instance of <class 'VisionEgg.Textures.Texture'>)
                          Inherited from TextureStimulusBaseClass
                          Default: (determined at runtime)
    texture_mag_filter -- OpenGL filter enum (Integer)
                          Inherited from TextureStimulusBaseClass
                          Default: GL_LINEAR (9729)
    texture_min_filter -- OpenGL filter enum (Integer)
                          Inherited from TextureStimulusBaseClass
                          Default: (GL enum determined at runtime)
    texture_wrap_s     -- OpenGL texture wrap enum (Integer)
                          Inherited from TextureStimulusBaseClass
                          Default: (GL enum determined at runtime)
    texture_wrap_t     -- OpenGL texture wrap enum (Integer)
                          Inherited from TextureStimulusBaseClass
                          Default: (GL enum determined at runtime)
    upperleft          -- vertex position (units: eye coordinates) (AnyOf(Sequence3 of Real or Sequence4 of Real))
                          Default: (0.0, 1.0, -1.0)
    upperright         -- vertex position (units: eye coordinates) (AnyOf(Sequence3 of Real or Sequence4 of Real))
                          Default: (1.0, 1.0, -1.0)

    Constant Parameters
    ===================
    internal_format   -- format with which OpenGL uses texture data (OpenGL data type enum) (Integer)
                         Default: GL_RGB (6407)
    mipmaps_enabled   -- Are mipmaps enabled? (Boolean)
                         Default: True
    shrink_texture_ok -- Allow automatic shrinking of texture if too big? (Boolean)
                         Default: False

Instance Methods
draw(self) Draw the stimulus. | source code
Inherited from `TextureStimulusBaseClass`: `__init__` 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), 'low`...``
Inherited from `TextureStimulusBaseClass`: `constant_parameters_and_defaults` Inherited from `ClassWithParameters`: `__safe_for_unpickling__`

Properties
Inherited from `object`: `__class__`

Method Details

### 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), 'lowerleft':((0.0, 0.0,-1.0), ve_types
      .AnyOf(ve_types.Sequence3(ve_types.Real), ve_types.Sequence4(ve_types.
      Real)), "vertex position (units: eye coordinates)"), 'lowerright':((1.
      0, 0.0,-1.0), ve_types.AnyOf(ve_types.Sequence3(ve_types.Real), ve_typ
      es.Sequence4(ve_types.Real)), "vertex position (units: eye coordinates
      )"), 'upperleft':((0.0, 1.0,-1.0), ve_types.AnyOf(ve_types.Sequence3(v
      e_types.Real), ve_types.Sequence4(ve_types.Real)), "vertex position (u
      nits: eye coordinates)"), 'upperright':((1.0, 1.0,-1.0), ve_types.AnyO
      ...