Panda3D
eggCoordinateSystem.h
1 // Filename: eggCoordinateSystem.h
2 // Created by: drose (20Jan99)
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 EGGCOORDINATESYSTEM_H
16 #define EGGCOORDINATESYSTEM_H
17 
18 #include "pandabase.h"
19 
20 #include "eggNode.h"
21 #include "eggData.h"
22 #include "coordinateSystem.h"
23 
24 
25 ////////////////////////////////////////////////////////////////////
26 // Class : EggCoordinateSystem
27 // Description : The <CoordinateSystem> entry at the top of an egg
28 // file. Don't confuse this with the enum
29 // EggData::CoordinateSystem, which is the value
30 // contained by this entry.
31 ////////////////////////////////////////////////////////////////////
32 class EXPCL_PANDAEGG EggCoordinateSystem : public EggNode {
33 PUBLISHED:
34  INLINE EggCoordinateSystem(CoordinateSystem value = CS_default);
35  INLINE EggCoordinateSystem(const EggCoordinateSystem &copy);
36 
37  INLINE void set_value(CoordinateSystem value);
38  INLINE CoordinateSystem get_value() const;
39 
40  virtual void write(ostream &out, int indent_level) const;
41 
42 private:
43  CoordinateSystem _value;
44 
45 
46 public:
47 
48  static TypeHandle get_class_type() {
49  return _type_handle;
50  }
51  static void init_type() {
52  EggNode::init_type();
53  register_type(_type_handle, "EggCoordinateSystem",
54  EggNode::get_class_type());
55  }
56  virtual TypeHandle get_type() const {
57  return get_class_type();
58  }
59  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
60 
61 private:
62  static TypeHandle _type_handle;
63 };
64 
65 #include "eggCoordinateSystem.I"
66 
67 #endif
The <CoordinateSystem> entry at the top of an egg file.
A base class for things that may be directly added into the egg hierarchy.
Definition: eggNode.h:38
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85