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, duration=1, **kwargs)

Bases: PYME.LMVis.views.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

Attributes

duration
view_id

Methods

copy(view)
decode_json(json_obj)
normalize(array)
normalize_view()
to_json()
JSON_DURATION = 'duration'
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, x_clip=[-1000000.0, 1000000.0], y_clip=[-1000000.0, 1000000.0], z_clip=[-1000000.0, 1000000.0], v_clip=[-1000000.0, 1000000.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

Attributes

view_id

Methods

copy(view)
decode_json(json_obj)
normalize(array)
normalize_view()
to_json()
classmethod copy(view)
classmethod decode_json(json_obj)
static normalize(array)
normalize_view()
to_json()
view_id