18 #include "pandabase.h"
21 #include "pandaNode.h"
22 #include "updateSeq.h"
24 #include "cycleData.h"
25 #include "cycleDataLockedReader.h"
26 #include "cycleDataReader.h"
27 #include "cycleDataWriter.h"
28 #include "cycleDataStageReader.h"
29 #include "cycleDataStageWriter.h"
30 #include "pipelineCycler.h"
41 PlaneNode(
const string &name,
const LPlane &plane = LPlane());
46 virtual void output(ostream &out)
const;
55 INLINE
void set_plane(
const LPlane &plane);
56 INLINE
const LPlane &get_plane()
const;
58 INLINE
void set_viz_scale(PN_stdfloat viz_scale);
59 INLINE PN_stdfloat get_viz_scale()
const;
61 INLINE
void set_priority(
int priority);
62 INLINE
int get_priority()
const;
66 CE_collision = 0x0002,
68 INLINE
void set_clip_effect(
int clip_effect);
69 INLINE
int get_clip_effect()
const;
75 virtual void compute_internal_bounds(CPT(
BoundingVolume) &internal_bounds,
76 int &internal_vertices,
78 Thread *current_thread)
const;
90 class EXPCL_PANDA_PGRAPH CData :
public CycleData {
93 INLINE CData(
const CData ©);
98 return PlaneNode::get_class_type();
102 PT(
Geom) _front_viz, _back_viz;
103 PN_stdfloat _viz_scale;
114 static void register_with_read_factory();
125 static void init_type() {
126 PandaNode::init_type();
127 register_type(_type_handle,
"PlaneNode",
128 PandaNode::get_class_type());
131 return get_class_type();
133 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
139 #include "planeNode.I"
A basic node of the scene graph or data graph.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This class is similar to CycleDataWriter, except it allows writing to a particular stage of the pipel...
A single page of data maintained by a PipelineCycler.
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 the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
This template class calls PipelineCycler::read_unlocked(), and then provides a transparent read-only ...
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...
This is a 4-by-4 transform matrix.
This template class calls PipelineCycler::read() in the constructor and PipelineCycler::release_read(...
A container for geometry primitives.
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 template class calls PipelineCycler::write() in the constructor and PipelineCycler::release_writ...
virtual void fillin(DatagramIterator &scan, BamReader *manager)
This internal function is intended to be called by each class's make_from_bam() method to read in all...
This class is similar to CycleDataReader, except it allows reading from a particular stage of the pip...
A thread; that is, a lightweight process.
A class to retrieve the individual data elements previously stored in a Datagram. ...
virtual void write_datagram(BamWriter *, Datagram &) const
Writes the contents of this object to the datagram for shipping out to a Bam file.
TypeHandle is the identifier used to differentiate C++ class types.
This is a sequence number that increments monotonically.
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...
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...