Panda3D
pandatool
src
dxf
dxfLayerMap.h
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file dxfLayerMap.h
10
* @author drose
11
* @date 2004-05-04
12
*/
13
14
#ifndef DXFLAYERMAP_H
15
#define DXFLAYERMAP_H
16
17
#include "
pandatoolbase.h
"
18
#include "
pmap.h
"
19
20
class
DXFLayer
;
21
class
DXFFile
;
22
23
/**
24
* A map of string (layer name) to DXFLayer: that is, the layers of a file
25
* ordered by name. This is used as a lookup within DXFFile to locate the
26
* layer associated with a particular entity.
27
*/
28
class
DXFLayerMap
:
public
pmap
<std::string, DXFLayer *> {
29
public
:
30
DXFLayer
*
get_layer
(
const
std::string &name,
DXFFile
*dxffile);
31
};
32
33
#endif
DXFLayerMap
A map of string (layer name) to DXFLayer: that is, the layers of a file ordered by name.
Definition:
dxfLayerMap.h:28
pmap
This is our own Panda specialization on the default STL map.
Definition:
pmap.h:49
pmap.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
DXFFile
A generic DXF-reading class.
Definition:
dxfFile.h:35
DXFLayer
This represents a "layer" as read from the DXF file.
Definition:
dxfLayer.h:28
DXFLayerMap::get_layer
DXFLayer * get_layer(const std::string &name, DXFFile *dxffile)
Looks up the layer name in the map, and returns a pointer to the associated DXFLayer.
Definition:
dxfLayerMap.cxx:25
pandatoolbase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Generated on Mon Sep 14 2020 15:07:09 for Panda3D by
1.8.20