1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 #ifndef _GEOM_ITransformOperations_i_HeaderFile
23 #define _GEOM_ITransformOperations_i_HeaderFile
25 #include "GEOMImpl_Gen.hxx"
27 #include <SALOMEconfig.h>
29 #include CORBA_SERVER_HEADER(GEOM_Gen)
30 #include "GEOM_IOperations_i.hh"
31 #include "GEOM_Object_i.hh"
33 #include "GEOMImpl_ITransformOperations.hxx"
35 class GEOM_I_EXPORT GEOM_ITransformOperations_i :
36 public virtual POA_GEOM::GEOM_ITransformOperations,
37 public virtual GEOM_IOperations_i
40 GEOM_ITransformOperations_i (PortableServer::POA_ptr thePOA,
41 GEOM::GEOM_Gen_ptr theEngine,
42 ::GEOMImpl_ITransformOperations* theImpl);
43 ~GEOM_ITransformOperations_i();
45 GEOM::GEOM_Object_ptr TranslateTwoPoints (GEOM::GEOM_Object_ptr theObject,
46 GEOM::GEOM_Object_ptr thePoint1,
47 GEOM::GEOM_Object_ptr thePoint2);
49 GEOM::GEOM_Object_ptr TranslateTwoPointsCopy (GEOM::GEOM_Object_ptr theObject,
50 GEOM::GEOM_Object_ptr thePoint1,
51 GEOM::GEOM_Object_ptr thePoint2);
53 GEOM::GEOM_Object_ptr TranslateDXDYDZ (GEOM::GEOM_Object_ptr theObject, CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ);
56 GEOM::GEOM_Object_ptr TranslateDXDYDZCopy (GEOM::GEOM_Object_ptr theObject, CORBA::Double theDX, CORBA::Double theDY, CORBA::Double theDZ);
58 GEOM::GEOM_Object_ptr TranslateVector (GEOM::GEOM_Object_ptr theObject,
59 GEOM::GEOM_Object_ptr theVector);
61 GEOM::GEOM_Object_ptr TranslateVectorCopy (GEOM::GEOM_Object_ptr theObject,
62 GEOM::GEOM_Object_ptr theVector);
64 GEOM::GEOM_Object_ptr TranslateVectorDistance (GEOM::GEOM_Object_ptr theObject,
65 GEOM::GEOM_Object_ptr theVector,
66 CORBA::Double theDistance,
67 CORBA::Boolean theCopy);
69 GEOM::GEOM_Object_ptr MultiTranslate1D (GEOM::GEOM_Object_ptr theObject, GEOM::GEOM_Object_ptr theVector, CORBA::Double theStep, CORBA::Long theNbTimes);
71 GEOM::GEOM_Object_ptr MultiTranslate2D (GEOM::GEOM_Object_ptr theObject, GEOM::GEOM_Object_ptr theVector1, CORBA::Double theStep1, CORBA::Long theNbTimes1,
72 GEOM::GEOM_Object_ptr theVector2, CORBA::Double theStep2, CORBA::Long theNbTimes2);
74 GEOM::GEOM_Object_ptr Rotate (GEOM::GEOM_Object_ptr theObject,
75 GEOM::GEOM_Object_ptr theAxis,
76 CORBA::Double theAngle);
78 GEOM::GEOM_Object_ptr MultiRotate1D (GEOM::GEOM_Object_ptr theObject,
79 GEOM::GEOM_Object_ptr theVector,
80 CORBA::Long theNbTimes);
82 GEOM::GEOM_Object_ptr MultiRotate2D (GEOM::GEOM_Object_ptr theObject,
83 GEOM::GEOM_Object_ptr theVector,
84 CORBA::Double theAngle,
85 CORBA::Long theNbTimes1,
86 CORBA::Double theStep,
87 CORBA::Long theNbTimes2);
89 GEOM::GEOM_Object_ptr RotateCopy (GEOM::GEOM_Object_ptr theObject,
90 GEOM::GEOM_Object_ptr theAxis,
91 CORBA::Double theAngle);
93 GEOM::GEOM_Object_ptr MirrorPlane (GEOM::GEOM_Object_ptr theObject,
94 GEOM::GEOM_Object_ptr thePlane);
96 GEOM::GEOM_Object_ptr MirrorPlaneCopy (GEOM::GEOM_Object_ptr theObject,
97 GEOM::GEOM_Object_ptr thePlane);
99 GEOM::GEOM_Object_ptr MirrorAxis (GEOM::GEOM_Object_ptr theObject,
100 GEOM::GEOM_Object_ptr theAxis);
102 GEOM::GEOM_Object_ptr MirrorAxisCopy (GEOM::GEOM_Object_ptr theObject,
103 GEOM::GEOM_Object_ptr theAxis);
105 GEOM::GEOM_Object_ptr MirrorPoint (GEOM::GEOM_Object_ptr theObject,
106 GEOM::GEOM_Object_ptr thePoint);
108 GEOM::GEOM_Object_ptr MirrorPointCopy (GEOM::GEOM_Object_ptr theObject,
109 GEOM::GEOM_Object_ptr thePoint);
111 GEOM::GEOM_Object_ptr OffsetShape (GEOM::GEOM_Object_ptr theObject,
112 CORBA::Double theOffset);
114 GEOM::GEOM_Object_ptr OffsetShapeCopy (GEOM::GEOM_Object_ptr theObject,
115 CORBA::Double theOffset);
117 GEOM::GEOM_Object_ptr ScaleShape (GEOM::GEOM_Object_ptr theObject,
118 GEOM::GEOM_Object_ptr thePoint,
119 CORBA::Double theFactor);
121 GEOM::GEOM_Object_ptr ScaleShapeCopy (GEOM::GEOM_Object_ptr theObject,
122 GEOM::GEOM_Object_ptr thePoint,
123 CORBA::Double theFactor);
125 GEOM::GEOM_Object_ptr ScaleShapeAlongAxes (GEOM::GEOM_Object_ptr theObject,
126 GEOM::GEOM_Object_ptr thePoint,
127 CORBA::Double theFactorX,
128 CORBA::Double theFactorY,
129 CORBA::Double theFactorZ);
131 GEOM::GEOM_Object_ptr ScaleShapeAlongAxesCopy (GEOM::GEOM_Object_ptr theObject,
132 GEOM::GEOM_Object_ptr thePoint,
133 CORBA::Double theFactorX,
134 CORBA::Double theFactorY,
135 CORBA::Double theFactorZ);
137 GEOM::GEOM_Object_ptr PositionShape (GEOM::GEOM_Object_ptr theObject,
138 GEOM::GEOM_Object_ptr theStartLCS,
139 GEOM::GEOM_Object_ptr theEndLCS);
141 GEOM::GEOM_Object_ptr PositionShapeCopy (GEOM::GEOM_Object_ptr theObject,
142 GEOM::GEOM_Object_ptr theStartLCS,
143 GEOM::GEOM_Object_ptr theEndLCS);
145 GEOM::GEOM_Object_ptr PositionAlongPath (GEOM::GEOM_Object_ptr theObject,
146 GEOM::GEOM_Object_ptr thePath,
147 CORBA::Double theDistance,
148 CORBA::Boolean theCopy,
149 CORBA::Boolean theReverse);
151 GEOM::GEOM_Object_ptr RotateThreePoints (GEOM::GEOM_Object_ptr theObject,
152 GEOM::GEOM_Object_ptr theCentPoint,
153 GEOM::GEOM_Object_ptr thePoint1,
154 GEOM::GEOM_Object_ptr thePoint2);
156 GEOM::GEOM_Object_ptr RotateThreePointsCopy (GEOM::GEOM_Object_ptr theObject,
157 GEOM::GEOM_Object_ptr theCentPoint,
158 GEOM::GEOM_Object_ptr thePoint1,
159 GEOM::GEOM_Object_ptr thePoint2);
161 GEOM::GEOM_Object_ptr RecomputeObject (GEOM::GEOM_Object_ptr theObject);
164 ::GEOMImpl_ITransformOperations* GetOperations() { return (::GEOMImpl_ITransformOperations*)GetImpl(); }