| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- // Filename: partBundle.I
- // Created by: drose (22Feb99)
- //
- ////////////////////////////////////////////////////////////////////
- //
- // PANDA 3D SOFTWARE
- // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
- //
- // All use of this software is subject to the terms of the Panda 3d
- // Software license. You should have received a copy of this license
- // along with this source code; you will also find a current copy of
- // the license at http://www.panda3d.org/license.txt .
- //
- // To contact the maintainers of this program write to
- // [email protected] .
- //
- ////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////
- // Function: PartBundle::get_blend_type
- // Access: Published
- // Description: Returns the way the character responds to multiple
- // animations being bound simultaneously.
- ////////////////////////////////////////////////////////////////////
- INLINE PartBundle::BlendType PartBundle::
- get_blend_type() const {
- return _blend_type;
- }
- ////////////////////////////////////////////////////////////////////
- // Function: PartBundle::get_node
- // Access: Published
- // Description: Returns the PartBundleNode associated with this
- // PartBundle.
- ////////////////////////////////////////////////////////////////////
- INLINE PartBundleNode *PartBundle::
- get_node() const {
- return _node;
- }
- ////////////////////////////////////////////////////////////////////
- // Function: PartBundle::get_qpnode
- // Access: Published
- // Description: Returns the PartBundleNode associated with this
- // PartBundle.
- ////////////////////////////////////////////////////////////////////
- INLINE qpPartBundleNode *PartBundle::
- get_qpnode() const {
- return _qpnode;
- }
- ////////////////////////////////////////////////////////////////////
- // Function: PartBundle::control_begin
- // Access: Public
- // Description: Returns an iterator that can be used to traverse the
- // entire set of AnimControls currently in effect.
- ////////////////////////////////////////////////////////////////////
- INLINE PartBundle::control_iterator PartBundle::
- control_begin() const {
- return _blend.begin();
- }
- ////////////////////////////////////////////////////////////////////
- // Function: PartBundle::control_end
- // Access: Public
- // Description: Returns an iterator that can be used to traverse the
- // entire set of AnimControls currently in effect.
- ////////////////////////////////////////////////////////////////////
- INLINE PartBundle::control_iterator PartBundle::
- control_end() const {
- return _blend.end();
- }
- ////////////////////////////////////////////////////////////////////
- // Function: PartBundle::control_size
- // Access: Public
- // Description: Returns the number of entries between control_begin()
- // and control_end(): the number of AnimControls
- // currently in effect.
- ////////////////////////////////////////////////////////////////////
- INLINE PartBundle::control_size_type PartBundle::
- control_size() const {
- return _blend.size();
- }
- ////////////////////////////////////////////////////////////////////
- // Function: PartBundle::get_blend_map
- // Access: Public
- // Description: Returns the entire mapping of AnimControls to blend
- // effect.
- ////////////////////////////////////////////////////////////////////
- INLINE const PartBundle::ChannelBlend &PartBundle::
- get_blend_map() const {
- return _blend;
- }
|