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