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);
43 MAKE_SEQ_PROPERTY(physicals, get_num_physicals, get_physical,
set_physical,
46 virtual void write(std::ostream &out,
int indent=0)
const;
57 typedef pvector<PT(
Physical)> PhysicalsVector;
58 PhysicalsVector _physicals;
64 static void init_type() {
65 PandaNode::init_type();
67 PandaNode::get_class_type());
69 virtual TypeHandle get_type()
const {
70 return get_class_type();
72 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
75 static TypeHandle _type_handle;
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 ...
remove_physical
remove operation
void add_physicals_from(const PhysicalNode &other)
append operation
PhysicalNode(const std::string &name)
default constructor
void add_physical(Physical *physical)
Adds a Physical to this PhysicalNode.
insert_physical
insert operation
set_physical
replace operation
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
Defines a set of physically modeled attributes.
TypeHandle is the identifier used to differentiate C++ class types.
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(),...