/usr/include/vtk-5.8/vtkTableExtentTranslator.h is in libvtk5-dev 5.8.0-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 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkTableExtentTranslator.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.
=========================================================================*/
// .NAME vtkTableExtentTranslator - Extent translation through lookup table.
// .SECTION Description
// vtkTableExtentTranslator provides a vtkExtentTranslator that is
// programmed with a specific extent corresponding to each piece
// number. Readers can provide this to an application to allow the
// pipeline to execute using the same piece breakdown that is provided
// in the input file.
#ifndef __vtkTableExtentTranslator_h
#define __vtkTableExtentTranslator_h
#include "vtkExtentTranslator.h"
class VTK_COMMON_EXPORT vtkTableExtentTranslator : public vtkExtentTranslator
{
public:
vtkTypeMacro(vtkTableExtentTranslator,vtkExtentTranslator);
void PrintSelf(ostream& os, vtkIndent indent);
static vtkTableExtentTranslator* New();
// Description:
// Set the number of pieces into which the whole extent will be
// split. If this is 1 then the whole extent will be returned. If
// this is more than the number of pieces in the table then the
// extra pieces will be empty data. If this is more than one but
// less than the number of pieces in the table then only this many
// pieces will be returned (FIXME).
void SetNumberOfPieces(int pieces);
// Description:
// Set the real number of pieces in the extent table.
void SetNumberOfPiecesInTable(int pieces);
vtkGetMacro(NumberOfPiecesInTable, int);
// Description:
// Called to translate the current piece into an extent. This is
// not thread safe.
int PieceToExtent();
// Description:
// Not supported by this subclass of vtkExtentTranslator.
int PieceToExtentByPoints();
// Description:
// Not supported by this subclass of vtkExtentTranslator.
int PieceToExtentThreadSafe(int piece, int numPieces,
int ghostLevel, int *wholeExtent,
int *resultExtent, int splitMode,
int byPoints);
// Description:
// Set the extent to be used for a piece. This sets the extent table
// entry for the piece.
virtual void SetExtentForPiece(int piece, int* extent);
// Description:
// Get the extent table entry for the given piece. This is only for
// code that is setting up the table. Extent translation should
// always be done through the PieceToExtent method.
virtual void GetExtentForPiece(int piece, int* extent);
virtual int* GetExtentForPiece(int piece);
// Description:
// Set the maximum ghost level that can be requested. This can be
// used by a reader to make sure an extent request does not go
// outside the boundaries of the piece's file.
vtkSetMacro(MaximumGhostLevel, int);
vtkGetMacro(MaximumGhostLevel, int);
// Description:
// Get/Set whether the given piece is available. Requesting a piece
// that is not available will produce errors in the pipeline.
virtual void SetPieceAvailable(int piece, int available);
virtual int GetPieceAvailable(int piece);
protected:
vtkTableExtentTranslator();
~vtkTableExtentTranslator();
// Store the extent table in a single array. Every 6 values form an extent.
int* ExtentTable;
int NumberOfPiecesInTable;
int MaximumGhostLevel;
// Store a flag for the availability of each piece.
int* PieceAvailable;
private:
vtkTableExtentTranslator(const vtkTableExtentTranslator&); // Not implemented.
void operator=(const vtkTableExtentTranslator&); // Not implemented.
};
#endif
|