15 #ifndef MAYANODEDESC_H 16 #define MAYANODEDESC_H 18 #include "pandatoolbase.h" 20 #include "mayaBlendDesc.h" 21 #include "referenceCount.h" 22 #include "pointerTo.h" 25 #include "pre_maya_include.h" 26 #include <maya/MDagPath.h> 27 #include <maya/MFnDagNode.h> 28 #include "post_maya_include.h" 46 MayaNodeDesc *parent = NULL,
const string &name =
string());
71 void tag_recursively();
72 void untag_recursively();
74 void tag_joint_recursively();
77 void mark_joint_parent();
78 void check_pseudo_joints(
bool joint_above);
79 void check_blend_shapes(
const MFnDagNode &node,
80 const string &attrib_name);
90 BlendDescs _blend_descs;
99 JointType _joint_type;
102 double _switch_in, _switch_out;
111 static void init_type() {
112 ReferenceCount::init_type();
113 Namable::init_type();
114 register_type(_type_handle,
"MayaNodeDesc",
115 ReferenceCount::get_class_type(),
116 Namable::get_class_type());
A handle to a Maya blend shape description.
void from_dag_path(const MDagPath &dag_path, MayaToEggConverter *converter)
Indicates an association between the MayaNodeDesc and some Maya instance.
bool has_object_type(string object_type) const
Returns true if this node or any of its parent has_object_type of object_type.
Describes a complete tree of maya nodes for conversion.
bool has_dag_path() const
Returns true if a Maya dag path has been associated with this node, false otherwise.
MayaBlendDesc * get_blend_desc(int n) const
Returns the nth MayaBlendDesc object that affects the geometry in this node.
bool is_joint_parent() const
Returns true if the node is the parent or ancestor of a joint.
The main glue of the egg hierarchy, this corresponds to the <Group>, <Instance>, and <Joint> type nod...
A base class for all things which can have a name.
Describes a single instance of a node in the Maya scene graph, relating it to the corresponding egg s...
bool is_joint() const
Returns true if the node should be treated as a joint by the converter.
This corresponds to an <Xfm$Anim_S$> entry, which is a collection of up to nine <S$Anim> entries that...
bool is_joint_tagged() const
Returns true if the node has been joint_tagged to be converted, false otherwise.
const MDagPath & get_dag_path() const
Returns the dag path associated with this node.
bool is_tagged() const
Returns true if the node has been tagged to be converted, false otherwise.
This class supervises the construction of an EggData structure from a single Maya file...
A base class for all things that want to be reference-counted.
TypeHandle is the identifier used to differentiate C++ class types.
int get_num_blend_descs() const
Returns the number of unique MayaBlendDesc objects (and hence the number of morph sliders) that affec...