Panda3D
|
00001 // Filename: dxfVertex.h 00002 // Created by: drose (04May04) 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 DXFVERTEX_H 00016 #define DXFVERTEX_H 00017 00018 #include "pandatoolbase.h" 00019 #include "pvector.h" 00020 #include "luse.h" 00021 00022 //////////////////////////////////////////////////////////////////// 00023 // Class : DXFVertex 00024 // Description : Stored within DXFFile, this is the basic Vertex data 00025 // of a DXF file. When DXFFile::DoneEntity() is called, 00026 // if the entity is a type to have vertices, then 00027 // DXFFile::_verts contains a list of all the vertices 00028 // that belong to the entity. 00029 //////////////////////////////////////////////////////////////////// 00030 class DXFVertex { 00031 public: 00032 DXFVertex() { } 00033 DXFVertex(const LPoint3d &p) : _p(p) { } 00034 int operator < (const DXFVertex &other) const; 00035 00036 LPoint3d _p; 00037 }; 00038 00039 typedef pvector<DXFVertex> DXFVertices; 00040 00041 #endif 00042