2012-08-09 13:58:02 +06:00
|
|
|
// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
2005-12-05 21:23:52 +05:00
|
|
|
//
|
2012-08-09 13:58:02 +06:00
|
|
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
|
|
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
2005-12-05 21:23:52 +05:00
|
|
|
//
|
2012-08-09 13:58:02 +06:00
|
|
|
// This library is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
|
|
// License as published by the Free Software Foundation; either
|
|
|
|
// version 2.1 of the License.
|
2009-02-13 17:16:39 +05:00
|
|
|
//
|
2012-08-09 13:58:02 +06:00
|
|
|
// This library is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// Lesser General Public License for more details.
|
2009-02-13 17:16:39 +05:00
|
|
|
//
|
2012-08-09 13:58:02 +06:00
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
// License along with this library; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2009-02-13 17:16:39 +05:00
|
|
|
//
|
2012-08-09 13:58:02 +06:00
|
|
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
2005-12-05 21:23:52 +05:00
|
|
|
//
|
2012-08-09 13:58:02 +06:00
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
#ifndef _GEOMImpl_ITransformOperations_HXX_
|
|
|
|
#define _GEOMImpl_ITransformOperations_HXX_
|
|
|
|
|
|
|
|
#include "Utils_SALOME_Exception.hxx"
|
|
|
|
#include "GEOM_IOperations.hxx"
|
|
|
|
#include "GEOM_Engine.hxx"
|
|
|
|
#include "GEOM_Object.hxx"
|
2012-08-09 13:58:02 +06:00
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
#include <TDocStd_Document.hxx>
|
2012-08-09 13:58:02 +06:00
|
|
|
#include <TopoDS_Shape.hxx>
|
|
|
|
|
|
|
|
class GEOMImpl_ITranslate;
|
|
|
|
class GEOMImpl_IRotate;
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
class GEOMImpl_ITransformOperations : public GEOM_IOperations
|
|
|
|
{
|
2004-12-01 15:39:14 +05:00
|
|
|
public:
|
2005-08-11 10:43:57 +06:00
|
|
|
Standard_EXPORT GEOMImpl_ITransformOperations(GEOM_Engine* theEngine, int theDocID);
|
|
|
|
Standard_EXPORT ~GEOMImpl_ITransformOperations();
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2005-08-11 10:43:57 +06:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) TranslateTwoPoints (Handle(GEOM_Object) theObject,
|
2009-02-13 17:16:39 +05:00
|
|
|
Handle(GEOM_Object) thePoint1,
|
|
|
|
Handle(GEOM_Object) thePoint2);
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2005-08-11 10:43:57 +06:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) TranslateTwoPointsCopy (Handle(GEOM_Object) theObject,
|
2009-02-13 17:16:39 +05:00
|
|
|
Handle(GEOM_Object) thePoint1,
|
|
|
|
Handle(GEOM_Object) thePoint2);
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) TranslateDXDYDZ (Handle(GEOM_Object) theObject,
|
|
|
|
double theX, double theY, double theZ);
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) TranslateDXDYDZCopy (Handle(GEOM_Object) theObject,
|
|
|
|
double theX, double theY, double theZ);
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2005-08-11 10:43:57 +06:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) TranslateVector (Handle(GEOM_Object) theObject,
|
2009-02-13 17:16:39 +05:00
|
|
|
Handle(GEOM_Object) theVector);
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2005-08-11 10:43:57 +06:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) TranslateVectorCopy (Handle(GEOM_Object) theObject,
|
2009-02-13 17:16:39 +05:00
|
|
|
Handle(GEOM_Object) theVector);
|
|
|
|
|
|
|
|
Standard_EXPORT Handle(GEOM_Object) TranslateVectorDistance (Handle(GEOM_Object) theObject,
|
|
|
|
Handle(GEOM_Object) theVector,
|
|
|
|
double theDistance,
|
|
|
|
bool theCopy);
|
|
|
|
|
|
|
|
Standard_EXPORT Handle(GEOM_Object) Translate1D (Handle(GEOM_Object) theObject,
|
|
|
|
Handle(GEOM_Object) theVector,
|
|
|
|
double theStep,
|
|
|
|
Standard_Integer theNbTimes);
|
|
|
|
|
|
|
|
Standard_EXPORT Handle(GEOM_Object) Translate2D (Handle(GEOM_Object) theObject,
|
|
|
|
Handle(GEOM_Object) theVector,
|
|
|
|
double theStep1,
|
|
|
|
Standard_Integer theNbTimes1,
|
|
|
|
Handle(GEOM_Object) theVector2,
|
|
|
|
double theStep2,
|
|
|
|
Standard_Integer theNbTimes2);
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2012-08-09 13:58:02 +06:00
|
|
|
/*
|
|
|
|
Standard_EXPORT static TopoDS_Shape TranslateShape1D (const TopoDS_Shape& theShape,
|
|
|
|
GEOMImpl_ITranslate* theTI);
|
|
|
|
|
|
|
|
Standard_EXPORT static TopoDS_Shape TranslateShape2D (const TopoDS_Shape& theShape,
|
|
|
|
GEOMImpl_ITranslate* theTI);
|
|
|
|
*/
|
|
|
|
|
2005-08-11 10:43:57 +06:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) MirrorPlane (Handle(GEOM_Object) theObject,
|
2009-02-13 17:16:39 +05:00
|
|
|
Handle(GEOM_Object) thePlane);
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2005-08-11 10:43:57 +06:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) MirrorPlaneCopy (Handle(GEOM_Object) theObject,
|
2009-02-13 17:16:39 +05:00
|
|
|
Handle(GEOM_Object) thePlane);
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2005-08-11 10:43:57 +06:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) MirrorAxis (Handle(GEOM_Object) theObject,
|
2009-02-13 17:16:39 +05:00
|
|
|
Handle(GEOM_Object) theAxis);
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2005-08-11 10:43:57 +06:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) MirrorAxisCopy (Handle(GEOM_Object) theObject,
|
2009-02-13 17:16:39 +05:00
|
|
|
Handle(GEOM_Object) theAxis);
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2005-08-11 10:43:57 +06:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) MirrorPoint (Handle(GEOM_Object) theObject,
|
2009-02-13 17:16:39 +05:00
|
|
|
Handle(GEOM_Object) thePoint);
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2005-08-11 10:43:57 +06:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) MirrorPointCopy (Handle(GEOM_Object) theObject,
|
2009-02-13 17:16:39 +05:00
|
|
|
Handle(GEOM_Object) thePoint);
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2005-08-11 10:43:57 +06:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) OffsetShape (Handle(GEOM_Object) theObject,
|
2009-02-13 17:16:39 +05:00
|
|
|
double theOffset);
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2005-08-11 10:43:57 +06:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) OffsetShapeCopy (Handle(GEOM_Object) theObject,
|
2009-02-13 17:16:39 +05:00
|
|
|
double theOffset);
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2012-08-09 13:58:02 +06:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) ProjectShapeCopy (Handle(GEOM_Object) theSource,
|
|
|
|
Handle(GEOM_Object) theTarget);
|
|
|
|
|
2005-08-11 10:43:57 +06:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) ScaleShape (Handle(GEOM_Object) theObject,
|
2009-02-13 17:16:39 +05:00
|
|
|
Handle(GEOM_Object) thePoint,
|
|
|
|
double theFactor);
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2005-08-11 10:43:57 +06:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) ScaleShapeCopy (Handle(GEOM_Object) theObject,
|
2009-02-13 17:16:39 +05:00
|
|
|
Handle(GEOM_Object) thePoint,
|
|
|
|
double theFactor);
|
|
|
|
|
|
|
|
Standard_EXPORT Handle(GEOM_Object) ScaleShapeAlongAxes (Handle(GEOM_Object) theObject,
|
|
|
|
Handle(GEOM_Object) thePoint,
|
|
|
|
double theFactorX,
|
|
|
|
double theFactorY,
|
|
|
|
double theFactorZ,
|
|
|
|
bool doCopy);
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2005-08-11 10:43:57 +06:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) PositionShape (Handle(GEOM_Object) theObject,
|
2009-02-13 17:16:39 +05:00
|
|
|
Handle(GEOM_Object) theStartLCS,
|
|
|
|
Handle(GEOM_Object) theEndLCS);
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2005-08-11 10:43:57 +06:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) PositionShapeCopy (Handle(GEOM_Object) theObject,
|
2009-02-13 17:16:39 +05:00
|
|
|
Handle(GEOM_Object) theStartLCS,
|
|
|
|
Handle(GEOM_Object) theEndLCS);
|
|
|
|
|
|
|
|
Standard_EXPORT Handle(GEOM_Object) PositionAlongPath (Handle(GEOM_Object) theObject,
|
|
|
|
Handle(GEOM_Object) thePath,
|
|
|
|
double theDistance,
|
2012-08-09 13:58:02 +06:00
|
|
|
bool theCopy,
|
|
|
|
bool theReverse);
|
2009-02-13 17:16:39 +05:00
|
|
|
|
|
|
|
Standard_EXPORT Handle(GEOM_Object) Rotate (Handle(GEOM_Object) theObject,
|
|
|
|
Handle(GEOM_Object) theAxis,
|
|
|
|
double theAngle);
|
|
|
|
|
|
|
|
Standard_EXPORT Handle(GEOM_Object) RotateCopy (Handle(GEOM_Object) theObject,
|
|
|
|
Handle(GEOM_Object) theAxis,
|
|
|
|
double theAngle);
|
|
|
|
|
|
|
|
Standard_EXPORT Handle(GEOM_Object) Rotate1D (Handle(GEOM_Object) theObject,
|
|
|
|
Handle(GEOM_Object) theAxis,
|
|
|
|
Standard_Integer theNbTimes);
|
|
|
|
|
|
|
|
Standard_EXPORT Handle(GEOM_Object) Rotate2D (Handle(GEOM_Object) theObject,
|
|
|
|
Handle(GEOM_Object) theAxis,
|
|
|
|
double theAngle,
|
|
|
|
Standard_Integer theNbTimes1,
|
|
|
|
double theStep,
|
|
|
|
Standard_Integer theNbTimes2);
|
2008-03-07 12:45:34 +05:00
|
|
|
|
|
|
|
Standard_EXPORT Handle(GEOM_Object) RotateThreePoints (Handle(GEOM_Object) theObject,
|
2009-02-13 17:16:39 +05:00
|
|
|
Handle(GEOM_Object) theCentPoint,
|
|
|
|
Handle(GEOM_Object) thePoint1,
|
|
|
|
Handle(GEOM_Object) thePoint2);
|
|
|
|
|
|
|
|
Standard_EXPORT Handle(GEOM_Object) RotateThreePointsCopy (Handle(GEOM_Object) theObject,
|
|
|
|
Handle(GEOM_Object) theCentPoint,
|
|
|
|
Handle(GEOM_Object) thePoint1,
|
|
|
|
Handle(GEOM_Object) thePoint2);
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-08-09 13:58:02 +06:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) TransformLikeOtherCopy (Handle(GEOM_Object) theObject,
|
|
|
|
Handle(GEOM_Object) theSample);
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|