예제 #1
0
파일: Plot.py 프로젝트: Koelie2/freecad
 def __init__(self, x, y, disp, xcb, ship):
     """ Constructor. performs plot and show it (Using pyxplot).
     @param x X coordinates.
     @param y Transversal areas.
     @param disp Ship displacement.
     @param xcb Bouyancy center length.
     @param ship Active ship instance.
     """
     if self.createDirectory():
         return
     if self.saveData(x,y,ship):
         return
     if self.saveLayout(x,y,disp,xcb,ship):
         return
     if self.execute():
         return
     ImageGui.open(self.path + 'areas.png')
예제 #2
0
파일: Plot.py 프로젝트: orlik80/free-cad
 def __init__(self, x, y, disp, draft, trim):
     """ Constructor. performs plot and show it (Using pyxplot).
     @param x Roll angles [deg].
     @param y GZ value [m].
     @param disp Ship displacement [tons].
     @param draft Ship draft [m].
     @param trim Ship trim angle [deg].
     """
     if self.createDirectory():
         return
     if self.saveData(x, y):
         return
     if self.saveLayout(x, y, disp, draft, trim):
         return
     if self.execute():
         return
     ImageGui.open(self.path + 'gz.png')
예제 #3
0
파일: Plot.py 프로젝트: RoyOnWheels/FreeCAD
 def __init__(self, x, y, disp, draft, trim):
     """ Constructor. performs plot and show it (Using pyxplot).
     @param x Roll angles [deg].
     @param y GZ value [m].
     @param disp Ship displacement [tons].
     @param draft Ship draft [m].
     @param trim Ship trim angle [deg].
     """
     if self.createDirectory():
         return
     if self.saveData(x,y):
         return
     if self.saveLayout(x,y, disp, draft, trim):
         return
     if self.execute():
         return
     ImageGui.open(self.path + 'gz.png')
예제 #4
0
 def __init__(self, x, y, disp, xcb, ship):
     """ Constructor. performs plot and show it (Using pyxplot).
     @param x X coordinates.
     @param y Transversal areas.
     @param disp Ship displacement.
     @param xcb Bouyancy center length.
     @param ship Active ship instance.
     """
     if self.createDirectory():
         return
     if self.saveData(x, y, ship):
         return
     if self.saveLayout(x, y, disp, xcb, ship):
         return
     if self.execute():
         return
     ImageGui.open(self.path + 'areas.png')
예제 #5
0
파일: Plot.py 프로젝트: Koelie2/freecad
 def __init__(self, ship, trim, drafts):
     """ Constructor. performs plot and show it (Using pyxplot).
     @param ship Selected ship instance
     @param trim Trim in degrees.
     @param drafts List of drafts to be performed.
     """
     if self.createDirectory():
         return
     if self.saveData(ship, trim, drafts):
         return
     if self.saveLayout(trim):
         return
     if self.execute():
         return
     ImageGui.open(self.path + 'volume.png')
     ImageGui.open(self.path + 'stability.png')
     ImageGui.open(self.path + 'coeffs.png')
예제 #6
0
파일: Plot.py 프로젝트: mrlukeparry/freecad
 def __init__(self, ship, trim, drafts):
     """ Constructor. performs plot and show it (Using pyxplot).
     @param ship Selected ship instance
     @param trim Trim in degrees.
     @param drafts List of drafts to be performed.
     """
     if self.createDirectory():
         return
     if self.saveData(ship, trim, drafts):
         return
     if self.saveLayout(trim):
         return
     if self.execute():
         return
     ImageGui.open(self.path + 'volume.png')
     ImageGui.open(self.path + 'stability.png')
     ImageGui.open(self.path + 'coeffs.png')