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