Salome HOME
7f7964ce4a704ab19cc6ef5d1e211fd691384539
[modules/geom.git] / src / GEOM_I / GEOM_ITransformOperations_i.hh
1 // Copyright (C) 2007-2012  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.
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 #ifndef _GEOM_ITransformOperations_i_HeaderFile
23 #define _GEOM_ITransformOperations_i_HeaderFile
24
25 #include "GEOMImpl_Gen.hxx"
26
27 #include <SALOMEconfig.h>
28
29 #include CORBA_SERVER_HEADER(GEOM_Gen)
30 #include "GEOM_IOperations_i.hh"
31 #include "GEOM_Object_i.hh"
32
33 #include "GEOMImpl_ITransformOperations.hxx"
34
35 class GEOM_I_EXPORT GEOM_ITransformOperations_i :
36     public virtual POA_GEOM::GEOM_ITransformOperations,
37     public virtual GEOM_IOperations_i
38 {
39  public:
40   GEOM_ITransformOperations_i (PortableServer::POA_ptr thePOA,
41                                GEOM::GEOM_Gen_ptr theEngine,
42                                ::GEOMImpl_ITransformOperations* theImpl);
43   ~GEOM_ITransformOperations_i();
44
45   GEOM::GEOM_Object_ptr TranslateTwoPoints (GEOM::GEOM_Object_ptr theObject,
46                                             GEOM::GEOM_Object_ptr thePoint1,
47                                             GEOM::GEOM_Object_ptr thePoint2);
48
49   GEOM::GEOM_Object_ptr TranslateTwoPointsCopy (GEOM::GEOM_Object_ptr theObject,
50                                                 GEOM::GEOM_Object_ptr thePoint1,
51                                                 GEOM::GEOM_Object_ptr thePoint2);
52
53   GEOM::GEOM_Object_ptr TranslateDXDYDZ (GEOM::GEOM_Object_ptr theObject,
54                                          CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ);
55
56
57   GEOM::GEOM_Object_ptr TranslateDXDYDZCopy (GEOM::GEOM_Object_ptr theObject,
58                                              CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ);
59
60   GEOM::GEOM_Object_ptr TranslateVector (GEOM::GEOM_Object_ptr theObject,
61                                          GEOM::GEOM_Object_ptr theVector);
62
63   GEOM::GEOM_Object_ptr TranslateVectorCopy (GEOM::GEOM_Object_ptr theObject,
64                                              GEOM::GEOM_Object_ptr theVector);
65
66   GEOM::GEOM_Object_ptr TranslateVectorDistance (GEOM::GEOM_Object_ptr theObject,
67                                                  GEOM::GEOM_Object_ptr theVector,
68                                                  CORBA::Double theDistance,
69                                                  CORBA::Boolean theCopy);
70
71   GEOM::GEOM_Object_ptr MultiTranslate1D (GEOM::GEOM_Object_ptr theObject,
72                                           GEOM::GEOM_Object_ptr theVector,
73                                           CORBA::Double theStep, CORBA::Long theNbTimes);
74
75   GEOM::GEOM_Object_ptr MultiTranslate2D (GEOM::GEOM_Object_ptr theObject,
76                                           GEOM::GEOM_Object_ptr theVector1,
77                                           CORBA::Double theStep1, CORBA::Long theNbTimes1,
78                                           GEOM::GEOM_Object_ptr theVector2,
79                                           CORBA::Double theStep2, CORBA::Long theNbTimes2);
80
81   GEOM::GEOM_Object_ptr Rotate (GEOM::GEOM_Object_ptr theObject,
82                                 GEOM::GEOM_Object_ptr theAxis,
83                                 CORBA::Double theAngle);
84
85   GEOM::GEOM_Object_ptr MultiRotate1D (GEOM::GEOM_Object_ptr theObject,
86                                        GEOM::GEOM_Object_ptr theVector,
87                                        CORBA::Long theNbTimes);
88
89   GEOM::GEOM_Object_ptr MultiRotate1DByStep (GEOM::GEOM_Object_ptr theObject,
90                                              GEOM::GEOM_Object_ptr theAxis,
91                                              CORBA::Double theAngleStep,
92                                              CORBA::Long theNbSteps);
93
94   GEOM::GEOM_Object_ptr MultiRotate2DNbTimes (GEOM::GEOM_Object_ptr theObject,
95                                               GEOM::GEOM_Object_ptr theAxis,
96                                               CORBA::Long theNbObjects,
97                                               CORBA::Double theRadialStep,
98                                               CORBA::Long theNbSteps);
99
100   GEOM::GEOM_Object_ptr MultiRotate2DByStep (GEOM::GEOM_Object_ptr theObject,
101                                              GEOM::GEOM_Object_ptr theVector,
102                                              CORBA::Double theAngle,
103                                              CORBA::Long theNbTimes1,
104                                              CORBA::Double theStep,
105                                              CORBA::Long theNbTimes2);
106
107   GEOM::GEOM_Object_ptr MultiRotate2D (GEOM::GEOM_Object_ptr theObject,
108                                        GEOM::GEOM_Object_ptr theVector,
109                                        CORBA::Double theAngle,
110                                        CORBA::Long theNbTimes1,
111                                        CORBA::Double theStep,
112                                        CORBA::Long theNbTimes2);
113
114   GEOM::GEOM_Object_ptr RotateCopy (GEOM::GEOM_Object_ptr theObject,
115                                     GEOM::GEOM_Object_ptr theAxis,
116                                     CORBA::Double theAngle);
117
118   GEOM::GEOM_Object_ptr MirrorPlane (GEOM::GEOM_Object_ptr theObject,
119                                      GEOM::GEOM_Object_ptr thePlane);
120
121   GEOM::GEOM_Object_ptr MirrorPlaneCopy (GEOM::GEOM_Object_ptr theObject,
122                                          GEOM::GEOM_Object_ptr thePlane);
123
124   GEOM::GEOM_Object_ptr MirrorAxis (GEOM::GEOM_Object_ptr theObject,
125                                     GEOM::GEOM_Object_ptr theAxis);
126
127   GEOM::GEOM_Object_ptr MirrorAxisCopy (GEOM::GEOM_Object_ptr theObject,
128                                         GEOM::GEOM_Object_ptr theAxis);
129
130   GEOM::GEOM_Object_ptr MirrorPoint (GEOM::GEOM_Object_ptr theObject,
131                                      GEOM::GEOM_Object_ptr thePoint);
132
133   GEOM::GEOM_Object_ptr MirrorPointCopy (GEOM::GEOM_Object_ptr theObject,
134                                          GEOM::GEOM_Object_ptr thePoint);
135
136   GEOM::GEOM_Object_ptr OffsetShape (GEOM::GEOM_Object_ptr theObject,
137                                      CORBA::Double theOffset);
138
139   GEOM::GEOM_Object_ptr OffsetShapeCopy (GEOM::GEOM_Object_ptr theObject,
140                                          CORBA::Double theOffset);
141
142   GEOM::GEOM_Object_ptr ProjectShapeCopy (GEOM::GEOM_Object_ptr theSource,
143                                           GEOM::GEOM_Object_ptr theTarget);
144
145   GEOM::GEOM_Object_ptr ScaleShape (GEOM::GEOM_Object_ptr theObject,
146                                     GEOM::GEOM_Object_ptr thePoint,
147                                     CORBA::Double theFactor);
148
149   GEOM::GEOM_Object_ptr ScaleShapeCopy (GEOM::GEOM_Object_ptr theObject,
150                                         GEOM::GEOM_Object_ptr thePoint,
151                                         CORBA::Double theFactor);
152
153   GEOM::GEOM_Object_ptr ScaleShapeAlongAxes (GEOM::GEOM_Object_ptr theObject,
154                                              GEOM::GEOM_Object_ptr thePoint,
155                                              CORBA::Double theFactorX,
156                                              CORBA::Double theFactorY,
157                                              CORBA::Double theFactorZ);
158
159   GEOM::GEOM_Object_ptr ScaleShapeAlongAxesCopy (GEOM::GEOM_Object_ptr theObject,
160                                                  GEOM::GEOM_Object_ptr thePoint,
161                                                  CORBA::Double theFactorX,
162                                                  CORBA::Double theFactorY,
163                                                  CORBA::Double theFactorZ);
164
165   GEOM::GEOM_Object_ptr PositionShape (GEOM::GEOM_Object_ptr theObject,
166                                        GEOM::GEOM_Object_ptr theStartLCS,
167                                        GEOM::GEOM_Object_ptr theEndLCS);
168
169   GEOM::GEOM_Object_ptr PositionShapeCopy (GEOM::GEOM_Object_ptr theObject,
170                                            GEOM::GEOM_Object_ptr theStartLCS,
171                                            GEOM::GEOM_Object_ptr theEndLCS);
172
173   GEOM::GEOM_Object_ptr PositionAlongPath (GEOM::GEOM_Object_ptr theObject,
174                                            GEOM::GEOM_Object_ptr thePath,
175                                            CORBA::Double         theDistance,
176                                            CORBA::Boolean        theCopy,
177                                            CORBA::Boolean        theReverse);
178
179   GEOM::GEOM_Object_ptr RotateThreePoints (GEOM::GEOM_Object_ptr theObject,
180                                            GEOM::GEOM_Object_ptr theCentPoint,
181                                            GEOM::GEOM_Object_ptr thePoint1,
182                                            GEOM::GEOM_Object_ptr thePoint2);
183
184   GEOM::GEOM_Object_ptr RotateThreePointsCopy (GEOM::GEOM_Object_ptr theObject,
185                                                GEOM::GEOM_Object_ptr theCentPoint,
186                                                GEOM::GEOM_Object_ptr thePoint1,
187                                                GEOM::GEOM_Object_ptr thePoint2);
188
189   GEOM::GEOM_Object_ptr TransformLikeOtherCopy (GEOM::GEOM_Object_ptr theObject,
190                                                 GEOM::GEOM_Object_ptr theSample);
191
192   GEOM::GEOM_Object_ptr RecomputeObject (GEOM::GEOM_Object_ptr theObject);
193
194
195   ::GEOMImpl_ITransformOperations* GetOperations() { return (::GEOMImpl_ITransformOperations*)GetImpl(); }
196 };
197
198 #endif