Panda3D
hideInterval.h
1 // Filename: hideInterval.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 HIDEINTERVAL_H
16 #define HIDEINTERVAL_H
17 
18 #include "directbase.h"
19 #include "cInterval.h"
20 #include "nodePath.h"
21 
22 ////////////////////////////////////////////////////////////////////
23 // Class : HideInterval
24 // Description : An interval that calls NodePath::hide().
25 ////////////////////////////////////////////////////////////////////
26 class EXPCL_DIRECT HideInterval : public CInterval {
27 PUBLISHED:
28  HideInterval(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, "HideInterval",
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 "hideInterval.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
An interval that calls NodePath::hide().
Definition: hideInterval.h:26
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