14#ifndef MOVINGPARTSCALAR_H
15#define MOVINGPARTSCALAR_H
28class EXPCL_PANDA_CHAN MovingPartScalar :
public MovingPart<ACScalarSwitchType> {
30 INLINE MovingPartScalar(
const MovingPartScalar ©);
33 INLINE MovingPartScalar(PartGroup *parent,
const std::string &name,
34 const PN_stdfloat &default_value = 0);
35 virtual ~MovingPartScalar();
43 INLINE MovingPartScalar();
52 return get_class_type();
54 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
60 static void init_type() {
61 MovingPart<ACScalarSwitchType>::init_type();
62 AnimChannelFixed<ACScalarSwitchType>::init_type();
64 MovingPart<ACScalarSwitchType>::get_class_type());
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
virtual void get_blend_value(const PartBundle *root)
Attempts to blend the various scalar values indicated, and sets the _value member to the resulting sc...
static TypedWritable * make_MovingPartScalar(const FactoryParams ¶ms)
Factory method to generate a MovingPartScalar object.
This is the template instantiation of MovingPartBase, on the particular type of value provided by the...
A basic node of the scene graph or data graph.
virtual bool apply_freeze_scalar(PN_stdfloat value)
Freezes this particular joint so that it will always hold the specified transform.
virtual bool apply_control(PandaNode *node)
Specifies a node to influence this particular joint so that it will always hold the node's transform.
static void register_with_read_factory()
Factory method to generate a PartGroup object.
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.
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(),...