Package reflectometry :: Package model1d :: Package profileview :: Module interfaceInteractor :: Class InterfaceInteractor

Class InterfaceInteractor

source code


Control the size of the layers.
Instance Methods
 
__init__(self, base, axes, color='black') source code
 
reset_layers(self)
R eset all markers.
source code
 
refresh(self)
Refreah all markers.
source code
 
clear(self)
Remove interfaces and layer names from the graph.
source code
 
update(self, show=True)
Draw the new interfaces on the graph.
source code
 
save(self, ev)
Remember the depths for this layer and the next so that we can drag interfaces and restore on Esc.
source code
 
restore(self)
Restore the depths for this layer and the next.
source code
 
move(self, x, y, event)
Process move to a new position, making sure that the move is allowed.
source code
 
moveend(self, event) source code
 
showValue(self, event)
Show the depth Value
source code
 
setValue(self, event)
Set the depth Value
source code

Inherited from baseInteractor.BaseInteractor: Artist2Name, BestDepthLayerNum, clear_markers, connect_markers, dpixel, onClick, onDrag, onHilite, onKey, onLeave, onRelease, updateValue

Method Details

__init__(self, base, axes, color='black')
(Constructor)

source code 
Overrides: baseInteractor.BaseInteractor.__init__

refresh(self)

source code 

Refreah all markers.

Also we clear up all the connects with the markers

save(self, ev)

source code 
Remember the depths for this layer and the next so that we can drag interfaces and restore on Esc.
Overrides: baseInteractor.BaseInteractor.save

restore(self)

source code 
Restore the depths for this layer and the next.
Overrides: baseInteractor.BaseInteractor.restore

move(self, x, y, event)

source code 
Process move to a new position, making sure that the move is allowed.
Overrides: baseInteractor.BaseInteractor.move

moveend(self, event)

source code 
Overrides: baseInteractor.BaseInteractor.moveend

setValue(self, event)

source code 

Set the depth Value

First call move(), so we can directly use the updated data(depth).

Overrides: baseInteractor.BaseInteractor.setValue