Panda3D
|
This is a specialization on VertexSlider that allows the user to specify any arbitrary slider valie he likes. More...
#include "userVertexSlider.h"
Classes | |
class | CData |
Public Member Functions | |
UserVertexSlider (const string &name) | |
UserVertexSlider (const InternalName *name) | |
virtual TypeHandle | force_init_type () |
virtual PN_stdfloat | get_slider () const |
Returns the current slider value. | |
virtual TypeHandle | get_type () const |
void | set_slider (PN_stdfloat slider) |
Stores the indicated slider value. | |
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 Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
static void | register_with_read_factory () |
Tells the BamReader how to create objects of type UserVertexSlider. | |
Protected Member Functions | |
void | fillin (DatagramIterator &scan, BamReader *manager) |
This internal function is called by make_from_bam to read in all of the relevant data from the BamFile for the new UserVertexSlider. | |
Static Protected Member Functions | |
static TypedWritable * | make_from_bam (const FactoryParams ¶ms) |
This function is called by the BamReader's factory when a new object of type UserVertexSlider is encountered in the Bam file. |
This is a specialization on VertexSlider that allows the user to specify any arbitrary slider valie he likes.
This is rarely used except for testing.
Definition at line 34 of file userVertexSlider.h.
void UserVertexSlider::fillin | ( | DatagramIterator & | scan, |
BamReader * | manager | ||
) | [protected, virtual] |
This internal function is called by make_from_bam to read in all of the relevant data from the BamFile for the new UserVertexSlider.
Reimplemented from VertexSlider.
Definition at line 116 of file userVertexSlider.cxx.
References BamReader::read_cdata().
PN_stdfloat UserVertexSlider::get_slider | ( | ) | const [virtual] |
Returns the current slider value.
Implements VertexSlider.
Definition at line 49 of file userVertexSlider.cxx.
TypedWritable * UserVertexSlider::make_from_bam | ( | const FactoryParams & | params | ) | [static, protected] |
This function is called by the BamReader's factory when a new object of type UserVertexSlider is encountered in the Bam file.
It should create the UserVertexSlider and extract its information from the file.
Definition at line 97 of file userVertexSlider.cxx.
Referenced by register_with_read_factory().
void UserVertexSlider::register_with_read_factory | ( | ) | [static] |
Tells the BamReader how to create objects of type UserVertexSlider.
Definition at line 71 of file userVertexSlider.cxx.
References BamReader::get_factory(), make_from_bam(), and Factory< Type >::register_factory().
void UserVertexSlider::set_slider | ( | PN_stdfloat | slider | ) | [inline] |
Stores the indicated slider value.
Definition at line 22 of file userVertexSlider.I.
References Thread::get_current_thread(), and VertexSlider::mark_modified().
Writes the contents of this object to the datagram for shipping out to a Bam file.
Reimplemented from VertexSlider.
Definition at line 82 of file userVertexSlider.cxx.
References BamWriter::write_cdata().