Panda3D
eggPatch.cxx
1 // Filename: eggPatch.cxx
2 // Created by: drose (27Apr12)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "eggPatch.h"
16 #include "eggGroupNode.h"
17 #include "plane.h"
18 
19 #include "indent.h"
20 
21 #include <algorithm>
22 
23 TypeHandle EggPatch::_type_handle;
24 
25 
26 ////////////////////////////////////////////////////////////////////
27 // Function: EggPatch::write
28 // Access: Published, Virtual
29 // Description: Writes the patch to the indicated output stream in
30 // Egg format.
31 ////////////////////////////////////////////////////////////////////
32 void EggPatch::
33 write(ostream &out, int indent_level) const {
34  write_header(out, indent_level, "<Patch>");
35  write_body(out, indent_level+2);
36  indent(out, indent_level) << "}\n";
37 }
virtual void write(ostream &out, int indent_level) const
Writes the patch to the indicated output stream in Egg format.
Definition: eggPatch.cxx:33
void write_header(ostream &out, int indent_level, const char *egg_keyword) const
Writes the first line of the egg object, e.g.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85