Assimp  v4.1. (December 2018)
DXFLoader.cpp File Reference

Implementation of the DXF importer class. More...

Macros

#define AI_DXF_ENTITIES_MAGIC_BLOCK   "$ASSIMP_ENTITIES_MAGIC"
 
#define AI_DXF_NUM_INDEX_COLORS   (sizeof(g_aclrDxfIndexColors)/sizeof(g_aclrDxfIndexColors[0]))
 
#define DXF_POLYLINE_FLAG_3D_POLYLINE   0x8
 
#define DXF_POLYLINE_FLAG_3D_POLYMESH   0x10
 
#define DXF_POLYLINE_FLAG_CLOSED   0x1
 
#define DXF_POLYLINE_FLAG_POLYFACEMESH   0x40
 
#define DXF_VERTEX_FLAG_HAS_POSITIONS   0x40
 
#define DXF_VERTEX_FLAG_PART_OF_POLYFACE   0x80
 

Variables

const std::string AI_DXF_BINARY_IDENT = std::string("AutoCAD Binary DXF\r\n\x1a\0")
 
const size_t AI_DXF_BINARY_IDENT_LEN = 24u
 
const aiColor4D AI_DXF_DEFAULT_COLOR (aiColor4D(0.6f, 0.6f, 0.6f, 0.6f))
 
static const aiImporterDesc desc
 
static aiColor4D g_aclrDxfIndexColors []
 
static const int GroupCode_Name = 2
 
static const int GroupCode_XComp = 10
 
static const int GroupCode_YComp = 20
 
static const int GroupCode_ZComp = 30
 

Detailed Description

Implementation of the DXF importer class.

Macro Definition Documentation

◆ AI_DXF_ENTITIES_MAGIC_BLOCK

#define AI_DXF_ENTITIES_MAGIC_BLOCK   "$ASSIMP_ENTITIES_MAGIC"

◆ AI_DXF_NUM_INDEX_COLORS

#define AI_DXF_NUM_INDEX_COLORS   (sizeof(g_aclrDxfIndexColors)/sizeof(g_aclrDxfIndexColors[0]))

◆ DXF_POLYLINE_FLAG_3D_POLYLINE

#define DXF_POLYLINE_FLAG_3D_POLYLINE   0x8

◆ DXF_POLYLINE_FLAG_3D_POLYMESH

#define DXF_POLYLINE_FLAG_3D_POLYMESH   0x10

◆ DXF_POLYLINE_FLAG_CLOSED

#define DXF_POLYLINE_FLAG_CLOSED   0x1

◆ DXF_POLYLINE_FLAG_POLYFACEMESH

#define DXF_POLYLINE_FLAG_POLYFACEMESH   0x40

◆ DXF_VERTEX_FLAG_HAS_POSITIONS

#define DXF_VERTEX_FLAG_HAS_POSITIONS   0x40

◆ DXF_VERTEX_FLAG_PART_OF_POLYFACE

#define DXF_VERTEX_FLAG_PART_OF_POLYFACE   0x80

Variable Documentation

◆ AI_DXF_BINARY_IDENT

const std::string AI_DXF_BINARY_IDENT = std::string("AutoCAD Binary DXF\r\n\x1a\0")

◆ AI_DXF_BINARY_IDENT_LEN

const size_t AI_DXF_BINARY_IDENT_LEN = 24u

◆ AI_DXF_DEFAULT_COLOR

const aiColor4D AI_DXF_DEFAULT_COLOR(aiColor4D(0.6f, 0.6f, 0.6f, 0.6f))

◆ desc

const aiImporterDesc desc
static
Initial value:
= {
"Drawing Interchange Format (DXF) Importer",
"",
"",
"",
0,
0,
0,
0,
"dxf"
}
Indicates that the importer reads only a very particular subset of the file format.
Definition: importerdesc.h:72
Indicates that there is a textual encoding of the file format; and that it is supported.
Definition: importerdesc.h:58

◆ g_aclrDxfIndexColors

aiColor4D g_aclrDxfIndexColors[]
static
Initial value:
= {
aiColor4D (0.6f, 0.6f, 0.6f, 1.0f),
aiColor4D (1.0f, 0.0f, 0.0f, 1.0f),
aiColor4D (0.0f, 1.0f, 0.0f, 1.0f),
aiColor4D (0.0f, 0.0f, 1.0f, 1.0f),
aiColor4D (0.3f, 1.0f, 0.3f, 1.0f),
aiColor4D (0.3f, 0.3f, 1.0f, 1.0f),
aiColor4D (1.0f, 0.3f, 0.3f, 1.0f),
aiColor4D (1.0f, 0.0f, 1.0f, 1.0f),
aiColor4D (1.0f, 0.6f, 0.0f, 1.0f),
aiColor4D (0.6f, 0.3f, 0.0f, 1.0f),
aiColor4D (1.0f, 1.0f, 0.0f, 1.0f),
aiColor4D (0.3f, 0.3f, 0.3f, 1.0f),
aiColor4D (0.8f, 0.8f, 0.8f, 1.0f),
aiColor4D (0.0f, 00.f, 0.0f, 1.0f),
aiColor4D (1.0f, 1.0f, 1.0f, 1.0f),
aiColor4D (0.6f, 0.0f, 1.0f, 1.0f)
}
aiColor4t< ai_real > aiColor4D
Definition: color4.h:94

◆ GroupCode_Name

const int GroupCode_Name = 2
static

◆ GroupCode_XComp

const int GroupCode_XComp = 10
static

◆ GroupCode_YComp

const int GroupCode_YComp = 20
static

◆ GroupCode_ZComp

const int GroupCode_ZComp = 30
static