gui_data_animation

Module Contents

class DataAnimationTrace(elements_list, theTrace)

Contains all the element to animate for a trace

class element_animation(elements)
get(self)
get_element_animations(self, 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(self)
delete_all(self)
get_indices_to_show(self)
add_element(self, indexPoint)
add_index_to_show(self, index)
_remove_index_from_show(self, index)
set_curr_brush(self, index_in_show)
set_idle_brush(self, index_in_show)
get_number_of_elements(self)
map_index(self, index_in_show)
get_base_pen(self)
class DataAnimationVisuals(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

SlIDER_MAXIMUM_VALUE = 500
SLIDER_MINIMUM_VALUE = 1
add_trace(self, 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(self, trace_id, indexPoint)
delete_point(self, trace_id, thePoint)
reset_all(self)
delete_all(self)
pause_play(self)
show_all(self)
next_frame(self)
slider_handler(self)
frame_selector(self)
set_refreshTime(self)
is_empty(self)
run(self)
closeEvent(self, _)
contains_trace(self, trace_id)
export_picture(self)