Warnings on vc14 were eliminated
[occt.git] / src / StdObject / StdObject_gp_Axes.hxx
CommitLineData
45d8465e 1// Copyright (c) 2015 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
15#ifndef _StdObject_gp_Axes_HeaderFile
16#define _StdObject_gp_Axes_HeaderFile
17
18
19#include <StdObject_gp_Vectors.hxx>
20
21#include <gp_Ax2d.hxx>
22#include <gp_Ax22d.hxx>
23#include <gp_Ax1.hxx>
24#include <gp_Ax2.hxx>
25#include <gp_Ax3.hxx>
26
27
28inline StdObjMgt_ReadData& operator >>
29 (StdObjMgt_ReadData::Object theReadData, gp_Ax2d& theAx)
30{
31 gp_Pnt2d aLoc;
32 gp_Dir2d aDir;
33 theReadData >> aLoc >> aDir;
34 theAx = gp_Ax2d (aLoc, aDir);
35 return theReadData;
36}
37
38inline StdObjMgt_ReadData& operator >>
39 (StdObjMgt_ReadData::Object theReadData, gp_Ax22d& theAx)
40{
41 gp_Pnt2d aLoc;
42 gp_Dir2d aYDir, aXDir;
43 theReadData >> aLoc >> aYDir >> aXDir;
44 theAx = gp_Ax22d (aLoc, aXDir, aYDir);
45 return theReadData;
46}
47
48inline StdObjMgt_ReadData& operator >>
49 (StdObjMgt_ReadData::Object theReadData, gp_Ax1& theAx)
50{
51 gp_XYZ aLoc;
52 gp_Dir aDir;
53 theReadData >> aLoc >> aDir;
54 theAx = gp_Ax1 (aLoc, aDir);
55 return theReadData;
56}
57
58inline StdObjMgt_ReadData& operator >>
59 (StdObjMgt_ReadData::Object theReadData, gp_Ax2& theAx)
60{
61 gp_Ax1 anAx;
62 gp_Dir aYDir, aXDir;
63 theReadData >> anAx >> aYDir >> aXDir;
64 theAx = gp_Ax2 (anAx.Location(), anAx.Direction(), aXDir);
65 return theReadData;
66}
67
68inline StdObjMgt_ReadData& operator >>
69 (StdObjMgt_ReadData::Object theReadData, gp_Ax3& theAx)
70{
71 gp_Ax1 anAx;
72 gp_Dir aYDir, aXDir;
73 theReadData >> anAx >> aYDir >> aXDir;
74 theAx = gp_Ax3 (anAx.Location(), anAx.Direction(), aXDir);
75 if (aYDir * theAx.YDirection() < 0.)
76 theAx.YReverse();
77 return theReadData;
78}
79
80
81#endif