15 #ifndef PHYSICALNODE_H 16 #define PHYSICALNODE_H 18 #include "pandabase.h" 19 #include "pandaNode.h" 24 #include "config_physics.h" 35 INLINE
Physical *get_physical(
int index)
const;
36 INLINE
int get_num_physicals()
const;
37 MAKE_SEQ(get_physicals, get_num_physicals, get_physical);
38 INLINE
void add_physical(
Physical *physical);
41 void remove_physical(
Physical *physical);
42 void remove_physical(
int index);
44 virtual void write(ostream &out,
unsigned int indent=0)
const;
56 PhysicalsVector _physicals;
62 static void init_type() {
63 PandaNode::init_type();
64 register_type(_type_handle,
"PhysicalNode",
65 PandaNode::get_class_type());
68 return get_class_type();
70 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
76 #include "physicalNode.I" 78 #endif // PHYSICALNODE_H A basic node of the scene graph or data graph.
virtual bool safe_to_flatten() const
Returns true if it is generally safe to flatten out this particular kind of PandaNode by duplicating ...
Graph node that encapsulated a series of physical objects.
Defines a set of physically modeled attributes.
virtual PandaNode * make_copy() const
Returns a newly-allocated PandaNode that is a shallow copy of this one.
TypeHandle is the identifier used to differentiate C++ class types.