|
||||
File indexing completed on 2025-01-18 10:04:42
0001 // Copyright (c) 2018-2019 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 _RWGltf_GltfSceneNodeMap_HeaderFile 0015 #define _RWGltf_GltfSceneNodeMap_HeaderFile 0016 0017 #include <NCollection_IndexedMap.hxx> 0018 #include <XCAFPrs_DocumentExplorer.hxx> 0019 0020 //! Indexed map of scene nodes with custom search algorithm. 0021 class RWGltf_GltfSceneNodeMap : public NCollection_IndexedMap<XCAFPrs_DocumentNode> 0022 { 0023 public: 0024 0025 //! Empty constructor. 0026 RWGltf_GltfSceneNodeMap() {} 0027 0028 //! Find index from document node string identifier. 0029 Standard_Integer FindIndex (const TCollection_AsciiString& theNodeId) const 0030 { 0031 if (IsEmpty()) 0032 { 0033 return 0; 0034 } 0035 XCAFPrs_DocumentNode aDocNode; 0036 aDocNode.Id = theNodeId; 0037 return NCollection_IndexedMap<XCAFPrs_DocumentNode>::FindIndex(aDocNode); 0038 } 0039 0040 }; 0041 0042 #endif // _RWGltf_GltfSceneNodeMap_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |