// Filename: eggCoordinateSystem.cxx // Created by: drose (20Jan99) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved // // All use of this software is subject to the terms of the Panda 3d // Software license. You should have received a copy of this license // along with this source code; you will also find a current copy of // the license at http://etc.cmu.edu/panda3d/docs/license/ . // // To contact the maintainers of this program write to // panda3d-general@lists.sourceforge.net . // //////////////////////////////////////////////////////////////////// #include "eggCoordinateSystem.h" #include "indent.h" TypeHandle EggCoordinateSystem::_type_handle; //////////////////////////////////////////////////////////////////// // Function: EggCoordinateSystem::write // Access: Public, Virtual // Description: Writes the coordinate system definition to the // indicated output stream in Egg format. //////////////////////////////////////////////////////////////////// void EggCoordinateSystem:: write(ostream &out, int indent_level) const { if (get_value() != CS_default && get_value() != CS_invalid) { indent(out, indent_level) << " { "; switch (get_value()) { case CS_zup_right: out << "Z-Up"; break; case CS_yup_right: out << "Y-Up"; break; case CS_zup_left: out << "Z-Up-Left"; break; case CS_yup_left: out << "Y-Up-Left"; break; default: out << "/* Invalid coordinate system " << (int)get_value() << " */"; } out << " }\n\n"; } }