Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-21 09:16:23

0001 // Created by: Peter KURNEV
0002 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0003 //
0004 // This file is part of Open CASCADE Technology software library.
0005 //
0006 // This library is free software; you can redistribute it and/or modify it under
0007 // the terms of the GNU Lesser General Public License version 2.1 as published
0008 // by the Free Software Foundation, with special exception defined in the file
0009 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0010 // distribution for complete text of the license and disclaimer of any warranty.
0011 //
0012 // Alternatively, this file may be used under the terms of Open CASCADE
0013 // commercial license or contractual agreement.
0014 
0015 #ifndef _BOPTest_Objects_HeaderFile
0016 #define _BOPTest_Objects_HeaderFile
0017 
0018 #include <Standard.hxx>
0019 #include <Standard_DefineAlloc.hxx>
0020 
0021 #include <BOPDS_PDS.hxx>
0022 #include <TopoDS_Shape.hxx>
0023 #include <NCollection_List.hxx>
0024 #include <BOPAlgo_PBuilder.hxx>
0025 #include <BOPAlgo_CellsBuilder.hxx>
0026 #include <BOPAlgo_GlueEnum.hxx>
0027 //
0028 class BOPAlgo_PaveFiller;
0029 class BOPAlgo_Builder;
0030 class BOPAlgo_BOP;
0031 class BOPAlgo_Section;
0032 class BOPAlgo_Splitter;
0033 
0034 class BOPTest_Objects
0035 {
0036 public:
0037   DEFINE_STANDARD_ALLOC
0038 
0039   Standard_EXPORT static BOPAlgo_PaveFiller& PaveFiller();
0040 
0041   Standard_EXPORT static void Init();
0042 
0043   Standard_EXPORT static void Clear();
0044 
0045   Standard_EXPORT static BOPDS_PDS PDS();
0046 
0047   Standard_EXPORT static BOPAlgo_Builder& Builder();
0048 
0049   Standard_EXPORT static BOPAlgo_BOP& BOP();
0050 
0051   Standard_EXPORT static BOPAlgo_Section& Section();
0052 
0053   Standard_EXPORT static BOPAlgo_CellsBuilder& CellsBuilder();
0054 
0055   Standard_EXPORT static BOPAlgo_Splitter& Splitter();
0056 
0057   Standard_EXPORT static NCollection_List<TopoDS_Shape>& Shapes();
0058 
0059   Standard_EXPORT static NCollection_List<TopoDS_Shape>& Tools();
0060 
0061   Standard_EXPORT static void SetBuilder(const BOPAlgo_PBuilder& theBuilder);
0062 
0063   Standard_EXPORT static void SetBuilderDefault();
0064 
0065   Standard_EXPORT static void SetDefaultOptions();
0066 
0067   Standard_EXPORT static void SetRunParallel(const bool theFlag);
0068 
0069   Standard_EXPORT static bool RunParallel();
0070 
0071   Standard_EXPORT static void SetFuzzyValue(const double theValue);
0072 
0073   Standard_EXPORT static double FuzzyValue();
0074 
0075   Standard_EXPORT static void SetNonDestructive(const bool theFlag);
0076 
0077   Standard_EXPORT static bool NonDestructive();
0078 
0079   Standard_EXPORT static void SetGlue(const BOPAlgo_GlueEnum aGlue);
0080 
0081   Standard_EXPORT static BOPAlgo_GlueEnum Glue();
0082 
0083   Standard_EXPORT static void SetDrawWarnShapes(const bool bDraw);
0084 
0085   Standard_EXPORT static bool DrawWarnShapes();
0086 
0087   Standard_EXPORT static void SetCheckInverted(const bool bCheck);
0088 
0089   Standard_EXPORT static bool CheckInverted();
0090 
0091   Standard_EXPORT static void SetUseOBB(const bool bUseOBB);
0092 
0093   Standard_EXPORT static bool UseOBB();
0094 
0095   Standard_EXPORT static void SetUnifyEdges(const bool bUE);
0096   Standard_EXPORT static bool UnifyEdges();
0097 
0098   Standard_EXPORT static void SetUnifyFaces(const bool bUF);
0099   Standard_EXPORT static bool UnifyFaces();
0100 
0101   Standard_EXPORT static void   SetAngular(const double bAngTol);
0102   Standard_EXPORT static double Angular();
0103 };
0104 
0105 #endif // _BOPTest_Objects_HeaderFile