14#ifndef CHARACTERSLIDER_H
15#define CHARACTERSLIDER_H
28class EXPCL_PANDA_CHAR CharacterSlider :
public MovingPartScalar {
31 CharacterSlider(
const CharacterSlider ©);
34 explicit CharacterSlider(
PartGroup *parent,
const std::string &name);
35 explicit CharacterSlider(
PartGroup *parent,
const std::string &name,
const PN_stdfloat &default_value);
36 virtual ~CharacterSlider();
42 bool self_changed,
bool parent_changed,
46 typedef pset<CharacterVertexSlider *> VertexSliders;
47 VertexSliders _vertex_sliders;
56 return get_class_type();
58 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
64 static void init_type() {
65 MovingPartScalar::init_type();
67 MovingPartScalar::get_class_type());
73 friend class CharacterVertexSlider;
static TypedWritable * make_CharacterSlider(const FactoryParams ¶ms)
Factory method to generate a CharacterSlider object.
This is a specialization on VertexSlider that returns the slider value associated with a particular C...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
virtual bool update_internals(PartBundle *root, PartGroup *parent, bool self_changed, bool parent_changed, Thread *current_thread)
This is called by do_update() whenever the part or some ancestor has changed values.
static void register_with_read_factory()
Factory method to generate a MovingPartScalar object.
This is the root of a MovingPart hierarchy.
This is the base class for PartRoot and MovingPart.
virtual PartGroup * make_copy() const
Allocates and returns a new copy of the node.
A thread; that is, a lightweight process.
TypeHandle is the identifier used to differentiate C++ class types.
Base class for objects that can be written to and read from Bam files.
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(),...