Beispiel #1
0
 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
Beispiel #2
0
 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()
Beispiel #3
0
 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
Beispiel #4
0
 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()
Beispiel #5
0
 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
Beispiel #7
0
 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
Beispiel #8
0
 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
Beispiel #9
0
 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
Beispiel #11
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/simCreate/TaskPanel.ui"
Beispiel #12
0
 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
Beispiel #14
0
 def __init__(self):
     """Constructor"""
     self.ui = Paths.modulePath() + "/shipCreateWeight/TaskPanel.ui"
Beispiel #15
0
 def __init__(self):
     """Constructor."""
     self.ui = Paths.modulePath() + "/shipLoadExample/TaskPanel.ui"
 def __init__(self):
     self.ui = Paths.modulePath() + "/simRun/TaskPanel.ui"
     self.sim = False
Beispiel #17
0
 def __init__(self):
     self.ui  = Paths.modulePath() + "/simPost/TaskPanel.ui"
def path():
    """ Gets the OpenCL kernels path
    @return OpenCL kernels path
    """
    path = Paths.modulePath() + "/resources/opencl"
    return path
Beispiel #19
0
 def __init__(self):
     """Constructor"""
     self.ui = Paths.modulePath() + "/shipCreateShip/TaskPanel.ui"
     self.preview = Preview.Preview()
Beispiel #20
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/tankWeights/TaskPanel.ui"
     self.ship = None
     self.preview = Preview.Preview()
Beispiel #21
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/shipLoadExample/TaskPanel.ui"
Beispiel #22
0
	def __init__(self):
		self.ui = Paths.modulePath() + "/tankCreateTank/TaskPanel.ui"
Beispiel #23
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/shipCapacityCurve/TaskPanel.ui"
     self.tank = None
Beispiel #24
0
def clPath():
    """ Gets the OpenCL kernels path
    @return OpenCL kernels path
    """
    path = Paths.modulePath() + "/OpenCL"
    return path
Beispiel #25
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/shipHydrostatics/TaskPanel.ui"
     self.ship = None
     self.running = False
Beispiel #26
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/shipAreasCurve/TaskPanel.ui"
     self.preview = Preview.Preview()
     self.ship = None
Beispiel #27
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/tankWeights/TaskPanel.ui"
     self.ship = None
     self.preview = Preview.Preview()
Beispiel #28
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/shipAreasCurve/TaskPanel.ui"
     self.preview = Preview.Preview()
     self.ship = None
Beispiel #29
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/tankGZ/TaskPanel.ui"
     self.ship = None
     self.tanks = {}
Beispiel #30
0
def clPath():
    """ Gets the OpenCL kernels path
    @return OpenCL kernels path
    """
    path = Paths.modulePath() + "/OpenCL"
    return path
Beispiel #31
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/simCreate/TaskPanel.ui"
	def __init__(self):
                self.ui = Paths.modulePath() + "NR_TEST/Gui/Vend/TaskPanel.ui"
 def __init__(self):
     self.ui = Paths.modulePath() + "/shipCapacityCurve/TaskPanel.ui"
     self.tank = None
Beispiel #34
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/simPost/TaskPanel.ui"
 def __init__(self):
     """Constructor."""
     self.ui = Paths.modulePath() + "/shipLoadExample/TaskPanel.ui"
Beispiel #36
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/shipLoadExample/TaskPanel.ui"
 def __init__(self):
     """Constructor"""
     self.ui = Paths.modulePath() + "/shipCreateWeight/TaskPanel.ui"
Beispiel #38
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/shipHydrostatics/TaskPanel.ui"
     self.ship = None
Beispiel #39
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/shipCreateShip/TaskPanel.ui"
     self.preview = Preview.Preview()
Beispiel #40
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/tankGZ/TaskPanel.ui"
     self.ship = None
     self.tanks = {}
Beispiel #41
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/tankCreateTank/TaskPanel.ui"
Beispiel #42
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/shipGZ/TaskPanel.ui"
	def __init__(self):
		self.ui  = Paths.modulePath() + "/simRun/TaskPanel.ui"
		self.sim = False
Beispiel #44
0
 def __init__(self):
     self.ui = Paths.modulePath() + "NR_TEST/Gui/Vend/TaskPanel.ui"