Panda3D
eggSliderData.h
1 // Filename: eggSliderData.h
2 // Created by: drose (26Feb01)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef EGGSLIDERDATA_H
16 #define EGGSLIDERDATA_H
17 
18 #include "pandatoolbase.h"
19 
20 #include "eggComponentData.h"
21 
22 
23 ////////////////////////////////////////////////////////////////////
24 // Class : EggSliderData
25 // Description : This corresponds to a single morph slider control.
26 // It contains back pointers to all the vertices and
27 // primitives that reference this slider across all
28 // models, as well as all the tables in which it appears
29 // in all animation files.
30 ////////////////////////////////////////////////////////////////////
32 public:
34  EggCharacterData *char_data);
35 
36  double get_frame(int model_index, int n) const;
37 
38  virtual void add_back_pointer(int model_index, EggObject *egg_object);
39  virtual void write(ostream &out, int indent_level = 0) const;
40 
41 
42 public:
43  static TypeHandle get_class_type() {
44  return _type_handle;
45  }
46  static void init_type() {
47  EggComponentData::init_type();
48  register_type(_type_handle, "EggSliderData",
49  EggComponentData::get_class_type());
50  }
51  virtual TypeHandle get_type() const {
52  return get_class_type();
53  }
54  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
55 
56 private:
57  static TypeHandle _type_handle;
58 };
59 
60 #include "eggSliderData.I"
61 
62 #endif
63 
64 
virtual void add_back_pointer(int model_index, EggObject *egg_object)
Adds the indicated vertex, primitive, or morph table to the data.
This corresponds to a single morph slider control.
Definition: eggSliderData.h:31
This is the base class of both EggJointData and EggSliderData.
Represents a set of characters, as read and collected from possibly several model and/or animation eg...
Represents a single character, as read and collected from several models and animation files...
double get_frame(int model_index, int n) const
Returns the value corresponding to this slider position in the nth frame in the indicated model...
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85
The highest-level base class in the egg directory.
Definition: eggObject.h:31