def accept(self): path = Paths.modulePath() + "/Examples/" if(self.form.ship.currentIndex() == 0): # s60 from Iowa University App.open(path + "s60.fcstd") elif(self.form.ship.currentIndex() == 1): # Barehull 5415 App.open(path + "barehull5415.fcstd") elif(self.form.ship.currentIndex() == 2): # s60 (Katamaran) App.open(path + "s60_katamaran.fcstd") return True
def __init__(self): self.ui = Paths.modulePath() + "/shipOutlineDraw/TaskPanel.ui" self.ship = None self.skip = False self.LSections = [] self.BSections = [] self.TSections = [] self.obj = None self.preview = Preview.Preview()
def accept(self): path = Paths.modulePath() + "/Examples/" if (self.form.ship.currentIndex() == 0): # s60 from Iowa University App.open(path + "s60.fcstd") elif (self.form.ship.currentIndex() == 1): # Barehull 5415 App.open(path + "barehull5415.fcstd") elif (self.form.ship.currentIndex() == 2): # s60 (Katamaran) App.open(path + "s60_katamaran.fcstd") return True
def accept(self): path = Paths.modulePath() + "/Examples/" if(self.form.ship.currentIndex() == 0): # s60 from Iowa University App.open(path + "s60.fcstd") elif(self.form.ship.currentIndex() == 1): # Wigley canonical ship App.open(path + "wigley.fcstd") elif(self.form.ship.currentIndex() == 2): # s60 (Katamaran) App.open(path + "s60_katamaran.fcstd") elif(self.form.ship.currentIndex() == 2): # Wigley (Katamaran) App.open(path + "wigley_katamaran.fcstd") return True
def accept(self): path = Paths.modulePath() + "/Resources/VENDING/" if(self.form.ship.currentIndex() == 0): # box2 App.open(path + "box2.fcstd") elif(self.form.ship.currentIndex() == 1): # CircleFan App.open(path + "CircleFan.fcstd") elif(self.form.ship.currentIndex() == 2): # Part 1 App.open(path + "Part1.fcstd") elif(self.form.ship.currentIndex() == 2): # Part 4 App.open(path + "Part4.fcstd") return True
def accept(self): path = Paths.modulePath() + "/Resources/VENDING/" if (self.form.ship.currentIndex() == 0): # box2 App.open(path + "box2.fcstd") elif (self.form.ship.currentIndex() == 1): # CircleFan App.open(path + "CircleFan.fcstd") elif (self.form.ship.currentIndex() == 2): # Part 1 App.open(path + "Part1.fcstd") elif (self.form.ship.currentIndex() == 2): # Part 4 App.open(path + "Part4.fcstd") return True
def accept(self): path = Paths.modulePath() + "/Examples/" if (self.form.ship.currentIndex() == 0): # s60 from Iowa University App.open(path + "s60.fcstd") elif (self.form.ship.currentIndex() == 1): # Wigley canonical ship App.open(path + "wigley.fcstd") elif (self.form.ship.currentIndex() == 2): # s60 (Katamaran) App.open(path + "s60_katamaran.fcstd") elif (self.form.ship.currentIndex() == 2): # Wigley (Katamaran) App.open(path + "wigley_katamaran.fcstd") return True
def accept(self): """Load the selected hull example.""" path = Paths.modulePath() + "/resources/examples/" mw = self.getMainWindow() form = mw.findChild(QtGui.QWidget, "TaskPanel") form.ship = self.widget(QtGui.QComboBox, "Ship") if (form.ship.currentIndex() == 0): # s60 from Iowa University App.open(path + "s60.fcstd") elif (form.ship.currentIndex() == 1): # Wigley canonical ship App.open(path + "wigley.fcstd") elif (form.ship.currentIndex() == 2): # s60 (Katamaran) App.open(path + "s60_katamaran.fcstd") elif (form.ship.currentIndex() == 3): # Wigley (Katamaran) App.open(path + "wigley_katamaran.fcstd") return True
def accept(self): """Load the selected hull example.""" path = Paths.modulePath() + "/resources/examples/" mw = self.getMainWindow() form = mw.findChild(QtGui.QWidget, "TaskPanel") form.ship = self.widget(QtGui.QComboBox, "Ship") if(form.ship.currentIndex() == 0): # s60 from Iowa University App.open(path + "s60.fcstd") elif(form.ship.currentIndex() == 1): # Wigley canonical ship App.open(path + "wigley.fcstd") elif(form.ship.currentIndex() == 2): # s60 (Katamaran) App.open(path + "s60_katamaran.fcstd") elif(form.ship.currentIndex() == 2): # Wigley (Katamaran) App.open(path + "wigley_katamaran.fcstd") return True
def __init__(self): self.ui = Paths.modulePath() + "/simCreate/TaskPanel.ui"
def __init__(self): self.ui = Paths.modulePath() + "/shipGZ/TaskPanel.ui"
def path(): """ Gets the OpenCL kernels path @return OpenCL kernels path """ path = Paths.modulePath() + "/resources/opencl" return path
def __init__(self): """Constructor""" self.ui = Paths.modulePath() + "/shipCreateWeight/TaskPanel.ui"
def __init__(self): """Constructor.""" self.ui = Paths.modulePath() + "/shipLoadExample/TaskPanel.ui"
def __init__(self): self.ui = Paths.modulePath() + "/simRun/TaskPanel.ui" self.sim = False
def __init__(self): self.ui = Paths.modulePath() + "/simPost/TaskPanel.ui"
def __init__(self): """Constructor""" self.ui = Paths.modulePath() + "/shipCreateShip/TaskPanel.ui" self.preview = Preview.Preview()
def __init__(self): self.ui = Paths.modulePath() + "/tankWeights/TaskPanel.ui" self.ship = None self.preview = Preview.Preview()
def __init__(self): self.ui = Paths.modulePath() + "/shipLoadExample/TaskPanel.ui"
def __init__(self): self.ui = Paths.modulePath() + "/tankCreateTank/TaskPanel.ui"
def __init__(self): self.ui = Paths.modulePath() + "/shipCapacityCurve/TaskPanel.ui" self.tank = None
def clPath(): """ Gets the OpenCL kernels path @return OpenCL kernels path """ path = Paths.modulePath() + "/OpenCL" return path
def __init__(self): self.ui = Paths.modulePath() + "/shipHydrostatics/TaskPanel.ui" self.ship = None self.running = False
def __init__(self): self.ui = Paths.modulePath() + "/shipAreasCurve/TaskPanel.ui" self.preview = Preview.Preview() self.ship = None
def __init__(self): self.ui = Paths.modulePath() + "/tankGZ/TaskPanel.ui" self.ship = None self.tanks = {}
def __init__(self): self.ui = Paths.modulePath() + "NR_TEST/Gui/Vend/TaskPanel.ui"
def __init__(self): self.ui = Paths.modulePath() + "/shipHydrostatics/TaskPanel.ui" self.ship = None
def __init__(self): self.ui = Paths.modulePath() + "/shipCreateShip/TaskPanel.ui" self.preview = Preview.Preview()