Panda3D
 All Classes Functions Variables Enumerations
dxfLayerMap.h
1 // Filename: dxfLayerMap.h
2 // Created by: drose (04May04)
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 DXFLAYERMAP_H
16 #define DXFLAYERMAP_H
17 
18 #include "pandatoolbase.h"
19 #include "pmap.h"
20 
21 class DXFLayer;
22 class DXFFile;
23 
24 ////////////////////////////////////////////////////////////////////
25 // Class : DXFLayerMap
26 // Description : A map of string (layer name) to DXFLayer: that is,
27 // the layers of a file ordered by name. This is used
28 // as a lookup within DXFFile to locate the layer
29 // associated with a particular entity.
30 ////////////////////////////////////////////////////////////////////
31 class DXFLayerMap : public pmap<string, DXFLayer *> {
32 public:
33  DXFLayer *get_layer(const string &name, DXFFile *dxffile);
34 };
35 
36 #endif
This is our own Panda specialization on the default STL map.
Definition: pmap.h:52
This represents a &quot;layer&quot; as read from the DXF file.
Definition: dxfLayer.h:31
DXFLayer * get_layer(const string &name, DXFFile *dxffile)
Looks up the layer name in the map, and returns a pointer to the associated DXFLayer.
Definition: dxfLayerMap.cxx:30
A generic DXF-reading class.
Definition: dxfFile.h:39
A map of string (layer name) to DXFLayer: that is, the layers of a file ordered by name...
Definition: dxfLayerMap.h:31