Warnings on vc14 were eliminated
[occt.git] / src / StdObject / StdObject_gp_Curves.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_Curves_HeaderFile
16#define _StdObject_gp_Curves_HeaderFile
17
18
19#include <StdObject_gp_Axes.hxx>
20
21#include <gp_Lin2d.hxx>
22#include <gp_Circ2d.hxx>
23#include <gp_Elips2d.hxx>
24#include <gp_Hypr2d.hxx>
25#include <gp_Parab2d.hxx>
26#include <gp_Lin.hxx>
27#include <gp_Circ.hxx>
28#include <gp_Elips.hxx>
29#include <gp_Hypr.hxx>
30#include <gp_Parab.hxx>
31
32
33inline StdObjMgt_ReadData& operator >>
34 (StdObjMgt_ReadData::Object theReadData, gp_Lin2d& theLin)
35{
36 gp_Ax2d anAx;
37 theReadData >> anAx;
38 theLin.SetPosition (anAx);
39 return theReadData;
40}
41
42inline StdObjMgt_ReadData& operator >>
43 (StdObjMgt_ReadData::Object theReadData, gp_Circ2d& theCirc)
44{
45 gp_Ax22d anAx;
46 Standard_Real aRadius;
47
48 theReadData >> anAx >> aRadius;
49
50 theCirc.SetAxis (anAx);
51 theCirc.SetRadius (aRadius);
52
53 return theReadData;
54}
55
56inline StdObjMgt_ReadData& operator >>
57 (StdObjMgt_ReadData::Object theReadData, gp_Elips2d& theElips)
58{
59 gp_Ax22d anAx;
60 Standard_Real aMajorRadius, aMinorRadius;
61
62 theReadData >> anAx >> aMajorRadius >> aMinorRadius;
63
64 theElips.SetAxis (anAx);
65 theElips.SetMajorRadius (aMajorRadius);
66 theElips.SetMinorRadius (aMinorRadius);
67
68 return theReadData;
69}
70
71inline StdObjMgt_ReadData& operator >>
72 (StdObjMgt_ReadData::Object theReadData, gp_Hypr2d& theHypr)
73{
74 gp_Ax22d anAx;
75 Standard_Real aMajorRadius, aMinorRadius;
76
77 theReadData >> anAx >> aMajorRadius >> aMinorRadius;
78
79 theHypr.SetAxis (anAx);
80 theHypr.SetMajorRadius (aMajorRadius);
81 theHypr.SetMinorRadius (aMinorRadius);
82
83 return theReadData;
84}
85
86inline StdObjMgt_ReadData& operator >>
87 (StdObjMgt_ReadData::Object theReadData, gp_Parab2d& theParab)
88{
89 gp_Ax22d anAx;
90 Standard_Real aFocalLength;
91
92 theReadData >> anAx >> aFocalLength;
93
94 theParab.SetAxis (anAx);
95 theParab.SetFocal (aFocalLength);
96
97 return theReadData;
98}
99
100inline StdObjMgt_ReadData& operator >>
101 (StdObjMgt_ReadData::Object theReadData, gp_Lin& theLin)
102{
103 gp_Ax1 anAx;
104 theReadData >> anAx;
105 theLin.SetPosition (anAx);
106 return theReadData;
107}
108
109inline StdObjMgt_ReadData& operator >>
110 (StdObjMgt_ReadData::Object theReadData, gp_Circ& theCirc)
111{
112 gp_Ax2 anAx;
113 Standard_Real aRadius;
114
115 theReadData >> anAx >> aRadius;
116
117 theCirc.SetPosition (anAx);
118 theCirc.SetRadius (aRadius);
119
120 return theReadData;
121}
122
123inline StdObjMgt_ReadData& operator >>
124 (StdObjMgt_ReadData::Object theReadData, gp_Elips& theElips)
125{
126 gp_Ax2 anAx;
127 Standard_Real aMajorRadius, aMinorRadius;
128
129 theReadData >> anAx >> aMajorRadius >> aMinorRadius;
130
131 theElips.SetPosition (anAx);
132 theElips.SetMajorRadius (aMajorRadius);
133 theElips.SetMinorRadius (aMinorRadius);
134
135 return theReadData;
136}
137
138inline StdObjMgt_ReadData& operator >>
139 (StdObjMgt_ReadData::Object theReadData, gp_Hypr& theHypr)
140{
141 gp_Ax2 anAx;
142 Standard_Real aMajorRadius, aMinorRadius;
143
144 theReadData >> anAx >> aMajorRadius >> aMinorRadius;
145
146 theHypr.SetPosition (anAx);
147 theHypr.SetMajorRadius (aMajorRadius);
148 theHypr.SetMinorRadius (aMinorRadius);
149
150 return theReadData;
151}
152
153inline StdObjMgt_ReadData& operator >>
154 (StdObjMgt_ReadData::Object theReadData, gp_Parab& theParab)
155{
156 gp_Ax2 anAx;
157 Standard_Real aFocalLength;
158
159 theReadData >> anAx >> aFocalLength;
160
161 theParab.SetPosition (anAx);
162 theParab.SetFocal (aFocalLength);
163
164 return theReadData;
165}
166
167
168#endif