|
Blender V5.0
|
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 107 of file unit.cc.
Referenced by BKE_unit_apply_preferred_unit(), unit_as_string(), and unit_scale_str().
| int bUnitDef::flag |
Definition at line 108 of file unit.cc.
Referenced by BKE_unit_is_suppressed(), unit_as_string(), unit_find(), and unit_replace().
| const char* bUnitDef::identifier |
When nullptr, a transformed version of the name will be taken in some cases.
Definition at line 103 of file unit.cc.
Referenced by BKE_unit_identifier_get().
| const char* bUnitDef::name |
Definition at line 89 of file unit.cc.
Referenced by BKE_unit_name_get(), BKE_unit_name_to_alt(), BKE_unit_replace_string(), is_valid_unit_collection(), unit_best_fit(), unit_find(), unit_find_in_collection(), and unit_replace().
| const char* bUnitDef::name_alt |
Keyboard-friendly ASCII-only version of name_short, can be nullptr. If name_short has non-ASCII chars, name_alt should be present.
Definition at line 98 of file unit.cc.
Referenced by unit_find(), and unit_replace().
| const char* bUnitDef::name_display |
| const char* bUnitDef::name_plural |
Abused a bit for the display name.
Definition at line 91 of file unit.cc.
Referenced by unit_find(), and unit_replace().
| const char* bUnitDef::name_short |
This is used for display.
Definition at line 93 of file unit.cc.
Referenced by unit_as_string(), unit_find(), and unit_replace().
| double bUnitDef::scalar |
Definition at line 105 of file unit.cc.
Referenced by BKE_unit_apply_preferred_unit(), BKE_unit_base_scalar(), BKE_unit_closest_scalar(), BKE_unit_replace_string(), BKE_unit_scalar_get(), unit_as_string(), unit_as_string_split_pair(), unit_dual_convert(), and unit_scale_str().