Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-28 09:19:34

0001 // Copyright (c) 2026 OPEN CASCADE SAS
0002 //
0003 // This file is part of Open CASCADE Technology software library.
0004 //
0005 // This library is free software; you can redistribute it and/or modify it under
0006 // the terms of the GNU Lesser General Public License version 2.1 as published
0007 // by the Free Software Foundation, with special exception defined in the file
0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0009 // distribution for complete text of the license and disclaimer of any warranty.
0010 //
0011 // Alternatively, this file may be used under the terms of Open CASCADE
0012 // commercial license or contractual agreement.
0013 
0014 #ifndef _BRepGraph_Data_HeaderFile
0015 #define _BRepGraph_Data_HeaderFile
0016 
0017 #include <BRepGraph_EditorView.hxx>
0018 #include <BRepGraph_CacheRegistry.hxx>
0019 #include <BRepGraph_LayerRegistry.hxx>
0020 #include <BRepGraph_MeshView.hxx>
0021 #include <BRepGraph_RefsView.hxx>
0022 #include <BRepGraph_ShapesView.hxx>
0023 #include <BRepGraph_TopoView.hxx>
0024 #include <BRepGraph_UIDsView.hxx>
0025 #include <BRepGraphInc_Storage.hxx>
0026 
0027 #include <atomic>
0028 
0029 class BRepGraph;
0030 
0031 //! @brief Internal storage for BRepGraph (PIMPL).
0032 //!
0033 //! All topology definition data and UIDs live in myIncStorage.
0034 //! Access via myIncStorage.Edges, myIncStorage.Faces, etc.
0035 struct BRepGraph_Data
0036 {
0037   //! Incidence-table storage - sole source of truth for all topology data,
0038   //! original shapes, TShape->NodeId mapping, UIDs, and UID reverse indexes.
0039   BRepGraphInc_Storage myIncStorage;
0040 
0041   //! Registered graph layers.
0042   BRepGraph_LayerRegistry myLayerRegistry;
0043 
0044   //! Registered transient cache services.
0045   BRepGraph_CacheRegistry myCacheRegistry;
0046 
0047   //! Stable top-level views. Nested views store graph-data context only.
0048   BRepGraph::TopoView   myTopoView{nullptr};
0049   BRepGraph::UIDsView   myUIDsView{nullptr};
0050   BRepGraph::RefsView   myRefsView{nullptr};
0051   BRepGraph::ShapesView myShapesView{nullptr};
0052   BRepGraph::EditorView myEditorView{nullptr};
0053   BRepGraph::MeshView   myMeshView{nullptr};
0054 };
0055 
0056 #endif // _BRepGraph_Data_HeaderFile