14 #ifndef RENDEREFFECTS_H 15 #define RENDEREFFECTS_H 51 bool safe_to_transform()
const;
53 bool safe_to_combine()
const;
59 INLINE
bool is_empty()
const;
60 INLINE
size_t get_num_effects()
const;
63 INLINE
size_t size()
const;
86 virtual bool unref()
const;
88 void output(std::ostream &out)
const;
89 void write(std::ostream &out,
int indent_level)
const;
91 static int get_num_states();
92 static void list_states(std::ostream &out);
93 static bool validate_states();
96 INLINE
bool has_decal()
const;
97 INLINE
bool has_show_bounds()
const;
98 INLINE
bool has_show_tight_bounds()
const;
100 INLINE
bool has_cull_callback()
const;
105 INLINE
bool has_adjust_transform()
const;
110 static void init_states();
116 void determine_decal();
117 void determine_show_bounds();
118 void determine_cull_callback();
119 void determine_adjust_transform();
133 States::iterator _saved_entry;
142 INLINE Effect(
const Effect ©);
143 INLINE
void operator = (
const Effect ©);
144 INLINE
bool operator < (
const Effect &other)
const;
145 INLINE
int compare_to(
const Effect &other)
const;
154 F_checked_decal = 0x0001,
155 F_has_decal = 0x0002,
156 F_checked_show_bounds = 0x0004,
157 F_has_show_bounds = 0x0008,
158 F_has_show_tight_bounds = 0x0010,
159 F_checked_cull_callback = 0x0020,
160 F_has_cull_callback = 0x0040,
161 F_checked_adjust_transform = 0x0080,
162 F_has_adjust_transform = 0x0100,
171 static void register_with_read_factory();
186 static void init_type() {
187 TypedWritableReferenceCount::init_type();
189 TypedWritableReferenceCount::get_class_type());
192 return get_class_type();
194 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
200 INLINE std::ostream &operator << (std::ostream &out,
const RenderEffects &state) {
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.
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.
A lightweight reentrant mutex.
This collects together the pieces of data that are accumulated for each node while walking the scene ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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...
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.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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().
An instance of this class is passed to the Factory when requesting it to do its business and construc...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A base class for things which need to inherit from both TypedWritable and from ReferenceCount.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This represents a unique collection of RenderAttrib objects that correspond to a particular renderabl...
virtual bool require_fully_complete() const
Some objects require all of their nested pointers to have been completed before the objects themselve...
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.
This is a standard, non-reentrant mutex, similar to the Mutex class.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
This represents a unique collection of RenderEffect objects that correspond to a particular renderabl...
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling,...
virtual bool unref() const
Explicitly decrements the reference count.