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