Panda3D
Public Member Functions | Public Attributes
MaxNodeTree Class Reference

Describes a complete tree of max nodes for conversion. More...

#include "maxNodeTree.h"

List of all members.

Public Member Functions

bool build_complete_hierarchy (INode *root, ULONG *selection_list, int len)
 Walks through the complete Max hierarchy and builds up the corresponding tree.
MaxNodeDescbuild_joint (INode *max_node, MaxNodeDesc *node_joint)
 Returns a pointer to the node corresponding to the indicated INode object, creating it first if necessary.
MaxNodeDescbuild_node (INode *max_node)
 Returns a pointer to the node corresponding to the indicated INode object, creating it first if necessary.
void clear_egg (EggData *egg_data, EggGroupNode *egg_root, EggGroupNode *skeleton_node)
 Removes all of the references to generated egg structures from the tree, and prepares the tree for generating new egg structures.
MaxNodeDescfind_joint (INode *max_node)
 The recursive implementation of build_node().
MaxNodeDescfind_node (INode *max_node)
 The recursive implementation of build_node().
EggXfmSAnimget_egg_anim (MaxNodeDesc *node_desc)
 Returns the anim table corresponding to the joint for the indicated node.
EggGroupget_egg_group (MaxNodeDesc *node_desc)
 Returns the EggGroupNode corresponding to the group or joint for the indicated node.
EggTableget_egg_table (MaxNodeDesc *node_desc)
 Returns the EggTable corresponding to the joint for the indicated node.
MaxNodeDescget_node (int n) const
 Returns the nth node in the hierarchy, in an arbitrary ordering.
int get_num_nodes () const
 Returns the total number of nodes in the hierarchy, not counting the root node.

Public Attributes

bool _export_mesh
PN_stdfloat _fps
MaxNodeDesc_root

Detailed Description

Describes a complete tree of max nodes for conversion.

Definition at line 27 of file maxNodeTree.h.


Member Function Documentation

bool MaxNodeTree::build_complete_hierarchy ( INode *  root,
ULONG *  selection_list,
int  len 
)

Walks through the complete Max hierarchy and builds up the corresponding tree.

Definition at line 103 of file maxNodeTree.cxx.

Referenced by MaxToEggConverter::convert().

MaxNodeDesc * MaxNodeTree::build_joint ( INode *  max_node,
MaxNodeDesc node_joint 
)

Returns a pointer to the node corresponding to the indicated INode object, creating it first if necessary.

Definition at line 62 of file maxNodeTree.cxx.

References MaxNodeDesc::from_INode().

Referenced by build_node().

MaxNodeDesc * MaxNodeTree::build_node ( INode *  max_node)

Returns a pointer to the node corresponding to the indicated INode object, creating it first if necessary.

Definition at line 46 of file maxNodeTree.cxx.

References build_joint(), MaxNodeDesc::from_INode(), and MaxNodeDesc::is_node_joint().

Referenced by find_joint().

void MaxNodeTree::clear_egg ( EggData egg_data,
EggGroupNode egg_root,
EggGroupNode skeleton_node 
)

Removes all of the references to generated egg structures from the tree, and prepares the tree for generating new egg structures.

Definition at line 152 of file maxNodeTree.cxx.

MaxNodeDesc * MaxNodeTree::find_joint ( INode *  max_node)

The recursive implementation of build_node().

Definition at line 363 of file maxNodeTree.cxx.

References build_node(), find_node(), and MaxNodeDesc::is_node_joint().

MaxNodeDesc * MaxNodeTree::find_node ( INode *  max_node)

The recursive implementation of build_node().

Definition at line 338 of file maxNodeTree.cxx.

Referenced by find_joint().

Returns the anim table corresponding to the joint for the indicated node.

Creates the table node if it has not already been created.

Definition at line 255 of file maxNodeTree.cxx.

References get_egg_table().

Returns the EggGroupNode corresponding to the group or joint for the indicated node.

Creates the group node if it has not already been created.

Definition at line 168 of file maxNodeTree.cxx.

References EggGroupNode::add_child(), and MaxNodeDesc::is_joint().

Returns the EggTable corresponding to the joint for the indicated node.

Creates the table node if it has not already been created.

Definition at line 217 of file maxNodeTree.cxx.

References EggGroupNode::add_child(), EggData::get_coordinate_system(), and MaxNodeDesc::is_joint().

Referenced by get_egg_anim().

MaxNodeDesc * MaxNodeTree::get_node ( int  n) const

Returns the nth node in the hierarchy, in an arbitrary ordering.

Definition at line 139 of file maxNodeTree.cxx.

Returns the total number of nodes in the hierarchy, not counting the root node.

Definition at line 128 of file maxNodeTree.cxx.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations