mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
Automatic upgrade of OCCT code by command "occt_upgrade . -nocdl": - WOK-generated header files from inc and sources from drv are moved to src - CDL files removed - All packages are converted to nocdlpack
122 lines
3.3 KiB
C++
122 lines
3.3 KiB
C++
// Created by: Peter KURNEV
|
|
// Copyright (c) 2014 OPEN CASCADE SAS
|
|
//
|
|
// This file is part of Open CASCADE Technology software library.
|
|
//
|
|
// This library is free software; you can redistribute it and/or modify it under
|
|
// the terms of the GNU Lesser General Public License version 2.1 as published
|
|
// by the Free Software Foundation, with special exception defined in the file
|
|
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
// distribution for complete text of the license and disclaimer of any warranty.
|
|
//
|
|
// Alternatively, this file may be used under the terms of Open CASCADE
|
|
// commercial license or contractual agreement.
|
|
|
|
#ifndef _BRepAlgoAPI_BuilderAlgo_HeaderFile
|
|
#define _BRepAlgoAPI_BuilderAlgo_HeaderFile
|
|
|
|
#include <Standard.hxx>
|
|
#include <Standard_DefineAlloc.hxx>
|
|
#include <Standard_Handle.hxx>
|
|
|
|
#include <Standard_Integer.hxx>
|
|
#include <BOPAlgo_PPaveFiller.hxx>
|
|
#include <BOPAlgo_PBuilder.hxx>
|
|
#include <Standard_Real.hxx>
|
|
#include <TopTools_ListOfShape.hxx>
|
|
#include <BRepAlgoAPI_Algo.hxx>
|
|
#include <Standard_Boolean.hxx>
|
|
class BOPAlgo_PaveFiller;
|
|
class TopoDS_Shape;
|
|
|
|
|
|
|
|
//! The clsss contains API level of General Fuse algorithm
|
|
class BRepAlgoAPI_BuilderAlgo : public BRepAlgoAPI_Algo
|
|
{
|
|
public:
|
|
|
|
DEFINE_STANDARD_ALLOC
|
|
|
|
|
|
//! Empty constructor
|
|
Standard_EXPORT BRepAlgoAPI_BuilderAlgo();
|
|
Standard_EXPORT virtual ~BRepAlgoAPI_BuilderAlgo();
|
|
|
|
//! Empty constructor
|
|
Standard_EXPORT BRepAlgoAPI_BuilderAlgo(const BOPAlgo_PaveFiller& thePF);
|
|
|
|
//! Sets the additional tolerance
|
|
Standard_EXPORT void SetFuzzyValue (const Standard_Real theFuzz);
|
|
|
|
//! Returns the additional tolerance
|
|
Standard_EXPORT Standard_Real FuzzyValue() const;
|
|
|
|
//! Sets the arguments
|
|
Standard_EXPORT void SetArguments (const TopTools_ListOfShape& theLS);
|
|
|
|
//! Gets the arguments
|
|
Standard_EXPORT const TopTools_ListOfShape& Arguments() const;
|
|
|
|
//! Performs the algorithm
|
|
//!
|
|
//! H I S T O R Y
|
|
Standard_EXPORT virtual void Build() Standard_OVERRIDE;
|
|
|
|
//! Returns the list of shapes modified from the shape <S>.
|
|
Standard_EXPORT virtual const TopTools_ListOfShape& Modified (const TopoDS_Shape& aS) Standard_OVERRIDE;
|
|
|
|
//! Returns true if the shape S has been deleted. The
|
|
//! result shape of the operation does not contain the shape S.
|
|
Standard_EXPORT virtual Standard_Boolean IsDeleted (const TopoDS_Shape& aS) Standard_OVERRIDE;
|
|
|
|
//! Returns the list of shapes generated from the shape <S>.
|
|
//! For use in BRepNaming.
|
|
Standard_EXPORT virtual const TopTools_ListOfShape& Generated (const TopoDS_Shape& S) Standard_OVERRIDE;
|
|
|
|
//! Returns true if there is at least one modified shape.
|
|
//! For use in BRepNaming.
|
|
Standard_EXPORT virtual Standard_Boolean HasModified() const;
|
|
|
|
//! Returns true if there is at least one generated shape.
|
|
//! For use in BRepNaming.
|
|
Standard_EXPORT virtual Standard_Boolean HasGenerated() const;
|
|
|
|
//! Returns true if there is at least one deleted shape.
|
|
//! For use in BRepNaming.
|
|
//!
|
|
//! protected methods
|
|
Standard_EXPORT virtual Standard_Boolean HasDeleted() const;
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
Standard_EXPORT virtual void Clear() Standard_OVERRIDE;
|
|
|
|
|
|
Standard_Integer myEntryType;
|
|
BOPAlgo_PPaveFiller myDSFiller;
|
|
BOPAlgo_PBuilder myBuilder;
|
|
Standard_Real myFuzzyValue;
|
|
TopTools_ListOfShape myArguments;
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _BRepAlgoAPI_BuilderAlgo_HeaderFile
|