Blender
V3.3
|
Public Attributes | |
const char * | name |
const char * | name_plural |
const char * | name_short |
const char * | name_alt |
const char * | name_display |
const char * | identifier |
double | scalar |
double | bias |
int | flag |
double bUnitDef::bias |
Needed for converting temperatures.
Definition at line 92 of file unit.c.
Referenced by BKE_unit_apply_preferred_unit(), unit_as_string(), and unit_scale_str().
int bUnitDef::flag |
Definition at line 93 of file unit.c.
Referenced by unit_as_string(), unit_find(), and unit_replace().
const char* bUnitDef::identifier |
When NULL, a transformed version of the name will be taken in some cases.
Definition at line 88 of file unit.c.
Referenced by BKE_unit_identifier_get().
const char* bUnitDef::name |
Definition at line 74 of file unit.c.
Referenced by BKE_unit_name_to_alt(), BKE_unit_replace_string(), is_valid_unit_collection(), unit_best_fit(), unit_detect_from_str(), unit_find(), and unit_replace().
const char* bUnitDef::name_alt |
Keyboard-friendly ASCII-only version of name_short, can be NULL. If name_short has non-ASCII chars, name_alt should be present.
Definition at line 83 of file unit.c.
Referenced by unit_find(), and unit_replace().
const char* bUnitDef::name_plural |
Abused a bit for the display name.
Definition at line 76 of file unit.c.
Referenced by unit_find(), and unit_replace().
const char* bUnitDef::name_short |
This is used for display.
Definition at line 78 of file unit.c.
Referenced by unit_as_string(), unit_find(), and unit_replace().
double bUnitDef::scalar |
Definition at line 90 of file unit.c.
Referenced by BKE_unit_apply_preferred_unit(), BKE_unit_base_scalar(), BKE_unit_closest_scalar(), BKE_unit_replace_string(), unit_as_string(), unit_as_string_split_pair(), unit_dual_convert(), and unit_scale_str().