14#ifndef RECTANGLELIGHT_H
15#define RECTANGLELIGHT_H
28class EXPCL_PANDA_PGRAPHNODES RectangleLight :
public LightLensNode {
30 explicit RectangleLight(
const std::string &name);
33 RectangleLight(
const RectangleLight ©);
37 virtual void write(std::ostream &out,
int indent_level)
const;
54 class EXPCL_PANDA_PGRAPHNODES CData :
public CycleData {
57 INLINE CData(
const CData ©);
62 return RectangleLight::get_class_type();
65 PN_stdfloat _max_distance;
68 PipelineCycler<CData> _cycler;
69 typedef CycleDataReader<CData> CDReader;
70 typedef CycleDataWriter<CData> CDWriter;
77 static TypedWritable *make_from_bam(
const FactoryParams ¶ms);
78 void fillin(DatagramIterator &scan, BamReader *manager);
81 static TypeHandle get_class_type() {
84 static void init_type() {
85 LightLensNode::init_type();
87 LightLensNode::get_class_type());
89 virtual TypeHandle get_type()
const {
90 return get_class_type();
92 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
95 static TypeHandle _type_handle;
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 ...
virtual PandaNode * make_copy() const
Returns a newly-allocated Node that is a shallow copy of this one.
static void register_with_read_factory()
Tells the BamReader how to create objects of type Camera.
A single page of data maintained by a PipelineCycler.
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 ...
This is a base class for the GraphicsStateGuardian class, which is itself a base class for the variou...
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
virtual const LColor & get_specular_color() const
Returns the color of specular highlights generated by the light.
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.
virtual int get_class_priority() const
Returns the relative priority associated with all lights of this class.
set_max_distance
Sets the radius of the light's sphere of influence.
get_max_distance
Returns the maximum distance at which the light has any effect, as previously specified by set_max_di...
TypeHandle is the identifier used to differentiate C++ class types.
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(),...