Panda3D
cConstraintInterval.h
1 // Filename: cConstraintInterval.h
2 // Created by: pratt (29Sep06)
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 CCONSTRAINTINTERVAL_H
16 #define CCONSTRAINTINTERVAL_H
17 
18 #include "directbase.h"
19 #include "cInterval.h"
20 
21 ////////////////////////////////////////////////////////////////////
22 // Class : CConstraintInterval
23 // Description : The base class for a family of intervals that
24 // constrain some property to a value over time.
25 ////////////////////////////////////////////////////////////////////
26 class EXPCL_DIRECT CConstraintInterval : public CInterval {
27 PUBLISHED:
28  bool bogus_variable;
29 
30 public:
31  CConstraintInterval(const string &name, double duration);
32 
33 public:
34  static TypeHandle get_class_type() {
35  return _type_handle;
36  }
37  static void init_type() {
38  CInterval::init_type();
39  register_type(_type_handle, "CConstraintInterval",
40  CInterval::get_class_type());
41  }
42  virtual TypeHandle get_type() const {
43  return get_class_type();
44  }
45  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
46 
47 private:
48  static TypeHandle _type_handle;
49 };
50 
51 #include "cConstraintInterval.I"
52 
53 #endif
54 
The base class for timeline components.
Definition: cInterval.h:39
The base class for a family of intervals that constrain some property to a value over time...
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85