Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/chan/auto_bind.cxx File Reference

#include "auto_bind.h"
#include "animBundleNode.h"
#include "partBundleNode.h"
#include "config_chan.h"
#include "string_utils.h"

Go to the source code of this file.

Typedefs

typedef pset< AnimBundleNode * > AnimNodes
typedef pmap< string, AnimNodesAnims
typedef pset< PartBundleNode * > PartNodes
typedef pmap< string, PartNodesParts

Functions

void bind_anims (const PartNodes &parts, const AnimNodes &anims, AnimControlCollection &controls, int hierarchy_match_flags)
 A support function for auto_bind(), below.

void r_find_bundles (PandaNode *node, Anims &anims, Parts &parts)
 A support function for auto_bind(), below.

void auto_bind (PandaNode *root_node, AnimControlCollection &controls, int hierarchy_match_flags)
 Walks the scene graph or subgraph beginning at the indicated node, and attempts to bind any AnimBundles found to their matching PartBundles, when possible.


Detailed Description

Definition in file auto_bind.cxx.


Typedef Documentation

typedef pset<AnimBundleNode *> AnimNodes
 

Definition at line 29 of file auto_bind.cxx.

typedef pmap<string, AnimNodes> Anims
 

Definition at line 30 of file auto_bind.cxx.

typedef pset<PartBundleNode *> PartNodes
 

Definition at line 32 of file auto_bind.cxx.

typedef pmap<string, PartNodes> Parts
 

Definition at line 33 of file auto_bind.cxx.


Function Documentation

void auto_bind PandaNode root_node,
AnimControlCollection controls,
int  hierarchy_match_flags
 

Walks the scene graph or subgraph beginning at the indicated node, and attempts to bind any AnimBundles found to their matching PartBundles, when possible.

The list of all resulting AnimControls created is filled into controls.

Definition at line 149 of file auto_bind.cxx.

void bind_anims const PartNodes parts,
const AnimNodes anims,
AnimControlCollection controls,
int  hierarchy_match_flags
[static]
 

A support function for auto_bind(), below.

Given a set of AnimBundles and a set of PartBundles that all share the same name, perform whatever bindings make sense.

Definition at line 50 of file auto_bind.cxx.

void r_find_bundles PandaNode node,
Anims anims,
Parts parts
[static]
 

A support function for auto_bind(), below.

Walks through the hierarchy and finds all of the PartBundles and AnimBundles.

Definition at line 113 of file auto_bind.cxx.


Generated on Fri May 2 00:45:05 2003 for Panda by doxygen1.3