Panda3D
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Friends

MaxNodeDesc Class Reference

Describes a single instance of a node in the Max scene graph, relating it to the corresponding egg structures (e.g. More...

#include "maxNodeDesc.h"

Inheritance diagram for MaxNodeDesc:
ReferenceCount Namable MemoryBase MemoryBase

List of all members.

Public Types

typedef pvector< MaxNodeDesc * > Children

Public Member Functions

 MaxNodeDesc (MaxNodeDesc *parent=NULL, const string &name=string())
void from_INode (INode *max_node)
 Indicates an associated between the MaxNodeDesc and some Max Node instance.
INode * get_max_node () const
 Returns the INode associated with this node.
bool has_max_node () const
 Returns true if a Max INode has been associated with this node, false otherwise.
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_node_joint () const
 Returns true if the node is the parent or ancestor of a joint.
void set_joint (bool onoff)

Static Public Member Functions

static TypeHandle get_class_type ()
static void init_type ()

Public Attributes

Children _children
MaxNodeDesc_joint_entry
MaxNodeDesc_parent

Friends

class MaxNodeTree

Detailed Description

Describes a single instance of a node in the Max scene graph, relating it to the corresponding egg structures (e.g.

node, group, or table entry) that will be created.

Definition at line 26 of file maxNodeDesc.h.


Member Function Documentation

void MaxNodeDesc::from_INode ( INode *  max_node)

Indicates an associated between the MaxNodeDesc and some Max Node instance.

Definition at line 58 of file maxNodeDesc.cxx.

Referenced by MaxNodeTree::build_joint(), and MaxNodeTree::build_node().

INode * MaxNodeDesc::get_max_node ( ) const

Returns the INode associated with this node.

It is an error to call this unless has_max_node() returned true.

Definition at line 105 of file maxNodeDesc.cxx.

bool MaxNodeDesc::has_max_node ( ) const

Returns true if a Max INode has been associated with this node, false otherwise.

Definition at line 93 of file maxNodeDesc.cxx.

bool MaxNodeDesc::is_joint ( ) const

Returns true if the node should be treated as a joint by the converter.

Definition at line 126 of file maxNodeDesc.cxx.

Referenced by MaxNodeTree::get_egg_group(), and MaxNodeTree::get_egg_table().

bool MaxNodeDesc::is_joint_parent ( ) const

Returns true if the node is the parent or ancestor of a joint.

Definition at line 137 of file maxNodeDesc.cxx.

bool MaxNodeDesc::is_node_joint ( ) const

Returns true if the node is the parent or ancestor of a joint.

Definition at line 148 of file maxNodeDesc.cxx.

Referenced by MaxNodeTree::build_node(), and MaxNodeTree::find_joint().


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