1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
2 //
3 // This file is part of Open CASCADE Technology software library.
4 //
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
10 //
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
13 
14 #ifndef _XmlObjMgt_GP_HeaderFile
15 #define _XmlObjMgt_GP_HeaderFile
16 
17 #include <Standard.hxx>
18 #include <Standard_DefineAlloc.hxx>
19 #include <Standard_Handle.hxx>
20 
21 #include <XmlObjMgt_DOMString.hxx>
22 #include <Standard_Boolean.hxx>
23 class gp_Trsf;
24 class gp_Mat;
25 class gp_XYZ;
26 
27 
28 //! Translation of gp (simple geometry) objects
29 class XmlObjMgt_GP
30 {
31 public:
32 
33   DEFINE_STANDARD_ALLOC
34 
35 
36   Standard_EXPORT static XmlObjMgt_DOMString Translate (const gp_Trsf& aTrsf);
37 
38   Standard_EXPORT static XmlObjMgt_DOMString Translate (const gp_Mat& aMat);
39 
40   Standard_EXPORT static XmlObjMgt_DOMString Translate (const gp_XYZ& anXYZ);
41 
42   Standard_EXPORT static Standard_Boolean Translate (const XmlObjMgt_DOMString& aStr, gp_Trsf& T);
43 
44   Standard_EXPORT static Standard_Boolean Translate (const XmlObjMgt_DOMString& aStr, gp_Mat& T);
45 
46   Standard_EXPORT static Standard_Boolean Translate (const XmlObjMgt_DOMString& aStr, gp_XYZ& T);
47 
48 
49 
50 
51 protected:
52 
53 
54 
55 
56 
57 private:
58 
59 
60 
61 
62 
63 };
64 
65 
66 
67 
68 
69 
70 
71 #endif // _XmlObjMgt_GP_HeaderFile
72