Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-20 09:17:53

0001 // Created on: 1993-05-04
0002 // Created by: Modelistation
0003 // Copyright (c) 1993-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 _HLRBRep_ShapeToHLR_HeaderFile
0018 #define _HLRBRep_ShapeToHLR_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <TopoDS_Shape.hxx>
0025 #include <BRepTopAdaptor_Tool.hxx>
0026 #include <TopTools_ShapeMapHasher.hxx>
0027 #include <NCollection_DataMap.hxx>
0028 #include <Standard_Integer.hxx>
0029 #include <NCollection_IndexedMap.hxx>
0030 class HLRBRep_Data;
0031 class HLRTopoBRep_OutLiner;
0032 class HLRAlgo_Projector;
0033 class TopoDS_Face;
0034 
0035 //! compute the OutLinedShape of a Shape with an
0036 //! OutLiner, a Projector and create the Data
0037 //! Structure of a Shape.
0038 class HLRBRep_ShapeToHLR
0039 {
0040 public:
0041   DEFINE_STANDARD_ALLOC
0042 
0043   //! Creates a DataStructure containing the OutLiner
0044   //! <S> depending on the projector <P> and nbIso.
0045   Standard_EXPORT static occ::handle<HLRBRep_Data> Load(
0046     const occ::handle<HLRTopoBRep_OutLiner>&                                         S,
0047     const HLRAlgo_Projector&                                                         P,
0048     NCollection_DataMap<TopoDS_Shape, BRepTopAdaptor_Tool, TopTools_ShapeMapHasher>& MST,
0049     const int                                                                        nbIso = 0);
0050 
0051 private:
0052   Standard_EXPORT static void ExploreFace(
0053     const occ::handle<HLRTopoBRep_OutLiner>&                             S,
0054     const occ::handle<HLRBRep_Data>&                                     DS,
0055     const NCollection_IndexedMap<TopoDS_Shape, TopTools_ShapeMapHasher>& FM,
0056     const NCollection_IndexedMap<TopoDS_Shape, TopTools_ShapeMapHasher>& EM,
0057     int&                                                                 i,
0058     const TopoDS_Face&                                                   F,
0059     const bool                                                           closed);
0060 
0061   Standard_EXPORT static void ExploreShape(
0062     const occ::handle<HLRTopoBRep_OutLiner>&                             S,
0063     const occ::handle<HLRBRep_Data>&                                     DS,
0064     const NCollection_IndexedMap<TopoDS_Shape, TopTools_ShapeMapHasher>& FM,
0065     const NCollection_IndexedMap<TopoDS_Shape, TopTools_ShapeMapHasher>& EM);
0066 };
0067 
0068 #endif // _HLRBRep_ShapeToHLR_HeaderFile