Panda3D
eggSliderPointer.h
1 // Filename: eggSliderPointer.h
2 // Created by: drose (18Jul03)
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 EGGSLIDERPOINTER_H
16 #define EGGSLIDERPOINTER_H
17 
18 #include "pandatoolbase.h"
19 
20 #include "eggBackPointer.h"
21 
22 #include "luse.h"
23 
24 ////////////////////////////////////////////////////////////////////
25 // Class : EggSliderPointer
26 // Description : This is a base class for EggVertexPointer and
27 // EggScalarTablePointer.
28 ////////////////////////////////////////////////////////////////////
30 public:
31  virtual int get_num_frames() const=0;
32  virtual double get_frame(int n) const=0;
33 
34 public:
35  static TypeHandle get_class_type() {
36  return _type_handle;
37  }
38  static void init_type() {
39  EggBackPointer::init_type();
40  register_type(_type_handle, "EggSliderPointer",
41  EggBackPointer::get_class_type());
42  }
43  virtual TypeHandle get_type() const {
44  return get_class_type();
45  }
46  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
47 
48 private:
49  static TypeHandle _type_handle;
50 };
51 
52 #endif
53 
54 
This is a base class for EggVertexPointer and EggScalarTablePointer.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85
This stores a pointer from an EggJointData or EggSliderData object back to the referencing data in an...