1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #ifndef _GEOM_ITransformOperations_i_HeaderFile
22 #define _GEOM_ITransformOperations_i_HeaderFile
24 #include "GEOMImpl_Gen.hxx"
26 #include <SALOMEconfig.h>
28 #include CORBA_SERVER_HEADER(GEOM_Gen)
29 #include "GEOM_IOperations_i.hh"
30 #include "GEOM_Object_i.hh"
32 #include "GEOMImpl_ITransformOperations.hxx"
34 class GEOM_I_EXPORT GEOM_ITransformOperations_i :
35 public virtual POA_GEOM::GEOM_ITransformOperations,
36 public virtual GEOM_IOperations_i
39 GEOM_ITransformOperations_i (PortableServer::POA_ptr thePOA,
40 GEOM::GEOM_Gen_ptr theEngine,
41 ::GEOMImpl_ITransformOperations* theImpl);
42 ~GEOM_ITransformOperations_i();
44 GEOM::GEOM_Object_ptr TranslateTwoPoints (GEOM::GEOM_Object_ptr theObject,
45 GEOM::GEOM_Object_ptr thePoint1,
46 GEOM::GEOM_Object_ptr thePoint2);
48 GEOM::GEOM_Object_ptr TranslateTwoPointsCopy (GEOM::GEOM_Object_ptr theObject,
49 GEOM::GEOM_Object_ptr thePoint1,
50 GEOM::GEOM_Object_ptr thePoint2);
52 GEOM::GEOM_Object_ptr TranslateDXDYDZ (GEOM::GEOM_Object_ptr theObject, CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ);
55 GEOM::GEOM_Object_ptr TranslateDXDYDZCopy (GEOM::GEOM_Object_ptr theObject, CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ);
57 GEOM::GEOM_Object_ptr TranslateVector (GEOM::GEOM_Object_ptr theObject,
58 GEOM::GEOM_Object_ptr theVector);
60 GEOM::GEOM_Object_ptr TranslateVectorCopy (GEOM::GEOM_Object_ptr theObject,
61 GEOM::GEOM_Object_ptr theVector);
63 GEOM::GEOM_Object_ptr MultiTranslate1D (GEOM::GEOM_Object_ptr theObject, GEOM::GEOM_Object_ptr theVector, CORBA::Double theStep, CORBA::Long theNbTimes);
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);
68 GEOM::GEOM_Object_ptr Rotate (GEOM::GEOM_Object_ptr theObject,
69 GEOM::GEOM_Object_ptr theAxis,
70 CORBA::Double theAngle);
72 GEOM::GEOM_Object_ptr MultiRotate1D (GEOM::GEOM_Object_ptr theObject,
73 GEOM::GEOM_Object_ptr theVector,
74 CORBA::Long theNbTimes);
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);
84 GEOM::GEOM_Object_ptr RotateCopy (GEOM::GEOM_Object_ptr theObject,
85 GEOM::GEOM_Object_ptr theAxis,
86 CORBA::Double theAngle);
88 GEOM::GEOM_Object_ptr MirrorPlane (GEOM::GEOM_Object_ptr theObject,
89 GEOM::GEOM_Object_ptr thePlane);
91 GEOM::GEOM_Object_ptr MirrorPlaneCopy (GEOM::GEOM_Object_ptr theObject,
92 GEOM::GEOM_Object_ptr thePlane);
94 GEOM::GEOM_Object_ptr MirrorAxis (GEOM::GEOM_Object_ptr theObject,
95 GEOM::GEOM_Object_ptr theAxis);
97 GEOM::GEOM_Object_ptr MirrorAxisCopy (GEOM::GEOM_Object_ptr theObject,
98 GEOM::GEOM_Object_ptr theAxis);
100 GEOM::GEOM_Object_ptr MirrorPoint (GEOM::GEOM_Object_ptr theObject,
101 GEOM::GEOM_Object_ptr thePoint);
103 GEOM::GEOM_Object_ptr MirrorPointCopy (GEOM::GEOM_Object_ptr theObject,
104 GEOM::GEOM_Object_ptr thePoint);
106 GEOM::GEOM_Object_ptr OffsetShape (GEOM::GEOM_Object_ptr theObject,
107 CORBA::Double theOffset);
109 GEOM::GEOM_Object_ptr OffsetShapeCopy (GEOM::GEOM_Object_ptr theObject,
110 CORBA::Double theOffset);
112 GEOM::GEOM_Object_ptr ScaleShape (GEOM::GEOM_Object_ptr theObject,
113 GEOM::GEOM_Object_ptr thePoint,
114 CORBA::Double theFactor);
116 GEOM::GEOM_Object_ptr ScaleShapeCopy (GEOM::GEOM_Object_ptr theObject,
117 GEOM::GEOM_Object_ptr thePoint,
118 CORBA::Double theFactor);
120 GEOM::GEOM_Object_ptr PositionShape (GEOM::GEOM_Object_ptr theObject,
121 GEOM::GEOM_Object_ptr theStartLCS,
122 GEOM::GEOM_Object_ptr theEndLCS);
124 GEOM::GEOM_Object_ptr PositionShapeCopy (GEOM::GEOM_Object_ptr theObject,
125 GEOM::GEOM_Object_ptr theStartLCS,
126 GEOM::GEOM_Object_ptr theEndLCS);
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);
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);
139 ::GEOMImpl_ITransformOperations* GetOperations() { return (::GEOMImpl_ITransformOperations*)GetImpl(); }