0026042: OCCT won't work with the latest Xcode
[occt.git] / src / Geom / Geom_ElementarySurface.cxx
1 // Created on: 1993-03-10
2 // Created by: JCV
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17
18 #include <Geom_ElementarySurface.hxx>
19 #include <gp_Ax1.hxx>
20 #include <gp_Ax3.hxx>
21 #include <gp_Pnt.hxx>
22 #include <Standard_ConstructionError.hxx>
23 #include <Standard_Type.hxx>
24
25 typedef Geom_ElementarySurface         ElementarySurface;
26 typedef gp_Ax1 Ax1;
27 typedef gp_Ax2 Ax2;
28 typedef gp_Ax3 Ax3;
29 typedef gp_Dir Dir;
30 typedef gp_Pnt Pnt;
31 typedef gp_Vec Vec;
32
33 //=======================================================================
34 //function : Continuity
35 //purpose  : 
36 //=======================================================================
37
38 GeomAbs_Shape Geom_ElementarySurface::Continuity () const {
39
40   return GeomAbs_CN; 
41 }
42
43 //=======================================================================
44 //function : IsCNu
45 //purpose  : 
46 //=======================================================================
47
48 Standard_Boolean Geom_ElementarySurface::IsCNu (const Standard_Integer ) const {
49
50   return Standard_True; 
51 }
52
53 //=======================================================================
54 //function : IsCNv
55 //purpose  : 
56 //=======================================================================
57
58 Standard_Boolean Geom_ElementarySurface::IsCNv (const Standard_Integer ) const {
59
60   return Standard_True; 
61 }
62
63 //=======================================================================
64 //function : Axis
65 //purpose  : 
66 //=======================================================================
67
68 Ax1 Geom_ElementarySurface::Axis () const {
69
70   return pos.Axis(); 
71 }
72
73 //=======================================================================
74 //function : SetAxis
75 //purpose  : 
76 //=======================================================================
77
78 void Geom_ElementarySurface::SetAxis (const Ax1& A1) { 
79
80   pos.SetAxis (A1); 
81 }
82
83 //=======================================================================
84 //function : Location
85 //purpose  : 
86 //=======================================================================
87
88 Pnt Geom_ElementarySurface::Location () const {
89
90   return pos.Location(); 
91 }
92
93 //=======================================================================
94 //function : Position
95 //purpose  : 
96 //=======================================================================
97
98 const gp_Ax3& Geom_ElementarySurface::Position () const {
99
100   return pos; 
101 }
102
103 //=======================================================================
104 //function : SetPosition
105 //purpose  : 
106 //=======================================================================
107
108 void Geom_ElementarySurface::SetPosition (const Ax3& A3) {
109
110   pos = A3; 
111 }
112
113 //=======================================================================
114 //function : SetLocation
115 //purpose  : 
116 //=======================================================================
117
118 void Geom_ElementarySurface::SetLocation (const Pnt& Loc) { 
119
120   pos.SetLocation (Loc);
121 }
122
123
124 //=======================================================================
125 //function : UReverse
126 //purpose  : 
127 //=======================================================================
128
129 void Geom_ElementarySurface::UReverse () {
130
131   pos.YReverse();
132 }
133
134
135
136 //=======================================================================
137 //function : VReverse
138 //purpose  : 
139 //=======================================================================
140
141 void Geom_ElementarySurface::VReverse () {
142
143   pos.ZReverse();
144 }
145
146