Blender V4.3
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)
 
const char * name () const
 
const EditBoneas_editbone () const
 
EditBoneas_editbone ()
 
const bPoseChannelas_posebone () const
 
bPoseChannelas_posebone ()
 
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 f44disp_mat () const
 
f44disp_mat ()
 
const f44disp_tail_mat () const
 
f44disp_tail_mat ()
 
const floatrad_head () const
 
const floatrad_tail () const
 
const blender::animrig::BoneColoreffective_bonecolor () const
 

Detailed Description

Container for either an EditBone or a bPoseChannel.

Definition at line 60 of file overlay_armature.cc.

Member Typedef Documentation

◆ f44

using UnifiedBonePtr::f44 = float[4][4]

Definition at line 146 of file overlay_armature.cc.

Constructor & Destructor Documentation

◆ UnifiedBonePtr() [1/3]

UnifiedBonePtr::UnifiedBonePtr ( const UnifiedBonePtr & ptr)
default

◆ ~UnifiedBonePtr()

UnifiedBonePtr::~UnifiedBonePtr ( )
inline

Definition at line 70 of file overlay_armature.cc.

◆ UnifiedBonePtr() [2/3]

UnifiedBonePtr::UnifiedBonePtr ( EditBone * eBone)
inline

Definition at line 72 of file overlay_armature.cc.

◆ UnifiedBonePtr() [3/3]

UnifiedBonePtr::UnifiedBonePtr ( bPoseChannel * pchan)
inline

Definition at line 73 of file overlay_armature.cc.

Member Function Documentation

◆ as_editbone() [1/2]

EditBone * UnifiedBonePtr::as_editbone ( )
inline

Definition at line 87 of file overlay_armature.cc.

References BLI_assert_msg, and eBone_.

◆ as_editbone() [2/2]

◆ as_posebone() [1/2]

bPoseChannel * UnifiedBonePtr::as_posebone ( )
inline

Definition at line 102 of file overlay_armature.cc.

References BLI_assert_msg, and pchan_.

◆ as_posebone() [2/2]

◆ constflag()

ePchan_ConstFlag UnifiedBonePtr::constflag ( ) const
inline

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

Definition at line 136 of file overlay_armature.cc.

References bPoseChannel::constflag, and pchan_.

Referenced by get_pchan_color_constraint().

◆ disp_mat() [1/2]

f44 & UnifiedBonePtr::disp_mat ( )
inline

Definition at line 151 of file overlay_armature.cc.

References bPoseChannel::disp_mat, EditBone::disp_mat, eBone_, and pchan_.

◆ disp_mat() [2/2]

◆ disp_tail_mat() [1/2]

f44 & UnifiedBonePtr::disp_tail_mat ( )
inline

◆ disp_tail_mat() [2/2]

const f44 & UnifiedBonePtr::disp_tail_mat ( ) const
inline

◆ effective_bonecolor()

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

◆ flag()

eBone_Flag UnifiedBonePtr::flag ( ) const
inline

◆ get() [1/2]

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

Definition at line 119 of file overlay_armature.cc.

References eBone_, and pchan_.

Referenced by draw_bone_name().

◆ get() [2/2]

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

Definition at line 124 of file overlay_armature.cc.

References eBone_, and pchan_.

◆ has_parent()

bool UnifiedBonePtr::has_parent ( ) const
inline

◆ is_editbone()

◆ is_posebone()

◆ name()

const char * UnifiedBonePtr::name ( ) const
inline

Definition at line 75 of file overlay_armature.cc.

References eBone_, bPoseChannel::name, EditBone::name, and pchan_.

◆ rad_head()

const float & UnifiedBonePtr::rad_head ( ) const
inline

Definition at line 168 of file overlay_armature.cc.

References bPoseChannel::bone, eBone_, pchan_, Bone::rad_head, and EditBone::rad_head.

Referenced by draw_points().

◆ rad_tail()

const float & UnifiedBonePtr::rad_tail ( ) const
inline

Definition at line 173 of file overlay_armature.cc.

References bPoseChannel::bone, eBone_, pchan_, Bone::rad_tail, and EditBone::rad_tail.

Referenced by draw_points().

Member Data Documentation

◆ eBone_

◆ pchan_


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