15 #ifndef RENDEREFFECT_H 16 #define RENDEREFFECT_H 18 #include "pandabase.h" 20 #include "transformState.h" 21 #include "renderState.h" 23 #include "typedWritableReferenceCount.h" 24 #include "pointerTo.h" 66 virtual bool safe_to_transform()
const;
67 virtual CPT(TransformState) prepare_flatten_transform(
const TransformState *net_transform)
const;
68 virtual bool safe_to_combine()
const;
71 virtual bool has_cull_callback()
const;
73 CPT(TransformState) &node_transform,
76 virtual bool has_adjust_transform()
const;
77 virtual void adjust_transform(CPT(TransformState) &net_transform,
78 CPT(TransformState) &node_transform,
84 virtual void output(ostream &out)
const;
85 virtual void write(ostream &out,
int indent_level)
const;
87 static int get_num_effects();
88 static void list_effects(ostream &out);
89 static bool validate_effects();
94 virtual int compare_to_impl(
const RenderEffect *other)
const;
98 static Effects *_effects;
100 Effects::iterator _saved_entry;
115 static void init_type() {
116 TypedWritableReferenceCount::init_type();
117 register_type(_type_handle,
"RenderEffect",
118 TypedWritableReferenceCount::get_class_type());
121 return get_class_type();
123 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
129 INLINE ostream &operator << (ostream &out,
const RenderEffect &effect) {
134 #include "renderEffect.I" A basic node of the scene graph or data graph.
virtual void finalize(BamReader *manager)
Called by the BamReader to perform any final actions needed for setting up the object after all objec...
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
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 ...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
This is the base class for a number of special render effects that may be set on scene graph nodes to...
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...
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 a 4-by-4 transform matrix.
A base class for things which need to inherit from both TypedWritable and from ReferenceCount.
This represents a unique collection of RenderAttrib objects that correspond to a particular renderabl...
An STL function object class, this is intended to be used on any ordered collection of class objects ...
This is our own Panda specialization on the default STL set.
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...