CFx SDK Documentation  2023 SP0
LineWtIndex.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 #ifndef __OD_LINE_WT_INDEX__
25 #define __OD_LINE_WT_INDEX__
26 
28 {
29  switch(lw)
30  {
31  case OdDb::kLnWt000:
32  return 0;
33  case OdDb::kLnWt005:
34  return 1;
35  case OdDb::kLnWt009:
36  return 2;
37  case OdDb::kLnWt013:
38  return 3;
39  case OdDb::kLnWt015:
40  return 4;
41  case OdDb::kLnWt018:
42  return 5;
43  case OdDb::kLnWt020:
44  return 6;
45  case OdDb::kLnWt025:
46  return 7;
47  case OdDb::kLnWt030:
48  return 8;
49  case OdDb::kLnWt035:
50  return 9;
51  case OdDb::kLnWt040:
52  return 10;
53  case OdDb::kLnWt050:
54  return 11;
55  case OdDb::kLnWt053:
56  return 12;
57  case OdDb::kLnWt060:
58  return 13;
59  case OdDb::kLnWt070:
60  return 14;
61  case OdDb::kLnWt080:
62  return 15;
63  case OdDb::kLnWt090:
64  return 16;
65  case OdDb::kLnWt100:
66  return 17;
67  case OdDb::kLnWt106:
68  return 18;
69  case OdDb::kLnWt120:
70  return 19;
71  case OdDb::kLnWt140:
72  return 20;
73  case OdDb::kLnWt158:
74  return 21;
75  case OdDb::kLnWt200:
76  return 22;
77  case OdDb::kLnWt211:
78  return 23;
79  default:break;
80  }
81  return 0;
82 }
83 
85 {
86  switch(lw)
87  {
88  case 0:
89  return OdDb::kLnWt000;
90  case 1:
91  return OdDb::kLnWt005;
92  case 2:
93  return OdDb::kLnWt009;
94  case 3:
95  return OdDb::kLnWt013;
96  case 4:
97  return OdDb::kLnWt015;
98  case 5:
99  return OdDb::kLnWt018;
100  case 6:
101  return OdDb::kLnWt020;
102  case 7:
103  return OdDb::kLnWt025;
104  case 8:
105  return OdDb::kLnWt030;
106  case 9:
107  return OdDb::kLnWt035;
108  case 10:
109  return OdDb::kLnWt040;
110  case 11:
111  return OdDb::kLnWt050;
112  case 12:
113  return OdDb::kLnWt053;
114  case 13:
115  return OdDb::kLnWt060;
116  case 14:
117  return OdDb::kLnWt070;
118  case 15:
119  return OdDb::kLnWt080;
120  case 16:
121  return OdDb::kLnWt090;
122  case 17:
123  return OdDb::kLnWt100;
124  case 18:
125  return OdDb::kLnWt106;
126  case 19:
127  return OdDb::kLnWt120;
128  case 20:
129  return OdDb::kLnWt140;
130  case 21:
131  return OdDb::kLnWt158;
132  case 22:
133  return OdDb::kLnWt200;
134  case 23:
135  return OdDb::kLnWt211;
136  }
137  return OdDb::kLnWt000;
138 }
139 
140 #endif // __OD_LINE_WT_INDEX__
int lineWeightIndex(OdDb::LineWeight lw)
Definition: LineWtIndex.h:27
OdDb::LineWeight lineWeightByIndex(int lw)
Definition: LineWtIndex.h:84
LineWeight
Definition: OdaDefs.h:384
@ kLnWt015
Definition: OdaDefs.h:389
@ kLnWt211
Definition: OdaDefs.h:408
@ kLnWt158
Definition: OdaDefs.h:406
@ kLnWt013
Definition: OdaDefs.h:388
@ kLnWt090
Definition: OdaDefs.h:401
@ kLnWt018
Definition: OdaDefs.h:390
@ kLnWt200
Definition: OdaDefs.h:407
@ kLnWt020
Definition: OdaDefs.h:391
@ kLnWt000
Definition: OdaDefs.h:385
@ kLnWt140
Definition: OdaDefs.h:405
@ kLnWt053
Definition: OdaDefs.h:397
@ kLnWt005
Definition: OdaDefs.h:386
@ kLnWt070
Definition: OdaDefs.h:399
@ kLnWt100
Definition: OdaDefs.h:402
@ kLnWt106
Definition: OdaDefs.h:403
@ kLnWt009
Definition: OdaDefs.h:387
@ kLnWt050
Definition: OdaDefs.h:396
@ kLnWt080
Definition: OdaDefs.h:400
@ kLnWt040
Definition: OdaDefs.h:395
@ kLnWt025
Definition: OdaDefs.h:392
@ kLnWt120
Definition: OdaDefs.h:404
@ kLnWt035
Definition: OdaDefs.h:394
@ kLnWt030
Definition: OdaDefs.h:393
@ kLnWt060
Definition: OdaDefs.h:398