Panda3D
showInterval.h
1 // Filename: showInterval.h
2 // Created by: drose (27Aug02)
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 SHOWINTERVAL_H
16 #define SHOWINTERVAL_H
17 
18 #include "directbase.h"
19 #include "cInterval.h"
20 #include "nodePath.h"
21 
22 ////////////////////////////////////////////////////////////////////
23 // Class : ShowInterval
24 // Description : An interval that calls NodePath::show().
25 ////////////////////////////////////////////////////////////////////
26 class EXPCL_DIRECT ShowInterval : public CInterval {
27 PUBLISHED:
28  ShowInterval(const NodePath &node, const string &name = string());
29 
30  virtual void priv_instant();
31  virtual void priv_reverse_instant();
32 
33 private:
34  NodePath _node;
35  static int _unique_index;
36 
37 public:
38  static TypeHandle get_class_type() {
39  return _type_handle;
40  }
41  static void init_type() {
42  CInterval::init_type();
43  register_type(_type_handle, "ShowInterval",
44  CInterval::get_class_type());
45  }
46  virtual TypeHandle get_type() const {
47  return get_class_type();
48  }
49  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
50 
51 private:
52  static TypeHandle _type_handle;
53 };
54 
55 #include "showInterval.I"
56 
57 #endif
58 
virtual void priv_instant()
This is called in lieu of priv_initialize() .
Definition: cInterval.cxx:390
The base class for timeline components.
Definition: cInterval.h:39
virtual void priv_reverse_instant()
This is called in lieu of priv_reverse_initialize()
Definition: cInterval.cxx:456
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
Definition: nodePath.h:165
An interval that calls NodePath::show().
Definition: showInterval.h:26