Blender
V4.3
source
blender
editors
transform
transform_orientations.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
9
#pragma once
10
11
#include "
RE_engine.h
"
12
13
struct
bPoseChannel
;
14
struct
Object
;
15
struct
TransInfo
;
16
struct
TransformOrientation
;
17
18
bool
gimbal_axis_pose
(
Object
*ob,
const
bPoseChannel
*pchan,
float
gmat[3][3]);
19
bool
gimbal_axis_object
(
Object
*ob,
float
gmat[3][3]);
20
25
short
transform_orientation_matrix_get
(
bContext
*C,
26
TransInfo
*t,
27
short
orient_index,
28
const
float
custom[3][3],
29
float
r_spacemtx[3][3]);
30
const
char
*
transform_orientations_spacename_get
(
TransInfo
*t,
short
orient_type);
31
void
transform_orientations_current_set
(
TransInfo
*t,
short
orient_index);
32
36
bool
transform_orientations_create_from_axis
(
float
mat
[3][3],
37
const
float
x[3],
38
const
float
y[3],
39
const
float
z
[3]);
40
bool
createSpaceNormal
(
float
mat
[3][3],
const
float
normal[3]);
46
bool
createSpaceNormalTangent
(
float
mat
[3][3],
const
float
normal[3],
const
float
tangent[3]);
47
48
TransformOrientation
*
addMatrixSpace
(
bContext
*C,
49
float
mat
[3][3],
50
const
char
*name,
51
bool
overwrite);
52
void
applyTransformOrientation
(
const
TransformOrientation
*ts,
float
r_mat[3][3],
char
r_name[64]);
53
54
enum
{
55
ORIENTATION_NONE
= 0,
56
ORIENTATION_NORMAL
= 1,
57
ORIENTATION_VERT
= 2,
58
ORIENTATION_EDGE
= 3,
59
ORIENTATION_FACE
= 4,
60
};
61
#define ORIENTATION_USE_PLANE(ty) ELEM(ty, ORIENTATION_NORMAL, ORIENTATION_EDGE, ORIENTATION_FACE)
62
63
int
getTransformOrientation_ex
(
const
Scene
*scene,
64
ViewLayer
*view_layer,
65
const
View3D
*v3d,
66
Object
*ob,
67
Object
*obedit,
68
float
normal[3],
69
float
plane[3],
70
short
around);
71
int
getTransformOrientation
(
const
bContext
*C,
float
normal[3],
float
plane[3]);
RE_engine.h
z
SIMD_FORCE_INLINE const btScalar & z() const
Return the z value.
Definition
btQuadWord.h:117
Object
Definition
DNA_object_types.h:193
Scene
Definition
DNA_scene_types.h:1988
TransInfo
Definition
transform.hh:504
TransformOrientation
Definition
DNA_screen_types.h:322
TransformOrientation::mat
float mat[3][3]
Definition
DNA_screen_types.h:326
View3D
Definition
DNA_view3d_types.h:279
ViewLayer
Definition
DNA_layer_types.h:151
bContext
Definition
blenkernel/intern/context.cc:61
bPoseChannel
Definition
DNA_action_types.h:282
transform_orientations_create_from_axis
bool transform_orientations_create_from_axis(float mat[3][3], const float x[3], const float y[3], const float z[3])
Definition
transform_orientations.cc:337
createSpaceNormalTangent
bool createSpaceNormalTangent(float mat[3][3], const float normal[3], const float tangent[3])
Definition
transform_orientations.cc:408
getTransformOrientation_ex
int getTransformOrientation_ex(const Scene *scene, ViewLayer *view_layer, const View3D *v3d, Object *ob, Object *obedit, float normal[3], float plane[3], short around)
Definition
transform_orientations.cc:896
applyTransformOrientation
void applyTransformOrientation(const TransformOrientation *ts, float r_mat[3][3], char r_name[64])
Definition
transform_orientations.cc:537
createSpaceNormal
bool createSpaceNormal(float mat[3][3], const float normal[3])
Definition
transform_orientations.cc:385
transform_orientations_spacename_get
const char * transform_orientations_spacename_get(TransInfo *t, short orient_type)
Definition
transform_orientations.cc:781
getTransformOrientation
int getTransformOrientation(const bContext *C, float normal[3], float plane[3])
Definition
transform_orientations.cc:1430
ORIENTATION_FACE
@ ORIENTATION_FACE
Definition
transform_orientations.hh:59
ORIENTATION_EDGE
@ ORIENTATION_EDGE
Definition
transform_orientations.hh:58
ORIENTATION_VERT
@ ORIENTATION_VERT
Definition
transform_orientations.hh:57
ORIENTATION_NONE
@ ORIENTATION_NONE
Definition
transform_orientations.hh:55
ORIENTATION_NORMAL
@ ORIENTATION_NORMAL
Definition
transform_orientations.hh:56
addMatrixSpace
TransformOrientation * addMatrixSpace(bContext *C, float mat[3][3], const char *name, bool overwrite)
Definition
transform_orientations.cc:475
gimbal_axis_object
bool gimbal_axis_object(Object *ob, float gmat[3][3])
Definition
transform_orientations.cc:316
transform_orientations_current_set
void transform_orientations_current_set(TransInfo *t, short orient_index)
Definition
transform_orientations.cc:809
transform_orientation_matrix_get
short transform_orientation_matrix_get(bContext *C, TransInfo *t, short orient_index, const float custom[3][3], float r_spacemtx[3][3])
Definition
transform_orientations.cc:725
gimbal_axis_pose
bool gimbal_axis_pose(Object *ob, const bPoseChannel *pchan, float gmat[3][3])
Definition
transform_orientations.cc:278
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0