Home | Trees | Indices | Help |
|
---|
|
object --+ | ClassWithParameters --+ | Viewport
Connects stimuli to a screen. A viewport defines a (possibly clipped region) of the screen on which stimuli are drawn. A screen may have multiple viewports. The viewports may be overlapping. A viewport may have multiple stimuli. A single stimulus may be drawn simultaneously by several viewports, although this is typically useful only for 3D stimuli to represent different views of the same object. The coordinates of the stimulus are converted to screen coordinates via several steps, the most important of which is the projection, which is defined by an instance of the Projection class. By default, a viewport has a projection which maps eye coordinates to viewport coordinates in 1:1 manner. In other words, eye coordinates specify pixel location in the viewport. For cases where pixel units are not natural to describe coordinates of a stimulus, the application should specify the a projection other than the default. This is usually the case for 3D stimuli. For details of the projection and clipping process, see the section 'Coordinate Transformations' in the book/online document 'The OpenGL Graphics System: A Specification' Parameters ========== anchor -- How position parameter is interpreted (String) Default: lowerleft camera_matrix -- extrinsic camera parameter matrix (position and orientation) (Instance of <class 'VisionEgg.Core.ModelView'>) Default: (determined at runtime) depth_range -- depth range (in object units) for rendering (Sequence2 of Real) Default: (0, 1) position -- Position (in pixel units) within the screen (Sequence2 of Real) Default: (0, 0) projection -- intrinsic camera parameter matrix (field of view, focal length, aspect ratio) (Instance of <class 'VisionEgg.Core.Projection'>) Default: (determined at runtime) screen -- The screen in which this viewport is drawn (Instance of <class 'VisionEgg.Core.Screen'>) Default: (determined at runtime) size -- Size (in pixel units) (Sequence2 of Real) Default: (determined at runtime) stimuli -- sequence of stimuli to draw in screen (Sequence of Instance of <class 'VisionEgg.Core.Stimulus'>) Default: (determined at runtime)
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
Class Variables | |
parameters_and_defaults = VisionEgg.ParameterDefinition({'scre
|
|
Inherited from |
Properties | |
Inherited from |
Method Details |
Create a new instance. Required arguments: screen Optional arguments (specify parameter value other than default): position -- defaults to (0,0), position relative to screen by anchor (see below) anchor -- defaults to 'lowerleft' size -- defaults to screen.size projection -- defaults to self.make_new_pixel_coord_projection() stimuli -- defaults to empty list
|
Class Variable Details |
parameters_and_defaults
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Sat Jun 7 15:40:10 2008 | http://epydoc.sourceforge.net |