mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-03-21 16:57:55 +05:00
76 lines
3.5 KiB
C++
76 lines
3.5 KiB
C++
// Copyright (C) 2013-2022 CEA/DEN, EDF R&D, OPEN CASCADE
|
|
//
|
|
// 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, or (at your option) any later version.
|
|
//
|
|
// 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
|
|
//
|
|
|
|
#ifndef _GEOMImpl_ConformityDriver_HXX_
|
|
#define _GEOMImpl_ConformityDriver_HXX_
|
|
|
|
#include "GEOM_BaseDriver.hxx"
|
|
|
|
#include <Standard_Transient.hxx>
|
|
#include <TopoDS_Shape.hxx>
|
|
|
|
#include <BOPAlgo_ArgumentAnalyzer.hxx>
|
|
|
|
DEFINE_STANDARD_HANDLE(GEOMImpl_ConformityDriver, GEOM_BaseDriver)
|
|
|
|
class GEOMImpl_ConformityDriver : public GEOM_BaseDriver
|
|
{
|
|
|
|
public:
|
|
Standard_EXPORT GEOMImpl_ConformityDriver();
|
|
Standard_EXPORT ~GEOMImpl_ConformityDriver() {};
|
|
|
|
Standard_EXPORT static const Standard_GUID& GetID();
|
|
Standard_EXPORT virtual Standard_Integer Execute(Handle(TFunction_Logbook)& log) const;
|
|
Standard_EXPORT Standard_Boolean MustExecute(const Handle(TFunction_Logbook)&) const { return Standard_True; }
|
|
Standard_EXPORT virtual void Validate(Handle(TFunction_Logbook)&) const {}
|
|
|
|
private:
|
|
|
|
Standard_EXPORT NCollection_List<std::pair<TopoDS_Shape, TopoDS_Shape>> distantShapes(const TopoDS_Shape& theShape,
|
|
const TopAbs_ShapeEnum theShapeType,
|
|
const TopAbs_ShapeEnum theSubShapeType,
|
|
Standard_Real theTolerance = -1.) const;
|
|
|
|
Standard_EXPORT NCollection_List<std::pair<TopoDS_Shape, TopoDS_Shape>> distantShapes(const TopoDS_Shape& theShape,
|
|
const TopAbs_ShapeEnum theShapeType,
|
|
Standard_Real theTolerance = -1.) const;
|
|
|
|
Standard_EXPORT NCollection_List<std::pair<TopoDS_Shape, TopoDS_Shape>> distantShapes(const TopoDS_Shape& theShape,
|
|
Standard_Real theTolerance = -1.) const;
|
|
|
|
Standard_EXPORT void checkShape(const TopoDS_Shape& theShape,
|
|
NCollection_List<std::pair<TopoDS_Shape, TopoDS_Shape>>& theFailedShape,
|
|
Handle(TColStd_HArray1OfInteger)& theTypesOfCheck) const;
|
|
|
|
Standard_EXPORT Standard_Real updateTolerance(const TopoDS_Shape& theShape) const;
|
|
|
|
Standard_EXPORT virtual bool GetCreationInformation(std::string& /*theOperationName*/,
|
|
std::vector<GEOM_Param>& /*params*/)
|
|
{
|
|
return Standard_False;
|
|
}
|
|
|
|
private:
|
|
void performAnalyze(const TopoDS_Shape& theShape, BOPAlgo_ArgumentAnalyzer& theAnalyzer) const;
|
|
|
|
};
|
|
|
|
#endif // _GEOMImpl_ConformityDriver_HXX_
|