def __init__(self): """ Class constructor, that loads the user interface and set minimum data as empty values. """ self.ui = Paths.modulePath() + "/surfConvert/TaskPanel.ui" self.objs = [] self.edges = [] self.faces = [] self.surf = None self.preview = None
class SurfWorkbench ( Workbench ): """ @brief Workbench of Ship design module. Here toolbars & icons are append. """ from surfUtils import Paths, Translator import SurfGui Icon = Paths.iconsPath() + "/Ico.png" MenuText = str(Translator.translate("Surface tools")) ToolTip = str(Translator.translate("Surface tools")) def Initialize(self): # ToolBar list = ["Surf_IsoCurve", "Surf_SliceCurve", "Surf_Border", "Surf_Convert"] self.appendToolbar("Surface tools",list) # Menu list = ["Surf_IsoCurve", "Surf_SliceCurve", "Surf_Border", "Surf_Convert"] self.appendMenu("Surface tools",list)
def __init__(self): self.ui = Paths.modulePath() + "/surfISOCurve/TaskPanel.ui" self.preview = Preview.Preview() self.tracker = None
def GetResources(self): from surfUtils import Paths, Translator IconPath = Paths.iconsPath() + "/ConvertIco.png" MenuText = str(Translator.translate('Convert to 4 sides surface')) ToolTip = str(Translator.translate('Convert a surface (or couple of them) into 4 sides surface')) return {'Pixmap' : IconPath, 'MenuText': MenuText, 'ToolTip': ToolTip}
def GetResources(self): from surfUtils import Paths, Translator IconPath = Paths.iconsPath() + "/BorderIco.png" MenuText = str(Translator.translate('Get border')) ToolTip = str(Translator.translate('Get edges from objects')) return {'Pixmap' : IconPath, 'MenuText': MenuText, 'ToolTip': ToolTip}
def GetResources(self): from surfUtils import Paths, Translator IconPath = Paths.iconsPath() + "/SliceIco.png" MenuText = str(Translator.translate('Get surface slice')) ToolTip = str(Translator.translate('Get surface intersection with coordinates planes')) return {'Pixmap' : IconPath, 'MenuText': MenuText, 'ToolTip': ToolTip}
def GetResources(self): from surfUtils import Paths, Translator IconPath = Paths.iconsPath() + "/IsoCurveIco.png" MenuText = str(Translator.translate('Get ISO curve')) ToolTip = str(Translator.translate('Get ISO curve from surface')) return {'Pixmap' : IconPath, 'MenuText': MenuText, 'ToolTip': ToolTip}
def __init__(self): self.ui = Paths.modulePath() + "/surfSlice/TaskPanel.ui" self.preview = Preview.Preview() self.tracker = None self.dir = Vector(0.0,0.0,1.0)
def __init__(self): self.ui = Paths.modulePath() + "/surfSlice/TaskPanel.ui" self.preview = Preview.Preview() self.tracker = None self.dir = Vector(0.0, 0.0, 1.0)