vtkMaterialInterfaceIdList.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: $RCSfile$
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
25 #ifndef vtkMaterialInterfaceIdList_h
26 #define vtkMaterialInterfaceIdList_h
27 
29 #include "vtkPVVTKExtensionsFiltersMaterialInterfaceModule.h" //needed for exports
30 
31 #include <vector> // needed for Initialize method
32 
34 {
35 public:
41  void Clear();
46  void Initialize(const std::vector<int>& ids, bool preSorted = false);
48 
52  int GetLocalId(int globalId);
53 
54 private:
55  bool IsInitialized;
56  class IdListContainer;
57  IdListContainer* IdList;
58 };
59 #endif
60 
61 
62 // VTK-HeaderTest-Exclude: vtkMaterialInterfaceIdList.h
#define VTKPVVTKEXTENSIONSFILTERSMATERIALINTERFACE_EXPORT
Class that facilitates efficient operation on lists fragment ids.