42cf5bc1 |
1 | // Created on: 1994-12-12 |
2 | // Created by: Jacques GOUSSARD |
3 | // Copyright (c) 1994-1999 Matra Datavision |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
5 | // |
6 | // This file is part of Open CASCADE Technology software library. |
7 | // |
8 | // This library is free software; you can redistribute it and/or modify it under |
9 | // the terms of the GNU Lesser General Public License version 2.1 as published |
10 | // by the Free Software Foundation, with special exception defined in the file |
11 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | // distribution for complete text of the license and disclaimer of any warranty. |
13 | // |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
16 | |
17 | #ifndef _BRepBuilderAPI_Copy_HeaderFile |
18 | #define _BRepBuilderAPI_Copy_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <BRepBuilderAPI_ModifyShape.hxx> |
25 | #include <Standard_Boolean.hxx> |
26 | class TopoDS_Shape; |
27 | |
28 | |
29 | //! Duplication of a shape. |
30 | //! A Copy object provides a framework for: |
31 | //! - defining the construction of a duplicate shape, |
32 | //! - implementing the construction algorithm, and |
33 | //! - consulting the result. |
34 | class BRepBuilderAPI_Copy : public BRepBuilderAPI_ModifyShape |
35 | { |
36 | public: |
37 | |
38 | DEFINE_STANDARD_ALLOC |
39 | |
40 | |
41 | //! Constructs an empty copy framework. Use the function |
42 | //! Perform to copy shapes. |
43 | Standard_EXPORT BRepBuilderAPI_Copy(); |
44 | |
45 | //! Constructs a copy framework and copies the shape S. |
46 | //! Use the function Shape to access the result. |
47 | //! If copyGeom is False, only topological objects will be copied, while |
48 | //! geometry will be shared with original shape. |
49 | //! Note: the constructed framework can be reused to copy |
50 | //! other shapes: just specify them with the function Perform. |
55e738d2 |
51 | Standard_EXPORT BRepBuilderAPI_Copy(const TopoDS_Shape& S, const Standard_Boolean copyGeom = Standard_True, const Standard_Boolean copyMesh = Standard_False); |
42cf5bc1 |
52 | |
53 | //! Copies the shape S. |
54 | //! Use the function Shape to access the result. |
55 | //! If copyGeom is False, only topological objects will be copied, while |
56 | //! geometry will be shared with original shape. |
55e738d2 |
57 | Standard_EXPORT void Perform (const TopoDS_Shape& S, const Standard_Boolean copyGeom = Standard_True, const Standard_Boolean copyMesh = Standard_False); |
42cf5bc1 |
58 | |
59 | |
60 | |
61 | |
62 | protected: |
63 | |
64 | |
65 | |
66 | |
67 | |
68 | private: |
69 | |
70 | |
71 | |
72 | |
73 | |
74 | }; |
75 | |
76 | |
77 | |
78 | |
79 | |
80 | |
81 | |
82 | #endif // _BRepBuilderAPI_Copy_HeaderFile |