28class EXPCL_PANDA_PGRAPHNODES SphereLight :
public PointLight {
30 explicit SphereLight(
const std::string &name);
33 SphereLight(
const SphereLight ©);
37 virtual void xform(
const LMatrix4 &mat);
38 virtual void write(std::ostream &out,
int indent_level)
const;
47 class EXPCL_PANDA_PGRAPHNODES CData :
public CycleData {
50 INLINE CData(
const CData ©);
55 return SphereLight::get_class_type();
61 PipelineCycler<CData> _cycler;
62 typedef CycleDataReader<CData> CDReader;
63 typedef CycleDataWriter<CData> CDWriter;
70 static TypedWritable *make_from_bam(
const FactoryParams ¶ms);
71 void fillin(DatagramIterator &scan, BamReader *manager);
74 static TypeHandle get_class_type() {
77 static void init_type() {
78 PointLight::init_type();
80 PointLight::get_class_type());
82 virtual TypeHandle get_type()
const {
83 return get_class_type();
85 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
88 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 ...
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 ...
A basic node of the scene graph or data graph.
virtual void xform(const LMatrix4 &mat)
Transforms the contents of this PandaNode by the indicated matrix, if it means anything to do so.
virtual PandaNode * make_copy() const
Returns a newly-allocated PandaNode that is a shallow copy of this one.
static void register_with_read_factory()
Tells the BamReader how to create objects of type PointLight.
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
get_radius
Returns the radius of the sphere.
set_radius
Sets the radius of the sphere.
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.
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.