animationGUI

Module Contents

Classes

class _AnimationTrace(elements_list, theTrace)

Contains all the element to animate for a trace

class AnimationElement(elements)
get()
get_element_animations(itemNumber, index_in_show)

Get the element to show :param itemNumber: item number (0 if only one think to draw) :param index_in_show: index in the list :return: The element to draw

show_all()
delete_all()
get_indices_to_show()
add_element(indexPoint)
add_index_to_show(index)
_remove_index_from_show(index)
set_curr_brush(index_in_show)
set_idle_brush(index_in_show)
get_number_of_elements()
map_index(index_in_show)
get_base_pen()
class AnimationGUI(id=0, window_title='Animation')

Bases: PyQt5.QtWidgets.QMainWindow

Spawns a gui that includes button to create animations nicely when paired with widget_graphs_visual

add_trace(trace_id, element_list, theTrace)

Add a trace to the animation.

Parameters:
  • trace_id – id of the trace
  • element_list – List of elements to save: [[OpenGL_item1, text_item1], [OpenGL_item2, text_item2], … [OpenGL_itemN, text_itemN]]
  • theTraceTraceVisual
Returns:

add_elementToTrace(trace_id, indexPoint)
delete_point(trace_id, thePoint)
reset_all()
delete_all()
pause_play()
show_all()
next_frame()
slider_handler()
frame_selector()
set_refreshTime()
is_empty()
run()
closeEvent(_)
contains_trace(trace_id)
export_picture()