Blender V5.0
transform_orientations.cc File Reference
#include <cctype>
#include <cstddef>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "DNA_armature_types.h"
#include "DNA_curve_types.h"
#include "DNA_meta_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_sequence_types.h"
#include "DNA_space_types.h"
#include "DNA_view3d_types.h"
#include "BLI_listbase.h"
#include "BLI_math_geom.h"
#include "BLI_math_matrix.h"
#include "BLI_math_rotation.h"
#include "BLI_math_vector.h"
#include "BLI_string_utf8.h"
#include "BLI_string_utils.hh"
#include "BLI_utildefines.h"
#include "BKE_action.hh"
#include "BKE_armature.hh"
#include "BKE_context.hh"
#include "BKE_curve.hh"
#include "BKE_editmesh.hh"
#include "BKE_layer.hh"
#include "BKE_report.hh"
#include "BKE_scene.hh"
#include "BLT_translation.hh"
#include "ED_armature.hh"
#include "ANIM_armature.hh"
#include "ANIM_bone_collections.hh"
#include "SEQ_select.hh"
#include "SEQ_transform.hh"
#include "transform.hh"
#include "transform_orientations.hh"

Go to the source code of this file.

Namespaces

namespace  blender
namespace  blender::ed
namespace  blender::ed::transform

Macros

#define SEL_F1   (1 << 0)
#define SEL_F2   (1 << 1)
#define SEL_F3   (1 << 2)

Functions

void blender::ed::transform::BIF_clearTransformOrientation (bContext *C)
static TransformOrientationblender::ed::transform::findOrientationName (ListBase *lb, const char *name)
static void blender::ed::transform::uniqueOrientationName (ListBase *lb, char *name)
static TransformOrientationblender::ed::transform::createViewSpace (bContext *C, ReportList *, const char *name, const bool overwrite)
static TransformOrientationblender::ed::transform::createObjectSpace (bContext *C, ReportList *, const char *name, const bool overwrite)
static TransformOrientationblender::ed::transform::createBoneSpace (bContext *C, ReportList *reports, const char *name, const bool overwrite)
static TransformOrientationblender::ed::transform::createCurveSpace (bContext *C, ReportList *reports, const char *name, const bool overwrite)
static TransformOrientationblender::ed::transform::createMeshSpace (bContext *C, ReportList *reports, const char *name, const bool overwrite)
static bool blender::ed::transform::test_rotmode_euler (short rotmode)
static void blender::ed::transform::axis_angle_to_gimbal_axis (float gmat[3][3], const float axis[3], const float angle)
bool blender::ed::transform::gimbal_axis_pose (Object *ob, const bPoseChannel *pchan, float gmat[3][3])
bool blender::ed::transform::gimbal_axis_object (Object *ob, float gmat[3][3])
bool blender::ed::transform::transform_orientations_create_from_axis (float mat[3][3], const float x[3], const float y[3], const float z[3])
bool blender::ed::transform::createSpaceNormal (float mat[3][3], const float normal[3])
bool blender::ed::transform::createSpaceNormalTangent (float mat[3][3], const float normal[3], const float tangent[3])
void blender::ed::transform::createSpaceNormalTangent_or_fallback (float mat[3][3], const float normal[3], const float tangent[3])
bool blender::ed::transform::BIF_createTransformOrientation (bContext *C, ReportList *reports, const char *name, bool use_view, bool activate, bool overwrite)
TransformOrientationblender::ed::transform::addMatrixSpace (bContext *C, float mat[3][3], const char *name, const bool overwrite)
void blender::ed::transform::BIF_removeTransformOrientation (bContext *C, TransformOrientation *target)
void blender::ed::transform::BIF_removeTransformOrientationIndex (bContext *C, int index)
void blender::ed::transform::BIF_selectTransformOrientation (bContext *C, TransformOrientation *target)
int blender::ed::transform::BIF_countTransformOrientation (const bContext *C)
void blender::ed::transform::applyTransformOrientation (const TransformOrientation *ts, float r_mat[3][3], char r_name[64])
static int blender::ed::transform::bone_children_clear_transflag (bPose &pose, bPoseChannel &pose_bone)
static int blender::ed::transform::armature_bone_transflags_update (Object &ob, bArmature *arm, ListBase *lb)
void blender::ed::transform::calc_orientation_from_type (const bContext *C, float r_mat[3][3])
static void blender::ed::transform::handle_armature_parent_orientation (Object *ob, float r_mat[3][3])
static void blender::ed::transform::handle_object_parent_orientation (Object *ob, float r_mat[3][3])
short blender::ed::transform::calc_orientation_from_type_ex (const Scene *scene, ViewLayer *view_layer, const View3D *v3d, const RegionView3D *rv3d, Object *ob, Object *obedit, short orientation_index, int pivot_point, float r_mat[3][3])
short blender::ed::transform::transform_orientation_matrix_get (bContext *C, TransInfo *t, short orient_index, const float custom[3][3], float r_spacemtx[3][3])
const char * blender::ed::transform::transform_orientations_spacename_get (TransInfo *t, const short orient_type)
void blender::ed::transform::transform_orientations_current_set (TransInfo *t, const short orient_index)
static uint blender::ed::transform::bm_mesh_elems_select_get_n__internal (BMesh *bm, BMElem **elems, const uint n, const BMIterType itype, const char htype)
static uint blender::ed::transform::bm_mesh_verts_select_get_n (BMesh *bm, BMVert **elems, const uint n)
static uint blender::ed::transform::bm_mesh_edges_select_get_n (BMesh *bm, BMEdge **elems, const uint n)
int blender::ed::transform::getTransformOrientation_ex (const Scene *scene, ViewLayer *view_layer, const View3D *v3d, Object *ob, Object *obedit, const short around, float r_normal[3], float r_plane[3])
int blender::ed::transform::getTransformOrientation (const bContext *C, float r_normal[3], float r_plane[3])
void blender::ed::transform::ED_getTransformOrientationMatrix (const Scene *scene, ViewLayer *view_layer, const View3D *v3d, Object *ob, Object *obedit, short around, float r_orientation_mat[3][3])

Macro Definition Documentation

◆ SEL_F1

#define SEL_F1   (1 << 0)

◆ SEL_F2

#define SEL_F2   (1 << 1)

◆ SEL_F3

#define SEL_F3   (1 << 2)