14 #ifndef PHYSICALNODE_H
15 #define PHYSICALNODE_H
32 INLINE
Physical *get_physical(
size_t index)
const;
33 INLINE
size_t get_num_physicals()
const;
34 MAKE_SEQ(get_physicals, get_num_physicals, get_physical);
35 INLINE
void add_physical(
Physical *physical);
38 void set_physical(
size_t index,
Physical *physical);
39 void insert_physical(
size_t index,
Physical *physical);
40 void remove_physical(
Physical *physical);
41 void remove_physical(
size_t index);
43 MAKE_SEQ_PROPERTY(physicals, get_num_physicals, get_physical, set_physical,
44 remove_physical, insert_physical);
46 virtual void write(std::ostream &out,
int indent=0)
const;
58 PhysicalsVector _physicals;
64 static void init_type() {
65 PandaNode::init_type();
67 PandaNode::get_class_type());
70 return get_class_type();
72 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
A basic node of the scene graph or data graph.
virtual PandaNode * make_copy() const
Returns a newly-allocated PandaNode that is a shallow copy of this one.
Graph node that encapsulated a series of physical objects.
virtual bool safe_to_flatten() const
Returns true if it is generally safe to flatten out this particular kind of PandaNode by duplicating ...
Defines a set of physically modeled attributes.
TypeHandle is the identifier used to differentiate C++ class types.
This is our own Panda specialization on the default STL vector.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...