Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-15 09:16:05

0001 // Created on: 1994-05-31
0002 // Created by: Christian CAILLET
0003 // Copyright (c) 1994-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _IGESSelect_DispPerDrawing_HeaderFile
0018 #define _IGESSelect_DispPerDrawing_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <IFSelect_Dispatch.hxx>
0024 class IGESSelect_ViewSorter;
0025 class TCollection_AsciiString;
0026 class Interface_Graph;
0027 class IFGraph_SubPartsIterator;
0028 class Interface_EntityIterator;
0029 
0030 //! This type of dispatch defines sets of entities attached to
0031 //! distinct drawings. This information is taken from attached
0032 //! views which appear in the Directory Part. Also Drawing Frames
0033 //! are considered when Drawings are part of input list.
0034 //!
0035 //! Remaining data concern entities not attached to a drawing.
0036 class IGESSelect_DispPerDrawing : public IFSelect_Dispatch
0037 {
0038 
0039 public:
0040   //! Creates a DispPerDrawing
0041   Standard_EXPORT IGESSelect_DispPerDrawing();
0042 
0043   //! Returns as Label, "One File per Drawing"
0044   Standard_EXPORT TCollection_AsciiString Label() const override;
0045 
0046   //! Computes the list of produced Packets. Packets are computed
0047   //! by a ViewSorter (SortDrawings with also frames).
0048   Standard_EXPORT void Packets(const Interface_Graph&    G,
0049                                IFGraph_SubPartsIterator& packs) const override;
0050 
0051   //! Returns True, because of entities attached to no view.
0052   Standard_EXPORT bool CanHaveRemainder() const override;
0053 
0054   //! Returns Remainder which is a set of Entities.
0055   //! It is supposed to be called once Packets has been called.
0056   Standard_EXPORT Interface_EntityIterator Remainder(const Interface_Graph& G) const override;
0057 
0058   DEFINE_STANDARD_RTTIEXT(IGESSelect_DispPerDrawing, IFSelect_Dispatch)
0059 
0060 private:
0061   occ::handle<IGESSelect_ViewSorter> thesorter;
0062 };
0063 
0064 #endif // _IGESSelect_DispPerDrawing_HeaderFile