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. More... | |
MayaBlendDesc * | get_blend_desc (int n) const |
Returns the nth MayaBlendDesc object that affects the geometry in this node. More... | |
const MDagPath & | get_dag_path () const |
Returns the dag path associated with this node. More... | |
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. More... | |
bool | has_dag_path () const |
Returns true if a Maya dag path has been associated with this node, false otherwise. More... | |
bool | has_object_type (string object_type) const |
Returns true if this node or any of its parent has_object_type of object_type. More... | |
bool | is_joint () const |
Returns true if the node should be treated as a joint by the converter. More... | |
bool | is_joint_parent () const |
Returns true if the node is the parent or ancestor of a joint. More... | |
bool | is_joint_tagged () const |
Returns true if the node has been joint_tagged to be converted, false otherwise. More... | |
bool | is_tagged () const |
Returns true if the node has been tagged to be converted, false otherwise. More... | |
![]() | |
int | get_ref_count () const |
Returns the current reference count. More... | |
WeakReferenceList * | get_weak_list () const |
Returns the WeakReferenceList associated with this ReferenceCount object. More... | |
bool | has_weak_list () const |
Returns true if this particular ReferenceCount object has a WeakReferenceList created, false otherwise. More... | |
void | local_object () |
This function should be called, once, immediately after creating a new instance of some ReferenceCount-derived object on the stack. More... | |
void | ref () const |
Explicitly increments the reference count. More... | |
bool | test_ref_count_integrity () const |
Does some easy checks to make sure that the reference count isn't completely bogus. More... | |
bool | test_ref_count_nonzero () const |
Does some easy checks to make sure that the reference count isn't zero, or completely bogus. More... | |
virtual bool | unref () const |
Explicitly decrements the reference count. More... | |
void | weak_ref (WeakPointerToVoid *ptv) |
Adds the indicated PointerToVoid as a weak reference to this object. More... | |
void | weak_unref (WeakPointerToVoid *ptv) |
Removes the indicated PointerToVoid as a weak reference to this object. More... | |
![]() | |
Namable (const string &initial_name="") | |
Namable (const Namable ©) | |
void | clear_name () |
Resets the Namable's name to empty. More... | |
const string & | get_name () const |
bool | has_name () const |
Returns true if the Namable has a nonempty name set, false if the name is empty. More... | |
Namable & | operator= (const Namable &other) |
void | output (ostream &out) const |
Outputs the Namable. More... | |
void | set_name (const string &name) |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
![]() | |
static TypeHandle | get_class_type () |
static void | init_type () |
![]() | |
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(), and has_dag_path().
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.
References is_joint().
Referenced by MayaToEggConverter::clear(), and get_num_blend_descs().
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.
References get_num_blend_descs().
Referenced by MayaToEggConverter::clear(), MayaNodeTree::get_egg_group(), has_dag_path(), and has_object_type().
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.
References get_blend_desc().
Referenced by MayaToEggConverter::clear(), and get_dag_path().
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.
References get_dag_path().
Referenced by MayaToEggConverter::clear(), from_dag_path(), and 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 get_dag_path().
Referenced by MayaToEggConverter::clear(), and is_tagged().
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.
References is_joint_parent().
Referenced by MayaToEggConverter::clear(), get_blend_desc(), 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.
References is_joint_tagged().
Referenced by is_joint().
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.
References is_tagged().
Referenced by is_joint_parent().
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.
References has_object_type().
Referenced by MayaToEggConverter::clear(), and is_joint_tagged().