Package reflectometry :: Package model1d :: Package profileview :: Module layerInteractor :: Class FlatLayerInteractor

Class FlatLayerInteractor

source code


Interactor for FlatLayer to handle flat slabs.
Instance Methods
 
set_layer(self, n, show=True)
Setup the widgets required to edit layer n.
source code
 
update(self, show=True)
Draw the widgets in their new positions.
source code
 
move(self, x, y, evt)
Update the model with the new widget position.
source code
 
save(self, evt)
Save the current state of the model represented by the widget.
source code
 
restore(self)
Restore the widget and model to the saved state.
source code

Inherited from LayerInteractor: Artist2Name, BestDepthLayerNum, IsFlatLayer, __init__, getBestCurrLayerNum, get_Marker, setValue, set_n, showMuValue, showPhiValue, showRhoValue, showThetaValue, showValue, updateMuValue, updatePhiValue, updateRhoValue, updateThetaValue

Inherited from site-packages.reflectometry.model1d.profileview.baseInteractor.BaseInteractor: clear_markers, connect_markers, dpixel, moveend, onClick, onDrag, onHilite, onKey, onLeave, onRelease, updateValue

Method Details

move(self, x, y, evt)

source code 
Update the model with the new widget position.
Overrides: site-packages.reflectometry.model1d.profileview.baseInteractor.BaseInteractor.move

save(self, evt)

source code 
Save the current state of the model represented by the widget.
Overrides: site-packages.reflectometry.model1d.profileview.baseInteractor.BaseInteractor.save

restore(self)

source code 
Restore the widget and model to the saved state.
Overrides: site-packages.reflectometry.model1d.profileview.baseInteractor.BaseInteractor.restore