Potku  1.0.0
Class Documentation
 All Classes Namespaces Functions
Modules.MeasuringSettings.MeasuringSettings Class Reference

Public Member Functions

def __init__
 
def show
 
def set_settings
 
def load_settings
 
def save_settings
 

Public Attributes

 measuring_unit_settings_filename
 
 config
 
 use_settings
 
 element
 
 energy
 
 detector_angle
 
 target_angle
 
 time_of_flight_lenght
 
 carbon_foil_thickness
 
 target_density
 
 filepath
 

Detailed Description

MeasuringSettings holds the all project specific measurement unit parameters.

Constructor & Destructor Documentation

def Modules.MeasuringSettings.MeasuringSettings.__init__ (   self,
  settings_filepath = None 
)
Inits MeasuringSettings.

Args:
    settings_filepath: filepath for the settings file to be loaded.

Member Function Documentation

def Modules.MeasuringSettings.MeasuringSettings.load_settings (   self,
  filepath 
)
Loads settings' parameters from the given filepath.

Args:
    filepath: Filepath to the settings file.
def Modules.MeasuringSettings.MeasuringSettings.save_settings (   self,
  filepath = None 
)
Saves settings' parameters to the given filepath.

Args:
    filepath: Filepath to the settings file.
def Modules.MeasuringSettings.MeasuringSettings.set_settings (   self,
  dialog,
  used_settings = None 
)
Takes inputted parameters from the given dialog and sets them to the 
corresponding object's parameters

Args:
    dialog: Measuring Settings QDialog from which the parameters are taken.
def Modules.MeasuringSettings.MeasuringSettings.show (   self,
  dialog 
)
Shows the measuring parameters in the given measuring settings dialog.

Args:
    dialog: Measuring Settings QDialog whose fields are updated with the 
    MeasuringSettings parameters.

The documentation for this class was generated from the following file: