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
|
// 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 _ShapeFix_WireVertex_HeaderFile
#define _ShapeFix_WireVertex_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif
#ifndef _ShapeAnalysis_WireVertex_HeaderFile
#include <ShapeAnalysis_WireVertex.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Handle_ShapeExtend_WireData_HeaderFile
#include <Handle_ShapeExtend_WireData.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
class TopoDS_Wire;
class ShapeExtend_WireData;
class ShapeAnalysis_WireVertex;
//! Fixes vertices in the wire on the basis of pre-analysis <br>
//! made by ShapeAnalysis_WireVertex (given as argument). <br>
//! The Wire has formerly been loaded in a ShapeExtend_WireData. <br>
class ShapeFix_WireVertex {
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);
}
Standard_EXPORT ShapeFix_WireVertex();
//! Loads the wire, ininializes internal analyzer <br>
//! (ShapeAnalysis_WireVertex) with the given precision, <br>
//! and performs analysis <br>
Standard_EXPORT void Init(const TopoDS_Wire& wire,const Standard_Real preci) ;
//! Loads the wire, ininializes internal analyzer <br>
//! (ShapeAnalysis_WireVertex) with the given precision, <br>
//! and performs analysis <br>
Standard_EXPORT void Init(const Handle(ShapeExtend_WireData)& sbwd,const Standard_Real preci) ;
//! Loads all the data on wire, already analysed by <br>
//! ShapeAnalysis_WireVertex <br>
Standard_EXPORT void Init(const ShapeAnalysis_WireVertex& sawv) ;
//! returns internal analyzer <br>
Standard_EXPORT const ShapeAnalysis_WireVertex& Analyzer() const;
//! returns data on wire (fixed) <br>
Standard_EXPORT const Handle_ShapeExtend_WireData& WireData() const;
//! returns resulting wire (fixed) <br>
Standard_EXPORT TopoDS_Wire Wire() const;
//! Fixes "Same" or "Close" status (same vertex may be set, <br>
//! without changing parameters) <br>
//! Returns the count of fixed vertices, 0 if none <br>
Standard_EXPORT Standard_Integer FixSame() ;
//! Fixes all statuses except "Disjoined", i.e. the cases in which a <br>
//! common value has been set, with or without changing parameters <br>
//! Returns the count of fixed vertices, 0 if none <br>
Standard_EXPORT Standard_Integer Fix() ;
protected:
private:
ShapeAnalysis_WireVertex myAnalyzer;
};
// other Inline functions and methods (like "C++: function call" methods)
#endif
|