Panda3D
|
Graph node that encapsulated a series of physical objects. More...
#include "physicalNode.h"
Public Member Functions | |
PhysicalNode (const string &name) | |
default constructor | |
virtual | ~PhysicalNode () |
destructor | |
void | add_physical (Physical *physical) |
void | add_physicals_from (const PhysicalNode &other) |
append operation | |
void | clear () |
virtual TypeHandle | force_init_type () |
int | get_num_physicals () const |
Physical * | get_physical (int index) const |
virtual TypeHandle | get_type () const |
virtual PandaNode * | make_copy () const |
dynamic child copy | |
MAKE_SEQ (get_physicals, get_num_physicals, get_physical) | |
void | remove_physical (Physical *physical) |
remove operation | |
void | remove_physical (int index) |
remove operation | |
virtual bool | safe_to_flatten () const |
Returns true if it is generally safe to flatten out this particular kind of PandaNode by duplicating instances (by calling dupe_for_flatten()), false otherwise (for instance, a Camera cannot be safely flattened, because the Camera pointer itself is meaningful). | |
virtual void | write (ostream &out, unsigned int indent=0) const |
Write a string representation of this instance to <out>. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
Protected Member Functions | |
PhysicalNode (const PhysicalNode ©) | |
copy constructor |
Graph node that encapsulated a series of physical objects.
Definition at line 31 of file physicalNode.h.
PhysicalNode::PhysicalNode | ( | const string & | name | ) |
PhysicalNode::~PhysicalNode | ( | ) | [virtual] |
destructor
Definition at line 47 of file physicalNode.cxx.
PhysicalNode::PhysicalNode | ( | const PhysicalNode & | copy | ) | [protected] |
copy constructor
Definition at line 37 of file physicalNode.cxx.
void PhysicalNode::add_physicals_from | ( | const PhysicalNode & | other | ) |
append operation
Definition at line 66 of file physicalNode.cxx.
PandaNode * PhysicalNode::make_copy | ( | ) | const [virtual] |
dynamic child copy
Reimplemented from PandaNode.
Definition at line 56 of file physicalNode.cxx.
References PhysicalNode().
void PhysicalNode::remove_physical | ( | Physical * | physical | ) |
remove operation
Definition at line 83 of file physicalNode.cxx.
void PhysicalNode::remove_physical | ( | int | index | ) |
remove operation
Definition at line 98 of file physicalNode.cxx.
virtual bool PhysicalNode::safe_to_flatten | ( | ) | const [inline, virtual] |
Returns true if it is generally safe to flatten out this particular kind of PandaNode by duplicating instances (by calling dupe_for_flatten()), false otherwise (for instance, a Camera cannot be safely flattened, because the Camera pointer itself is meaningful).
Reimplemented from PandaNode.
Definition at line 48 of file physicalNode.h.
void PhysicalNode::write | ( | ostream & | out, |
unsigned int | indent = 0 |
||
) | const [virtual] |
Write a string representation of this instance to <out>.
Reimplemented in ActorNode.
Definition at line 115 of file physicalNode.cxx.