Salome HOME
Synchronize adm files
[modules/geom.git] / src / GEOMImpl / GEOMImpl_ITransformOperations.hxx
1 // Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22
23 #ifndef _GEOMImpl_ITransformOperations_HXX_
24 #define _GEOMImpl_ITransformOperations_HXX_
25
26 #include "Utils_SALOME_Exception.hxx"
27 #include "GEOM_IOperations.hxx"
28 #include "GEOM_Engine.hxx"
29 #include "GEOM_Object.hxx"
30
31 #include <TDocStd_Document.hxx>
32 #include <TopoDS_Shape.hxx>
33
34 class GEOMImpl_ITranslate;
35 class GEOMImpl_IRotate;
36
37 class GEOMImpl_ITransformOperations : public GEOM_IOperations
38 {
39  public:
40   Standard_EXPORT GEOMImpl_ITransformOperations(GEOM_Engine* theEngine, int theDocID);
41   Standard_EXPORT ~GEOMImpl_ITransformOperations();
42
43   Standard_EXPORT Handle(GEOM_Object) TranslateTwoPoints (Handle(GEOM_Object) theObject,
44                                                           Handle(GEOM_Object) thePoint1,
45                                                           Handle(GEOM_Object) thePoint2);
46
47   Standard_EXPORT Handle(GEOM_Object) TranslateTwoPointsCopy (Handle(GEOM_Object) theObject,
48                                                               Handle(GEOM_Object) thePoint1,
49                                                               Handle(GEOM_Object) thePoint2);
50
51   Standard_EXPORT Handle(GEOM_Object) TranslateDXDYDZ (Handle(GEOM_Object) theObject,
52                                                        double theX, double theY,  double theZ);
53
54   Standard_EXPORT Handle(GEOM_Object) TranslateDXDYDZCopy (Handle(GEOM_Object) theObject,
55                                                            double theX, double theY,  double theZ);
56
57   Standard_EXPORT Handle(GEOM_Object) TranslateVector (Handle(GEOM_Object) theObject,
58                                                        Handle(GEOM_Object) theVector);
59
60   Standard_EXPORT Handle(GEOM_Object) TranslateVectorCopy (Handle(GEOM_Object) theObject,
61                                                            Handle(GEOM_Object) theVector);
62
63   Standard_EXPORT Handle(GEOM_Object) TranslateVectorDistance (Handle(GEOM_Object) theObject,
64                                                                Handle(GEOM_Object) theVector,
65                                                                double theDistance,
66                                                                bool theCopy);
67
68   Standard_EXPORT Handle(GEOM_Object) Translate1D (Handle(GEOM_Object) theObject,
69                                                    Handle(GEOM_Object) theVector,
70                                                    double theStep,
71                                                    Standard_Integer theNbTimes);
72
73   Standard_EXPORT Handle(GEOM_Object) Translate2D (Handle(GEOM_Object) theObject,
74                                                    Handle(GEOM_Object) theVector,
75                                                    double theStep1,
76                                                    Standard_Integer theNbTimes1,
77                                                    Handle(GEOM_Object) theVector2,
78                                                    double theStep2,
79                                                    Standard_Integer theNbTimes2);
80
81   /*
82   Standard_EXPORT static TopoDS_Shape TranslateShape1D (const TopoDS_Shape&  theShape,
83                                                         GEOMImpl_ITranslate* theTI);
84
85   Standard_EXPORT static TopoDS_Shape TranslateShape2D (const TopoDS_Shape&  theShape,
86                                                         GEOMImpl_ITranslate* theTI);
87   */
88
89   Standard_EXPORT Handle(GEOM_Object) MirrorPlane (Handle(GEOM_Object) theObject,
90                                                    Handle(GEOM_Object) thePlane);
91
92   Standard_EXPORT Handle(GEOM_Object) MirrorPlaneCopy (Handle(GEOM_Object) theObject,
93                                                        Handle(GEOM_Object) thePlane);
94
95   Standard_EXPORT Handle(GEOM_Object) MirrorAxis (Handle(GEOM_Object) theObject,
96                                                   Handle(GEOM_Object) theAxis);
97
98   Standard_EXPORT Handle(GEOM_Object) MirrorAxisCopy (Handle(GEOM_Object) theObject,
99                                                       Handle(GEOM_Object) theAxis);
100
101   Standard_EXPORT Handle(GEOM_Object) MirrorPoint (Handle(GEOM_Object) theObject,
102                                                    Handle(GEOM_Object) thePoint);
103
104   Standard_EXPORT Handle(GEOM_Object) MirrorPointCopy (Handle(GEOM_Object) theObject,
105                                                        Handle(GEOM_Object) thePoint);
106
107   Standard_EXPORT Handle(GEOM_Object) OffsetShape (Handle(GEOM_Object) theObject,
108                                                    double theOffset);
109
110   Standard_EXPORT Handle(GEOM_Object) OffsetShapeCopy (Handle(GEOM_Object) theObject,
111                                                        double theOffset);
112
113   Standard_EXPORT Handle(GEOM_Object) ProjectShapeCopy (Handle(GEOM_Object) theSource,
114                                                         Handle(GEOM_Object) theTarget);
115
116   Standard_EXPORT Standard_Real ProjectPointOnWire
117                                     (Handle(GEOM_Object) thePoint,
118                                      Handle(GEOM_Object) theWire,
119                                      Handle(GEOM_Object) &thePointOnEdge,
120                                      Standard_Integer    &theEdgeInWireIndex);
121
122   Standard_EXPORT Handle(GEOM_Object) ScaleShape (Handle(GEOM_Object) theObject,
123                                                   Handle(GEOM_Object) thePoint,
124                                                   double theFactor);
125
126   Standard_EXPORT Handle(GEOM_Object) ScaleShapeCopy (Handle(GEOM_Object) theObject,
127                                                       Handle(GEOM_Object) thePoint,
128                                                       double theFactor);
129
130   Standard_EXPORT Handle(GEOM_Object) ScaleShapeAlongAxes (Handle(GEOM_Object) theObject,
131                                                            Handle(GEOM_Object) thePoint,
132                                                            double theFactorX,
133                                                            double theFactorY,
134                                                            double theFactorZ,
135                                                            bool doCopy);
136
137   Standard_EXPORT Handle(GEOM_Object) PositionShape (Handle(GEOM_Object) theObject,
138                                                      Handle(GEOM_Object) theStartLCS,
139                                                      Handle(GEOM_Object) theEndLCS);
140
141   Standard_EXPORT Handle(GEOM_Object) PositionShapeCopy (Handle(GEOM_Object) theObject,
142                                                          Handle(GEOM_Object) theStartLCS,
143                                                          Handle(GEOM_Object) theEndLCS);
144
145   Standard_EXPORT Handle(GEOM_Object) PositionAlongPath (Handle(GEOM_Object) theObject,
146                                                          Handle(GEOM_Object) thePath,
147                                                          double theDistance,
148                                                          bool   theCopy,
149                                                          bool   theReverse);
150
151   Standard_EXPORT Handle(GEOM_Object) Rotate (Handle(GEOM_Object) theObject,
152                                               Handle(GEOM_Object) theAxis,
153                                               double theAngle);
154
155   Standard_EXPORT Handle(GEOM_Object) RotateCopy (Handle(GEOM_Object) theObject,
156                                                   Handle(GEOM_Object) theAxis,
157                                                   double theAngle);
158
159   Standard_EXPORT Handle(GEOM_Object) Rotate1D (Handle(GEOM_Object) theObject,
160                                                 Handle(GEOM_Object) theAxis,
161                                                 Standard_Integer theNbTimes);
162
163   Standard_EXPORT Handle(GEOM_Object) Rotate1D (Handle(GEOM_Object) theObject,
164                                                 Handle(GEOM_Object) theAxis,
165                                                 double theAngleStep,
166                                                 Standard_Integer theNbSteps);
167
168   Standard_EXPORT Handle(GEOM_Object) Rotate2D (Handle(GEOM_Object) theObject,
169                                                 Handle(GEOM_Object) theAxis,
170                                                 Standard_Integer theNbObjects,
171                                                 double theRadialStep,
172                                                 Standard_Integer theNbSteps);
173
174   Standard_EXPORT Handle(GEOM_Object) Rotate2D (Handle(GEOM_Object) theObject,
175                                                 Handle(GEOM_Object) theAxis,
176                                                 double theAngle,
177                                                 Standard_Integer theNbTimes1,
178                                                 double theStep,
179                                                 Standard_Integer theNbTimes2);
180
181   Standard_EXPORT Handle(GEOM_Object) RotateThreePoints (Handle(GEOM_Object) theObject,
182                                                          Handle(GEOM_Object) theCentPoint,
183                                                          Handle(GEOM_Object) thePoint1,
184                                                          Handle(GEOM_Object) thePoint2);
185
186   Standard_EXPORT Handle(GEOM_Object) RotateThreePointsCopy (Handle(GEOM_Object) theObject,
187                                                              Handle(GEOM_Object) theCentPoint,
188                                                              Handle(GEOM_Object) thePoint1,
189                                                              Handle(GEOM_Object) thePoint2);
190
191   Standard_EXPORT Handle(GEOM_Object) TransformLikeOtherCopy (Handle(GEOM_Object) theObject,
192                                                               Handle(GEOM_Object) theSample);
193
194 };
195
196 #endif