NDEVR
API Documentation
EntityCodes.h
1/*--------------------------------------------------------------------------------------------
2Copyright (c) 2019, NDEVR LLC
3tyler.parke@ndevr.org
4 __ __ ____ _____ __ __ _______
5 | \ | | | __ \ | ___|\ \ / / | __ \
6 | \ | | | | \ \ | |___ \ \ / / | |__) |
7 | . \| | | |__/ / | |___ \ V / | _ /
8 | |\ |_|_____/__|_____|___\_/____| | \ \
9 |__| \__________________________________| \__\
10
11Subject to the terms of the Enterprise+ Agreement, NDEVR hereby grants
12Licensee a limited, non-exclusive, non-transferable, royalty-free license
13(without the right to sublicense) to use the API solely for the purpose of
14Licensee's internal development efforts to develop applications for which
15the API was provided.
16
17The above copyright notice and this permission notice shall be included in all
18copies or substantial portions of the Software.
19
20THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
21INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
22PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
23FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25DEALINGS IN THE SOFTWARE.
26
27Library: CAD
28File: EntityCodes
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include <NDEVR/StringEnum.h>
34namespace NDEVR
35{
39 enum class DXFVersion
40 {
41 e_AC1009
42 , e_AC1014
43 , e_AC1021
44 };
45
48 enum class CADColorMethod
49 {
50 e_by_layer = 0xC0
51 , e_by_block
52 , e_by_color
53 , e_by_aci
54 , e_by_pen
55 , e_foreground
56 , e_layer_off
57 //run-time
58 , e_layer_frozen
59 , e_none
60 };
61
62 #define DXFLINEMODE_ITEMS(X) \
63 X(e_line) \
64 X(e_deployment) \
65 X(e_planned_deployment)
66 NDEVR_DEFINE_STRING_STREAM(DXFLineMode, DXFLINEMODE_ITEMS)
67
68
69
72 enum class DXFEntityCodes
73 {
74 e_dxf_UNKNOWN = 0,
75 e_dxf_SECTION = 1,
76 e_dxf_LAYER = 10,
77 e_dxf_BLOCK = 11,
78 e_dxf_ENDBLK = 12,
79 e_dxf_LINETYPE = 13,
80 e_dxf_TABLE = 14,
81 e_dxf_STYLE = 20,
82 e_dxf_SETTING = 50,
83 e_dxf_VIEWPORT = 34,
84 e_dxf_VPORT = 35,
85 e_dxf_ENTITY_POINT = 100,
86 e_dxf_ENTITY_LINE = 101,
87 e_dxf_ENTITY_POLYLINE = 102,
88 e_dxf_ENTITY_LWPOLYLINE = 103,
89 e_dxf_ENTITY_VERTEX = 104,
90 e_dxf_ENTITY_SPLINE = 105,
91 e_dxf_ENTITY_KNOT = 106,
92 e_dxf_ENTITY_CONTROLPOINT = 107,
93 e_dxf_ENTITY_ARC = 108,
94 e_dxf_ENTITY_CIRCLE = 109,
95 e_dxf_ENTITY_ELLIPSE = 110,
96 e_dxf_ENTITY_INSERT = 111,
97 e_dxf_ENTITY_TEXT = 112,
98 e_dxf_ENTITY_MTEXT = 113,
99 e_dxf_ENTITY_DIMENSION = 114,
100 e_dxf_ENTITY_LEADER = 115,
101 e_dxf_ENTITY_HATCH = 116,
102 e_dxf_ENTITY_ATTRIB = 117,
103 e_dxf_ENTITY_IMAGE = 118,
104 e_dxf_ENTITY_IMAGEDEF = 119,
105 e_dxf_ENTITY_TRACE = 120,
106 e_dxf_ENTITY_SOLID = 121,
107 e_dxf_ENTITY_3DFACE = 122,
108 e_dxf_ENTITY_XLINE = 123,
109 e_dxf_ENTITY_RAY = 124,
110 e_dxf_ENTITY_SEQEND = 125,
111 e_dxf_ENTITY_ATTRIB_DEF = 126,
112 e_dxf_ENTITY_MESH = 127,
113 e_dxf_ENTITY_MATERIAL = 128,
114 e_dxf_ENTITY_MLEADER = 129,
115 e_dxf_BLOCK_RECORD = 135,
116 e_dxf_GROUP = 136,
117 e_dxf_XRECORD = 200,
118 e_dxf_DICTIONARY = 210,
119 };
120}
The primary namespace for the NDEVR SDK.
DXFEntityCodes
Types of CAD entities natively supported by the NDEVR API.
Definition EntityCodes.h:73
@ e_none
No defined value type.
DXFVersion
Versions of the DXF we support writing out.
Definition EntityCodes.h:40
CADColorMethod
Entites in CAD can be colored in various ways.
Definition EntityCodes.h:49