/usr/include/vtk-7.1/vtkTransposeTable.h is in libvtk7-dev 7.1.1+dfsg1-2.
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 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkTransposeTable.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.
=========================================================================*/
/**
* @class vtkTransposeTable
* @brief Transpose an input table.
*
*
* This algorithm allows to transpose a vtkTable as a matrix.
* Columns become rows and vice versa. A new column can be added to
* the result table at index 0 to collect the name of the initial
* columns (when AddIdColumn is true). Such a column can be used
* to name the columns of the result.
* Note that columns of the output table will have a variant type
* is the columns of the initial table are not consistant.
*/
#ifndef vtkTransposeTable_h
#define vtkTransposeTable_h
#include "vtkFiltersCoreModule.h" // For export macro
#include "vtkTableAlgorithm.h"
class VTKFILTERSCORE_EXPORT vtkTransposeTable : public vtkTableAlgorithm
{
public:
static vtkTransposeTable* New();
vtkTypeMacro(vtkTransposeTable, vtkTableAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
//@{
/**
* This flag indicates if a column must be inserted at index 0
* with the names (ids) of the input columns.
* Default: true
*/
vtkGetMacro(AddIdColumn, bool);
vtkSetMacro(AddIdColumn, bool);
vtkBooleanMacro(AddIdColumn, bool);
//@}
//@{
/**
* This flag indicates if the output column must be named using the
* names listed in the index 0 column.
* Default: false
*/
vtkGetMacro(UseIdColumn, bool);
vtkSetMacro(UseIdColumn, bool);
vtkBooleanMacro(UseIdColumn, bool);
//@}
//@{
/**
* Get/Set the name of the id column added by option AddIdColumn.
* Default: ColName
*/
vtkGetStringMacro(IdColumnName);
vtkSetStringMacro(IdColumnName);
//@}
protected:
vtkTransposeTable();
~vtkTransposeTable() VTK_OVERRIDE;
int RequestData(vtkInformation*,
vtkInformationVector**,
vtkInformationVector*) VTK_OVERRIDE;
bool AddIdColumn;
bool UseIdColumn;
char* IdColumnName;
private:
vtkTransposeTable(const vtkTransposeTable&) VTK_DELETE_FUNCTION;
void operator=(const vtkTransposeTable&) VTK_DELETE_FUNCTION;
};
#endif
|