Package tacval :: Package managers :: Module extraction_line_manager :: Class ExtractionLineManager
[hide private]
[frames] | no frames]

Class ExtractionLineManager

source code

                    enthought.traits.api.HasTraits --+    
                                                     |    
base_extraction_line_manager.BaseExtractionLineManager --+
                                                         |
                                                        ExtractionLineManager

Manager for interacting with the extraction line contains 2 interaction canvases, 2D and 3D contains reference to valve manager, gauge manager and laser manager

Class Hierarchy for ExtractionLineManager
Class Hierarchy for ExtractionLineManager

Instance Methods [hide private]
 
tacval_window_interactor_state_changed(self, state)
handler for interactor state changes simple updates the 3D canvas' interactor state
source code
 
tacval_window_tool_state_changed(self, state)
handler for tool state changes simple updates the 3D canvas' tool state
source code
 
heat(self, args)
send a heat command to the laser manager
source code
float
get_pressure(self, index)
get the pressure from the gauge manager
source code
 
get_state(self, name) source code
 
open_valve_by_name(self, name, actuate=True)
open a valve by name if actuate is true a command is send to the valve manager to open otherwise the only state of the valve is updated in the canvases
source code
 
close_valve_by_name(self, name, actuate=True)
close a valve by name if actuate is true a command is send to the valve manager to close otherwise the only state of the valve is updated in the canvases
source code
 
laser_on(self)
set laser state to on
source code
 
laser_off(self)
set laser state to off
source code
 
identify_valve_by_name(self, name)
identify the valve in the 3D canvas
source code
 
update_2D(self, component3D, action)
update the 2D canvas when changes are made to the 3D canvas
source code
 
update_3D(self, component2D, action)
update the 3D canvas when changes are made to the 2D canvas
source code
View
traits_view(self)
default view for this object
source code
 
_touch_canvas3D_factory(self, window, editor)
factory method for the 3d canvas
source code
ExtractionLineCanvas2D
_touch_canvas2D_default(self)
default 2D canvas
source code
    Inherited from base_extraction_line_manager.BaseExtractionLineManager
 
__init__(self, *args, **kw) source code
boolean
kill(self)
Returns: True to confirm kill, False to cancel
source code
Class Variables [hide private]
  touch_canvas2D = Instance(ExtractionLineCanvas2D)
  touch_canvas3D = Instance(ExtractionLineCanvas3D)
  valve_manager = Instance(ValveManager)
  laser_manager = Instance(LaserManager)
  gauge_manager = Instance(GaugeManager)
  twod_canvas = Bool(False)
    Inherited from base_extraction_line_manager.BaseExtractionLineManager
  extraction_line = Any
Method Details [hide private]

tacval_window_interactor_state_changed(self, state)

source code 

handler for interactor state changes simple updates the 3D canvas' interactor state

Parameters:
  • state (boolean) - the current interactor state value

tacval_window_tool_state_changed(self, state)

source code 

handler for tool state changes simple updates the 3D canvas' tool state

Parameters:
  • state (boolean) - the current tool state value

heat(self, args)

source code 

send a heat command to the laser manager

Parameters:
  • args (tuple) - (list, condition) list = power, duration, ramp rate

get_pressure(self, index)

source code 

get the pressure from the gauge manager

Parameters:
  • index (int) - index of the gauge in gauge managers gauge list
Returns: float
pressure (default units torr)

open_valve_by_name(self, name, actuate=True)

source code 

open a valve by name if actuate is true a command is send to the valve manager to open otherwise the only state of the valve is updated in the canvases

Parameters:
  • name (str) - name of the valve
  • actuate (boolean) - True to actuate, False only to update the canvas

close_valve_by_name(self, name, actuate=True)

source code 

close a valve by name if actuate is true a command is send to the valve manager to close otherwise the only state of the valve is updated in the canvases

Parameters:
  • name (str) - name of the valve
  • actuate (boolean) - True to actuate, False only to update the canvas

identify_valve_by_name(self, name)

source code 

identify the valve in the 3D canvas

Parameters:
  • name (str) - name of the valve

update_2D(self, component3D, action)

source code 

update the 2D canvas when changes are made to the 3D canvas

Parameters:
  • component3D (Object3D) - component object from the 3D canvas
  • action (str) - action to take valve=> toggle valve

update_3D(self, component2D, action)

source code 

update the 3D canvas when changes are made to the 2D canvas

Parameters:
  • component2D (Object2D) - component object from the 2D canvas
  • action (str) - action to take valve=> toggle valve

traits_view(self)

source code 

default view for this object

Returns: View
Traits View

_touch_canvas3D_factory(self, window, editor)

source code 

factory method for the 3d canvas

Parameters:
  • window (wx.Window) - parent window instance
  • editor (editor) - editor instance

_touch_canvas2D_default(self)

source code 

default 2D canvas

Returns: ExtractionLineCanvas2D
a ExtractionLineCanvas2D instance