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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
|
// 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 _BRepFeat_MakeCylindricalHole_HeaderFile
#define _BRepFeat_MakeCylindricalHole_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif
#ifndef _gp_Ax1_HeaderFile
#include <gp_Ax1.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _BRepFeat_Status_HeaderFile
#include <BRepFeat_Status.hxx>
#endif
#ifndef _TopoDS_Face_HeaderFile
#include <TopoDS_Face.hxx>
#endif
#ifndef _BRepFeat_Builder_HeaderFile
#include <BRepFeat_Builder.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
class StdFail_NotDone;
class Standard_ConstructionError;
class TopoDS_Shape;
class gp_Ax1;
//! Provides a tool to make cylindrical holes on a shape. <br>
class BRepFeat_MakeCylindricalHole : public BRepFeat_Builder {
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);
}
//! Empty constructor. <br>
BRepFeat_MakeCylindricalHole();
//! Creates the tool to perform hole(s) on the shape <S>. <br>
BRepFeat_MakeCylindricalHole(const TopoDS_Shape& S);
//! Creates the tool to perform hole(s) on the shape <S>, <br>
//! with the axis <Axis>. <br>
BRepFeat_MakeCylindricalHole(const TopoDS_Shape& S,const gp_Ax1& Axis);
//! Sets the axis of the hole(s). <br>
void Init(const gp_Ax1& Axis) ;
//! Sets the shape and axis on which hole(s) will be <br>
//! performed. <br>
void Init(const TopoDS_Shape& S,const gp_Ax1& Axis) ;
//! Performs every holes of radius <Radius>. This <br>
//! command has the same effect as a cut operation <br>
//! with an infinite cylinder defined by the given <br>
//! axis and <Radius>. <br>
Standard_EXPORT void Perform(const Standard_Real Radius) ;
//! Performs evry hole of radius <Radius> located <br>
//! between PFrom and PTo on the given axis. If <br>
//! <WithControl> is set to Standard_False no control <br>
//! are done on the resulting shape after the <br>
//! operation is performed. <br>
Standard_EXPORT void Perform(const Standard_Real Radius,const Standard_Real PFrom,const Standard_Real PTo,const Standard_Boolean WithControl = Standard_True) ;
//! Performs the first hole of radius <Radius>, in the <br>
//! direction of the defined axis. First hole signify <br>
//! first encountered after the origin of the axis. If <br>
//! <WithControl> is set to Standard_False no control <br>
//! are done on the resulting shape after the <br>
//! operation is performed. <br>
Standard_EXPORT void PerformThruNext(const Standard_Real Radius,const Standard_Boolean WithControl = Standard_True) ;
//! Performs evry holes of radius <Radius> located <br>
//! after the origin of the given axis. If <br>
//! <WithControl> is set to Standard_False no control <br>
//! are done on the resulting shape after the <br>
//! operation is performed. <br>
Standard_EXPORT void PerformUntilEnd(const Standard_Real Radius,const Standard_Boolean WithControl = Standard_True) ;
//! Performs a blind hole of radius <Radius> and <br>
//! length <Length>. The length is measured from the <br>
//! origin of the given axis. If <WithControl> is set <br>
//! to Standard_False no control are done after the <br>
//! operation is performed. <br>
Standard_EXPORT void PerformBlind(const Standard_Real Radius,const Standard_Real Length,const Standard_Boolean WithControl = Standard_True) ;
//! Returns the status after a hole is performed. <br>
BRepFeat_Status Status() const;
//! Builds the resulting shape (redefined from <br>
//! MakeShape). Invalidates the given parts of tools <br>
//! if any, and performs the result of the local <br>
//! operation. <br>
Standard_EXPORT virtual void Build() ;
protected:
private:
Standard_EXPORT BRepFeat_Status Validate() ;
gp_Ax1 myAxis;
Standard_Boolean myAxDef;
BRepFeat_Status myStatus;
Standard_Boolean myIsBlind;
Standard_Boolean myValidate;
TopoDS_Face myTopFace;
TopoDS_Face myBotFace;
};
#include <BRepFeat_MakeCylindricalHole.lxx>
// other Inline functions and methods (like "C++: function call" methods)
#endif
|