Panda3D
 All Classes Functions Variables Enumerations
xFileVertexPool.h
00001 // Filename: xFileVertexPool.h
00002 // Created by:  drose (19Jun01)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #ifndef XFILEVERTEXPOOL_H
00016 #define XFILEVERTEXPOOL_H
00017 
00018 #include "pandatoolbase.h"
00019 
00020 ////////////////////////////////////////////////////////////////////
00021 //       Class : XFileVertexPool
00022 // Description : This is a collection of unique vertices as extracted
00023 //               out of a Geom or a series of Geoms.
00024 ////////////////////////////////////////////////////////////////////
00025 class XFileVertexPool {
00026 public:
00027   XFileVertexPool();
00028   ~XFileVertexPool();
00029 
00030   int add_vertex(const XFileVertex &vertex);
00031 
00032   int get_num_vertices();
00033   const LVertex *get_vertices();
00034   const LNormal *get_normals();
00035   const LTexCoord *get_uvs();
00036   const LColor *get_colors();
00037 
00038   
00039 
00040   void set_normal(const LNormal &normal);
00041   void set_uv(const LTexCoord &uv);
00042   void set_color(const LColor &color);
00043 
00044   bool operator < (const XFileVertexPool &other) const;
00045 
00046 private:
00047   LVertex _point;
00048   LNormal _normal;
00049   LTexCoord _uv;
00050   LColor _color;
00051 };
00052 
00053 #endif
00054 
 All Classes Functions Variables Enumerations