Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[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 MultiTranslate1D (GEOM::GEOM_Object_ptr theObject, GEOM::GEOM_Object_ptr theVector, CORBA::Double theStep, CORBA::Long theNbTimes);
64
65   GEOM::GEOM_Object_ptr MultiTranslate2D (GEOM::GEOM_Object_ptr theObject, GEOM::GEOM_Object_ptr theVector1, CORBA::Double theStep1, CORBA::Long theNbTimes1,
66                                                        GEOM::GEOM_Object_ptr theVector2, CORBA::Double theStep2, CORBA::Long theNbTimes2);
67
68   GEOM::GEOM_Object_ptr Rotate (GEOM::GEOM_Object_ptr theObject,
69                                 GEOM::GEOM_Object_ptr theAxis,
70                                 CORBA::Double theAngle);
71
72   GEOM::GEOM_Object_ptr MultiRotate1D (GEOM::GEOM_Object_ptr theObject,
73                                        GEOM::GEOM_Object_ptr theVector,
74                                        CORBA::Long theNbTimes);
75
76  
77   GEOM::GEOM_Object_ptr MultiRotate2D (GEOM::GEOM_Object_ptr theObject,
78                                        GEOM::GEOM_Object_ptr theVector, 
79                                        CORBA::Double theAngle, 
80                                        CORBA::Long theNbTimes1, 
81                                        CORBA::Double theStep, 
82                                        CORBA::Long theNbTimes2);
83                                            
84   GEOM::GEOM_Object_ptr RotateCopy (GEOM::GEOM_Object_ptr theObject,
85                                     GEOM::GEOM_Object_ptr theAxis,
86                                     CORBA::Double theAngle);  
87
88   GEOM::GEOM_Object_ptr MirrorPlane (GEOM::GEOM_Object_ptr theObject,
89                                      GEOM::GEOM_Object_ptr thePlane);
90
91   GEOM::GEOM_Object_ptr MirrorPlaneCopy (GEOM::GEOM_Object_ptr theObject,
92                                          GEOM::GEOM_Object_ptr thePlane);
93
94   GEOM::GEOM_Object_ptr MirrorAxis (GEOM::GEOM_Object_ptr theObject,
95                                     GEOM::GEOM_Object_ptr theAxis);
96
97   GEOM::GEOM_Object_ptr MirrorAxisCopy (GEOM::GEOM_Object_ptr theObject,
98                                         GEOM::GEOM_Object_ptr theAxis);
99
100   GEOM::GEOM_Object_ptr MirrorPoint (GEOM::GEOM_Object_ptr theObject,
101                                      GEOM::GEOM_Object_ptr thePoint);
102
103   GEOM::GEOM_Object_ptr MirrorPointCopy (GEOM::GEOM_Object_ptr theObject,
104                                          GEOM::GEOM_Object_ptr thePoint);
105
106   GEOM::GEOM_Object_ptr OffsetShape (GEOM::GEOM_Object_ptr theObject,
107                                      CORBA::Double theOffset);
108
109   GEOM::GEOM_Object_ptr OffsetShapeCopy (GEOM::GEOM_Object_ptr theObject,
110                                          CORBA::Double theOffset);
111
112   GEOM::GEOM_Object_ptr ScaleShape (GEOM::GEOM_Object_ptr theObject,
113                                     GEOM::GEOM_Object_ptr thePoint,
114                                     CORBA::Double theFactor);
115
116   GEOM::GEOM_Object_ptr ScaleShapeCopy (GEOM::GEOM_Object_ptr theObject,
117                                         GEOM::GEOM_Object_ptr thePoint,
118                                         CORBA::Double theFactor);
119
120   GEOM::GEOM_Object_ptr PositionShape (GEOM::GEOM_Object_ptr theObject,
121                                        GEOM::GEOM_Object_ptr theStartLCS,
122                                        GEOM::GEOM_Object_ptr theEndLCS);
123
124   GEOM::GEOM_Object_ptr PositionShapeCopy (GEOM::GEOM_Object_ptr theObject,
125                                            GEOM::GEOM_Object_ptr theStartLCS,
126                                            GEOM::GEOM_Object_ptr theEndLCS);
127
128   GEOM::GEOM_Object_ptr RotateThreePoints (GEOM::GEOM_Object_ptr theObject,
129                                            GEOM::GEOM_Object_ptr theCentPoint,
130                                            GEOM::GEOM_Object_ptr thePoint1,
131                                            GEOM::GEOM_Object_ptr thePoint2);
132
133   GEOM::GEOM_Object_ptr RotateThreePointsCopy (GEOM::GEOM_Object_ptr theObject,
134                                                GEOM::GEOM_Object_ptr theCentPoint,
135                                                GEOM::GEOM_Object_ptr thePoint1,
136                                                GEOM::GEOM_Object_ptr thePoint2);
137
138
139   ::GEOMImpl_ITransformOperations* GetOperations() { return (::GEOMImpl_ITransformOperations*)GetImpl(); }
140 };
141
142 #endif