Panda3D
fadeLodNodeData.h
1 // Filename: fadeLodNodeData.h
2 // Created by: drose (29Sep04)
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 FADELODNODEDATA_H
16 #define FADELODNODEDATA_H
17 
18 #include "pandabase.h"
19 
20 #include "auxSceneData.h"
21 
22 ////////////////////////////////////////////////////////////////////
23 // Class : FadeLODNodeData
24 // Description : This is the data that is associated with a particular
25 // instance of the FadeLODNode for the scene graph.
26 ////////////////////////////////////////////////////////////////////
27 class EXPCL_PANDA_PGRAPHNODES FadeLODNodeData : public AuxSceneData {
28 public:
29  enum FadeMode {
30  FM_solid,
31  FM_more_detail,
32  FM_less_detail,
33  };
34  FadeMode _fade_mode;
35  PN_stdfloat _fade_start;
36  int _fade_out;
37  int _fade_in;
38 
39  virtual void output(ostream &out) const;
40 
41 public:
42  static TypeHandle get_class_type() {
43  return _type_handle;
44  }
45  static void init_type() {
46  AuxSceneData::init_type();
47  register_type(_type_handle, "FadeLODNodeData",
48  AuxSceneData::get_class_type());
49  }
50  virtual TypeHandle get_type() const {
51  return get_class_type();
52  }
53  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
54 
55 private:
56  static TypeHandle _type_handle;
57 };
58 
59 #endif
60 
This is a base class for a generic data structure that can be attached per-instance to the camera...
Definition: auxSceneData.h:35
This is the data that is associated with a particular instance of the FadeLODNode for the scene graph...
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85