Panda3D
eggCoordinateSystem.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file eggCoordinateSystem.h
10  * @author drose
11  * @date 1999-01-20
12  */
13 
14 #ifndef EGGCOORDINATESYSTEM_H
15 #define EGGCOORDINATESYSTEM_H
16 
17 #include "pandabase.h"
18 
19 #include "eggNode.h"
20 #include "eggData.h"
21 #include "coordinateSystem.h"
22 
23 
24 /**
25  * The <CoordinateSystem> entry at the top of an egg file. Don't confuse this
26  * with the enum EggData::CoordinateSystem, which is the value contained by
27  * this entry.
28  */
29 class EXPCL_PANDA_EGG EggCoordinateSystem : public EggNode {
30 PUBLISHED:
31  INLINE EggCoordinateSystem(CoordinateSystem value = CS_default);
32  INLINE EggCoordinateSystem(const EggCoordinateSystem &copy);
33 
34  INLINE void set_value(CoordinateSystem value);
35  INLINE CoordinateSystem get_value() const;
36 
37  virtual void write(std::ostream &out, int indent_level) const;
38 
39 private:
40  CoordinateSystem _value;
41 
42 
43 public:
44 
45  static TypeHandle get_class_type() {
46  return _type_handle;
47  }
48  static void init_type() {
49  EggNode::init_type();
50  register_type(_type_handle, "EggCoordinateSystem",
51  EggNode::get_class_type());
52  }
53  virtual TypeHandle get_type() const {
54  return get_class_type();
55  }
56  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
57 
58 private:
59  static TypeHandle _type_handle;
60 };
61 
62 #include "eggCoordinateSystem.I"
63 
64 #endif
The <CoordinateSystem> entry at the top of an egg file.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
Definition: register_type.I:22
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A base class for things that may be directly added into the egg hierarchy.
Definition: eggNode.h:35
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81