| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- // Filename: eggCoordinateSystem.cxx
- // Created by: drose (20Jan99)
- //
- ////////////////////////////////////////////////////////////////////
- #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)
- << "<CoordinateSystem> { ";
- 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";
- }
- }
|