Example #1
0
    def xFloatImposeMax(self, max_value):

        max_value = double(max_value)
        # AC_ERROR acFloatImposeMax(
        #   acNode hNode,
        #   double imposedMaximum)
        harenac.acFloatImposeMax(self.hxnode, max_value)
Example #2
0
    def xFloatSetValue(self, value):

        value = double(value)
        # AC_ERROR acFloatSetValue(
        #   acNode hNode,
        #   double value)
        harenac.acFloatSetValue(self.hxnode, value)
Example #3
0
    def xFloatImposeMin(self, min_value):

        min_value = double(min_value)
        # AC_ERROR acFloatImposeMin(
        #   acNode hNode,
        #   double imposedMinimum)
        harenac.acFloatImposeMin(self.hxnode, min_value)
Example #4
0
    def xFloatGetInc(self):

        increment = double(0)
        # AC_ERROR acFloatGetInc(
        #   acNode hNode,
        #   double* pIncrement)
        harenac.acFloatGetInc(self.hxnode, byref(increment))

        return increment.value
Example #5
0
    def xFloatGetMax(self):

        max_value = double(0)
        # AC_ERROR acFloatGetMax(
        #   acNode hNode,
        #   double* pMaximum)
        harenac.acFloatGetMax(self.hxnode, byref(max_value))

        return max_value.value
Example #6
0
    def xFloatGetMin(self):

        min_value = double(0)
        # AC_ERROR acFloatGetMin(
        #   acNode hNode,
        #   double* pMinimum)
        harenac.acFloatGetMin(self.hxnode, byref(min_value))

        return min_value.value
Example #7
0
    def xFloatGetValue(self):

        value = double(0)
        # AC_ERROR acFloatGetValue(
        #   acNode hNode,
        #   double* pValue)
        harenac.acFloatGetValue(self.hxnode, byref(value))

        return value.value
Example #8
0
    def xEnumEntryGetNumericValue(self):

        double_value = double(0)
        # AC_ERROR acEnumEntryGetNumericValue(
        #   acNode hNode,
        #   double* pValue)
        harenac.acEnumEntryGetNumericValue(self.hxnode, byref(double_value))

        return double_value.value