gedwgio.h 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 2015 Autodesk, Inc. All rights reserved.
  4. //
  5. // Use of this software is subject to the terms of the Autodesk license
  6. // agreement provided at the time of installation or download, or which
  7. // otherwise accompanies this software in either electronic or hard copy form.
  8. //
  9. //////////////////////////////////////////////////////////////////////////////
  10. //
  11. // DESCRIPTION:
  12. //
  13. // This file contains the class AcGeDwgIO - an utility class that
  14. // performs DWG file IO.
  15. #ifndef AC_GEDWGIO_H
  16. #define AC_GEDWGIO_H
  17. #include "dbfiler.h"
  18. #include "gefileio.h"
  19. #include "gelibver.h"
  20. #pragma pack (push, 8)
  21. class
  22. GE_DLLEXPIMPORT
  23. AcGeDwgIO
  24. {
  25. public:
  26. // Write out to file
  27. //
  28. static
  29. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGePoint2d&);
  30. static
  31. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeVector2d&);
  32. static
  33. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeMatrix2d&);
  34. static
  35. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeScale2d&);
  36. static
  37. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGePoint2dArray&);
  38. static
  39. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeVector2dArray&);
  40. static
  41. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGePoint3d&);
  42. static
  43. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeVector3d&);
  44. static
  45. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeMatrix3d&);
  46. static
  47. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeScale3d&);
  48. static
  49. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGePoint3dArray&);
  50. static
  51. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeVector3dArray&);
  52. static
  53. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeTol&);
  54. static
  55. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeInterval&);
  56. static
  57. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeKnotVector&);
  58. static
  59. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeDoubleArray&);
  60. static
  61. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeIntArray&);
  62. static
  63. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeCurveBoundary&);
  64. static
  65. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGePosition2d&);
  66. static
  67. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGePointOnCurve2d&);
  68. static
  69. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeLine2d&);
  70. static
  71. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeLineSeg2d&);
  72. static
  73. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeRay2d&);
  74. static
  75. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeCircArc2d&);
  76. static
  77. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeEllipArc2d&);
  78. static
  79. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeExternalCurve2d&);
  80. static
  81. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeCubicSplineCurve2d&);
  82. static
  83. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeNurbCurve2d&);
  84. static
  85. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeCompositeCurve2d&);
  86. static
  87. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeOffsetCurve2d&);
  88. static
  89. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGePolyline2d&);
  90. static
  91. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGePosition3d&);
  92. static
  93. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGePointOnCurve3d&);
  94. static
  95. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGePointOnSurface&);
  96. static
  97. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeLine3d&);
  98. static
  99. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeRay3d&);
  100. static
  101. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeLineSeg3d&);
  102. static
  103. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGePlane&);
  104. static
  105. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeBoundedPlane&);
  106. static
  107. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeCircArc3d&);
  108. static
  109. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeEllipArc3d&);
  110. static
  111. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeCubicSplineCurve3d&);
  112. static
  113. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeNurbCurve3d&);
  114. static
  115. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeCompositeCurve3d&);
  116. static
  117. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeOffsetCurve3d&);
  118. static
  119. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGePolyline3d&);
  120. static
  121. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeAugPolyline3d&);
  122. static
  123. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeExternalCurve3d&);
  124. static
  125. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeCone&);
  126. static
  127. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeCylinder&);
  128. static
  129. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeTorus&);
  130. static
  131. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeExternalSurface&);
  132. static
  133. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeOffsetSurface&);
  134. static
  135. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeNurbSurface&);
  136. static
  137. Acad::ErrorStatus outFields(AcDbDwgFiler*,const AcGeExternalBoundedSurface&);
  138. static
  139. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeSphere&);
  140. static
  141. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeBoundBlock2d&);
  142. static
  143. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeBoundBlock3d&);
  144. static
  145. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeCurveCurveInt2d&);
  146. static
  147. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeCurveCurveInt3d&);
  148. static
  149. Acad::ErrorStatus outFields(AcDbDwgFiler*, const AcGeEllipCone&);
  150. // Read in from file
  151. //
  152. static
  153. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGePoint2d&);
  154. static
  155. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeVector2d&);
  156. static
  157. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeMatrix2d&);
  158. static
  159. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeScale2d&);
  160. static
  161. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGePoint2dArray&);
  162. static
  163. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeVector2dArray&);
  164. static
  165. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGePoint3d&);
  166. static
  167. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeVector3d&);
  168. static
  169. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeMatrix3d&);
  170. static
  171. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeScale3d&);
  172. static
  173. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGePoint3dArray&);
  174. static
  175. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeVector3dArray&);
  176. static
  177. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeTol&);
  178. static
  179. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeInterval&);
  180. static
  181. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeKnotVector&);
  182. static
  183. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeDoubleArray&);
  184. static
  185. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeIntArray&);
  186. static
  187. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeCurveBoundary&);
  188. static
  189. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGePosition2d&);
  190. static
  191. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGePointOnCurve2d&);
  192. static
  193. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeLine2d&);
  194. static
  195. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeLineSeg2d&);
  196. static
  197. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeRay2d&);
  198. static
  199. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeCircArc2d&);
  200. static
  201. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeEllipArc2d&);
  202. static
  203. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeExternalCurve2d&);
  204. static
  205. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeCubicSplineCurve2d&);
  206. static
  207. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeNurbCurve2d&);
  208. static
  209. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeCompositeCurve2d&);
  210. static
  211. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeOffsetCurve2d&);
  212. static
  213. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGePolyline2d&);
  214. static
  215. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGePosition3d&);
  216. static
  217. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGePointOnCurve3d&);
  218. static
  219. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGePointOnSurface&);
  220. static
  221. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeLine3d&);
  222. static
  223. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeRay3d&);
  224. static
  225. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeLineSeg3d&);
  226. static
  227. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGePlane&);
  228. static
  229. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeBoundedPlane&);
  230. static
  231. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeCircArc3d&);
  232. static
  233. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeEllipArc3d&);
  234. static
  235. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeCubicSplineCurve3d&);
  236. static
  237. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeCompositeCurve3d&);
  238. static
  239. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeOffsetCurve3d&);
  240. static
  241. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeNurbCurve3d&);
  242. static
  243. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGePolyline3d&);
  244. static
  245. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeAugPolyline3d&);
  246. static
  247. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeExternalCurve3d&);
  248. static
  249. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeCone&);
  250. static
  251. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeCylinder&);
  252. static
  253. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeTorus&);
  254. static
  255. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeExternalSurface&);
  256. static
  257. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeOffsetSurface&);
  258. static
  259. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeNurbSurface&);
  260. static
  261. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeExternalBoundedSurface&);
  262. static
  263. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeSphere&);
  264. static
  265. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeBoundBlock2d&);
  266. static
  267. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeBoundBlock3d&);
  268. static
  269. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeCurveCurveInt2d&);
  270. static
  271. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeCurveCurveInt3d&);
  272. static
  273. Acad::ErrorStatus inFields(AcDbDwgFiler*, AcGeEllipCone&);
  274. static const AcGeLibVersion AcGeDwgIOVersion;
  275. };
  276. #pragma pack (pop)
  277. #endif