def onChanged(self, selfobj, prop):
        """ Print the name of the property that has changed """
        # Debug mode
        if WF.verbose() != 0:
            App.Console.PrintMessage("Change property : " + str(prop) + "\n")

        WF_Point.onChanged(self, selfobj, prop)
Esempio n. 2
0
    def onChanged(self, selfobj, prop):
        """ Run when a proterty change.
        """
        if M_DEBUG:
            print("running CenterLinePoint.onChanged !")
            print("Change property : " + str(prop))

        WF_Point.onChanged(self, selfobj, prop)

        if prop == "Parametric":
            if 'Parametric' in selfobj.PropertiesList:
                if selfobj.Parametric == 'Not':
                    selfobj.setEditorMode("NumberLinePart", 1)
                    selfobj.setEditorMode("IndexPart", 1)
                else:
                    selfobj.setEditorMode("NumberLinePart", 0)
                    selfobj.setEditorMode("IndexPart", 0)
            propertiesPoint(selfobj.Label, self.color)

        if prop == "IndexPart":
            selfobj.Proxy.execute(selfobj)

        if prop == 'NumberLinePart':
            if selfobj.NumberLinePart <= 1:
                selfobj.NumberLinePart = 2
            elif selfobj.NumberLinePart > 100:
                selfobj.NumberLinePart = 100
            selfobj.Proxy.execute(selfobj)
    def onChanged(self, selfobj, prop):
        if WF.verbose():
            App.Console.PrintMessage("Change property : " + str(prop) + "\n")

        if m_debug:
            print("running CenterLinePoint.onChanged !")

        WF_Point.onChanged(self, selfobj, prop)

        if prop == "Parametric":
            if 'Parametric' in selfobj.PropertiesList:
                if selfobj.Parametric == 'Not':
                    selfobj.setEditorMode("NumberLinePart", 1)
                    selfobj.setEditorMode("IndexPart", 1)
                else:
                    selfobj.setEditorMode("NumberLinePart", 0)
                    selfobj.setEditorMode("IndexPart", 0)
            propertiesPoint(selfobj.Label, self.color)

        if prop == "IndexPart":
            selfobj.Proxy.execute(selfobj)

        if prop == 'NumberLinePart':
            if selfobj.NumberLinePart <= 1:
                selfobj.NumberLinePart = 2
            elif selfobj.NumberLinePart > 100:
                selfobj.NumberLinePart = 100
            selfobj.Proxy.execute(selfobj)
    def onChanged(self, selfobj, prop):
        if WF.verbose():
            App.Console.PrintMessage("Change property : " + str(prop) + "\n")

        if M_DEBUG:
            print("running CenterFacePoint.onChanged !")

        WF_Point.onChanged(self, selfobj, prop)

        if prop == "Parametric":
            if 'Parametric' in selfobj.PropertiesList:
                if selfobj.Parametric == 'Not':
                    pass
                else:
                    pass
            propertiesPoint(selfobj.Label, self.color)
Esempio n. 5
0
    def onChanged(self, selfobj, prop):
        """ Run when a proterty change.
        """
        if M_DEBUG:
            print("running CenterLinePoint.onChanged !")
            print("Change property : " + str(prop))

        WF_Point.onChanged(self, selfobj, prop)

        if prop == "Parametric":
            if 'Parametric' in selfobj.PropertiesList:
                if selfobj.Parametric == 'Not':
                    selfobj.setEditorMode("Distance", 1)
                else:
                    selfobj.setEditorMode("Distance", 0)
            propertiesPoint(selfobj.Label, self.color)

        if prop == "Distance":
            selfobj.Proxy.execute(selfobj)
    def onChanged(self, selfobj, prop):
        if WF.verbose():
            App.Console.PrintMessage("Change property : " + str(prop) + "\n")

        if m_debug:
            print("running AlongLinePoint.onChanged !")

        WF_Point.onChanged(self, selfobj, prop)

        if prop == "Parametric":
            if 'Parametric' in selfobj.PropertiesList:
                if selfobj.Parametric == 'Not':
                    selfobj.setEditorMode("Distance", 1)
                else:
                    selfobj.setEditorMode("Distance", 0)
            propertiesPoint(selfobj.Label, self.color)

        if prop == "Distance":
            selfobj.Proxy.execute(selfobj)