コード例 #1
0
    def setObject(self, p_object):
        """:type p_object: orm.Mask | orm.ConcretePluginMask | None"""
        if self.__mask is not None:
            for variable in self.__mask.variables:
                disconnect(variable.signals[Abstract], self.updateValues)

        self.__mask = p_object

        for variable in self.__mask.variables:
            connect(variable.signals[Abstract], self.updateValues)

        self.updateValues()
コード例 #2
0
    def setObject(self, p_object):
        # """:type p_object: orm.SourceShape | orm.ConcretePluginSourceShape"""

        if self.__p_object is not None:
            for variable in self.__p_object.variables:
                disconnect(variable.signals[Abstract], self.__onValueChanged)

        self.__p_object = p_object

        for variable in self.__p_object.variables:
            connect(variable.signals[Abstract], self.__onValueChanged)

        self.__onValueChanged()
コード例 #3
0
ファイル: peb.py プロジェクト: xthebat/optolithium
    def setObject(self, p_object):
        if self.__peb is not None:
            disconnect(self.__peb.time.signals[Abstract],
                       self.__onValueChanged)
            disconnect(self.__peb.temp.signals[Abstract],
                       self.__onValueChanged)

        self.__peb = p_object

        connect(self.__peb.time.signals[Abstract], self.__onValueChanged)
        connect(self.__peb.temp.signals[Abstract], self.__onValueChanged)

        self.__onValueChanged()
コード例 #4
0
ファイル: peb.py プロジェクト: xthebat/optolithium
    def setPeb(self, peb):
        if self.__peb is not None:
            disconnect(self.__peb.time.signals[Abstract],
                       self.__onValueChanged)
            disconnect(self.__peb.temp.signals[Abstract],
                       self.__onValueChanged)

        self.__peb = peb
        self.__profile_graph.setObject(peb)

        connect(self.__peb.time.signals[Abstract], self.__onValueChanged)
        connect(self.__peb.temp.signals[Abstract], self.__onValueChanged)

        self.__onValueChanged()
コード例 #5
0
    def developer(self, developer):
        """:type developer: orm.DeveloperInterface or None"""
        if developer is not None:
            self.__developer = developer
            self.update_graph()

            if isinstance(developer, orm.DeveloperExpr):
                for obj in developer.object_values:
                    connect(obj.signals[orm.DeveloperExprArgValue.value], self.update_graph)
        else:
            if isinstance(self.__developer, orm.DeveloperExpr):
                for obj in self.__developer.object_values:
                    disconnect(obj.signals[orm.DeveloperExprArgValue.value], self.update_graph)
            self.__developer = None
            self._ax.clear()
            self.redraw()
コード例 #6
0
ファイル: resist.py プロジェクト: xthebat/optolithium
            def setObject(self, resist):
                """:type resist: options.structures.Resist"""
                if self.__resist is not None:
                    disconnect(
                        self.__resist.peb.signals[orm.PebParameters.ln_ar],
                        self.__onValueChanged)
                    disconnect(self.__resist.peb.signals[orm.PebParameters.ea],
                               self.__onValueChanged)

                self.__resist = resist

                connect(self.__resist.peb.signals[orm.PebParameters.ln_ar],
                        self.__onValueChanged)
                connect(self.__resist.peb.signals[orm.PebParameters.ea],
                        self.__onValueChanged)

                self.__onValueChanged()
コード例 #7
0
    def setObject(self, p_object):
        """:type p_object: orm.Mask | orm.ConcretePluginMask | None"""

        if self.__mask is not None:
            for variable in self.__mask.variables:
                disconnect(variable.signals[Abstract], self.__onValueChanged)
            disconnect(self.__mask.signals[orm.Mask.background],
                       self.__onValueChanged)
            disconnect(self.__mask.signals[orm.Mask.phase],
                       self.__onValueChanged)

        self.__mask = p_object

        for variable in self.__mask.variables:
            connect(variable.signals[Abstract], self.__onValueChanged)
        connect(self.__mask.signals[orm.Mask.background],
                self.__onValueChanged)
        connect(self.__mask.signals[orm.Mask.phase], self.__onValueChanged)

        self.__onValueChanged()