42 virtual void xform(
const LMatrix4 &mat);
47 virtual void output(std::ostream &out)
const;
54 INLINE
void set_vertices(
const LPoint3 &v0,
const LPoint3 &v1,
55 const LPoint3 &v2,
const LPoint3 &v3);
57 INLINE
const LPoint3 &
get_vertex(
size_t n)
const;
58 INLINE
void set_vertex(
size_t n,
const LPoint3 &v);
66 virtual void compute_internal_bounds(CPT(
BoundingVolume) &internal_bounds,
67 int &internal_vertices,
69 Thread *current_thread)
const;
76 PN_stdfloat _min_coverage;
77 typedef pvector<LPoint3> Vertices;
80 PT(
Geom) _occluder_viz, _frame_viz;
89 static TypedWritable *make_from_bam(
const FactoryParams ¶ms);
96 static void init_type() {
97 PandaNode::init_type();
99 PandaNode::get_class_type());
101 virtual TypeHandle get_type()
const {
102 return get_class_type();
104 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
107 static TypeHandle _type_handle;
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This is an abstract class for any volume in any sense which can be said to define the locality of ref...
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling,...
A class to retrieve the individual data elements previously stored in a Datagram.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
A container for geometry primitives.
set_double_sided
If true, the back-face will also be used to occlude.
set_min_coverage
Minimum screen coverage needed before occluder used.
get_num_vertices
Returns the number of vertices in the occluder polygon.
set_vertex
Sets the nth vertex of the occluder polygon.
get_min_coverage
Returns the minimum screen coverage.
is_double_sided
Is this occluder double-sided.
get_vertex
Returns the nth vertex of the occluder polygon.
virtual void output(std::ostream &out) const
Writes a brief description of the node to the indicated output stream.
OccluderNode(const std::string &name)
The default constructor creates a default occlusion polygon in the XZ plane (or XY plane in a y-up co...
void set_vertices(const LPoint3 &v0, const LPoint3 &v1, const LPoint3 &v2, const LPoint3 &v3)
Replaces the four vertices of the occluder polygon.
virtual bool preserve_name() const
Returns true if the node's name has extrinsic meaning and must be preserved across a flatten operatio...
virtual bool cull_callback(CullTraverser *trav, CullTraverserData &data)
This function will be called during the cull traversal to perform any additional operations that shou...
virtual bool is_renderable() const
Returns true if there is some value to visiting this particular node during the cull traversal for an...
static void register_with_read_factory()
Tells the BamReader how to create objects of type PandaNode.
virtual void xform(const LMatrix4 &mat)
Transforms the contents of this PandaNode by the indicated matrix, if it means anything to do so.
virtual PandaNode * make_copy() const
Returns a newly-allocated PandaNode that is a shallow copy of this one.
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 represents a unique collection of RenderAttrib objects that correspond to a particular renderabl...
Represents a texture object, which is typically a single 2-d image but may also represent a 1-d or 3-...
A thread; that is, a lightweight process.
TypeHandle is the identifier used to differentiate C++ class types.
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 our own Panda specialization on the default STL list.
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.
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(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.