18 #include "pandaNode.h"
21 #include "baseForce.h"
34 INLINE
BaseForce *get_force(
int index)
const;
35 INLINE
int get_num_forces()
const;
36 MAKE_SEQ(get_forces, get_num_forces, get_force);
39 void add_forces_from(
const ForceNode &other);
41 void remove_force(
int index);
43 virtual void output(ostream &out)
const;
44 virtual void write_forces(ostream &out,
unsigned int indent=0)
const;
45 virtual void write(ostream &out,
unsigned int indent=0)
const;
63 static void init_type() {
64 PandaNode::init_type();
65 register_type(_type_handle,
"ForceNode",
66 PandaNode::get_class_type());
69 return get_class_type();
71 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
77 #include "forceNode.I"
A basic node of the scene graph or data graph.
A force that lives in the scene graph and is therefore subject to local coordinate systems...
virtual bool safe_to_flatten() const
Returns true if it is generally safe to flatten out this particular kind of PandaNode by duplicating ...
virtual PandaNode * make_copy() const
Returns a newly-allocated PandaNode that is a shallow copy of this one.
pure virtual base class for all forces that could POSSIBLY exist.
TypeHandle is the identifier used to differentiate C++ class types.