14#ifndef USERVERTEXSLIDER_H
15#define USERVERTEXSLIDER_H
31class EXPCL_PANDA_GOBJ UserVertexSlider :
public VertexSlider {
33 explicit UserVertexSlider(
const std::string &name);
41 class EXPCL_PANDA_GOBJ CData :
public CycleData {
44 INLINE CData(
const CData ©);
49 return UserVertexSlider::get_class_type();
64 static TypedWritable *make_from_bam(
const FactoryParams ¶ms);
71 static void init_type() {
72 VertexSlider::init_type();
74 VertexSlider::get_class_type());
77 return get_class_type();
79 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This template class calls PipelineCycler::read_unlocked(), and then provides a transparent read-only ...
This template class calls PipelineCycler::write() in the constructor and PipelineCycler::release_writ...
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 ...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
Encodes a string name in a hash table, mapping it to a pointer.
TypeHandle is the identifier used to differentiate C++ class types.
void set_slider(PN_stdfloat slider)
Stores the indicated slider value.
static void register_with_read_factory()
Tells the BamReader how to create objects of type UserVertexSlider.
virtual PN_stdfloat get_slider() const
Returns the current 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.
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(),...
This class maintains different copies of a page of data between stages of the graphics pipeline (or a...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.