42cf5bc1 |
1 | // Created on: 1994-05-31 |
2 | // Created by: Christian CAILLET |
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 _IGESSelect_DispPerDrawing_HeaderFile |
18 | #define _IGESSelect_DispPerDrawing_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_Type.hxx> |
22 | |
23 | #include <IFSelect_Dispatch.hxx> |
24 | #include <Standard_Boolean.hxx> |
25 | class IGESSelect_ViewSorter; |
26 | class TCollection_AsciiString; |
27 | class Interface_Graph; |
28 | class IFGraph_SubPartsIterator; |
29 | class Interface_EntityIterator; |
30 | |
31 | |
32 | class IGESSelect_DispPerDrawing; |
33 | DEFINE_STANDARD_HANDLE(IGESSelect_DispPerDrawing, IFSelect_Dispatch) |
34 | |
35 | //! This type of dispatch defines sets of entities attached to |
36 | //! distinct drawings. This information is taken from attached |
37 | //! views which appear in the Directory Part. Also Drawing Frames |
38 | //! are considered when Drawings are part of input list. |
39 | //! |
40 | //! Remaining data concern entities not attached to a drawing. |
41 | class IGESSelect_DispPerDrawing : public IFSelect_Dispatch |
42 | { |
43 | |
44 | public: |
45 | |
46 | |
47 | //! Creates a DispPerDrawing |
48 | Standard_EXPORT IGESSelect_DispPerDrawing(); |
49 | |
50 | //! Returns as Label, "One File per Drawing" |
79104795 |
51 | Standard_EXPORT TCollection_AsciiString Label() const Standard_OVERRIDE; |
42cf5bc1 |
52 | |
53 | //! Computes the list of produced Packets. Packets are computed |
54 | //! by a ViewSorter (SortDrawings with also frames). |
79104795 |
55 | Standard_EXPORT void Packets (const Interface_Graph& G, IFGraph_SubPartsIterator& packs) const Standard_OVERRIDE; |
42cf5bc1 |
56 | |
57 | //! Returns True, because of entities attached to no view. |
58 | Standard_EXPORT virtual Standard_Boolean CanHaveRemainder() const Standard_OVERRIDE; |
59 | |
60 | //! Returns Remainder which is a set of Entities. |
61 | //! It is supposed to be called once Packets has been called. |
62 | Standard_EXPORT virtual Interface_EntityIterator Remainder (const Interface_Graph& G) const Standard_OVERRIDE; |
63 | |
64 | |
65 | |
66 | |
92efcf78 |
67 | DEFINE_STANDARD_RTTIEXT(IGESSelect_DispPerDrawing,IFSelect_Dispatch) |
42cf5bc1 |
68 | |
69 | protected: |
70 | |
71 | |
72 | |
73 | |
74 | private: |
75 | |
76 | |
77 | Handle(IGESSelect_ViewSorter) thesorter; |
78 | |
79 | |
80 | }; |
81 | |
82 | |
83 | |
84 | |
85 | |
86 | |
87 | |
88 | #endif // _IGESSelect_DispPerDrawing_HeaderFile |