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();}
80 #endif // PHYSICALNODE_H PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A basic node of the scene graph or data graph.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual bool safe_to_flatten() const
Returns true if it is generally safe to flatten out this particular kind of PandaNode by duplicating ...
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is our own Panda specialization on the default STL vector.
Graph node that encapsulated a series of physical objects.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.