|
Blender V5.3
|
#include <cmath>#include <cstdlib>#include <cstring>#include "DNA_armature_types.h"#include "DNA_constraint_types.h"#include "DNA_mesh_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "DRW_render.hh"#include "BLI_listbase_wrapper.hh"#include "BLI_math_color_c.hh"#include "BLI_math_matrix_c.hh"#include "BLI_math_matrix_types.hh"#include "BLI_math_rotation_c.hh"#include "BLI_math_vector_c.hh"#include "BLI_utildefines.hh"#include "BKE_action.hh"#include "BKE_armature.hh"#include "BKE_deform.hh"#include "BKE_object.hh"#include "BKE_pose.hh"#include "DEG_depsgraph_query.hh"#include "ED_armature.hh"#include "ED_view3d.hh"#include "ANIM_armature.hh"#include "ANIM_bonecolor.hh"#include "UI_resources.hh"#include "draw_cache.hh"#include "draw_context_private.hh"#include "draw_manager_text.hh"#include "overlay_armature.hh"#include "draw_cache_impl.hh"Go to the source code of this file.
Classes | |
| class | blender::UnifiedBonePtr |
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
Macros | |
| #define | PT_DEFAULT_RAD 0.05f |
Functions | |
Shading Groups | |
| static void | blender::drw_shgroup_bone_stick (const Armatures::DrawContext *ctx, const float(*bone_mat)[4], const float col_wire[4], const float col_bone[4], const float col_head[4], const float col_tail[4], const int select_id) |
| static void | blender::drw_shgroup_bone_envelope_distance (const Armatures::DrawContext *ctx, const float(*bone_mat)[4], const float *radius_head, const float *radius_tail, const float *distance) |
| static void | blender::drw_shgroup_bone_envelope (const Armatures::DrawContext *ctx, const float(*bone_mat)[4], const float bone_col[4], const float hint_col[4], const float outline_col[4], const float *radius_head, const float *radius_tail, const int select_id) |
| static void | blender::drw_shgroup_bone_custom_solid_mesh (const Armatures::DrawContext *ctx, Mesh &mesh, const float(*bone_mat)[4], const float bone_color[4], const float hint_color[4], const float outline_color[4], const float wire_width, const draw::select::ID select_id, Object &custom) |
| static void | blender::drw_shgroup_bone_custom_mesh_wire (const Armatures::DrawContext *ctx, Mesh &mesh, const float(*bone_mat)[4], const float color[4], const float wire_width, const draw::select::ID select_id, Object &custom) |
| static void | blender::drw_shgroup_custom_bone_curve (const Armatures::DrawContext *ctx, Curve *curve, const float(*bone_mat)[4], const float outline_color[4], const float wire_width, const draw::select::ID select_id, Object *custom) |
| static void | blender::drw_shgroup_bone_custom_solid (const Armatures::DrawContext *ctx, const float(*bone_mat)[4], const float bone_color[4], const float hint_color[4], const float outline_color[4], const float wire_width, const draw::select::ID select_id, Object *custom) |
| static void | blender::drw_shgroup_bone_custom_wire (const Armatures::DrawContext *ctx, const float(*bone_mat)[4], const float color[4], const float wire_width, const draw::select::ID select_id, Object *custom) |
| static void | blender::drw_shgroup_bone_custom_empty (const Armatures::DrawContext *ctx, const float(*bone_mat)[4], const float color[4], const float wire_width, const draw::select::ID select_id, Object *custom) |
| static void | blender::drw_shgroup_bone_sphere (const Armatures::DrawContext *ctx, const float(*bone_mat)[4], const float bone_color[4], const float hint_color[4], const float outline_color[4], const int select_id) |
| static void | blender::drw_shgroup_bone_axes (const Armatures::DrawContext *ctx, const float(*bone_mat)[4], const float color[4]) |
| static void | blender::drw_shgroup_bone_relationship_lines_ex (const Armatures::DrawContext *ctx, const float start[3], const float end[3], const float color[4]) |
| static void | blender::drw_shgroup_bone_relationship_lines (const Armatures::DrawContext *ctx, const float start[3], const float end[3]) |
| static void | blender::drw_shgroup_bone_ik_lines (const Armatures::DrawContext *ctx, const float start[3], const float end[3]) |
| static void | blender::drw_shgroup_bone_ik_no_target_lines (const Armatures::DrawContext *ctx, const float start[3], const float end[3]) |
| static void | blender::drw_shgroup_bone_ik_spline_lines (const Armatures::DrawContext *ctx, const float start[3], const float end[3]) |
Drawing Theme Helpers | |
| |
| static void | blender::set_ctx_bcolor (Armatures::DrawContext *ctx, const UnifiedBonePtr bone) |
| static void | blender::cp_shade_color3ub (uchar cp[3], const int offset) |
| static void | blender::use_bone_color (float *r_color, const uint8_t *color_from_theme, const int shade_offset) |
| static void | blender::get_pchan_color_wire (const UniformData &theme, const ThemeWireColor *bcolor, const eArmatureDrawMode draw_mode, const eBone_Flag boneflag, float r_color[4]) |
| static void | blender::get_pchan_color_solid (const UniformData &theme, const ThemeWireColor *bcolor, float r_color[4]) |
| static void | blender::get_pchan_color_constraint (const UniformData &theme, const ThemeWireColor *bcolor, const UnifiedBonePtr bone, float r_color[4]) |
Drawing Color Helpers | |
| static void | blender::bone_locked_color_shade (const UniformData &theme, float color[4]) |
| static const float * | blender::get_bone_solid_color (const Armatures::DrawContext *ctx, const eBone_Flag boneflag) |
| static const float * | blender::get_bone_solid_with_consts_color (const Armatures::DrawContext *ctx, const UnifiedBonePtr bone, const eBone_Flag boneflag) |
| static float | blender::get_bone_wire_thickness (const Armatures::DrawContext *ctx, int boneflag) |
| static const float * | blender::get_bone_wire_color (const Armatures::DrawContext *ctx, const eBone_Flag boneflag) |
| static void | blender::bone_hint_color_shade (float hint_color[4], const float color[4]) |
| static const float * | blender::get_bone_hint_color (const Armatures::DrawContext *ctx, const eBone_Flag boneflag) |
Helper Utils | |
| static void | blender::pchan_draw_data_init (bPoseChannel *pchan, Bone &bone) |
| static void | blender::draw_bone_update_disp_matrix_default (UnifiedBonePtr bone) |
| static void | blender::draw_bone_update_disp_matrix_custom_shape (UnifiedBonePtr bone) |
| static void | blender::edbo_compute_bbone_child (bArmature *arm) |
| static void | blender::ebone_spline_preview (EditBone *ebone, const float result_array[MAX_BBONE_SUBDIV][4][4]) |
| static void | blender::draw_bone_update_disp_matrix_bbone (UnifiedBonePtr bone, bArmature &armature) |
| static void | blender::draw_axes (const Armatures::DrawContext *ctx, const UnifiedBonePtr bone, const bArmature &arm) |
| static void | blender::draw_points (const Armatures::DrawContext *ctx, const UnifiedBonePtr bone, const eBone_Flag boneflag, const float col_solid[4], const int select_id) |
| static void | blender::bone_draw_custom_shape (const Armatures::DrawContext *ctx, const UnifiedBonePtr bone, const eBone_Flag boneflag, const int select_id) |
| static void | blender::bone_draw_octa (const Armatures::DrawContext *ctx, const UnifiedBonePtr bone, const eBone_Flag boneflag, const int select_id) |
| static void | blender::bone_draw_line (const Armatures::DrawContext *ctx, const UnifiedBonePtr bone, const eBone_Flag boneflag, const int select_id) |
| static void | blender::bone_draw_b_bone (const Armatures::DrawContext *ctx, const UnifiedBonePtr bone, const eBone_Flag boneflag, const int select_id) |
| static void | blender::bone_draw_envelope (const Armatures::DrawContext *ctx, const UnifiedBonePtr bone, const eBone_Flag boneflag, const int select_id) |
| static void | blender::bone_draw_wire (const Armatures::DrawContext *ctx, const UnifiedBonePtr bone, const eBone_Flag boneflag, const int select_id) |
| static void | blender::bone_draw (const eArmature_Drawtype drawtype, const bool use_custom_shape, const Armatures::DrawContext *ctx, const UnifiedBonePtr bone, const eBone_Flag boneflag, const int select_id) |
Draw Degrees of Freedom | |
| static void | blender::draw_bone_degrees_of_freedom (const Armatures::DrawContext *ctx, const bPoseChannel *pchan) |
Draw Relationships | |
| static bool | blender::should_draw_relation_to_parent (const UnifiedBonePtr bone, const eBone_Flag boneflag) |
| static void | blender::pchan_draw_ik_lines (const Armatures::DrawContext *ctx, const bPoseChannel *pchan, const bool only_temp) |
| static void | blender::draw_bone_bone_relationship_line (const Armatures::DrawContext *ctx, const float bone_head[3], const float parent_head[3], const float parent_tail[3]) |
| static void | blender::draw_bone_relations (const Armatures::DrawContext *ctx, const UnifiedBonePtr bone, const eBone_Flag boneflag) |
| static void | blender::draw_bone_name (const Armatures::DrawContext *ctx, const UnifiedBonePtr bone) |
Main Draw Loops | |
| static void | blender::bone_draw_update_display_matrix (const eArmature_Drawtype drawtype, const bool use_custom_shape, UnifiedBonePtr bone, bArmature &armature) |
| #define PT_DEFAULT_RAD 0.05f |
Definition at line 55 of file overlay_armature.cc.
Referenced by blender::drw_shgroup_bone_envelope().