/usr/include/paraview/vtkMaterialInterfaceIdList.h is in paraview-dev 4.0.1-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | /*=========================================================================
Program: Visualization Toolkit
Module: $RCSfile$
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkMaterialInterfaceIdList
// .SECTION Description
// Class that facilitates efficient operation on
// lists fragment ids. This class is introduced to
// deal with the fact that local to global id search
// is a constant time operation, while its inverse
// glooabl to local id search is not.
#ifndef __vtkMaterialInterfaceIdList_h
#define __vtkMaterialInterfaceIdList_h
#include <vector>
#include "vtkMaterialInterfaceIdListItem.h"
class vtkMaterialInterfaceIdList
{
public:
vtkMaterialInterfaceIdList()
{
this->Clear();
}
~vtkMaterialInterfaceIdList()
{
this->Clear();
}
// Description:
// Return the container to an empty state.
void Clear()
{
this->IdList.clear();
this->IsInitialized=false;
}
// Description:
// Initialize the container with a list of id's
// these must be in ascending order.
void Initialize(std::vector<int> ids, bool preSorted=false);
// Description:
// Initialize the container from the ids that have
// been pushed. This must be done before querrying.
void Initialize();
// Description:
// Add a fragment id to the list. Return its index.
int PushId();
// Description:
// Add a fragment id to the list, if it is unique.
// Return its index or -1 to indicate its not unique.
int PushUniqueId();
// Description:
// Given a global id, get the local id, or -1 if the
// global id is not in the list.
int GetLocalId(int globalId);
private:
bool IsInitialized;
std::vector<vtkMaterialInterfaceIdListItem> IdList;
};
#endif
// VTK-HeaderTest-Exclude: vtkMaterialInterfaceIdList.h
|