onclick

Package Contents

Classes

class RepresentDeviceInterface
class Onclick_animate(theLinkDataGraph, theAnimation)

Bases: optimeed.visualize.onclick.onclickInterface.OnclickInterface

On click: add or remove an element to animate

graph_clicked(theGraphVisual, index_graph, index_trace, indices_points)

Action to perform when a graph is clicked

Parameters:
  • theGraphsVisual – class widget_graphs_visual that has called the method
  • index_graph – Index of the graph that has been clicked
  • index_trace – Index of the trace that has been clicked
  • indices_points – graph Indices of the points that have been clicked
Returns:

get_name()
class Onclick_changeSymbol(theLinkDataGraph)

Bases: optimeed.visualize.onclick.onclickInterface.OnclickInterface

On Click: Change the symbol of the point that is clicked

graph_clicked(theGraphVisual, index_graph, index_trace, indices_points)

Action to perform when a graph is clicked

Parameters:
  • theGraphsVisual – class widget_graphs_visual that has called the method
  • index_graph – Index of the graph that has been clicked
  • index_trace – Index of the trace that has been clicked
  • indices_points – graph Indices of the points that have been clicked
Returns:

get_name()
class Onclick_copySomething(theDataLink, functionStrFromDevice)

Bases: optimeed.visualize.onclick.onclickInterface.OnclickInterface

On Click: copy something

graph_clicked(the_graph_visual, index_graph, index_trace, indices_points)

Action to perform when a graph is clicked

Parameters:
  • theGraphsVisual – class widget_graphs_visual that has called the method
  • index_graph – Index of the graph that has been clicked
  • index_trace – Index of the trace that has been clicked
  • indices_points – graph Indices of the points that have been clicked
Returns:

get_name()
class Onclick_delete(theDataLink)

Bases: optimeed.visualize.onclick.onclickInterface.OnclickInterface

On Click: Delete the points from the graph

graph_clicked(_theGraphVisual, index_graph, index_trace, indices_points)

Action to perform when a graph is clicked

Parameters:
  • theGraphsVisual – class widget_graphs_visual that has called the method
  • index_graph – Index of the graph that has been clicked
  • index_trace – Index of the trace that has been clicked
  • indices_points – graph Indices of the points that have been clicked
Returns:

get_name()
class Onclick_exportCollection(theDataLink)

Bases: optimeed.visualize.onclick.onclickInterface.OnclickInterface

On click: export the selected points

graph_clicked(theGraphVisual, index_graph, index_trace, indices_points)

Action to perform when a graph is clicked

Parameters:
  • theGraphsVisual – class widget_graphs_visual that has called the method
  • index_graph – Index of the graph that has been clicked
  • index_trace – Index of the trace that has been clicked
  • indices_points – graph Indices of the points that have been clicked
Returns:

reset_graph()
get_name()
class Onclick_exportToTxt(theDataLink, attributes_shadow=None)

Bases: optimeed.visualize.onclick.onclickInterface.OnclickInterface

On click: export the data of the whole the trace selected

graph_clicked(theGraphVisual, index_graph, index_trace, indices_points)

Action to perform when a graph is clicked

Parameters:
  • theGraphsVisual – class widget_graphs_visual that has called the method
  • index_graph – Index of the graph that has been clicked
  • index_trace – Index of the trace that has been clicked
  • indices_points – graph Indices of the points that have been clicked
Returns:

get_name()
class Onclick_exportTrace(theDataLink, getShadow=True)

Bases: optimeed.visualize.onclick.onclickInterface.OnclickInterface

On click: export the data of the whole the trace selected

graph_clicked(theGraphVisual, index_graph, index_trace, indices_points)

Action to perform when a graph is clicked

Parameters:
  • theGraphsVisual – class widget_graphs_visual that has called the method
  • index_graph – Index of the graph that has been clicked
  • index_trace – Index of the trace that has been clicked
  • indices_points – graph Indices of the points that have been clicked
Returns:

get_name()
class Onclick_extractPareto(theDataLink, max_x=False, max_y=False)

Bases: optimeed.visualize.onclick.onclickInterface.OnclickInterface

On click: extract the pareto from the cloud of points

graph_clicked(the_graph_visual, index_graph, index_trace, _)

Action to perform when a graph is clicked

Parameters:
  • theGraphsVisual – class widget_graphs_visual that has called the method
  • index_graph – Index of the graph that has been clicked
  • index_trace – Index of the trace that has been clicked
  • indices_points – graph Indices of the points that have been clicked
Returns:

get_name()
class Onclick_measure

Bases: optimeed.visualize.onclick.onclickInterface.OnclickInterface

On Click: Measure distance. Click on two points to perform that action

graph_clicked(the_graph_visual, index_graph, index_trace, indices_points)

Action to perform when a graph is clicked

Parameters:
  • theGraphsVisual – class widget_graphs_visual that has called the method
  • index_graph – Index of the graph that has been clicked
  • index_trace – Index of the trace that has been clicked
  • indices_points – graph Indices of the points that have been clicked
Returns:

reset_distance()
display_distance()
get_name()
class Onclick_removeTrace(theDataLink)

Bases: optimeed.visualize.onclick.onclickInterface.OnclickInterface

Interface class for the action to perform when a point is clicked

graph_clicked(theGraphVisual, index_graph, index_trace, _)

Action to perform when a graph is clicked

Parameters:
  • theGraphsVisual – class widget_graphs_visual that has called the method
  • index_graph – Index of the graph that has been clicked
  • index_trace – Index of the trace that has been clicked
  • indices_points – graph Indices of the points that have been clicked
Returns:

get_name()
class Onclick_representDevice(theLinkDataGraph, visuals)

Bases: optimeed.visualize.onclick.onclickInterface.OnclickInterface

