PYME.LMVis.views module

class PYME.LMVis.views.VideoView(view_id='id', vec_up=[0, 1, 0], vec_back=[0, 0, 1], vec_right=[1, 0, 0], translation=[0, 0, 0], scale=1, clipping=array([([-1000000.0, 1000000.0], [-1000000.0, 1000000.0], [-1000000.0, 1000000.0], [-1000000.0, 1000000.0])], dtype=[('x', '<f4', (2,)), ('y', '<f4', (2,)), ('z', '<f4', (2,)), ('v', '<f4', (2,))]), duration=1, **kwargs)

Bases: View

Parameters
view_id is up to you, as long as serializable with json
vec_up np.array
vec_back np.array
vec_right np.array
translation np.array
zoom usually a scalar
duration duration of the view transition in seconds
JSON_DURATION = 'duration'
property duration
to_json()
class PYME.LMVis.views.View(view_id='id', vec_up=[0, 1, 0], vec_back=[0, 0, 1], vec_right=[1, 0, 0], translation=[0, 0, 0], scale=1, clipping=array([([-1000000.0, 1000000.0], [-1000000.0, 1000000.0], [-1000000.0, 1000000.0], [-1000000.0, 1000000.0])], dtype=[('x', '<f4', (2,)), ('y', '<f4', (2,)), ('z', '<f4', (2,)), ('v', '<f4', (2,))]), clip_plane_orientation=array([1.0, 0.0, 0.0, 0.0]), clip_plane_position=[0, 0, 0], **kwargs)

Bases: object

Parameters
view_id is up to you, as long as serializable with json
vec_up np.array
vec_back np.array
vec_right np.array
translation np.array
zoom usually a scalar
classmethod copy(view)
classmethod decode_json(json_obj)
front()

set the view to front view

static normalize(array)
normalize_view()
right()

set the view to right view

to_json()
top()

set the view to top-down view

property view_id