Functions | |
| GEOMLIBEXPORT double | ConvertUnit (double val, const UNITCONV *c) |
| GEOMLIBEXPORT double | ConvertUnitInv (double val, const UNITCONV *conv) |
| GEOMLIBEXPORT char * | ConvertUnitStr (char *str, int len, double val, const UNITCONV *conv) |
| GEOMLIBEXPORT double | ConvertUnitStrInv (char *str, const UNITCONV *conv) |
| GEOMLIBEXPORT UNITCONV * | GetUnitConversion (int type, int fromcode, int tocode, UNITCONV *conv) |
| GEOMLIBEXPORT UNITCONV * | GetUnitConversionIdentity (int type, UNITCONV *conv) |
| GEOMLIBEXPORT const MISTRING & | GetUnitName (int type, int num) |
| GEOMLIBEXPORT const MISTRING & | GetUnitSymbol (int type, int num) |
| MENUITEM * | MxCreateUnitMenuItems (int type, int dft, XtCallbackProc cbfunc, UINT32 flags=0) |
| Widget | MxCreateUnitOptionMenu (Widget pwidget, const char *label, int type, int dft, XtCallbackProc cbfunc, void *udata, UINT32 flags=0, const Arg *arglist=0, int argcount=0) |
| Widget | MxCreateUnitOptionMenuExt (Widget pwidget, const char *label, int type, int dft, XtCallbackProc cbfunc, void *udata, UINT32 flags, const Arg *arglist, int argcount) |
| Widget | MxCreateUnitOptionMenuF (Widget pwidget, const char *label, int type, int dft, XtCallbackProc cbfunc, void *udata, UINT32 flags) |
| GEOMLIBEXPORT double ConvertUnit | ( | double | val, | |
| const UNITCONV * | c | |||
| ) |
Perform unit conversion on numeric value.
| val | Value to convert |
| GEOMLIBEXPORT double ConvertUnitInv | ( | double | val, | |
| const UNITCONV * | conv | |||
| ) |
Perform inverse unit conversion on numeric value.
| val | Value to convert |
| GEOMLIBEXPORT char* ConvertUnitStr | ( | char * | str, | |
| int | len, | |||
| double | val, | |||
| const UNITCONV * | conv | |||
| ) |
Special unit conversion for string data types (number to string).
| GEOMLIBEXPORT double ConvertUnitStrInv | ( | char * | str, | |
| const UNITCONV * | conv | |||
| ) |
Special unit conversion for string data types (string to number).
Setup unit conversion structure between units of given type.
| type | Unit type (UNIT_TYPE_...) |
| fromcode | Unit code to convert from |
| tocode | Unit code to convert to |
| conv | Unit conversion structure to fill in |
Setup "identity" unit conversion for given type.
| type | Unit type (UNIT_TYPE_...) |
| conv | Unit conversion structure to fill in |
| GEOMLIBEXPORT const MISTRING& GetUnitName | ( | int | type, | |
| int | num | |||
| ) |
Get name for given unit type/number.
| type | Unit type (UNIT_TYPE_...) |
| num | Unit number within type |
| GEOMLIBEXPORT const MISTRING& GetUnitSymbol | ( | int | type, | |
| int | num | |||
| ) |
Get "symbol" for given unit type/number.
| type | Unit type (UNIT_TYPE_...) |
| num | Unit number within type |
Create MENUITEM array for all defined units of a specified type.
| type | Unit type |
| dft | Default unit number |
| cbfunc | Callback function |
| flags | Flags (UNITMENU_...) |
| Widget MxCreateUnitOptionMenu | ( | Widget | pwidget, | |
| const char * | label, | |||
| int | type, | |||
| int | dft, | |||
| XtCallbackProc | cbfunc, | |||
| void * | udata, | |||
| UINT32 | flags = 0, |
|||
| const Arg * | arglist = 0, |
|||
| int | argcount = 0 | |||
| ) |
Create OptionMenu for specifying units (feet, meters, etc.
..).
| pwidget | Parent widget to contain OptionMenu |
| label | Label of OptionMenu |
| type | Unit type |
| dft | Default unit number |
| cbfunc | Callback function |
| udata | Value to use for menu item XmNuserData resource |
| flags | Flags (UNITMENU_...) |
| arglist | Arguments for widget attachment |
| argcount | Number of arguments |
| Widget MxCreateUnitOptionMenuExt | ( | Widget | pwidget, | |
| const char * | label, | |||
| int | type, | |||
| int | dft, | |||
| XtCallbackProc | cbfunc, | |||
| void * | udata, | |||
| UINT32 | flags, | |||
| const Arg * | arglist, | |||
| int | argcount | |||
| ) | [inline] |
Create OptionMenu for specifying units (feet, meters, etc.
..).
| pwidget | Parent widget to contain OptionMenu |
| label | Label of OptionMenu |
| type | Unit type |
| dft | Default unit number |
| cbfunc | Callback function |
| udata | Value to use for menu item XmNuserData resource |
| flags | Flags (UNITMENU_...) |
| arglist | Arguments for widget attachment |
| argcount | Number of arguments |
Definition at line 126 of file unitmenu.h.
| Widget MxCreateUnitOptionMenuF | ( | Widget | pwidget, | |
| const char * | label, | |||
| int | type, | |||
| int | dft, | |||
| XtCallbackProc | cbfunc, | |||
| void * | udata, | |||
| UINT32 | flags | |||
| ) | [inline] |
Create OptionMenu for specifying units (feet, meters, etc.
..).
| pwidget | Parent widget |
| label | Label of OptionMenu |
| type | Unit type |
| dft | Default unit number |
| cbfunc | Callback function |
| udata | Value to use for menu item XmNuserData resource |
| flags | Flags (UNITMENU_...) |
Definition at line 142 of file unitmenu.h.
1.5.2