Salome HOME
Bug 0020374: Partition operation leads to missing volume. A fix by PKV.
[modules/geom.git] / src / GEOMImpl / GEOMImpl_ITransformOperations.hxx
1 //  Copyright (C) 2007-2008  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 _GEOMImpl_ITransformOperations_HXX_
23 #define _GEOMImpl_ITransformOperations_HXX_
24
25 #include "Utils_SALOME_Exception.hxx"
26 #include "GEOM_IOperations.hxx"
27 #include "GEOM_Engine.hxx"
28 #include "GEOM_Object.hxx"
29 #include <TDocStd_Document.hxx>
30
31 class GEOMImpl_ITransformOperations : public GEOM_IOperations
32 {
33  public:
34   Standard_EXPORT GEOMImpl_ITransformOperations(GEOM_Engine* theEngine, int theDocID);
35   Standard_EXPORT ~GEOMImpl_ITransformOperations();
36
37   Standard_EXPORT Handle(GEOM_Object) TranslateTwoPoints (Handle(GEOM_Object) theObject,
38                                                           Handle(GEOM_Object) thePoint1,
39                                                           Handle(GEOM_Object) thePoint2);
40
41   Standard_EXPORT Handle(GEOM_Object) TranslateTwoPointsCopy (Handle(GEOM_Object) theObject,
42                                                               Handle(GEOM_Object) thePoint1,
43                                                               Handle(GEOM_Object) thePoint2);
44
45   Standard_EXPORT Handle(GEOM_Object) TranslateDXDYDZ (Handle(GEOM_Object) theObject,
46                                                        double theX, double theY,  double theZ);
47
48   Standard_EXPORT Handle(GEOM_Object) TranslateDXDYDZCopy (Handle(GEOM_Object) theObject,
49                                                            double theX, double theY,  double theZ);
50
51   Standard_EXPORT Handle(GEOM_Object) TranslateVector (Handle(GEOM_Object) theObject,
52                                                        Handle(GEOM_Object) theVector);
53
54   Standard_EXPORT Handle(GEOM_Object) TranslateVectorCopy (Handle(GEOM_Object) theObject,
55                                                            Handle(GEOM_Object) theVector);
56
57   Standard_EXPORT Handle(GEOM_Object) TranslateVectorDistance (Handle(GEOM_Object) theObject,
58                                                                Handle(GEOM_Object) theVector,
59                                                                double theDistance,
60                                                                bool theCopy);
61
62   Standard_EXPORT Handle(GEOM_Object) Translate1D (Handle(GEOM_Object) theObject,
63                                                    Handle(GEOM_Object) theVector,
64                                                    double theStep,
65                                                    Standard_Integer theNbTimes);
66
67   Standard_EXPORT Handle(GEOM_Object) Translate2D (Handle(GEOM_Object) theObject,
68                                                    Handle(GEOM_Object) theVector,
69                                                    double theStep1,
70                                                    Standard_Integer theNbTimes1,
71                                                    Handle(GEOM_Object) theVector2,
72                                                    double theStep2,
73                                                    Standard_Integer theNbTimes2);
74
75   Standard_EXPORT Handle(GEOM_Object) MirrorPlane (Handle(GEOM_Object) theObject,
76                                                    Handle(GEOM_Object) thePlane);
77
78   Standard_EXPORT Handle(GEOM_Object) MirrorPlaneCopy (Handle(GEOM_Object) theObject,
79                                                        Handle(GEOM_Object) thePlane);
80
81   Standard_EXPORT Handle(GEOM_Object) MirrorAxis (Handle(GEOM_Object) theObject,
82                                                   Handle(GEOM_Object) theAxis);
83
84   Standard_EXPORT Handle(GEOM_Object) MirrorAxisCopy (Handle(GEOM_Object) theObject,
85                                                       Handle(GEOM_Object) theAxis);
86
87   Standard_EXPORT Handle(GEOM_Object) MirrorPoint (Handle(GEOM_Object) theObject,
88                                                    Handle(GEOM_Object) thePoint);
89
90   Standard_EXPORT Handle(GEOM_Object) MirrorPointCopy (Handle(GEOM_Object) theObject,
91                                                        Handle(GEOM_Object) thePoint);
92
93   Standard_EXPORT Handle(GEOM_Object) OffsetShape (Handle(GEOM_Object) theObject,
94                                                    double theOffset);
95
96   Standard_EXPORT Handle(GEOM_Object) OffsetShapeCopy (Handle(GEOM_Object) theObject,
97                                                        double theOffset);
98
99   Standard_EXPORT Handle(GEOM_Object) ScaleShape (Handle(GEOM_Object) theObject,
100                                                   Handle(GEOM_Object) thePoint,
101                                                   double theFactor);
102
103   Standard_EXPORT Handle(GEOM_Object) ScaleShapeCopy (Handle(GEOM_Object) theObject,
104                                                       Handle(GEOM_Object) thePoint,
105                                                       double theFactor);
106
107   Standard_EXPORT Handle(GEOM_Object) ScaleShapeAlongAxes (Handle(GEOM_Object) theObject,
108                                                            Handle(GEOM_Object) thePoint,
109                                                            double theFactorX,
110                                                            double theFactorY,
111                                                            double theFactorZ,
112                                                            bool doCopy);
113
114   Standard_EXPORT Handle(GEOM_Object) PositionShape (Handle(GEOM_Object) theObject,
115                                                      Handle(GEOM_Object) theStartLCS,
116                                                      Handle(GEOM_Object) theEndLCS);
117
118   Standard_EXPORT Handle(GEOM_Object) PositionShapeCopy (Handle(GEOM_Object) theObject,
119                                                          Handle(GEOM_Object) theStartLCS,
120                                                          Handle(GEOM_Object) theEndLCS);
121
122   Standard_EXPORT Handle(GEOM_Object) Rotate (Handle(GEOM_Object) theObject,
123                                               Handle(GEOM_Object) theAxis,
124                                               double theAngle);
125
126   Standard_EXPORT Handle(GEOM_Object) RotateCopy (Handle(GEOM_Object) theObject,
127                                                   Handle(GEOM_Object) theAxis,
128                                                   double theAngle);
129
130   Standard_EXPORT Handle(GEOM_Object) Rotate1D (Handle(GEOM_Object) theObject,
131                                                 Handle(GEOM_Object) theAxis,
132                                                 Standard_Integer theNbTimes);
133
134   Standard_EXPORT Handle(GEOM_Object) Rotate2D (Handle(GEOM_Object) theObject,
135                                                 Handle(GEOM_Object) theAxis,
136                                                 double theAngle,
137                                                 Standard_Integer theNbTimes1,
138                                                 double theStep,
139                                                 Standard_Integer theNbTimes2);
140
141   Standard_EXPORT Handle(GEOM_Object) RotateThreePoints (Handle(GEOM_Object) theObject,
142                                                          Handle(GEOM_Object) theCentPoint,
143                                                          Handle(GEOM_Object) thePoint1,
144                                                          Handle(GEOM_Object) thePoint2);
145
146   Standard_EXPORT Handle(GEOM_Object) RotateThreePointsCopy (Handle(GEOM_Object) theObject,
147                                                              Handle(GEOM_Object) theCentPoint,
148                                                              Handle(GEOM_Object) thePoint1,
149                                                              Handle(GEOM_Object) thePoint2);
150
151 };
152
153 #endif