57 Operation get_operation()
const;
59 int get_num_lights()
const;
60 Light *get_light(
int n)
const;
61 bool has_light(
Light *light)
const;
71 INLINE
size_t get_num_on_lights()
const;
72 INLINE
size_t get_num_non_ambient_lights()
const;
73 INLINE
NodePath get_on_light(
size_t n)
const;
74 MAKE_SEQ(get_on_lights, get_num_on_lights, get_on_light);
75 INLINE
bool has_on_light(
const NodePath &light)
const;
76 INLINE
bool has_any_on_light()
const;
78 INLINE
size_t get_num_off_lights()
const;
79 INLINE
NodePath get_off_light(
size_t n)
const;
80 MAKE_SEQ(get_off_lights, get_num_off_lights, get_off_light);
81 INLINE
bool has_off_light(
const NodePath &light)
const;
82 INLINE
bool has_all_off()
const;
84 INLINE
bool is_identity()
const;
93 NodePath get_most_important_light()
const;
94 LColor get_ambient_contribution()
const;
96 MAKE_SEQ_PROPERTY(on_lights, get_num_on_lights, get_on_light);
97 MAKE_SEQ_PROPERTY(off_lights, get_num_off_lights, get_off_light);
100 virtual void output(std::ostream &out)
const;
101 virtual void write(std::ostream &out,
int indent_level)
const;
104 virtual int compare_to_impl(
const RenderAttrib *other)
const;
105 virtual size_t get_hash_impl()
const;
110 INLINE
void check_sorted()
const;
111 void sort_on_lights();
115 Lights _on_lights, _off_lights;
116 bool _off_all_lights;
122 size_t _num_non_ambient_lights;
130 static int get_class_slot() {
133 virtual int get_slot()
const {
134 return get_class_slot();
136 MAKE_PROPERTY(class_slot, get_class_slot);
152 static void register_with_read_factory();
166 static void init_type() {
167 RenderAttrib::init_type();
169 RenderAttrib::get_class_type());
173 return get_class_type();
175 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
179 static int _attrib_slot;
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
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...
Indicates which set of lights should be considered "on" to illuminate geometry at this level and belo...
The abstract interface to all kinds of lights.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
A basic node of the scene graph or data graph.
This is the base class for a number of render attributes (other than transform) that may be set on sc...
virtual void finalize(BamReader *manager)
Called by the BamReader to perform any final actions needed for setting up the object after all objec...
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
static int register_slot(TypeHandle type_handle, int sort, RenderAttrib *default_attrib)
Adds the indicated TypeHandle to the registry, if it is not there already, and returns a unique slot ...
TypeHandle is the identifier used to differentiate C++ class types.
Base class for objects that can be written to and read from Bam files.
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.
This is our own Panda specialization on the default STL vector.
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.