CFx SDK Documentation  2020SP3
OdaCommon.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 _ODA_COMMON_INCLUDED_
25 #define _ODA_COMMON_INCLUDED_
26 
27 #ifdef _MSC_VER
28 #pragma warning(disable: 4710) // 'function' : function not inlined
29 #pragma warning(disable: 4100) // unreferenced formal parameter
30 #endif
31 
32 #if defined(_MSC_VER) && !defined(_WIN32_WINNT) && !defined(_WINRT)
33 #define _WIN32_WINNT 0x0500
34 #endif
35 
36 #if defined(_WINRT) && !defined(_WIN32_WINNT)
37 #define _WIN32_WINNT 0x0602
38 #endif
39 
40 #include "TDVersion.h"
41 #include "RootExport.h"
42 #include "DbRootExport.h"
43 
44 #include "DebugStuff.h"
45 #include "OdaDefs.h"
46 #include "OdPlatform.h"
47 
48 #include "OdModuleNames.h"
49 
50 /* {NoAutoLink} */
51 #define OdaPI 3.14159265358979323846
52 /* {NoAutoLink} */
53 #define OdaPI2 (OdaPI / 2.0)
54 /* {NoAutoLink} */
55 #define OdaPI4 (OdaPI / 4.0)
56 /* {NoAutoLink} */
57 #define Oda2PI (OdaPI+OdaPI)
58 
65 #define OdaToDegree(rad) ((rad)/OdaPI*180.0)
66 
73 #define OdaToRadian(deg) ((deg)*OdaPI/180.0)
74 
75 // SSL:
76 // from http://www.ex.ac.uk/cimt/dictunit/dictunit.htm
77 //
78 // Even as late as the middle of the 20th century there were some differences in UK
79 // and US measures which were nominally the same. The UK inch measured 2.53998 cm while
80 // the US inch was 2.540005 cm. Both were standardised at 2.54 cm in July 1959.
81 
82 /* {NoAutoLink} */
83 const double kMmPerInch = 25.4;
84 
85 #ifdef EMCC
86 #include <iostream>
87 #endif
88 
89 #endif
90 
OdPlatform.h
TDVersion.h
kMmPerInch
const double kMmPerInch
Definition: OdaCommon.h:83
DebugStuff.h
DbRootExport.h
RootExport.h
OdaDefs.h
OdModuleNames.h