Salome HOME
0019827: EDF 736 GEOM : Duplication of a object along an elliptic path
[modules/geom.git] / src / GEOM_I / GEOM_ITransformOperations_i.hh
1 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 // 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either 
7 // version 2.1 of the License.
8 // 
9 // This library is distributed in the hope that it will be useful 
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 // Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public  
15 // License along with this library; if not, write to the Free Software 
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 //
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 //
20
21 #ifndef _GEOM_ITransformOperations_i_HeaderFile
22 #define _GEOM_ITransformOperations_i_HeaderFile
23
24 #include "GEOMImpl_Gen.hxx"
25
26 #include <SALOMEconfig.h>
27
28 #include CORBA_SERVER_HEADER(GEOM_Gen)
29 #include "GEOM_IOperations_i.hh"
30 #include "GEOM_Object_i.hh"
31
32 #include "GEOMImpl_ITransformOperations.hxx"
33
34 class GEOM_I_EXPORT GEOM_ITransformOperations_i :
35     public virtual POA_GEOM::GEOM_ITransformOperations,
36     public virtual GEOM_IOperations_i
37 {
38  public:
39   GEOM_ITransformOperations_i (PortableServer::POA_ptr thePOA,
40                                GEOM::GEOM_Gen_ptr theEngine,
41                                ::GEOMImpl_ITransformOperations* theImpl);
42   ~GEOM_ITransformOperations_i();
43
44   GEOM::GEOM_Object_ptr TranslateTwoPoints (GEOM::GEOM_Object_ptr theObject,
45                                             GEOM::GEOM_Object_ptr thePoint1,
46                                             GEOM::GEOM_Object_ptr thePoint2);
47
48   GEOM::GEOM_Object_ptr TranslateTwoPointsCopy (GEOM::GEOM_Object_ptr theObject,
49                                                 GEOM::GEOM_Object_ptr thePoint1,
50                                                 GEOM::GEOM_Object_ptr thePoint2);
51
52   GEOM::GEOM_Object_ptr TranslateDXDYDZ (GEOM::GEOM_Object_ptr theObject, CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ);
53
54
55   GEOM::GEOM_Object_ptr TranslateDXDYDZCopy (GEOM::GEOM_Object_ptr theObject,  CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ);
56
57   GEOM::GEOM_Object_ptr TranslateVector (GEOM::GEOM_Object_ptr theObject,
58                                          GEOM::GEOM_Object_ptr theVector);
59
60   GEOM::GEOM_Object_ptr TranslateVectorCopy (GEOM::GEOM_Object_ptr theObject,
61                                              GEOM::GEOM_Object_ptr theVector);
62
63   GEOM::GEOM_Object_ptr TranslateVectorDistance (GEOM::GEOM_Object_ptr theObject,
64                                                  GEOM::GEOM_Object_ptr theVector,
65                                                  CORBA::Double theDistance,
66                                                  CORBA::Boolean theCopy);
67
68   GEOM::GEOM_Object_ptr MultiTranslate1D (GEOM::GEOM_Object_ptr theObject, GEOM::GEOM_Object_ptr theVector, CORBA::Double theStep, CORBA::Long theNbTimes);
69
70   GEOM::GEOM_Object_ptr MultiTranslate2D (GEOM::GEOM_Object_ptr theObject, GEOM::GEOM_Object_ptr theVector1, CORBA::Double theStep1, CORBA::Long theNbTimes1,
71                                                        GEOM::GEOM_Object_ptr theVector2, CORBA::Double theStep2, CORBA::Long theNbTimes2);
72
73   GEOM::GEOM_Object_ptr Rotate (GEOM::GEOM_Object_ptr theObject,
74                                 GEOM::GEOM_Object_ptr theAxis,
75                                 CORBA::Double theAngle);
76
77   GEOM::GEOM_Object_ptr MultiRotate1D (GEOM::GEOM_Object_ptr theObject,
78                                        GEOM::GEOM_Object_ptr theVector,
79                                        CORBA::Long theNbTimes);
80  
81   GEOM::GEOM_Object_ptr MultiRotate2D (GEOM::GEOM_Object_ptr theObject,
82                                        GEOM::GEOM_Object_ptr theVector, 
83                                        CORBA::Double theAngle, 
84                                        CORBA::Long theNbTimes1, 
85                                        CORBA::Double theStep, 
86                                        CORBA::Long theNbTimes2);
87                                            
88   GEOM::GEOM_Object_ptr RotateCopy (GEOM::GEOM_Object_ptr theObject,
89                                     GEOM::GEOM_Object_ptr theAxis,
90                                     CORBA::Double theAngle);  
91
92   GEOM::GEOM_Object_ptr MirrorPlane (GEOM::GEOM_Object_ptr theObject,
93                                      GEOM::GEOM_Object_ptr thePlane);
94
95   GEOM::GEOM_Object_ptr MirrorPlaneCopy (GEOM::GEOM_Object_ptr theObject,
96                                          GEOM::GEOM_Object_ptr thePlane);
97
98   GEOM::GEOM_Object_ptr MirrorAxis (GEOM::GEOM_Object_ptr theObject,
99                                     GEOM::GEOM_Object_ptr theAxis);
100
101   GEOM::GEOM_Object_ptr MirrorAxisCopy (GEOM::GEOM_Object_ptr theObject,
102                                         GEOM::GEOM_Object_ptr theAxis);
103
104   GEOM::GEOM_Object_ptr MirrorPoint (GEOM::GEOM_Object_ptr theObject,
105                                      GEOM::GEOM_Object_ptr thePoint);
106
107   GEOM::GEOM_Object_ptr MirrorPointCopy (GEOM::GEOM_Object_ptr theObject,
108                                          GEOM::GEOM_Object_ptr thePoint);
109
110   GEOM::GEOM_Object_ptr OffsetShape (GEOM::GEOM_Object_ptr theObject,
111                                      CORBA::Double theOffset);
112
113   GEOM::GEOM_Object_ptr OffsetShapeCopy (GEOM::GEOM_Object_ptr theObject,
114                                          CORBA::Double theOffset);
115
116   GEOM::GEOM_Object_ptr ScaleShape (GEOM::GEOM_Object_ptr theObject,
117                                     GEOM::GEOM_Object_ptr thePoint,
118                                     CORBA::Double theFactor);
119
120   GEOM::GEOM_Object_ptr ScaleShapeCopy (GEOM::GEOM_Object_ptr theObject,
121                                         GEOM::GEOM_Object_ptr thePoint,
122                                         CORBA::Double theFactor);
123
124   GEOM::GEOM_Object_ptr ScaleShapeAlongAxes (GEOM::GEOM_Object_ptr theObject,
125                                              GEOM::GEOM_Object_ptr thePoint,
126                                              CORBA::Double theFactorX,
127                                              CORBA::Double theFactorY,
128                                              CORBA::Double theFactorZ);
129
130   GEOM::GEOM_Object_ptr ScaleShapeAlongAxesCopy (GEOM::GEOM_Object_ptr theObject,
131                                                  GEOM::GEOM_Object_ptr thePoint,
132                                                  CORBA::Double theFactorX,
133                                                  CORBA::Double theFactorY,
134                                                  CORBA::Double theFactorZ);
135
136   GEOM::GEOM_Object_ptr PositionShape (GEOM::GEOM_Object_ptr theObject,
137                                        GEOM::GEOM_Object_ptr theStartLCS,
138                                        GEOM::GEOM_Object_ptr theEndLCS);
139
140   GEOM::GEOM_Object_ptr PositionShapeCopy (GEOM::GEOM_Object_ptr theObject,
141                                            GEOM::GEOM_Object_ptr theStartLCS,
142                                            GEOM::GEOM_Object_ptr theEndLCS);
143
144   GEOM::GEOM_Object_ptr PositionAlongPath (GEOM::GEOM_Object_ptr theObject,
145                                            GEOM::GEOM_Object_ptr thePath,
146                                            CORBA::Double         theDistance,
147                                            CORBA::Boolean        theCopy);
148
149   GEOM::GEOM_Object_ptr RotateThreePoints (GEOM::GEOM_Object_ptr theObject,
150                                            GEOM::GEOM_Object_ptr theCentPoint,
151                                            GEOM::GEOM_Object_ptr thePoint1,
152                                            GEOM::GEOM_Object_ptr thePoint2);
153
154   GEOM::GEOM_Object_ptr RotateThreePointsCopy (GEOM::GEOM_Object_ptr theObject,
155                                                GEOM::GEOM_Object_ptr theCentPoint,
156                                                GEOM::GEOM_Object_ptr thePoint1,
157                                                GEOM::GEOM_Object_ptr thePoint2);
158
159   GEOM::GEOM_Object_ptr RecomputeObject (GEOM::GEOM_Object_ptr theObject);
160
161
162   ::GEOMImpl_ITransformOperations* GetOperations() { return (::GEOMImpl_ITransformOperations*)GetImpl(); }
163 };
164
165 #endif