Package VisionEgg :: Module Core :: Class OrthographicProjection |
[frames] | no frames]

# Class OrthographicProjection

source code

             object --+
                      |
    ClassWithParameters --+
                          |
        ProjectionBaseClass --+
                              |
                     Projection --+
                                  |
                                 OrthographicProjection

    An orthographic projection.

    Parameters
    ==========
    matrix -- matrix specifying projection (Sequence4x4 of Real)
              Default: [[1 0 0 0]
                        [0 1 0 0]
                        [0 0 1 0]
                        [0 0 0 1]]

Instance Methods
__init__(self, left=0.0, right=640.0, bottom=0.0, top=480.0, z_clip_near=0.0, z_clip_far=1.0) Create an orthographic projection. | source code
Inherited from `ProjectionBaseClass`: `apply_to_gl`, `apply_to_vertex`, `apply_to_vertices`, `clip_2_norm_device`, `eye_2_clip`, `eye_2_norm_device`, `get_matrix`, `look_at`, `push_and_set_gl_projection`, `rotate`, `scale`, `set_gl_modelview`, `set_gl_projection`, `stateless_rotate`, `stateless_scale`, `stateless_translate`, `translate` 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
Inherited from `ProjectionBaseClass`: `parameters_and_defaults` Inherited from `ClassWithParameters`: `__safe_for_unpickling__`, `constant_parameters_and_defaults`

Properties
Inherited from `object`: `__class__`

Method Details

### __init__(self, left=0.0, right=640.0, bottom=0.0, top=480.0, z_clip_near=0.0, z_clip_far=1.0) (Constructor) | source code
    Create an orthographic projection.

    Defaults to map x eye coordinates in the range [0,640], y eye
    coordinates [0,480] and clip coordinates [0,1] to [0,1].
    Therefore, if the viewport is 640 x 480, eye coordinates
    correspond 1:1 with window (pixel) coordinates.  Only points
    between these clipping planes will be displayed.
Overrides: Projection.__init__