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 EXTENSION(PyObject *__reduce__() const);
40
41 private:
42 CoordinateSystem _value;
43
44
45 public:
46
47 static TypeHandle get_class_type() {
48 return _type_handle;
49 }
50 static void init_type() {
51 EggNode::init_type();
52 register_type(_type_handle, "EggCoordinateSystem",
53 EggNode::get_class_type());
54 }
55 virtual TypeHandle get_type() const {
56 return get_class_type();
57 }
58 virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
59
60 private:
61 static TypeHandle _type_handle;
62 };
63
64 #include "eggCoordinateSystem.I"
65
66 #endif
EggCoordinateSystem
The <CoordinateSystem> entry at the top of an egg file.
Definition: eggCoordinateSystem.h:29
EggNode
A base class for things that may be directly added into the egg hierarchy.
Definition: eggNode.h:36
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81
coordinateSystem.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
eggCoordinateSystem.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
eggData.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
eggNode.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
register_type
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