Bases: sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor
Select an annulus through a 2D plot. This interactor is used to average 2D data with the region defined by 2 radius. this class is defined by 2 Ringinterators.
receive an event containing parameters values to reset the slicer
Parameters: | event – event of type SlicerParameterEvent with params as attribute |
---|
Uses annulus parameters to plot averaged data into 1D data.
Parameters: | nbins – the number of points to plot |
---|
Clear the slicer and all connected events related to this slicer
Clear old markers and interfaces.
Connect markers to callbacks
Return the step size in data coordinates for a small step in screen coordinates. If nudge is False (default) the step size is one pixel. If nudge is True, the step size is 0.2 pixels.
Store a copy of values of parameters of the slicer into a dictionary.
Return params: | the dictionary created |
---|
Process move to a new position, making sure that the move is allowed.
Called when any dragging motion ends. Post an event (type =SlicerParameterEvent) to plotter 2D with a copy slicer parameters Call _post_data method
Prepare to move the artist. Calls save() to preserve the state for later restore().
Move the artist. Calls move() to update the state, or restore() if the mouse leaves the window.
Hilite the artist reporting the event, indicating that it is ready to receive a click.
Respond to keyboard events. Arrow keys move the widget. Escape restores it to the position before the last click.
Calls move() to update the state. Calls restore() on escape.
Restore the artist to the original colour when the cursor leaves.
Restore the roughness for this layer.
Remember the roughness for this layer and the next so that we can restore on Esc.
Allow adding plot to the same panel
Parameters: | n – the number of layer |
---|
Receive a dictionary and reset the slicer with values contained in the values of the dictionary.
Parameters: | params – a dictionary containing name of slicer parameters and values the user assigned to the slicer. |
---|
Respond to changes in the model by recalculating the profiles and resetting the widgets.
Bases: sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor
Draw a ring Given a radius
Param : | the color of the line that defined the ring |
---|---|
Parameters: |
|
receive an event containing parameters values to reset the slicer
Parameters: | event – event of type SlicerParameterEvent with params as attribute |
---|
Uses annulus parameters to plot averaged data into 1D data.
Parameters: | nbins – the number of points to plot |
---|
Clear the slicer and all connected events related to this slicer
Clear old markers and interfaces.
Connect markers to callbacks
Return the step size in data coordinates for a small step in screen coordinates. If nudge is False (default) the step size is one pixel. If nudge is True, the step size is 0.2 pixels.
Store a copy of values of parameters of the slicer into a dictionary.
Return params: | the dictionary created |
---|
Process move to a new position, making sure that the move is allowed.
Called when any dragging motion ends. Post an event (type =SlicerParameterEvent) to plotter 2D with a copy slicer parameters Call _post_data method
Prepare to move the artist. Calls save() to preserve the state for later restore().
Move the artist. Calls move() to update the state, or restore() if the mouse leaves the window.
Hilite the artist reporting the event, indicating that it is ready to receive a click.
Respond to keyboard events. Arrow keys move the widget. Escape restores it to the position before the last click.
Calls move() to update the state. Calls restore() on escape.
Restore the artist to the original colour when the cursor leaves.
Restore the roughness for this layer.
Remember the roughness for this layer and the next so that we can restore on Esc.
Allow adding plot to the same panel
Parameters: | n – the number of layer |
---|
Receive a dictionary and reset the slicer with values contained in the values of the dictionary.
Parameters: | params – a dictionary containing name of slicer parameters and values the user assigned to the slicer. |
---|
Respond to changes in the model by recalculating the profiles and resetting the widgets.
Bases: sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor
Draw a ring Given a radius
Param : | the color of the line that defined the ring |
---|---|
Parameters: |
|
Clear the slicer and all connected events related to this slicer
Clear old markers and interfaces.
Connect markers to callbacks
Return the step size in data coordinates for a small step in screen coordinates. If nudge is False (default) the step size is one pixel. If nudge is True, the step size is 0.2 pixels.
Store a copy of values of parameters of the slicer into a dictionary.
Return params: | the dictionary created |
---|
Return self._inner_mouse_x: | |
---|---|
the current radius of the ring |
Process move to a new position, making sure that the move is allowed.
Called after a dragging motion
Prepare to move the artist. Calls save() to preserve the state for later restore().
Move the artist. Calls move() to update the state, or restore() if the mouse leaves the window.
Hilite the artist reporting the event, indicating that it is ready to receive a click.
Respond to keyboard events. Arrow keys move the widget. Escape restores it to the position before the last click.
Calls move() to update the state. Calls restore() on escape.
Restore the artist to the original colour when the cursor leaves.
Restore the roughness for this layer.
Remember the roughness for this layer and the next so that we can restore on Esc.
draw the ring given x, y value
Allow adding plot to the same panel
Parameters: | n – the number of layer |
---|
Receive a dictionary and reset the slicer with values contained in the values of the dictionary.
Parameters: | params – a dictionary containing name of slicer parameters and values the user assigned to the slicer. |
---|
Draw the new roughness on the graph.