Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

pandatool/src/xfile/xFileVertexPool.h

Go to the documentation of this file.
00001 // Filename: xFileVertexPool.h
00002 // Created by:  drose (19Jun01)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #ifndef XFILEVERTEXPOOL_H
00020 #define XFILEVERTEXPOOL_H
00021 
00022 #include "pandatoolbase.h"
00023 
00024 ////////////////////////////////////////////////////////////////////
00025 //       Class : XFileVertexPool
00026 // Description : This is a collection of unique vertices as extracted
00027 //               out of a Geom or a series of Geoms.
00028 ////////////////////////////////////////////////////////////////////
00029 class XFileVertexPool {
00030 public:
00031   XFileVertexPool();
00032   ~XFileVertexPool();
00033 
00034   int add_vertex(const XFileVertex &vertex);
00035 
00036   int get_num_vertices();
00037   const Vertexf *get_vertices();
00038   const Normalf *get_normals();
00039   const TexCoordf *get_uvs();
00040   const Colorf *get_colors();
00041 
00042   
00043 
00044   void set_normal(const Normalf &normal);
00045   void set_uv(const TexCoordf &uv);
00046   void set_color(const Colorf &color);
00047 
00048   bool operator < (const XFileVertexPool &other) const;
00049 
00050 private:
00051   Vertexf _point;
00052   Normalf _normal;
00053   TexCoordf _uv;
00054   Colorf _color;
00055 };
00056 
00057 #endif
00058 

Generated on Fri May 2 03:21:57 2003 for Panda-Tool by doxygen1.3