The ANNSMARTDISTANCE contains information about the unit to be used for a ruler.
|uStructSize||Size of this structure. Use sizeof(ANNSMARTDISTANCE)|
|dDistance||Distance in appropriate units. The field uSmartUnit identifies the unit.|
|uRulerUnit||Value that specifies the type of measurement. Can be any one of the following constants:|
|ANNUNIT_SMART_METRIC|| Smart Metric.|
|ANNUNIT_SMART_ENGLISH|| Smart English.|
|If uRulerUnit is ANNUNIT_SMART_METRIC or ANNUNIT_SMART_ENGLISH, then the actual units can be found in the uSmartUnit member. If uRulerUnit is not one ANNUNIT_SMART_METRIC or ANNUNIT_SMART_ENGLISH, then uRulerUnit contains the unit constant.|
|uSmartUnit||Value that specifies the base unit of measure. Always contains the unit constant. This can be any of the ANNUNIT_XXX constants EXCEPT ANNUNIT_SMART_METRIC or ANNUNIT_SMART_ENGLISH.|
A "smart unit" is a unit that can be automatically promoted to the next higher unit. For example, suppose you have a ruler that is 13 inches long. If the units of the ruler are ANNUNIT_INCHES, then the length is 13. However, if the units of the ruler are ANNUNIT_SMART_ENGLISH, then the length of the ruler is automatically promoted to feet. The length in this case would be 1.0833 feet.
For more information, see the documentation for L_AnnGetDistance2.
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries