/usr/include/vtk-5.8/vtkTransferAttributes.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 110 111 112 113 114 115 116 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkTransferAttributes.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 vtkTransferAttributes - transfer data from a graph representation
// to a tree representation using direct mapping or pedigree ids.
//
// .SECTION Description
// The filter requires
// both a vtkGraph and vtkTree as input. The tree vertices must be a
// superset of the graph vertices. A common example is when the graph vertices
// correspond to the leaves of the tree, but the internal vertices of the tree
// represent groupings of graph vertices. The algorithm matches the vertices
// using the array "PedigreeId". The user may alternately set the
// DirectMapping flag to indicate that the two structures must have directly
// corresponding offsets (i.e. node i in the graph must correspond to node i in
// the tree).
//
// .SECTION Thanks
#ifndef __vtkTransferAttributes_h
#define __vtkTransferAttributes_h
#include "vtkPassInputTypeAlgorithm.h"
#include "vtkVariant.h" //For vtkVariant method arguments
class VTK_INFOVIS_EXPORT vtkTransferAttributes : public vtkPassInputTypeAlgorithm
{
public:
// Description:
// Create a vtkTransferAttributes object.
// Initial values are DirectMapping = false, DefaultValue = 1,
// SourceArrayName=0, TargetArrayName = 0,
// SourceFieldType=vtkDataObject::FIELD_ASSOCIATION_POINTS,
// TargetFieldType=vtkDataObject::FIELD_ASSOCIATION_POINTS
static vtkTransferAttributes *New();
vtkTypeMacro(vtkTransferAttributes,vtkPassInputTypeAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// If on, uses direct mapping from tree to graph vertices.
// If off, both the graph and tree must contain PedigreeId arrays
// which are used to match graph and tree vertices.
// Default is off.
vtkSetMacro(DirectMapping, bool);
vtkGetMacro(DirectMapping, bool);
vtkBooleanMacro(DirectMapping, bool);
// Description:
// The field name to use for storing the source array.
vtkGetStringMacro(SourceArrayName);
vtkSetStringMacro(SourceArrayName);
// Description:
// The field name to use for storing the source array.
vtkGetStringMacro(TargetArrayName);
vtkSetStringMacro(TargetArrayName);
// Description:
// The source field type for accessing the source array. Valid values are
// those from enum vtkDataObject::FieldAssociations.
vtkGetMacro(SourceFieldType, int);
vtkSetMacro(SourceFieldType, int);
// Description:
// The target field type for accessing the target array. Valid values are
// those from enum vtkDataObject::FieldAssociations.
vtkGetMacro(TargetFieldType, int);
vtkSetMacro(TargetFieldType, int);
// Description:
// Method to get/set the default value.
vtkVariant GetDefaultValue();
void SetDefaultValue(vtkVariant value);
// Description:
// Set the input type of the algorithm to vtkGraph.
int FillInputPortInformation(int port, vtkInformation* info);
protected:
vtkTransferAttributes();
~vtkTransferAttributes();
bool DirectMapping;
char* SourceArrayName;
char* TargetArrayName;
int SourceFieldType;
int TargetFieldType;
vtkVariant DefaultValue;
// Description:
// Convert the vtkGraph into vtkPolyData.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
private:
vtkTransferAttributes(const vtkTransferAttributes&); // Not implemented.
void operator=(const vtkTransferAttributes&); // Not implemented.
};
#endif
|