vtkMaterialInterfaceIdList.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
3 // SPDX-License-Identifier: BSD-3-Clause
14 #ifndef vtkMaterialInterfaceIdList_h
15 #define vtkMaterialInterfaceIdList_h
16 
18 #include "vtkPVVTKExtensionsFiltersMaterialInterfaceModule.h" //needed for exports
19 
20 #include <vector> // needed for Initialize method
21 
23 {
24 public:
30  void Clear();
35  void Initialize(const std::vector<int>& ids, bool preSorted = false);
37 
41  int GetLocalId(int globalId);
42 
43 private:
44  bool IsInitialized;
45  class IdListContainer;
46  IdListContainer* IdList;
47 };
48 #endif
49 
#define VTKPVVTKEXTENSIONSFILTERSMATERIALINTERFACE_EXPORT
Class that facilitates efficient operation on lists fragment ids.