14#ifndef OCCLUDEREFFECT_H
15#define OCCLUDEREFFECT_H
32class EXPCL_PANDA_PGRAPH OccluderEffect :
public RenderEffect {
34 INLINE OccluderEffect();
35 INLINE OccluderEffect(
const OccluderEffect ©);
38 static CPT(RenderEffect)
make();
51 virtual void output(std::ostream &out)
const;
54 virtual int compare_to_impl(
const RenderEffect *other)
const;
57 void sort_on_occluders();
61 Occluders _on_occluders;
65 static CPT(RenderEffect) _empty_effect;
74 static TypedWritable *make_from_bam(
const FactoryParams ¶ms);
81 static void init_type() {
82 RenderEffect::init_type();
84 RenderEffect::get_class_type());
86 virtual TypeHandle get_type()
const {
87 return get_class_type();
89 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
92 static TypeHandle _type_handle;
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
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...
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
bool is_identity() const
Returns true if this is an identity effect: it does not change the set of occluders in use.
ConstPointerTo< RenderEffect > add_on_occluder(const NodePath &occluder) const
Returns a new OccluderEffect, just like this one, but with the indicated occluder added to the list o...
ConstPointerTo< RenderEffect > remove_on_occluder(const NodePath &occluder) const
Returns a new OccluderEffect, just like this one, but with the indicated occluder removed from the li...
static void register_with_read_factory()
Tells the BamReader how to create objects of type OccluderEffect.
get_num_on_occluders
Returns the number of occluders that are enabled by the effectute.
static ConstPointerTo< RenderEffect > make()
Constructs a new OccluderEffect object that does nothing.
bool has_on_occluder(const NodePath &occluder) const
Returns true if the indicated occluder is enabled by the effect, false otherwise.
get_on_occluder
Returns the nth occluder enabled by the effectute, sorted in render order.
virtual void write_datagram(BamWriter *manager, Datagram &dg)
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.
virtual bool require_fully_complete() const
Some objects require all of their nested pointers to have been completed before the objects themselve...
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 sequence number that increments monotonically.
A specialization of ordered_vector that emulates a standard STL set: one copy of each element is allo...
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.