def __init__(self, obj): self._obj = obj self._refWidget = selection_widgets.BoundarySelector() self._refWidget.setReferences(obj.References) self._paramWidget = FreeCADGui.PySideUic.loadUi( FreeCAD.getHomePath() + "Mod/Fem/Resources/ui/FlowVelocity.ui") self._initParamWidget() self.form = [self._refWidget, self._paramWidget] analysis = obj.getParentGroup() self._mesh = membertools.get_single_member(analysis, "Fem::FemMeshObject") self._part = None if self._mesh is not None: self._part = femutils.get_part_to_mesh(self._mesh) self._partVisible = None self._meshVisible = None
def __init__(self, obj): self._obj = obj self._refWidget = selection_widgets.BoundarySelector() self._refWidget.setReferences(obj.References) self._paramWidget = FreeCADGui.PySideUic.loadUi( FreeCAD.getHomePath() + "Mod/Fem/Resources/ui/ElectrostaticPotential.ui") self._initParamWidget() self.form = [self._refWidget, self._paramWidget] analysis = obj.getParentGroup() self._mesh = None self._part = None if analysis is not None: self._mesh = membertools.get_single_member(analysis, "Fem::FemMeshObject") if self._mesh is not None: self._part = femutils.get_part_to_mesh(self._mesh) self._partVisible = None self._meshVisible = None QtCore.QObject.connect(self._paramWidget.capacitanceBodyBox, QtCore.SIGNAL("stateChanged(int)"), self.capacitanceBodyBox_checked)