Panda3D
xFileVertexPool.h
1 // Filename: xFileVertexPool.h
2 // Created by: drose (19Jun01)
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 #ifndef XFILEVERTEXPOOL_H
16 #define XFILEVERTEXPOOL_H
17 
18 #include "pandatoolbase.h"
19 
20 ////////////////////////////////////////////////////////////////////
21 // Class : XFileVertexPool
22 // Description : This is a collection of unique vertices as extracted
23 // out of a Geom or a series of Geoms.
24 ////////////////////////////////////////////////////////////////////
26 public:
28  ~XFileVertexPool();
29 
30  int add_vertex(const XFileVertex &vertex);
31 
32  int get_num_vertices();
33  const LVertex *get_vertices();
34  const LNormal *get_normals();
35  const LTexCoord *get_uvs();
36  const LColor *get_colors();
37 
38 
39 
40  void set_normal(const LNormal &normal);
41  void set_uv(const LTexCoord &uv);
42  void set_color(const LColor &color);
43 
44  bool operator < (const XFileVertexPool &other) const;
45 
46 private:
47  LVertex _point;
48  LNormal _normal;
49  LTexCoord _uv;
50  LColor _color;
51 };
52 
53 #endif
54 
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
Definition: lvector3.h:100
This is a collection of unique vertices as extracted out of a Geom or a series of Geoms...
This represents a single vertex associated with an XFileFace.
Definition: xFileVertex.h:29
This is the base class for all three-component vectors and points.
Definition: lvecBase4.h:111
This is a two-component point in space.
Definition: lpoint2.h:92