On click: show informations about the points (loop through attributes)

class DataInformationVisuals
delete_visual(theVisual)
add_visual(theVisual, theTrace, indexPoint)
get_new_index()
curr_index()
graph_clicked(theGraphVisual, index_graph, index_trace, indices_points)

Action to perform when a point in the graph has been clicked: Creates new window displaying the device and its informations

get_name()
class Onclick_tojson(theDataLink)

Bases: optimeed.visualize.onclick.onclickInterface.OnclickInterface

Interface class for the action to perform when a point is clicked

graph_clicked(theGraphVisual, index_graph, index_trace, indices_points)

Action to perform when a graph is clicked

Parameters:
  • theGraphsVisual – class widget_graphs_visual that has called the method
  • index_graph – Index of the graph that has been clicked
  • index_trace – Index of the trace that has been clicked
  • indices_points – graph Indices of the points that have been clicked
Returns:

get_name()
class OnclickInterface

Interface class for the action to perform when a point is clicked

class Onclick_getXY

Bases: optimeed.visualize.onclick.onclickInterface.OnclickInterface

On click: display X and Y coordinates of the points

graph_clicked(theGraphVisual, index_graph, index_trace, indices_points)

Action to perform when a graph is clicked

Parameters:
  • theGraphsVisual – class widget_graphs_visual that has called the method
  • index_graph – Index of the graph that has been clicked
  • index_trace – Index of the trace that has been clicked
  • indices_points – graph Indices of the points that have been clicked
Returns:

get_name()
class Represent_opengl(DeviceDrawer)

Bases: optimeed.visualize.onclick.onclick_representDevice.RepresentDeviceInterface

get_widget(theNewDevice)

Get Qt widget that represents the device

Parameters:theDevice – the Device to be represented
Returns:Qt widget
class Represent_image(get_base_64_from_device)

Bases: optimeed.visualize.onclick.onclick_representDevice.RepresentDeviceInterface

get_widget(theNewDevice)

Get Qt widget that represents the device

Parameters:theDevice – the Device to be represented
Returns:Qt widget
class Represent_lines(attribute_lines)

Bases: optimeed.visualize.onclick.onclick_representDevice.RepresentDeviceInterface

get_widget(theNewDevice)

Get Qt widget that represents the device

Parameters:theDevice – the Device to be represented
Returns:Qt widget
class Represent_brut_attributes(is_light=True, convertToHtml=True, recursion_level=5)

Bases: optimeed.visualize.onclick.onclick_representDevice.RepresentDeviceInterface

get_widget(theNewDevice)

Get Qt widget that represents the device

Parameters:theDevice – the Device to be represented
Returns:Qt widget
class Represent_txt_function(is_light=True, convertToHtml=True)

Bases: optimeed.visualize.onclick.onclick_representDevice.RepresentDeviceInterface

getTxt(theNewDevice)
get_widget(theNewDevice)

Get Qt widget that represents the device

Parameters:theDevice – the Device to be represented
Returns:Qt widget
class Animate_lines(get_lines_method, is_light=True, theId=0, window_title='Animation')

Bases: optimeed.visualize.onclick.animationGUI.AnimationGUI

Implements DataAnimationVisuals to show drawing made out of lines (widget_line_drawer)

export_widget(painter)

Render scene with a painter

Parameters:painter – PyQt painter
delete_key_widgets(key)

What to do when a key has to be deleted

Parameters:key – key of the trace that has to be deleted
update_widget_w_animation(key, index, the_data_animation)

What to do when a new element has to be animated. Example: self.theOpenGLWidget.set_deviceToDraw(the_data_animation.get_element_animations(0, index))

Parameters:
  • key – key of the trace that has to be animated
  • index – index that has to be animated
  • the_data_animationDataAnimationTrace that has to be animated
get_interesting_elements(devices_list)

Function called upon new trace creation. From a list, takes the interesting elements for animation :param element_list: :return: new_element_list

class Animate_openGL(theOpenGLWidget, theId=0, window_title='Animation')

Bases: optimeed.visualize.onclick.animationGUI.AnimationGUI

Implements DataAnimationVisuals to show opengl drawing

update_widget_w_animation(key, index, the_data_animation)

What to do when a new element has to be animated. Example: self.theOpenGLWidget.set_deviceToDraw(the_data_animation.get_element_animations(0, index))

Parameters:
  • key – key of the trace that has to be animated
  • index – index that has to be animated
  • the_data_animationDataAnimationTrace that has to be animated
export_widget(painter)

Render scene with a painter

Parameters:painter – PyQt painter
delete_key_widgets(key)

What to do when a key has to be deleted

Parameters:key – key of the trace that has to be deleted
class Animate_lines_and_text(*args, **kwargs)

Bases: Animate_lines

Same as DataAnimationLines but also with text

update_widget_w_animation(key, index, the_data_animation)

What to do when a new element has to be animated. Example: self.theOpenGLWidget.set_deviceToDraw(the_data_animation.get_element_animations(0, index))

Parameters:
  • key – key of the trace that has to be animated
  • index – index that has to be animated
  • the_data_animationDataAnimationTrace that has to be animated
class Animate_openGL_and_text(*args, is_light=True, **kwargs)

Bases: Animate_openGL

Implements DataAnimationVisuals to show opengl drawing and text

update_widget_w_animation(key, index, the_data_animation)

What to do when a new element has to be animated. Example: self.theOpenGLWidget.set_deviceToDraw(the_data_animation.get_element_animations(0, index))

Parameters:
  • key – key of the trace that has to be animated
  • index – index that has to be animated
  • the_data_animationDataAnimationTrace that has to be animated
get_interesting_elements(devices_list)

Function called upon new trace creation. From a list, takes the interesting elements for animation :param element_list: :return: new_element_list