18 #include "pandabase.h"
20 #include "portalMask.h"
21 #include "pandaNode.h"
22 #include "planeNode.h"
49 virtual void enable_clipping_planes();
54 virtual void output(ostream &out)
const;
58 INLINE
void set_from_portal_mask(
PortalMask mask);
59 INLINE
void set_into_portal_mask(
PortalMask mask);
60 INLINE
PortalMask get_from_portal_mask()
const;
61 INLINE
PortalMask get_into_portal_mask()
const;
63 INLINE
void set_portal_geom(
bool flag);
64 INLINE
bool get_portal_geom()
const;
66 INLINE
void clear_vertices();
67 INLINE
void add_vertex(
const LPoint3 &vertex);
69 INLINE
int get_num_vertices()
const;
70 INLINE
const LPoint3 &get_vertex(
int n)
const;
71 MAKE_SEQ(get_vertices, get_num_vertices, get_vertex);
73 INLINE
void set_cell_in(
const NodePath &cell);
76 INLINE
void set_cell_out(
const NodePath &cell);
77 INLINE
NodePath get_cell_out()
const;
79 INLINE
void set_clip_plane(
bool value);
80 INLINE
bool is_clip_plane();
82 INLINE
void set_visible(
bool value);
83 INLINE
bool is_visible();
85 INLINE
void set_max_depth(
int value);
86 INLINE
int get_max_depth();
88 INLINE
void set_open(
bool value);
89 INLINE
bool is_open();
94 virtual void compute_internal_bounds(CPT(
BoundingVolume) &internal_bounds,
95 int &internal_vertices,
97 Thread *current_thread)
const;
109 F_portal_geom = 0x0001,
145 static void init_type() {
146 PandaNode::init_type();
147 register_type(_type_handle,
"PortalNode",
148 PandaNode::get_class_type());
151 return get_class_type();
153 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
159 #include "portalNode.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.
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...
Base class for objects that can be written to and read from Bam files.
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 a three-component point in space (as opposed to a three-component vector, which represents a ...
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...
A node in the scene graph that can hold a Portal Polygon, which is a rectangle.
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...
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 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 ...
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling...
A node that contains a plane.
virtual bool cull_callback(CullTraverser *trav, CullTraverserData &data)
This function will be called during the cull traversal to perform any additional operations that shou...