Panda3D
Public Member Functions

DXFLayerMap Class Reference

A map of string (layer name) to DXFLayer: that is, the layers of a file ordered by name. More...

#include "dxfLayerMap.h"

List of all members.

Public Member Functions

DXFLayerget_layer (const string &name, DXFFile *dxffile)
 Looks up the layer name in the map, and returns a pointer to the associated DXFLayer.

Detailed Description

A map of string (layer name) to DXFLayer: that is, the layers of a file ordered by name.

This is used as a lookup within DXFFile to locate the layer associated with a particular entity.

Definition at line 31 of file dxfLayerMap.h.


Member Function Documentation

DXFLayer * DXFLayerMap::get_layer ( const string &  name,
DXFFile dxffile 
)

Looks up the layer name in the map, and returns a pointer to the associated DXFLayer.

If this is the first time this layer name has been used, creates a new DXFLayer by the given name. In this case, it calls dxffile->new_layer() to create the layer, allowing user code to override this function to create a specialized time, if desired.

Definition at line 30 of file dxfLayerMap.cxx.

Referenced by DXFFile::change_layer().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations