18 TypeHandle EggScalarTablePointer::_type_handle;
23 EggScalarTablePointer::
24 EggScalarTablePointer(
EggObject *
object) {
34 if (_data ==
nullptr || !_data->has_fps()) {
37 return _data->get_fps();
46 if (_data ==
nullptr) {
49 return _data->get_num_rows();
58 nassertv(_data !=
nullptr);
59 int num_rows = _data->get_num_rows();
64 last_value = _data->get_value(num_rows - 1);
67 while (num_rows < num_frames) {
68 _data->add_data(last_value);
85 return _data->get_value(n);
virtual void set_name(const std::string &name)
Applies the indicated name change to the egg file.
virtual void extend_to(int num_frames)
Extends the table to the indicated number of frames.
Corresponding to an <S$Anim> entry, this stores a single column of numbers, for instance for a morph ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual double get_frame_rate() const
Returns the stated frame rate of this particular joint, or 0.0 if it doesn't state.
virtual double get_frame(int n) const
Returns the value corresponding to this slider position in the nth frame.
virtual int get_num_frames() const
Returns the number of frames of animation for this particular slider.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
The highest-level base class in the egg directory.