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
25 #include <SALOMEconfig.h>
27 #include CORBA_SERVER_HEADER(GEOM_Gen)
28 #include "GEOM_IOperations_i.hh"
29 #include "GEOM_Object_i.hh"
31 #include "GEOMImpl_ITransformOperations.hxx"
33 class GEOM_ITransformOperations_i :
34 public virtual POA_GEOM::GEOM_ITransformOperations,
35 public virtual GEOM_IOperations_i
38 GEOM_ITransformOperations_i (PortableServer::POA_ptr thePOA,
39 GEOM::GEOM_Gen_ptr theEngine,
40 ::GEOMImpl_ITransformOperations* theImpl);
41 ~GEOM_ITransformOperations_i();
43 GEOM::GEOM_Object_ptr TranslateTwoPoints (GEOM::GEOM_Object_ptr theObject,
44 GEOM::GEOM_Object_ptr thePoint1,
45 GEOM::GEOM_Object_ptr thePoint2);
47 GEOM::GEOM_Object_ptr TranslateTwoPointsCopy (GEOM::GEOM_Object_ptr theObject,
48 GEOM::GEOM_Object_ptr thePoint1,
49 GEOM::GEOM_Object_ptr thePoint2);
51 GEOM::GEOM_Object_ptr TranslateDXDYDZ (GEOM::GEOM_Object_ptr theObject, CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ);
54 GEOM::GEOM_Object_ptr TranslateDXDYDZCopy (GEOM::GEOM_Object_ptr theObject, CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ);
56 GEOM::GEOM_Object_ptr TranslateVector (GEOM::GEOM_Object_ptr theObject,
57 GEOM::GEOM_Object_ptr theVector);
59 GEOM::GEOM_Object_ptr TranslateVectorCopy (GEOM::GEOM_Object_ptr theObject,
60 GEOM::GEOM_Object_ptr theVector);
62 GEOM::GEOM_Object_ptr MultiTranslate1D (GEOM::GEOM_Object_ptr theObject, GEOM::GEOM_Object_ptr theVector, CORBA::Double theStep, CORBA::Long theNbTimes);
64 GEOM::GEOM_Object_ptr MultiTranslate2D (GEOM::GEOM_Object_ptr theObject, GEOM::GEOM_Object_ptr theVector1, CORBA::Double theStep1, CORBA::Long theNbTimes1,
65 GEOM::GEOM_Object_ptr theVector2, CORBA::Double theStep2, CORBA::Long theNbTimes2);
67 GEOM::GEOM_Object_ptr Rotate (GEOM::GEOM_Object_ptr theObject,
68 GEOM::GEOM_Object_ptr theAxis,
69 CORBA::Double theAngle);
71 GEOM::GEOM_Object_ptr MultiRotate1D (GEOM::GEOM_Object_ptr theObject,
72 GEOM::GEOM_Object_ptr theVector,
73 CORBA::Long theNbTimes);
76 GEOM::GEOM_Object_ptr MultiRotate2D (GEOM::GEOM_Object_ptr theObject,
77 GEOM::GEOM_Object_ptr theVector,
78 CORBA::Double theAngle,
79 CORBA::Long theNbTimes1,
80 CORBA::Double theStep,
81 CORBA::Long theNbTimes2);
83 GEOM::GEOM_Object_ptr RotateCopy (GEOM::GEOM_Object_ptr theObject,
84 GEOM::GEOM_Object_ptr theAxis,
85 CORBA::Double theAngle);
87 GEOM::GEOM_Object_ptr MirrorPlane (GEOM::GEOM_Object_ptr theObject,
88 GEOM::GEOM_Object_ptr thePlane);
90 GEOM::GEOM_Object_ptr MirrorPlaneCopy (GEOM::GEOM_Object_ptr theObject,
91 GEOM::GEOM_Object_ptr thePlane);
93 GEOM::GEOM_Object_ptr MirrorAxis (GEOM::GEOM_Object_ptr theObject,
94 GEOM::GEOM_Object_ptr theAxis);
96 GEOM::GEOM_Object_ptr MirrorAxisCopy (GEOM::GEOM_Object_ptr theObject,
97 GEOM::GEOM_Object_ptr theAxis);
99 GEOM::GEOM_Object_ptr MirrorPoint (GEOM::GEOM_Object_ptr theObject,
100 GEOM::GEOM_Object_ptr thePoint);
102 GEOM::GEOM_Object_ptr MirrorPointCopy (GEOM::GEOM_Object_ptr theObject,
103 GEOM::GEOM_Object_ptr thePoint);
105 GEOM::GEOM_Object_ptr OffsetShape (GEOM::GEOM_Object_ptr theObject,
106 CORBA::Double theOffset);
108 GEOM::GEOM_Object_ptr OffsetShapeCopy (GEOM::GEOM_Object_ptr theObject,
109 CORBA::Double theOffset);
111 GEOM::GEOM_Object_ptr ScaleShape (GEOM::GEOM_Object_ptr theObject,
112 GEOM::GEOM_Object_ptr thePoint,
113 CORBA::Double theFactor);
115 GEOM::GEOM_Object_ptr ScaleShapeCopy (GEOM::GEOM_Object_ptr theObject,
116 GEOM::GEOM_Object_ptr thePoint,
117 CORBA::Double theFactor);
119 GEOM::GEOM_Object_ptr PositionShape (GEOM::GEOM_Object_ptr theObject,
120 GEOM::GEOM_Object_ptr theStartLCS,
121 GEOM::GEOM_Object_ptr theEndLCS);
123 GEOM::GEOM_Object_ptr PositionShapeCopy (GEOM::GEOM_Object_ptr theObject,
124 GEOM::GEOM_Object_ptr theStartLCS,
125 GEOM::GEOM_Object_ptr theEndLCS);
127 ::GEOMImpl_ITransformOperations* GetOperations() { return (::GEOMImpl_ITransformOperations*)GetImpl(); }