Blender V5.3
blender::UnifiedBonePtr Class Reference

Public Types

using f44 = float[4][4]

Public Member Functions

 UnifiedBonePtr (const UnifiedBonePtr &ptr)=default
 ~UnifiedBonePtr ()
 UnifiedBonePtr (EditBone *eBone)
 UnifiedBonePtr (bPoseChannel *pchan, Bone *bone)
const char * name () const
const EditBone * as_editbone () const
EditBone * as_editbone ()
const bPoseChannel * as_posebone () const
bPoseChannel * as_posebone ()
const Bone * posebone_bone () const
Bone * posebone_bone ()
bke::PChanBone as_pchanbone ()
bke::PChanBoneConst as_pchanbone () const
bool is_editbone () const
bool is_posebone () const
void get (const EditBone **eBone, const bPoseChannel **pchan) const
void get (EditBone **eBone, bPoseChannel **pchan)
eBone_Flag flag () const
ePchan_ConstFlag constflag () const
bool has_parent () const
const f44 & disp_mat () const
f44 & disp_mat ()
const f44 & disp_tail_mat () const
f44 & disp_tail_mat ()
const float & rad_head () const
const float & rad_tail () const
const animrig::BoneColor & effective_bonecolor () const

Detailed Description

Container for either an EditBone or a bPoseChannel.

Definition at line 62 of file overlay_armature.cc.

Member Typedef Documentation

◆ f44

Definition at line 191 of file overlay_armature.cc.

Constructor & Destructor Documentation

◆ UnifiedBonePtr() [1/3]

blender::UnifiedBonePtr::UnifiedBonePtr ( const UnifiedBonePtr & ptr)
default

References UnifiedBonePtr().

Referenced by UnifiedBonePtr().

◆ ~UnifiedBonePtr()

blender::UnifiedBonePtr::~UnifiedBonePtr ( )
inline

Definition at line 73 of file overlay_armature.cc.

◆ UnifiedBonePtr() [2/3]

blender::UnifiedBonePtr::UnifiedBonePtr ( EditBone * eBone)
inline

Definition at line 75 of file overlay_armature.cc.

References blender::true.

◆ UnifiedBonePtr() [3/3]

blender::UnifiedBonePtr::UnifiedBonePtr ( bPoseChannel * pchan,
Bone * bone )
inline

Definition at line 76 of file overlay_armature.cc.

References blender::false.

Member Function Documentation

◆ as_editbone() [1/2]

EditBone * blender::UnifiedBonePtr::as_editbone ( )
inline

Definition at line 92 of file overlay_armature.cc.

References BLI_assert_msg.

◆ as_editbone() [2/2]

◆ as_pchanbone() [1/2]

bke::PChanBone blender::UnifiedBonePtr::as_pchanbone ( )
inline

Definition at line 129 of file overlay_armature.cc.

References BLI_assert_msg.

Referenced by blender::draw_bone_update_disp_matrix_bbone().

◆ as_pchanbone() [2/2]

bke::PChanBoneConst blender::UnifiedBonePtr::as_pchanbone ( ) const
inline

Definition at line 136 of file overlay_armature.cc.

References BLI_assert_msg.

◆ as_posebone() [1/2]

bPoseChannel * blender::UnifiedBonePtr::as_posebone ( )
inline

Definition at line 107 of file overlay_armature.cc.

References BLI_assert_msg.

◆ as_posebone() [2/2]

◆ constflag()

ePchan_ConstFlag blender::UnifiedBonePtr::constflag ( ) const
inline

Return the pose bone's constraint flags, or 0 if not a pose bone.

Definition at line 181 of file overlay_armature.cc.

Referenced by blender::get_pchan_color_constraint().

◆ disp_mat() [1/2]

f44 & blender::UnifiedBonePtr::disp_mat ( )
inline

Definition at line 196 of file overlay_armature.cc.

◆ disp_mat() [2/2]

◆ disp_tail_mat() [1/2]

f44 & blender::UnifiedBonePtr::disp_tail_mat ( )
inline

Definition at line 206 of file overlay_armature.cc.

◆ disp_tail_mat() [2/2]

const f44 & blender::UnifiedBonePtr::disp_tail_mat ( ) const
inline

◆ effective_bonecolor()

const animrig::BoneColor & blender::UnifiedBonePtr::effective_bonecolor ( ) const
inline

Definition at line 223 of file overlay_armature.cc.

Referenced by blender::set_ctx_bcolor().

◆ flag()

eBone_Flag blender::UnifiedBonePtr::flag ( ) const
inline

◆ get() [1/2]

void blender::UnifiedBonePtr::get ( const EditBone ** eBone,
const bPoseChannel ** pchan ) const
inline

Definition at line 153 of file overlay_armature.cc.

Referenced by blender::draw_bone_name().

◆ get() [2/2]

void blender::UnifiedBonePtr::get ( EditBone ** eBone,
bPoseChannel ** pchan )
inline

Definition at line 158 of file overlay_armature.cc.

◆ has_parent()

bool blender::UnifiedBonePtr::has_parent ( ) const
inline

◆ is_editbone()

bool blender::UnifiedBonePtr::is_editbone ( ) const
inline

◆ is_posebone()

◆ name()

const char * blender::UnifiedBonePtr::name ( ) const
inline

Definition at line 80 of file overlay_armature.cc.

◆ posebone_bone() [1/2]

Bone * blender::UnifiedBonePtr::posebone_bone ( )
inline

Definition at line 122 of file overlay_armature.cc.

References BLI_assert_msg.

◆ posebone_bone() [2/2]

◆ rad_head()

const float & blender::UnifiedBonePtr::rad_head ( ) const
inline

Definition at line 213 of file overlay_armature.cc.

Referenced by blender::draw_points().

◆ rad_tail()

const float & blender::UnifiedBonePtr::rad_tail ( ) const
inline

Definition at line 218 of file overlay_armature.cc.

Referenced by blender::draw_points().


The documentation for this class was generated from the following file: