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