Module ImportFrom alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults Num NameLoad kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr BinOpMult BinOpMult Call NameLoad Call NameLoad NameLoad NameLoad Call NameLoad Call NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpDiv BinOpMult Num NameLoad AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr BinOpDiv BinOpMult Num NameLoad AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Num Slice Num TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Num Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return SubscriptLoad Call AttributeLoad NameLoad attr Num Slice Num decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameLoad Assign TupleStore NameStore NameStore NameLoad Assign NameStore BinOpDiv BinOpAdd NameLoad NameLoad Num Assign TupleStore NameStore NameStore TupleLoad BinOpDiv UnaryOpUSub BinOpSub BinOpMult Num NameLoad NameLoad NameLoad BinOpDiv BinOpSub BinOpMult Num NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpMult NameLoad NameLoad BinOpMult NameLoad NameLoad Return IfExp CompareGt NameLoad Num TupleLoad Num BinOpDiv NameLoad NameLoad BinOpDiv NameLoad NameLoad Num TupleLoad Num NameLoad NameLoad Call AttributeLoad NameLoad attr BinOpSub Num BinOpMult NameLoad NameLoad decorator_list
N/A __future__ division N/A numpy np util.quaternion Quaternion visuals.transforms MatrixTransform perspective Base3DRotationCamera ArcballCamera N/A Base3DRotationCamera N/A N/A  3D camera class that orbits around a center point while
    maintaining a view on a center point.

    For this camera, the ``scale_factor`` indicates the zoom level, and
    the ``center`` indicates the position to put at the center of the
    view.

    Parameters
    ----------
    fov : float
        Field of view. Zero (default) means orthographic projection.
    distance : float | None
        The distance of the camera from the rotation point (only makes sense
        if fov > 0). If None (default) the distance is determined from the
        scale_factor and fov.
    **kwargs : dict
        Keyword arguments to pass to `BaseCamera`.

    Notes
    -----
    Interaction:

        * LMB: orbits the view around its center point.
        * RMB or scroll: change scale_factor (i.e. zoom level)
        * SHIFT + LMB: translate the center point
        * SHIFT + RMB: change FOV

     N/A _state_props N/A Base3DRotationCamera _state_props __init__ N/A N/A self fov distance N/A 0.0 None kwargs N/A N/A N/A N/A N/A super ArcballCamera self __init__ fov fov kwargs N/A N/A self _quaternion N/A Quaternion N/A N/A self distance distance N/A _update_rotation N/A N/A self event N/A N/A N/A Update rotation parmeters based on mouse movement N/A p2 N/A N/A event mouse_event pos N/A N/A N/A self _event_value None N/A N/A N/A self _event_value p2 N/A wh N/A N/A self _viewbox size N/A N/A self _quaternion N/A N/A N/A Quaternion N/A _arcball p2 wh N/A Quaternion N/A _arcball N/A self _event_value wh N/A self _quaternion N/A N/A self _event_value p2 N/A N/A N/A self view_changed N/A _rotate_tr N/A N/A self N/A N/A N/A Rotate the transformation matrix based on camera parameters N/A N/A rot x y z N/A N/A N/A self _quaternion get_axis_angle N/A N/A up forward right N/A N/A self _get_dim_vectors N/A N/A N/A N/A self transform rotate N/A N/A 180 rot N/A np pi N/A x z y N/A _dist_to_trans N/A N/A self dist N/A N/A N/A Convert mouse x, y movement into x, y, z translations N/A N/A rot x y z N/A N/A N/A self _quaternion get_axis_angle N/A tr N/A MatrixTransform N/A N/A N/A tr rotate N/A N/A 180 rot N/A np pi N/A x y z N/A N/A dx dz dy N/A N/A np dot N/A N/A tr matrix N/A N/A 3 N/A 3 N/A N/A dist N/A 0 N/A dist N/A 1 0.0 N/A N/A dx dy dz N/A _get_dim_vectors N/A N/A self N/A N/A N/A N/A N/A N/A np eye 3 N/A -1 N/A N/A _arcball N/A N/A xy wh N/A N/A N/A Convert x,y coordinates to w,x,y,z Quaternion parameters

    Adapted from:

    linalg library

    Copyright (c) 2010-2015, Renaud Blanch <rndblnch at gmail dot com>
    Licence at your convenience:
    GPLv3 or higher <http://www.gnu.org/licenses/gpl.html>
    BSD new <http://opensource.org/licenses/BSD-3-Clause>
     N/A N/A x y xy N/A N/A w h wh N/A r N/A N/A w h 2.0 N/A N/A x y N/A N/A N/A N/A N/A 2.0 x w r N/A N/A N/A 2.0 y h r N/A h N/A N/A np sqrt N/A N/A x x N/A y y N/A N/A N/A h 1.0 N/A 0.0 N/A x h N/A y h 0.0 N/A 0.0 x y N/A N/A np sqrt N/A 1.0 N/A h h N/A