mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-06 06:40:46 +05:00
238 lines
11 KiB
C++
238 lines
11 KiB
C++
// File generated by CPPExt (Value)
|
|
//
|
|
// Copyright (C) 1991 - 2000 by
|
|
// Matra Datavision SA. All rights reserved.
|
|
//
|
|
// Copyright (C) 2001 - 2004 by
|
|
// Open CASCADE SA. All rights reserved.
|
|
//
|
|
// This file is part of the Open CASCADE Technology software.
|
|
//
|
|
// This software may be distributed and/or modified under the terms and
|
|
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
|
|
// and appearing in the file LICENSE included in the packaging of this file.
|
|
//
|
|
// This software is distributed on an "AS IS" basis, without warranty of any
|
|
// kind, and Open CASCADE SA hereby disclaims all such warranties,
|
|
// including without limitation, any warranties of merchantability, fitness
|
|
// for a particular purpose or non-infringement. Please see the License for
|
|
// the specific terms and conditions governing rights and limitations under the
|
|
// License.
|
|
|
|
#ifndef _NMTTools_PaveFiller_HeaderFile
|
|
#define _NMTTools_PaveFiller_HeaderFile
|
|
|
|
#ifndef _BOPTools_PInterferencePool_HeaderFile
|
|
#include <BOPTools_PInterferencePool.hxx>
|
|
#endif
|
|
#ifndef _NMTDS_PShapesDataStructure_HeaderFile
|
|
#include <NMTDS_PShapesDataStructure.hxx>
|
|
#endif
|
|
#ifndef _Standard_Boolean_HeaderFile
|
|
#include <Standard_Boolean.hxx>
|
|
#endif
|
|
#ifndef _Standard_Integer_HeaderFile
|
|
#include <Standard_Integer.hxx>
|
|
#endif
|
|
#ifndef _NMTTools_IteratorOfCoupleOfShape_HeaderFile
|
|
#include <NMTTools_IteratorOfCoupleOfShape.hxx>
|
|
#endif
|
|
#ifndef _BOPTools_PavePool_HeaderFile
|
|
#include <BOPTools_PavePool.hxx>
|
|
#endif
|
|
#ifndef _NMTTools_CommonBlockPool_HeaderFile
|
|
#include <NMTTools_CommonBlockPool.hxx>
|
|
#endif
|
|
#ifndef _BOPTools_SplitShapesPool_HeaderFile
|
|
#include <BOPTools_SplitShapesPool.hxx>
|
|
#endif
|
|
#ifndef _IntTools_Context_HeaderFile
|
|
#include <IntTools_Context.hxx>
|
|
#endif
|
|
#ifndef _BOPTools_SSIntersectionAttribute_HeaderFile
|
|
#include <BOPTools_SSIntersectionAttribute.hxx>
|
|
#endif
|
|
#ifndef _TopAbs_ShapeEnum_HeaderFile
|
|
#include <TopAbs_ShapeEnum.hxx>
|
|
#endif
|
|
#ifndef _Standard_Real_HeaderFile
|
|
#include <Standard_Real.hxx>
|
|
#endif
|
|
class BOPTools_InterferencePool;
|
|
class BOPTools_Pave;
|
|
class IntTools_ShrunkRange;
|
|
class IntTools_Context;
|
|
class BOPTools_PavePool;
|
|
class NMTTools_CommonBlockPool;
|
|
class BOPTools_SplitShapesPool;
|
|
class BOPTools_PaveBlock;
|
|
class TopoDS_Vertex;
|
|
class NMTTools_ListOfCommonBlock;
|
|
class NMTTools_CommonBlock;
|
|
class BOPTools_IDMapOfPaveBlockIMapOfPaveBlock;
|
|
class BOPTools_IDMapOfPaveBlockIMapOfInteger;
|
|
class BooleanOperations_IndexedDataMapOfShapeInteger;
|
|
class TColStd_ListOfInteger;
|
|
class BOPTools_ListOfPaveBlock;
|
|
class TopoDS_Face;
|
|
class BOPTools_PaveSet;
|
|
class BOPTools_Curve;
|
|
class BOPTools_SSInterference;
|
|
class gp_Pnt;
|
|
|
|
|
|
#ifndef _Standard_HeaderFile
|
|
#include <Standard.hxx>
|
|
#endif
|
|
#ifndef _Standard_Macro_HeaderFile
|
|
#include <Standard_Macro.hxx>
|
|
#endif
|
|
|
|
class NMTTools_PaveFiller {
|
|
|
|
public:
|
|
|
|
void* operator new(size_t,void* anAddress)
|
|
{
|
|
return anAddress;
|
|
}
|
|
void* operator new(size_t size)
|
|
{
|
|
return Standard::Allocate(size);
|
|
}
|
|
void operator delete(void *anAddress)
|
|
{
|
|
if (anAddress) Standard::Free((Standard_Address&)anAddress);
|
|
}
|
|
// Methods PUBLIC
|
|
//
|
|
Standard_EXPORT NMTTools_PaveFiller();
|
|
Standard_EXPORT NMTTools_PaveFiller(const BOPTools_InterferencePool& aIP);
|
|
Standard_EXPORT virtual void Destroy() ;
|
|
Standard_EXPORT virtual ~NMTTools_PaveFiller(){Destroy();}
|
|
Standard_EXPORT void SetInterferencePool(const BOPTools_InterferencePool& aIP) ;
|
|
Standard_EXPORT BOPTools_PInterferencePool InterfPool() ;
|
|
Standard_EXPORT virtual void Perform() ;
|
|
Standard_EXPORT Standard_Boolean IsDone() const;
|
|
Standard_EXPORT NMTDS_PShapesDataStructure DS() ;
|
|
Standard_EXPORT const IntTools_Context& Context() const;
|
|
Standard_EXPORT IntTools_Context& ChangeContext() ;
|
|
Standard_EXPORT const BOPTools_PavePool& PavePool() const;
|
|
Standard_EXPORT BOPTools_PavePool& ChangePavePool() ;
|
|
Standard_EXPORT const NMTTools_CommonBlockPool& CommonBlockPool() const;
|
|
Standard_EXPORT NMTTools_CommonBlockPool& ChangeCommonBlockPool() ;
|
|
Standard_EXPORT const BOPTools_SplitShapesPool& SplitShapesPool() const;
|
|
Standard_EXPORT BOPTools_SplitShapesPool& ChangeSplitShapesPool() ;
|
|
Standard_EXPORT Standard_Integer FindSDVertex(const Standard_Integer nV) const;
|
|
Standard_EXPORT Standard_Integer SplitsInFace(const Standard_Integer aBid,const Standard_Integer nF1,const Standard_Integer nF2,TColStd_ListOfInteger& aLs) ;
|
|
Standard_EXPORT Standard_Integer SplitsInFace(const Standard_Integer nE1,const Standard_Integer nF2,TColStd_ListOfInteger& aLs) ;
|
|
Standard_EXPORT Standard_Integer SplitsOnEdge(const Standard_Integer nE1,const Standard_Integer nE2,TColStd_ListOfInteger& aLs) ;
|
|
Standard_EXPORT Standard_Integer SplitsOnFace(const Standard_Integer nE1,const Standard_Integer nF2,TColStd_ListOfInteger& aLs) ;
|
|
Standard_EXPORT Standard_Integer SplitsOnFace(const Standard_Integer aBid,const Standard_Integer nF1,const Standard_Integer nF2,TColStd_ListOfInteger& aLs) ;
|
|
Standard_EXPORT Standard_Integer SplitsInFace(const Standard_Integer aBid,const Standard_Integer nF1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
|
Standard_EXPORT Standard_Integer SplitsInFace(const Standard_Integer nE1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
|
Standard_EXPORT Standard_Integer SplitsOnEdge(const Standard_Integer nE1,const Standard_Integer nE2,BOPTools_ListOfPaveBlock& aLs) ;
|
|
Standard_EXPORT Standard_Integer SplitsOnFace(const Standard_Integer nE1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
|
Standard_EXPORT Standard_Integer SplitsOnFace(const Standard_Integer aBid,const Standard_Integer nF1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
|
Standard_EXPORT Standard_Integer SplitsFace(const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
|
Standard_EXPORT Standard_Integer SplitsFace(const Standard_Integer nF2,TColStd_ListOfInteger& aLs) ;
|
|
Standard_EXPORT Standard_Integer CommonBlocksFace(const Standard_Integer nF,NMTTools_ListOfCommonBlock& aLCB) ;
|
|
Standard_EXPORT void PrepareFace(const Standard_Integer nF,TopoDS_Face& aF) ;
|
|
Standard_EXPORT const BOPTools_PaveBlock& RealPaveBlock(const BOPTools_PaveBlock& aPB) ;
|
|
Standard_EXPORT void RealSplitsFace(const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
|
Standard_EXPORT Standard_Boolean HasRealSplitsInOnFace(const Standard_Integer nF1,const Standard_Integer nF2) ;
|
|
Standard_EXPORT void RealSplitsInFace(const Standard_Integer aBid,const Standard_Integer nF1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
|
Standard_EXPORT void RealSplitsInFace(const Standard_Integer nE1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
|
Standard_EXPORT void RealSplitsOnEdge(const Standard_Integer nE1,const Standard_Integer nE2,BOPTools_ListOfPaveBlock& aLs) ;
|
|
Standard_EXPORT void RealSplitsOnFace(const Standard_Integer nE1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
|
Standard_EXPORT void RealSplitsOnFace(const Standard_Integer aBid,const Standard_Integer nF1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
|
Standard_EXPORT void PrepareSetForFace(const Standard_Integer nF1,const Standard_Integer nF2,const BOPTools_ListOfPaveBlock& aLPB,BOPTools_PaveSet& aPSF) ;
|
|
Standard_EXPORT void PutPaveOnCurve(const BOPTools_PaveSet& aPSF,const Standard_Real aTol,BOPTools_Curve& aBC) ;
|
|
Standard_EXPORT void PutBoundPaveOnCurve(BOPTools_Curve& aBC,BOPTools_SSInterference& aFF) ;
|
|
Standard_EXPORT void PutBoundPaveOnCurve(const gp_Pnt& aP,const Standard_Real aT,BOPTools_Curve& aBC,BOPTools_SSInterference& aFF) ;
|
|
Standard_EXPORT Standard_Boolean FindPave(const gp_Pnt& aP,const Standard_Real aTpV,const BOPTools_PaveSet& aPS,BOPTools_Pave& aPV) ;
|
|
Standard_EXPORT Standard_Integer CheckIntermediatePoint(const BOPTools_PaveBlock& aPB,const BOPTools_PaveBlock& aPBR,const Standard_Real aTol) ;
|
|
Standard_EXPORT Standard_Boolean IsExistingPaveBlock(const BOPTools_PaveBlock& aPB,const BOPTools_ListOfPaveBlock& aLPB,const Standard_Real aTol) ;
|
|
Standard_EXPORT void MakePCurves() ;
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
// Methods PROTECTED
|
|
//
|
|
Standard_EXPORT void Init() ;
|
|
Standard_EXPORT virtual void PerformVV() ;
|
|
Standard_EXPORT virtual void PerformVE() ;
|
|
Standard_EXPORT virtual void PerformVF() ;
|
|
Standard_EXPORT virtual void PerformEE() ;
|
|
Standard_EXPORT virtual void PerformEF() ;
|
|
Standard_EXPORT virtual void PerformFF() ;
|
|
Standard_EXPORT void MakeSplitEdges() ;
|
|
Standard_EXPORT virtual void PreparePaveBlocks(const TopAbs_ShapeEnum aType1,const TopAbs_ShapeEnum aType2) ;
|
|
Standard_EXPORT void CorrectShrunkRanges(const Standard_Integer aSide,const BOPTools_Pave& aPave,IntTools_ShrunkRange& aSR) ;
|
|
Standard_EXPORT virtual void PreparePaveBlocks(const Standard_Integer anE) ;
|
|
Standard_EXPORT virtual void PerformNewVertices() ;
|
|
Standard_EXPORT virtual void PrepareEdges() ;
|
|
Standard_EXPORT void SortTypes(Standard_Integer& anInd1,Standard_Integer& anInd2) const;
|
|
Standard_EXPORT Standard_Integer ExpectedPoolLength() const;
|
|
Standard_EXPORT Standard_Boolean IsSuccesstorsComputed(const Standard_Integer iF1,const Standard_Integer iF2) const;
|
|
Standard_EXPORT Standard_Boolean IsBlocksCoinside(const BOPTools_PaveBlock& aPB1,const BOPTools_PaveBlock& aPB2) const;
|
|
Standard_EXPORT void RefinePavePool() ;
|
|
Standard_EXPORT Standard_Integer CheckFacePaves(const TopoDS_Vertex& aV,const Standard_Integer nF) ;
|
|
Standard_EXPORT void ReplaceCommonBlocks(const NMTTools_ListOfCommonBlock& aLCB) ;
|
|
Standard_EXPORT void RemoveCommonBlocks(const NMTTools_ListOfCommonBlock& aLCB) ;
|
|
Standard_EXPORT void SplitCommonBlocks(const NMTTools_ListOfCommonBlock& aLCB) ;
|
|
Standard_EXPORT void SplitCommonBlock(const NMTTools_CommonBlock& aCB,NMTTools_ListOfCommonBlock& aLCB) ;
|
|
Standard_EXPORT void EECommonBlocks(const BOPTools_IDMapOfPaveBlockIMapOfPaveBlock& aM) ;
|
|
Standard_EXPORT void EFCommonBlocks(const BOPTools_IDMapOfPaveBlockIMapOfInteger& aMapCB) ;
|
|
Standard_EXPORT void EENewVertices(const BooleanOperations_IndexedDataMapOfShapeInteger& aM) ;
|
|
Standard_EXPORT void EENewVertices(const TopoDS_Vertex& aV,const BooleanOperations_IndexedDataMapOfShapeInteger& aM) ;
|
|
Standard_EXPORT void EFNewVertices(const BooleanOperations_IndexedDataMapOfShapeInteger& aM) ;
|
|
Standard_EXPORT void EFNewVertices(const TopoDS_Vertex& aV,const BooleanOperations_IndexedDataMapOfShapeInteger& aM) ;
|
|
Standard_EXPORT void UpdateCommonBlocks() ;
|
|
Standard_EXPORT void UpdatePaveBlocks() ;
|
|
Standard_EXPORT Standard_Integer SplitIndex(const BOPTools_PaveBlock& aPB) const;
|
|
Standard_EXPORT void MakeBlocks() ;
|
|
|
|
|
|
// Fields PROTECTED
|
|
//
|
|
BOPTools_PInterferencePool myIntrPool;
|
|
NMTDS_PShapesDataStructure myDS;
|
|
Standard_Boolean myIsDone;
|
|
Standard_Integer myNbSources;
|
|
Standard_Integer myNbEdges;
|
|
NMTTools_IteratorOfCoupleOfShape myDSIt;
|
|
BOPTools_PavePool myPavePool;
|
|
BOPTools_PavePool myPavePoolNew;
|
|
NMTTools_CommonBlockPool myCommonBlockPool;
|
|
BOPTools_SplitShapesPool mySplitShapesPool;
|
|
IntTools_Context myContext;
|
|
BOPTools_SSIntersectionAttribute mySectionAttribute;
|
|
|
|
|
|
private:
|
|
|
|
// Methods PRIVATE
|
|
//
|
|
|
|
|
|
// Fields PRIVATE
|
|
//
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// other Inline functions and methods (like "C++: function call" methods)
|
|
//
|
|
|
|
|
|
#endif
|