File: BOPAlgo_BOP.hxx

package info (click to toggle)
oce 0.18.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 301,548 kB
  • sloc: cpp: 1,190,609; ansic: 67,225; sh: 11,630; tcl: 7,954; cs: 5,221; python: 2,867; java: 1,522; makefile: 342; xml: 292; perl: 37
file content (105 lines) | stat: -rw-r--r-- 2,531 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _BOPAlgo_BOP_HeaderFile
#define _BOPAlgo_BOP_HeaderFile

#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Macro.hxx>

#include <BOPAlgo_Operation.hxx>
#include <Standard_Integer.hxx>
#include <TopoDS_Shape.hxx>
#include <BOPCol_ListOfShape.hxx>
#include <BOPCol_MapOfShape.hxx>
#include <BOPAlgo_Builder.hxx>
#include <BOPCol_BaseAllocator.hxx>
#include <TopAbs_ShapeEnum.hxx>
#include <Standard_Boolean.hxx>
#include <BOPCol_IndexedDataMapOfShapeListOfShape.hxx>
class TopoDS_Shape;
class TopTools_ListOfShape;
class BOPAlgo_PaveFiller;



class BOPAlgo_BOP  : public BOPAlgo_Builder
{
public:

  DEFINE_STANDARD_ALLOC

  
  //! Empty constructor
  Standard_EXPORT BOPAlgo_BOP();
Standard_EXPORT virtual ~BOPAlgo_BOP();
  
  Standard_EXPORT BOPAlgo_BOP(const BOPCol_BaseAllocator& theAllocator);
  
  //! Clears internal fields and arguments
  Standard_EXPORT virtual   void Clear() ;
  
  //! Adds Tool argument of the operation
  Standard_EXPORT virtual   void AddTool (const TopoDS_Shape& theShape) ;
  
  Standard_EXPORT virtual   void SetTools (const TopTools_ListOfShape& theShapes) ;
  
  Standard_EXPORT virtual   void SetTools (const BOPCol_ListOfShape& theShapes) ;
  
  Standard_EXPORT   void SetOperation (const BOPAlgo_Operation theOperation) ;
  
  Standard_EXPORT   BOPAlgo_Operation Operation()  const;
  
  Standard_EXPORT virtual   void Perform() ;




protected:

  
  Standard_EXPORT virtual   void CheckData() ;
  
  //! Provides preparing actions
  Standard_EXPORT virtual   void Prepare() ;
  
  //! Performs calculations using prepared Filler
  //! object <thePF>
  Standard_EXPORT virtual   void PerformInternal1 (const BOPAlgo_PaveFiller& thePF) ;
  
  Standard_EXPORT virtual   void BuildResult (const TopAbs_ShapeEnum theType) ;
  
  Standard_EXPORT   void BuildShape() ;
  
  Standard_EXPORT   void BuildRC() ;
  
  Standard_EXPORT   void BuildSolid() ;
  
  Standard_EXPORT   Standard_Boolean IsBoundSplits (const TopoDS_Shape& theS, BOPCol_IndexedDataMapOfShapeListOfShape& theMEF) ;


  BOPAlgo_Operation myOperation;
  Standard_Integer myDims[2];
  TopoDS_Shape myRC;
  BOPCol_ListOfShape myTools;
  BOPCol_MapOfShape myMapTools;


private:





};







#endif // _BOPAlgo_BOP_HeaderFile