Panda3D
inkblotVideo.h
1 // Filename: inkblotVideo.h
2 // Created by: jyelon (02Jul07)
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 INKBLOTVIDEO_H
16 #define INKBLOTVIDEO_H
17 
18 #include "movieVideo.h"
19 
20 class InkblotVideoCursor;
21 
22 ////////////////////////////////////////////////////////////////////
23 // Class : InkblotVideo
24 // Description : A cellular automaton that generates an amusing
25 // pattern of swirling colors.
26 ////////////////////////////////////////////////////////////////////
27 class EXPCL_PANDA_MOVIES InkblotVideo : public MovieVideo {
28 
29  PUBLISHED:
30  InkblotVideo(int x, int y, int fps);
31  virtual ~InkblotVideo();
32  virtual PT(MovieVideoCursor) open();
33 
34  private:
35  int _specified_x;
36  int _specified_y;
37  int _specified_fps;
38  friend class InkblotVideoCursor;
39 
40 public:
41  static TypeHandle get_class_type() {
42  return _type_handle;
43  }
44  static void init_type() {
45  MovieVideo::init_type();
46  register_type(_type_handle, "InkblotVideo",
47  MovieVideo::get_class_type());
48  }
49  virtual TypeHandle get_type() const {
50  return get_class_type();
51  }
52  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
53 
54 private:
55  static TypeHandle _type_handle;
56 };
57 
58 #include "inkblotVideo.I"
59 
60 #endif
A cellular automaton that generates an amusing pattern of swirling colors.
A MovieVideo is actually any source that provides a sequence of video frames.
A cellular automaton that generates an amusing pattern of swirling colors.
Definition: inkblotVideo.h:27
A MovieVideo is actually any source that provides a sequence of video frames.
Definition: movieVideo.h:42
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85