Panda3D
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
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

Public Types

typedef pvector< MaxNodeDesc *> Children
 

Public Member Functions

 MaxNodeDesc (MaxNodeDesc *parent=NULL, INode *max_node=NULL)
 Creates a MaxNodeDesc. More...
 
void from_INode (INode *max_node)
 Indicates an associated between the MaxNodeDesc and some Max Node instance. More...
 
INode * get_max_node () const
 Returns the INode associated with this node. More...
 
bool has_max_node () const
 Returns true if a Max INode has been associated with this node, false otherwise. 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_node_joint () const
 Returns true if the node is the parent or ancestor of a joint. More...
 
void set_joint (bool onoff)
 
- Public Member Functions inherited from ReferenceCount
int get_ref_count () const
 Returns the current reference count. More...
 
WeakReferenceListget_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...
 
- Public Member Functions inherited from Namable
 Namable (const string &initial_name="")
 
 Namable (const Namable &copy)
 
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...
 
Namableoperator= (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 Public Member Functions inherited from ReferenceCount
static TypeHandle get_class_type ()
 
static void init_type ()
 
- Static Public Member Functions inherited from Namable
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.

Constructor & Destructor Documentation

◆ MaxNodeDesc()

MaxNodeDesc::MaxNodeDesc ( MaxNodeDesc parent = NULL,
INode *  max_node = NULL 
)

Creates a MaxNodeDesc.

The name is copied from the given max node. Use from_INode to actually associate the desc with a given max node.

Definition at line 28 of file maxNodeDesc.cxx.

References from_INode().

Member Function Documentation

◆ from_INode()

void MaxNodeDesc::from_INode ( INode *  max_node)

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

Definition at line 71 of file maxNodeDesc.cxx.

References has_max_node().

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

◆ get_max_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 118 of file maxNodeDesc.cxx.

References is_joint().

Referenced by MaxToEggConverter::convert(), MaxNodeTree::find_joint(), and has_max_node().

◆ has_max_node()

bool MaxNodeDesc::has_max_node ( ) const

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

Definition at line 106 of file maxNodeDesc.cxx.

References get_max_node().

Referenced by MaxToEggConverter::convert(), and from_INode().

◆ is_joint()

bool MaxNodeDesc::is_joint ( ) const

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

Definition at line 139 of file maxNodeDesc.cxx.

References is_joint_parent().

Referenced by MaxToEggConverter::convert(), MaxNodeTree::get_egg_group(), MaxNodeTree::get_egg_table(), and get_max_node().

◆ is_joint_parent()

bool MaxNodeDesc::is_joint_parent ( ) const

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

Definition at line 150 of file maxNodeDesc.cxx.

References is_node_joint().

Referenced by is_joint().

◆ is_node_joint()

bool MaxNodeDesc::is_node_joint ( ) const

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

Definition at line 161 of file maxNodeDesc.cxx.

Referenced by MaxNodeTree::build_node(), MaxToEggConverter::convert(), MaxNodeTree::find_joint(), MaxNodeTree::get_egg_anim(), and is_joint_parent().


The documentation for this class was generated from the following files: