Panda3D
|
Describes a single instance of a node in the Maya scene graph, relating it to the corresponding egg structures (e.g. More...
#include "mayaNodeDesc.h"
Public Types | |
typedef pvector< PT(MayaNodeDesc) > | Children |
Public Member Functions | |
MayaNodeDesc (MayaNodeTree *tree, MayaNodeDesc *parent=NULL, const string &name=string()) | |
void | from_dag_path (const MDagPath &dag_path, MayaToEggConverter *converter) |
Indicates an association between the MayaNodeDesc and some Maya instance. | |
MayaBlendDesc * | get_blend_desc (int n) const |
Returns the nth MayaBlendDesc object that affects the geometry in this node. | |
const MDagPath & | get_dag_path () const |
Returns the dag path associated with this node. | |
int | get_num_blend_descs () const |
Returns the number of unique MayaBlendDesc objects (and hence the number of morph sliders) that affect the geometry in this node. | |
bool | has_dag_path () const |
Returns true if a Maya dag path has been associated with this node, false otherwise. | |
bool | has_object_type (string object_type) const |
Returns true if this node or any of its parent has_object_type of object_type. | |
bool | is_joint () const |
Returns true if the node should be treated as a joint by the converter. | |
bool | is_joint_parent () const |
Returns true if the node is the parent or ancestor of a joint. | |
bool | is_joint_tagged () const |
Returns true if the node has been joint_tagged to be converted, false otherwise. | |
bool | is_tagged () const |
Returns true if the node has been tagged to be converted, false otherwise. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
Public Attributes | |
Children | _children |
MayaNodeDesc * | _parent |
MayaNodeTree * | _tree |
Friends | |
class | MayaNodeTree |
Describes a single instance of a node in the Maya scene graph, relating it to the corresponding egg structures (e.g.
node, group, or table entry) that will be created.
Definition at line 43 of file mayaNodeDesc.h.
void MayaNodeDesc::from_dag_path | ( | const MDagPath & | dag_path, |
MayaToEggConverter * | converter | ||
) |
Indicates an association between the MayaNodeDesc and some Maya instance.
Definition at line 91 of file mayaNodeDesc.cxx.
References MayaToEggConverter::force_joint().
Referenced by MayaNodeTree::build_node().
MayaBlendDesc * MayaNodeDesc::get_blend_desc | ( | int | n | ) | const |
Returns the nth MayaBlendDesc object that affects the geometry in this node.
Definition at line 196 of file mayaNodeDesc.cxx.
const MDagPath & MayaNodeDesc::get_dag_path | ( | ) | const |
Returns the dag path associated with this node.
It is an error to call this unless has_dag_path() returned true.
Definition at line 172 of file mayaNodeDesc.cxx.
Referenced by MayaNodeTree::get_egg_group().
int MayaNodeDesc::get_num_blend_descs | ( | ) | const |
Returns the number of unique MayaBlendDesc objects (and hence the number of morph sliders) that affect the geometry in this node.
Definition at line 185 of file mayaNodeDesc.cxx.
bool MayaNodeDesc::has_dag_path | ( | ) | const |
Returns true if a Maya dag path has been associated with this node, false otherwise.
Definition at line 160 of file mayaNodeDesc.cxx.
Referenced by MayaNodeTree::get_egg_group().
bool MayaNodeDesc::has_object_type | ( | string | object_type | ) | const |
Returns true if this node or any of its parent has_object_type of object_type.
Definition at line 338 of file mayaNodeDesc.cxx.
References has_object_type(), and EggGroup::has_object_type().
Referenced by has_object_type().
bool MayaNodeDesc::is_joint | ( | ) | const |
Returns true if the node should be treated as a joint by the converter.
Definition at line 208 of file mayaNodeDesc.cxx.
Referenced by MayaNodeTree::get_egg_group(), and MayaNodeTree::get_egg_table().
bool MayaNodeDesc::is_joint_parent | ( | ) | const |
Returns true if the node is the parent or ancestor of a joint.
Definition at line 220 of file mayaNodeDesc.cxx.
bool MayaNodeDesc::is_joint_tagged | ( | ) | const |
Returns true if the node has been joint_tagged to be converted, false otherwise.
Definition at line 232 of file mayaNodeDesc.cxx.
bool MayaNodeDesc::is_tagged | ( | ) | const |
Returns true if the node has been tagged to be converted, false otherwise.
Definition at line 271 of file mayaNodeDesc.cxx.