00001 // Filename: auto_bind.h 00002 // Created by: drose (23Feb99) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef AUTO_BIND_H 00016 #define AUTO_BIND_H 00017 00018 #include "pandabase.h" 00019 00020 #include "animControl.h" 00021 #include "animControlCollection.h" 00022 00023 class PandaNode; 00024 00025 BEGIN_PUBLISH 00026 //////////////////////////////////////////////////////////////////// 00027 // Function: auto_bind 00028 // Description: Walks the scene graph or subgraph beginning at the 00029 // indicated node, and attempts to bind any AnimBundles 00030 // found to their matching PartBundles, when possible. 00031 // 00032 // The list of all resulting AnimControls created is 00033 // filled into controls. 00034 //////////////////////////////////////////////////////////////////// 00035 EXPCL_PANDA_CHAN void 00036 auto_bind(PandaNode *root_node, AnimControlCollection &controls, 00037 int hierarchy_match_flags = 0); 00038 END_PUBLISH 00039 00040 #endif 00041