sas.qtgui.Plotting.Masks package

Submodules

sas.qtgui.Plotting.Masks.BoxMask module

class sas.qtgui.Plotting.Masks.BoxMask.BoxMask(base, axes, color='black', zorder=3, side=None, x_min=0.008, x_max=0.008, y_min=0.0025, y_max=0.0025)[source]

Bases: sas.qtgui.Plotting.Slicers.BaseInteractor.BaseInteractor

BoxMask Class: determine 2 rectangular area to find the pixel of a Data inside of box.

Uses PointerInteractor , VerticalDoubleLine,HorizontalDoubleLine.

Parameters:
  • zorder – Artists with lower zorder values are drawn first.
  • x_min – the minimum value of the x coordinate
  • x_max – the maximum value of the x coordinate
  • y_min – the minimum value of the y coordinate
  • y_max – the maximum value of the y coordinate
clear()[source]

Clear the slicer and all connected events related to this slicer

draw()[source]
get_mask()[source]

return mask as a result of boxcut

get_params()[source]

Store a copy of values of parameters of the slicer into a dictionary.

Return params:the dictionary created
move(x, y, ev)[source]

Process move to a new position, making sure that the move is allowed.

moveend(ev)[source]

After a dragging motion this function is called to compute the error and the sum of pixel of a given data 2D

restore()[source]

Restore the roughness for this layer.

save(ev)[source]

Remember the roughness for this layer and the next so that we can restore on Esc.

set_cursor(x, y)[source]
set_params(params)[source]

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.
update()[source]

Respond to changes in the model by recalculating the profiles and resetting the widgets.

sas.qtgui.Plotting.Masks.CircularMask module

class sas.qtgui.Plotting.Masks.CircularMask.CircularMask(base, axes, color='grey', zorder=3, side=None)[source]

Bases: sas.qtgui.Plotting.Slicers.BaseInteractor.BaseInteractor

Draw a ring Given a radius

clear()[source]

Clear the slicer and all connected events related to this slicer

draw()[source]
getParams()[source]

Store a copy of values of parameters of the slicer into a dictionary.

Return params:the dictionary created
move(x, y, ev)[source]

Process move to a new position, making sure that the move is allowed.

moveend(ev)[source]

Called when any dragging motion ends. Post an event (type =SlicerParameterEvent) to plotter 2D with a copy slicer parameters Call _post_data method

restore()[source]

Restore the roughness for this layer.

save(ev)[source]

Remember the roughness for this layer and the next so that we can restore on Esc.

setParams(params)[source]

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.
set_cursor(x, y)[source]
set_layer(n)[source]

Allow adding plot to the same panel :param n: the number of layer

update()[source]

Respond to changes in the model by recalculating the profiles and resetting the widgets.

sas.qtgui.Plotting.Masks.SectorMask module

Sector mask interactor

class sas.qtgui.Plotting.Masks.SectorMask.SectorMask(base, axes, color='gray', zorder=3, side=False)[source]

Bases: sas.qtgui.Plotting.Slicers.BaseInteractor.BaseInteractor

Draw a sector slicer.Allow to find the data 2D inside of the sector lines

clear()[source]

Clear the slicer and all connected events related to this slicer

draw()[source]
get_params()[source]

Store a copy of values of parameters of the slicer into a dictionary.

Return params:the dictionary created
move(x, y, ev)[source]

Process move to a new position, making sure that the move is allowed.

moveend(ev)[source]

Called a dragging motion ends.Get slicer event

restore()[source]

Restore the roughness for this layer.

save(ev)[source]

Remember the roughness for this layer and the next so that we can restore on Esc.

set_cursor(x, y)[source]
set_params(params)[source]

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.
update()[source]

Respond to changes in the model by recalculating the profiles and resetting the widgets.

Module contents