15 #include "physicalNode.h" 38 PandaNode(copy), _physicals(copy._physicals) {
69 _physicals.insert(_physicals.end(),
70 other._physicals.begin(), other._physicals.end());
72 for (; last != _physicals.end(); last++) {
73 (*last)->_physical_node =
this;
86 found = find(_physicals.begin(), _physicals.end(), ptp);
87 if (found == _physicals.end())
89 _physicals.erase(found);
99 nassertv(index >= 0 && index <= (
int)_physicals.size());
102 remove = _physicals.begin() + index;
105 _physicals.erase(
remove);
115 write(ostream &out,
unsigned int indent)
const {
117 out.width(indent); out<<
""; out<<
"PhysicalNode:\n";
void add_physicals_from(const PhysicalNode &other)
append operation
PhysicalNode(const string &name)
default constructor
void remove_physical(Physical *physical)
remove operation
A basic node of the scene graph or data graph.
virtual void write(ostream &out, unsigned int indent=0) const
Write a string representation of this instance to <out>.
This is our own Panda specialization on the default STL vector.
Graph node that encapsulated a series of physical objects.
Defines a set of physically modeled attributes.
virtual PandaNode * make_copy() const
dynamic child copy
virtual ~PhysicalNode()
destructor
TypeHandle is the identifier used to differentiate C++ class types.