/usr/include/vtk-6.3/vtkGenerateIndexArray.h is in libvtk6-dev 6.3.0+dfsg1-5.
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 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkGenerateIndexArray.h
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.
=========================================================================*/
/*-------------------------------------------------------------------------
Copyright 2008 Sandia Corporation.
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
the U.S. Government retains certain rights in this software.
-------------------------------------------------------------------------*/
// .NAME vtkGenerateIndexArray
//
// .SECTION Description
// Generates a new vtkIdTypeArray containing zero-base indices.
//
// vtkGenerateIndexArray operates in one of two distinct "modes".
// By default, it simply generates an index array containing
// monotonically-increasing integers in the range [0, N), where N
// is appropriately sized for the field type that will store the
// results. This mode is useful for generating a unique ID field
// for datasets that have none.
//
// The second "mode" uses an existing array from the input data
// object as a "reference". Distinct values from the reference
// array are sorted in ascending order, and an integer index in
// the range [0, N) is assigned to each. The resulting map is
// used to populate the output index array, mapping each value
// in the reference array to its corresponding index and storing
// the result in the output array. This mode is especially
// useful when generating tensors, since it allows us to "map"
// from an array with arbitrary contents to an index that can
// be used as tensor coordinates.
#ifndef vtkGenerateIndexArray_h
#define vtkGenerateIndexArray_h
#include "vtkInfovisCoreModule.h" // For export macro
#include "vtkDataObjectAlgorithm.h"
class VTKINFOVISCORE_EXPORT vtkGenerateIndexArray : public vtkDataObjectAlgorithm
{
public:
static vtkGenerateIndexArray *New();
vtkTypeMacro(vtkGenerateIndexArray, vtkDataObjectAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Control the output index array name. Default: "index".
vtkSetStringMacro(ArrayName);
vtkGetStringMacro(ArrayName);
// Description:
// Control the location where the index array will be stored.
vtkSetMacro(FieldType, int);
vtkGetMacro(FieldType, int);
// Description:
// Specifies an optional reference array for index-generation.
vtkSetStringMacro(ReferenceArrayName);
vtkGetStringMacro(ReferenceArrayName);
// Description:
// Specifies whether the index array should be marked as
// pedigree ids. Default: false.
vtkSetMacro(PedigreeID, int);
vtkGetMacro(PedigreeID, int);
//BTX
enum
{
ROW_DATA = 0,
POINT_DATA = 1,
CELL_DATA = 2,
VERTEX_DATA = 3,
EDGE_DATA = 4
};
//ETX
protected:
vtkGenerateIndexArray();
~vtkGenerateIndexArray();
virtual int ProcessRequest(
vtkInformation* request,
vtkInformationVector** inputVector,
vtkInformationVector* outputVector);
virtual int RequestDataObject(
vtkInformation* request,
vtkInformationVector** inputVector,
vtkInformationVector* outputVector);
int RequestData(
vtkInformation*,
vtkInformationVector**,
vtkInformationVector*);
char* ArrayName;
int FieldType;
char* ReferenceArrayName;
int PedigreeID;
private:
vtkGenerateIndexArray(const vtkGenerateIndexArray&); // Not implemented.
void operator=(const vtkGenerateIndexArray&); // Not implemented.
};
#endif
|