15 #ifndef COLLISIONNODE_H
16 #define COLLISIONNODE_H
18 #include "pandabase.h"
20 #include "collisionSolid.h"
22 #include "collideMask.h"
23 #include "pandaNode.h"
52 virtual void output(ostream &out)
const;
61 INLINE
void clear_solids();
62 INLINE
int get_num_solids()
const;
64 MAKE_SEQ(get_solids, get_num_solids, get_solid);
67 INLINE
void remove_solid(
int n);
70 INLINE
int get_collider_sort()
const;
71 INLINE
void set_collider_sort(
int sort);
73 INLINE
static CollideMask get_default_collide_mask();
76 virtual void compute_internal_bounds(CPT(
BoundingVolume) &internal_bounds,
77 int &internal_vertices,
79 Thread *current_thread)
const;
106 static void init_type() {
107 PandaNode::init_type();
108 register_type(_type_handle,
"CollisionNode",
109 PandaNode::get_class_type());
112 return get_class_type();
114 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
120 #include "collisionNode.I"
A basic node of the scene graph or data graph.
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
virtual bool is_collision_node() const
A simple downcast check.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
virtual PandaNode * combine_with(PandaNode *other)
Collapses this PandaNode with the other PandaNode, if possible, and returns a pointer to the combined...
The abstract base class for all things that can collide with other things in the world, and all the things they can collide with (except geometry).
Base class for objects that can be written to and read from Bam files.
CollideMask get_into_collide_mask() const
Returns the "into" collide mask for this node.
This collects together the pieces of data that are accumulated for each node while walking the scene ...
virtual PandaNode * make_copy() const
Returns a newly-allocated PandaNode that is a shallow copy of this one.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
This is our own Panda specialization on the default STL list.
static void register_with_read_factory()
Tells the BamReader how to create objects of type PandaNode.
virtual bool preserve_name() const
Returns true if the node's name has extrinsic meaning and must be preserved across a flatten operatio...
This is an abstract class for any volume in any sense which can be said to define the locality of ref...
virtual void xform(const LMatrix4 &mat)
Transforms the contents of this PandaNode by the indicated matrix, if it means anything to do so...
virtual CollideMask get_legal_collide_mask() const
Returns the subset of CollideMask bits that may be set for this particular type of PandaNode...
virtual int complete_pointers(TypedWritable **p_list, BamReader *manager)
Receives an array of pointers, one for each time manager->read_pointer() was called in fillin()...
This is a 4-by-4 transform matrix.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
void set_into_collide_mask(CollideMask mask)
Sets the "into" CollideMask.
virtual bool is_renderable() const
Returns true if there is some value to visiting this particular node during the cull traversal for an...
This represents a unique collection of RenderAttrib objects that correspond to a particular renderabl...
A thread; that is, a lightweight process.
A node in the scene graph that can hold any number of CollisionSolids.
A class to retrieve the individual data elements previously stored in a Datagram. ...
TypeHandle is the identifier used to differentiate C++ class types.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling...
virtual bool cull_callback(CullTraverser *trav, CullTraverserData &data)
This function will be called during the cull traversal to perform any additional operations that shou...