Panda3D
geomVertexRewriter.cxx
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file geomVertexRewriter.cxx
10  * @author drose
11  * @date 2005-03-28
12  */
13 
14 #include "geomVertexRewriter.h"
15 
16 /**
17  *
18  */
19 void GeomVertexRewriter::
20 output(std::ostream &out) const {
21  const GeomVertexColumn *column = get_column();
22  if (column == nullptr) {
23  out << "GeomVertexRewriter()";
24 
25  } else {
26  out << "GeomVertexRewriter, array = " << get_array_data()
27  << ", column = " << column->get_name()
28  << " (" << GeomVertexReader::get_packer()->get_name()
29  << "), read row " << get_read_row()
30  << ", write row " << get_write_row();
31  }
32 }
This defines how a single column is interleaved within a vertex array stored within a Geom.
int get_read_row() const
Returns the row index from which the data will be retrieved by the next call to get_data*().
GeomVertexArrayData * get_array_data() const
Returns the particular array object that the rewriter is currently processing.
const InternalName * get_name() const
Returns the name of this particular data field, e.g.
const GeomVertexColumn * get_column() const
Returns the description of the data type that the rewriter is working on.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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*(...