|
Blender V5.0
|
#include <fmt/format.h>#include "BKE_unit.hh"#include "BLI_math_matrix.h"#include "BLI_math_rotation.h"#include "BLT_translation.hh"#include "RNA_access.hh"#include "RNA_enum_types.hh"#include "interface_intern.hh"Go to the source code of this file.
Functions | |
| static std::string | format_unit_value (float value, PropertySubType subtype, uiLayout *layout) |
| static std::string | format_coefficient (float value) |
| static void | rotation_mode_menu_callback (bContext *, uiLayout *layout, void *) |
| static void | draw_matrix_template (uiLayout &layout, PointerRNA &ptr, PropertyRNA &prop) |
| void | uiTemplateMatrix (uiLayout *layout, PointerRNA *ptr, const StringRefNull propname) |
Variables | |
| static int | rotation_mode_index = ROT_MODE_EUL |
|
static |
Definition at line 86 of file interface_template_matrix.cc.
References angle(), uiLayout::block(), uiLayout::box(), col, uiLayout::column(), copy_m3_m4(), format_coefficient(), format_unit_value(), IFACE_, is_orthogonal_m3(), uiLayout::label(), mat4_decompose(), EnumPropertyItem::name, PROP_ANGLE, PROP_TRANSLATION, ptr, quat_to_axis_angle(), quat_to_eulO(), rna_enum_object_rotation_mode_items, RNA_property_float_get_array(), ROT_MODE_AXISANGLE, ROT_MODE_QUAT, rotation_mode_index, rotation_mode_menu_callback(), uiLayout::row(), RPT_, size(), TIP_, UI_but_type_set_menu_from_pulldown(), UI_UNIT_X, UI_UNIT_Y, uiDefMenuBut(), uiItemL_respect_property_split(), and EnumPropertyItem::value.
Referenced by uiTemplateMatrix().
|
static |
Definition at line 48 of file interface_template_matrix.cc.
Referenced by draw_matrix_template().
|
static |
Definition at line 27 of file interface_template_matrix.cc.
References BKE_unit_value_as_string(), BKE_unit_value_scale(), uiLayout::block(), RNA_SUBTYPE_UNIT, RNA_SUBTYPE_UNIT_VALUE, RNA_TRANSLATION_PREC_DEFAULT, UI_MAX_DRAW_STR, and uiBlock::unit.
Referenced by draw_matrix_template().
Definition at line 61 of file interface_template_matrix.cc.
References uiLayout::block(), EnumPropertyItem::description, i, IFACE_, EnumPropertyItem::name, RNA_enum_items_count(), rna_enum_object_rotation_mode_items, rotation_mode_index, Row, TIP_, UI_but_flag_disable(), UI_but_flag_enable(), UI_BUT_UNDO, UI_SELECT_DRAW, UI_UNIT_X, UI_UNIT_Y, and uiDefButI().
Referenced by draw_matrix_template().
| void uiTemplateMatrix | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const StringRefNull | propname ) |
Definition at line 216 of file interface_template_matrix.cc.
References blender::StringRefNull::c_str(), draw_matrix_template(), PROP_FLOAT, PROP_MATRIX, ptr, RNA_property_array_length(), RNA_property_subtype(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), and RNA_warning.
|
static |
Definition at line 59 of file interface_template_matrix.cc.
Referenced by draw_matrix_template(), and rotation_mode_menu_callback().