blob: 53b90674842629be6f4ae28e1d944998c766697e (
plain)
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
|
// 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 _BRepTools_Substitution_HeaderFile
#define _BRepTools_Substitution_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif
#ifndef _TopTools_DataMapOfShapeListOfShape_HeaderFile
#include <TopTools_DataMapOfShapeListOfShape.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
class Standard_NoSuchObject;
class TopoDS_Shape;
class TopTools_ListOfShape;
//! A tool to substitute subshapes by other shapes. <br>
//! <br>
//! <br>
//! The user use the method Substitute to define the <br>
//! modifications. <br>
//! A set of shapes is designated to replace a initial <br>
//! shape. <br>
class BRepTools_Substitution {
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 BRepTools_Substitution();
//! Reset all the fields. <br>
Standard_EXPORT void Clear() ;
//! <Oldshape> will be replaced by <NewShapes>. <br>
//! <br>
//! <NewShapes> can be empty , in this case <OldShape> <br>
//! will disparate from its ancestors. <br>
//! <br>
//! if an item of <NewShapes> is oriented FORWARD. <br>
//! it will be oriented as <OldShape> in its ancestors. <br>
//! else it will be reversed. <br>
Standard_EXPORT void Substitute(const TopoDS_Shape& OldShape,const TopTools_ListOfShape& NewShapes) ;
//! Build NewShape from <S> if its subshapes has modified. <br>
//! <br>
//! The methods <IsCopied> and <Copy> allows you to keep <br>
//! the resul of <Build> <br>
Standard_EXPORT void Build(const TopoDS_Shape& S) ;
//! Returns True if <S> has been replaced . <br>
Standard_EXPORT Standard_Boolean IsCopied(const TopoDS_Shape& S) const;
//! Returns the set of shapes substitued to <S> . <br>
Standard_EXPORT const TopTools_ListOfShape& Copy(const TopoDS_Shape& S) const;
protected:
private:
TopTools_DataMapOfShapeListOfShape myMap;
};
// other Inline functions and methods (like "C++: function call" methods)
#endif
|