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
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _IGESSelect_DispPerDrawing_HeaderFile
18 #define _IGESSelect_DispPerDrawing_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
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;
32 class IGESSelect_DispPerDrawing;
33 DEFINE_STANDARD_HANDLE(IGESSelect_DispPerDrawing, IFSelect_Dispatch)
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.
40 //! Remaining data concern entities not attached to a drawing.
41 class IGESSelect_DispPerDrawing : public IFSelect_Dispatch
47 //! Creates a DispPerDrawing
48 Standard_EXPORT IGESSelect_DispPerDrawing();
50 //! Returns as Label, "One File per Drawing"
51 Standard_EXPORT TCollection_AsciiString Label() const Standard_OVERRIDE;
53 //! Computes the list of produced Packets. Packets are computed
54 //! by a ViewSorter (SortDrawings with also frames).
55 Standard_EXPORT void Packets (const Interface_Graph& G, IFGraph_SubPartsIterator& packs) const Standard_OVERRIDE;
57 //! Returns True, because of entities attached to no view.
58 Standard_EXPORT virtual Standard_Boolean CanHaveRemainder() const Standard_OVERRIDE;
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;
67 DEFINE_STANDARD_RTTIEXT(IGESSelect_DispPerDrawing,IFSelect_Dispatch)
77 Handle(IGESSelect_ViewSorter) thesorter;
88 #endif // _IGESSelect_DispPerDrawing_HeaderFile