geom/src/GEOMAlgo/GEOMAlgo_GluerAlgo.hxx

99 lines
2.7 KiB
C++
Raw Normal View History

2012-06-05 11:33:32 +00:00
// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
2011-06-06 07:23:11 +00:00
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// 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.
//
// 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.
//
// 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
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
2012-06-05 11:33:32 +00:00
//
2011-06-06 07:23:11 +00:00
// File: GEOMAlgo_GluerAlgo.hxx
2012-06-05 11:33:32 +00:00
// Created:
2011-06-06 07:23:11 +00:00
// Author: Peter KURNEV
2012-06-05 11:33:32 +00:00
// <pkv@irinox>
//
2011-06-06 07:23:11 +00:00
#ifndef _GEOMAlgo_GluerAlgo_HeaderFile
#define _GEOMAlgo_GluerAlgo_HeaderFile
#include <Standard_Macro.hxx>
2012-06-05 11:33:32 +00:00
#include <TopoDS_Shape.hxx>
2011-06-06 07:23:11 +00:00
#include <Standard_Real.hxx>
#include <Standard_Boolean.hxx>
2013-01-15 16:39:02 +00:00
#include <BOPInt_Context.hxx>
2011-06-06 07:23:11 +00:00
#include <TopTools_DataMapOfShapeListOfShape.hxx>
#include <TopTools_DataMapOfShapeShape.hxx>
//=======================================================================
//class : GEOMAlgo_GluerAlgo
2012-06-05 11:33:32 +00:00
//purpose :
2011-06-06 07:23:11 +00:00
//=======================================================================
class GEOMAlgo_GluerAlgo {
public:
2012-06-05 11:33:32 +00:00
Standard_EXPORT
2011-06-06 07:23:11 +00:00
GEOMAlgo_GluerAlgo();
2012-06-05 11:33:32 +00:00
Standard_EXPORT
2011-06-06 07:23:11 +00:00
virtual ~GEOMAlgo_GluerAlgo();
2012-06-05 11:33:32 +00:00
Standard_EXPORT
2011-06-06 07:23:11 +00:00
virtual void SetArgument(const TopoDS_Shape& theShape) ;
2012-06-05 11:33:32 +00:00
Standard_EXPORT
2011-06-06 07:23:11 +00:00
const TopoDS_Shape& Argument() const;
2012-06-05 11:33:32 +00:00
Standard_EXPORT
2011-06-06 07:23:11 +00:00
void SetTolerance(const Standard_Real aT) ;
2012-06-05 11:33:32 +00:00
Standard_EXPORT
2011-06-06 07:23:11 +00:00
Standard_Real Tolerance() const;
2012-06-05 11:33:32 +00:00
Standard_EXPORT
2011-06-06 07:23:11 +00:00
void SetCheckGeometry(const Standard_Boolean aFlag) ;
2012-06-05 11:33:32 +00:00
Standard_EXPORT
2011-06-06 07:23:11 +00:00
Standard_Boolean CheckGeometry() const;
2012-06-05 11:33:32 +00:00
Standard_EXPORT
2011-06-06 07:23:11 +00:00
virtual void Perform() ;
2012-06-05 11:33:32 +00:00
Standard_EXPORT
2011-06-06 07:23:11 +00:00
virtual void Clear() ;
2012-06-05 11:33:32 +00:00
Standard_EXPORT
2013-01-15 16:39:02 +00:00
void SetContext(const Handle(BOPInt_Context)&) ;
2012-06-05 11:33:32 +00:00
Standard_EXPORT
2013-01-15 16:39:02 +00:00
const Handle(BOPInt_Context)& Context() ;
2012-06-05 11:33:32 +00:00
Standard_EXPORT
2011-06-06 07:23:11 +00:00
const TopTools_DataMapOfShapeListOfShape& Images() const;
2012-06-05 11:33:32 +00:00
Standard_EXPORT
2011-06-06 07:23:11 +00:00
const TopTools_DataMapOfShapeShape& Origins() const;
protected:
TopoDS_Shape myArgument;
Standard_Real myTolerance;
Standard_Boolean myCheckGeometry;
2013-01-15 16:39:02 +00:00
Handle(BOPInt_Context) myContext;
2011-06-06 07:23:11 +00:00
TopTools_DataMapOfShapeListOfShape myImages;
TopTools_DataMapOfShapeShape myOrigins;
2012-06-05 11:33:32 +00:00
2011-06-06 07:23:11 +00:00
private:
};
#endif