e7710716ff1962995e001a8c9cc9d98a6f37ed85
[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 #include <Geom_ElementarySurface.ixx>
18
19
20
21 typedef Geom_ElementarySurface         ElementarySurface;
22 typedef Handle(Geom_ElementarySurface) Handle(ElementarySurface);
23 typedef Handle(Geom_Surface)           Handle(Surface);
24
25 typedef gp_Ax1 Ax1;
26 typedef gp_Ax2 Ax2;
27 typedef gp_Ax3 Ax3;
28 typedef gp_Dir Dir;
29 typedef gp_Pnt Pnt;
30 typedef gp_Vec Vec;
31
32
33
34
35 //=======================================================================
36 //function : Continuity
37 //purpose  : 
38 //=======================================================================
39
40 GeomAbs_Shape Geom_ElementarySurface::Continuity () const {
41
42   return GeomAbs_CN; 
43 }
44
45 //=======================================================================
46 //function : IsCNu
47 //purpose  : 
48 //=======================================================================
49
50 Standard_Boolean Geom_ElementarySurface::IsCNu (const Standard_Integer ) const {
51
52   return Standard_True; 
53 }
54
55 //=======================================================================
56 //function : IsCNv
57 //purpose  : 
58 //=======================================================================
59
60 Standard_Boolean Geom_ElementarySurface::IsCNv (const Standard_Integer ) const {
61
62   return Standard_True; 
63 }
64
65 //=======================================================================
66 //function : Axis
67 //purpose  : 
68 //=======================================================================
69
70 Ax1 Geom_ElementarySurface::Axis () const {
71
72   return pos.Axis(); 
73 }
74
75 //=======================================================================
76 //function : SetAxis
77 //purpose  : 
78 //=======================================================================
79
80 void Geom_ElementarySurface::SetAxis (const Ax1& A1) { 
81
82   pos.SetAxis (A1); 
83 }
84
85 //=======================================================================
86 //function : Location
87 //purpose  : 
88 //=======================================================================
89
90 Pnt Geom_ElementarySurface::Location () const {
91
92   return pos.Location(); 
93 }
94
95 //=======================================================================
96 //function : Position
97 //purpose  : 
98 //=======================================================================
99
100 const gp_Ax3& Geom_ElementarySurface::Position () const {
101
102   return pos; 
103 }
104
105 //=======================================================================
106 //function : SetPosition
107 //purpose  : 
108 //=======================================================================
109
110 void Geom_ElementarySurface::SetPosition (const Ax3& A3) {
111
112   pos = A3; 
113 }
114
115 //=======================================================================
116 //function : SetLocation
117 //purpose  : 
118 //=======================================================================
119
120 void Geom_ElementarySurface::SetLocation (const Pnt& Loc) { 
121
122   pos.SetLocation (Loc);
123 }
124
125
126 //=======================================================================
127 //function : UReverse
128 //purpose  : 
129 //=======================================================================
130
131 void Geom_ElementarySurface::UReverse () {
132
133   pos.YReverse();
134 }
135
136
137
138 //=======================================================================
139 //function : VReverse
140 //purpose  : 
141 //=======================================================================
142
143 void Geom_ElementarySurface::VReverse () {
144
145   pos.ZReverse();
146 }
147
148