Panda3D
 All Classes Functions Variables Enumerations
geomVertexRewriter.cxx
1 // Filename: geomVertexRewriter.cxx
2 // Created by: drose (28Mar05)
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 "geomVertexRewriter.h"
16 
17 ////////////////////////////////////////////////////////////////////
18 // Function: GeomVertexRewriter::output
19 // Access: Published
20 // Description:
21 ////////////////////////////////////////////////////////////////////
22 void GeomVertexRewriter::
23 output(ostream &out) const {
24  const GeomVertexColumn *column = get_column();
25  if (column == (GeomVertexColumn *)NULL) {
26  out << "GeomVertexRewriter()";
27 
28  } else {
29  out << "GeomVertexRewriter, array = " << get_array_data()
30  << ", column = " << column->get_name()
31  << " (" << GeomVertexReader::get_packer()->get_name()
32  << "), read row " << get_read_row()
33  << ", write row " << get_write_row();
34  }
35 }
int get_write_row() const
Returns the row index to which the data will be written at the next call to set_data*() or add_data*(...
int get_read_row() const
Returns the row index from which the data will be retrieved by the next call to get_data*().
const InternalName * get_name() const
Returns the name of this particular data field, e.g.
This defines how a single column is interleaved within a vertex array stored within a Geom...
GeomVertexArrayData * get_array_data() const
Returns the particular array object that the rewriter is currently processing.
const GeomVertexColumn * get_column() const
Returns the description of the data type that the rewriter is working on.