========================= Double (hwx.inspire.core) ========================= Store float value with units. Units can be None, length, mass, force, ... Values are get/set in base units unless under inspire.usingUnits(...). A value's units can be specified using a string like: "5 mm". -------------- Public Methods -------------- +---------------------------------------+ | castForGet_ (self, obj, value) | +---------------------------------------+ | castForSet_ (self, obj, value) | +---------------------------------------+ | create_ (self, obj) | +---------------------------------------+ | getGuiValue_ (self, obj, format='%g') | +---------------------------------------+ | getValue_ (self, obj) | +---------------------------------------+ | setValue_ (self, obj, value) | +---------------------------------------+ -------------- Method Details -------------- .. _castForGet: .. method:: castForGet(self, obj, value) Converts and returns the double value to gui units. .. _castForSet: .. method:: castForSet(self, obj, value) Converts and validates the double value before setting. :param obj: Object this attribute belongs to. :type obj: GeneralObject :param value: Value of the attribute to set. :type value: str, double :returns: Validated and converted value. :rtype: Double .. _create: .. method:: create(self, obj) Creates a double attribute for the specified object. .. _getGuiValue: .. method:: getGuiValue(self, obj, format='%g') Returns the formatted double value, as shown in the Property Editor. .. _getValue: .. method:: getValue(self, obj) Returns the double value for the specified object. .. _setValue: .. method:: setValue(self, obj, value) Sets the double value for the specified object.