E57 Foundation API v1.1.312
Aug. 10, 2011
|
Create an E57 element for storing a fixed point number.
An ScaledIntegerNode stores an integer value, a lower and upper bound, and two conversion factors. The ScaledIntegerNode class corresponds to the ASTM E57 standard ScaledInteger element. See the class discussion at bottom of ScaledIntegerNode page for more details. The destImageFile indicates which ImageFile the ScaledIntegerNode will eventually be attached to. A node is attached to an ImageFile by adding it underneath the predefined root of the ImageFile (gotten from ImageFile::root). It is not an error to fail to attach the ScaledIntegerNode to the destImageFile. It is an error to attempt to attach the ScaledIntegerNode to a different ImageFile. Warning: it is an error to give an rawValue outside the minimum / maximum bounds, even if the ScaledIntegerNode is destined to be used in a CompressedVectorNode prototype (where the rawValue will be ignored). If the ScaledIntegerNode is to be used in a prototype, it is recommended to specify a rawValue = 0 if 0 is within bounds, or a rawValue = minimum if 0 is not within bounds.
|