示例#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
示例#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()
示例#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
示例#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()
示例#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
示例#6
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
示例#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
示例#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
示例#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
示例#10
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() == 2):   # Wigley (Katamaran)
         App.open(path + "wigley_katamaran.fcstd")
     return True
示例#11
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/simCreate/TaskPanel.ui"
示例#12
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/shipGZ/TaskPanel.ui"
示例#13
0
def path():
    """ Gets the OpenCL kernels path
    @return OpenCL kernels path
    """
    path = Paths.modulePath() + "/resources/opencl"
    return path
示例#14
0
 def __init__(self):
     """Constructor"""
     self.ui = Paths.modulePath() + "/shipCreateWeight/TaskPanel.ui"
示例#15
0
 def __init__(self):
     """Constructor."""
     self.ui = Paths.modulePath() + "/shipLoadExample/TaskPanel.ui"
示例#16
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/simRun/TaskPanel.ui"
     self.sim = False
示例#17
0
 def __init__(self):
     self.ui  = Paths.modulePath() + "/simPost/TaskPanel.ui"
示例#18
0
def path():
    """ Gets the OpenCL kernels path
    @return OpenCL kernels path
    """
    path = Paths.modulePath() + "/resources/opencl"
    return path
示例#19
0
 def __init__(self):
     """Constructor"""
     self.ui = Paths.modulePath() + "/shipCreateShip/TaskPanel.ui"
     self.preview = Preview.Preview()
示例#20
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/tankWeights/TaskPanel.ui"
     self.ship = None
     self.preview = Preview.Preview()
示例#21
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/shipLoadExample/TaskPanel.ui"
示例#22
0
	def __init__(self):
		self.ui = Paths.modulePath() + "/tankCreateTank/TaskPanel.ui"
示例#23
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/shipCapacityCurve/TaskPanel.ui"
     self.tank = None
示例#24
0
def clPath():
    """ Gets the OpenCL kernels path
    @return OpenCL kernels path
    """
    path = Paths.modulePath() + "/OpenCL"
    return path
示例#25
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/shipHydrostatics/TaskPanel.ui"
     self.ship = None
     self.running = False
示例#26
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/shipAreasCurve/TaskPanel.ui"
     self.preview = Preview.Preview()
     self.ship = None
示例#27
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/tankWeights/TaskPanel.ui"
     self.ship = None
     self.preview = Preview.Preview()
示例#28
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/shipAreasCurve/TaskPanel.ui"
     self.preview = Preview.Preview()
     self.ship = None
示例#29
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/tankGZ/TaskPanel.ui"
     self.ship = None
     self.tanks = {}
示例#30
0
def clPath():
    """ Gets the OpenCL kernels path
    @return OpenCL kernels path
    """
    path = Paths.modulePath() + "/OpenCL"
    return path
示例#31
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/simCreate/TaskPanel.ui"
示例#32
0
	def __init__(self):
                self.ui = Paths.modulePath() + "NR_TEST/Gui/Vend/TaskPanel.ui"
示例#33
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/shipCapacityCurve/TaskPanel.ui"
     self.tank = None
示例#34
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/simPost/TaskPanel.ui"
示例#35
0
 def __init__(self):
     """Constructor."""
     self.ui = Paths.modulePath() + "/shipLoadExample/TaskPanel.ui"
示例#36
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/shipLoadExample/TaskPanel.ui"
示例#37
0
 def __init__(self):
     """Constructor"""
     self.ui = Paths.modulePath() + "/shipCreateWeight/TaskPanel.ui"
示例#38
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/shipHydrostatics/TaskPanel.ui"
     self.ship = None
示例#39
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/shipCreateShip/TaskPanel.ui"
     self.preview = Preview.Preview()
示例#40
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/tankGZ/TaskPanel.ui"
     self.ship = None
     self.tanks = {}
示例#41
0
 def __init__(self):
     self.ui = Paths.modulePath() + "/tankCreateTank/TaskPanel.ui"
示例#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
示例#44
0
 def __init__(self):
     self.ui = Paths.modulePath() + "NR_TEST/Gui/Vend/TaskPanel.ui"