// Filename: eggCoordinateSystem.cxx // Created by: drose (20Jan99) // //////////////////////////////////////////////////////////////////// #include "eggCoordinateSystem.h" #include 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; } out << " }\n\n"; } }