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