Panda3D
|
00001 // Filename: eggCoordinateSystem.h 00002 // Created by: drose (20Jan99) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef EGGCOORDINATESYSTEM_H 00016 #define EGGCOORDINATESYSTEM_H 00017 00018 #include "pandabase.h" 00019 00020 #include "eggNode.h" 00021 #include "eggData.h" 00022 #include "coordinateSystem.h" 00023 00024 00025 //////////////////////////////////////////////////////////////////// 00026 // Class : EggCoordinateSystem 00027 // Description : The <CoordinateSystem> entry at the top of an egg 00028 // file. Don't confuse this with the enum 00029 // EggData::CoordinateSystem, which is the value 00030 // contained by this entry. 00031 //////////////////////////////////////////////////////////////////// 00032 class EXPCL_PANDAEGG EggCoordinateSystem : public EggNode { 00033 PUBLISHED: 00034 INLINE EggCoordinateSystem(CoordinateSystem value = CS_default); 00035 INLINE EggCoordinateSystem(const EggCoordinateSystem ©); 00036 00037 INLINE void set_value(CoordinateSystem value); 00038 INLINE CoordinateSystem get_value() const; 00039 00040 virtual void write(ostream &out, int indent_level) const; 00041 00042 private: 00043 CoordinateSystem _value; 00044 00045 00046 public: 00047 00048 static TypeHandle get_class_type() { 00049 return _type_handle; 00050 } 00051 static void init_type() { 00052 EggNode::init_type(); 00053 register_type(_type_handle, "EggCoordinateSystem", 00054 EggNode::get_class_type()); 00055 } 00056 virtual TypeHandle get_type() const { 00057 return get_class_type(); 00058 } 00059 virtual TypeHandle force_init_type() {init_type(); return get_class_type();} 00060 00061 private: 00062 static TypeHandle _type_handle; 00063 }; 00064 00065 #include "eggCoordinateSystem.I" 00066 00067 #endif