expose blending

This commit is contained in:
David Rose 2002-07-02 00:59:16 +00:00
parent fcf50a6456
commit 2d0b511722
3 changed files with 14 additions and 26 deletions

View File

@ -1,3 +0,0 @@
ignoreinvolved Action
forcetype PointerTo<AnimControl>

View File

@ -1,10 +0,0 @@
ignoreinvolved BlendType
ignoreinvolved control_iterator
ignoreinvolved control_size_type
ignoreinvolved ChannelBlend
ignoremember control_begin
ignoremember control_end
ignoremember control_size

View File

@ -45,6 +45,19 @@ public:
// do_update() call to specify the channels that are in effect. // do_update() call to specify the channels that are in effect.
typedef pmap<AnimControl *, float> ChannelBlend; typedef pmap<AnimControl *, float> ChannelBlend;
typedef first_of_pair_iterator<ChannelBlend::const_iterator> control_iterator;
typedef ChannelBlend::size_type control_size_type;
protected:
// The copy constructor is protected; use make_copy() or copy_subgraph().
PartBundle(const PartBundle &copy);
public:
PartBundle(const string &name = "");
virtual PartGroup *make_copy() const;
PUBLISHED:
// This is the parameter to set_blend_type() and specifies the kind // This is the parameter to set_blend_type() and specifies the kind
// of blending operation to be performed when multiple controls are // of blending operation to be performed when multiple controls are
// in effect simultaneously (see set_control_effect()). // in effect simultaneously (see set_control_effect()).
@ -71,25 +84,13 @@ public:
// BT_normalized_linear is a compromise on BT_linear. The matrix // BT_normalized_linear is a compromise on BT_linear. The matrix
// is blended linearly without the scale component, and the // is blended linearly without the scale component, and the
// blended scale component is applied separately. This keeps all // blended scale component is applied separately. This keeps all
// of character's body parts in the correct size and shape. // of the character's body parts in the correct size and shape.
// However, if the hierarchy is disconnected, body parts can fly // However, if the hierarchy is disconnected, body parts can fly
// off. It's essential the skeleton hierarchy be completely // off. It's essential the skeleton hierarchy be completely
// connected to use this blend mode successully. // connected to use this blend mode successully.
BT_normalized_linear, BT_normalized_linear,
}; };
typedef first_of_pair_iterator<ChannelBlend::const_iterator> control_iterator;
typedef ChannelBlend::size_type control_size_type;
protected:
// The copy constructor is protected; use make_copy() or copy_subgraph().
PartBundle(const PartBundle &copy);
public:
PartBundle(const string &name = "");
virtual PartGroup *make_copy() const;
PUBLISHED:
void set_blend_type(BlendType bt); void set_blend_type(BlendType bt);
INLINE BlendType get_blend_type() const; INLINE BlendType get_blend_type() const;